grub2-editenv: does depend since recently on liblzma

Florian Eckert fe at
Thu May 20 00:41:16 PDT 2021

Hello Dirk,

I have build a fresh master branch recently,
Since your last change [1] on grub2, I have now a new dependency on 
liblzma for the install package grub2-editenv.

root at st-dev-07 /usr/lib # ldd /root/grub-editenv
         /lib/ (0x7f684b088000) => /usr/lib/ (0x7f684b06d000) => /lib/ (0x7f684b059000) => /lib/ (0x7f684b088000)

This was not the case before your update.

root at st-dev-07 /usr/sbin # ldd /usr/sbin/grub-editenv
         /lib/ (0x7fd970176000) => /lib/ (0x7fd970162000) => /lib/ (0x7fd970176000)

My build complains that it cannot satisfy the runtime package dependency 
for grub2-editenv.

install -d -m0755 
install -m0755 
-name 'CVS' -o -name '.svn' -o -name '.#*' -o -name '*~'| xargs -r rm 
Package grub2-editenv is missing dependencies for the following 
make[2]: *** [Makefile:166: 
Error 1
make[2]: Leaving directory 
time: package/boot/grub2/pc/compile#78.64#9.79#83.88
     ERROR: package/boot/grub2 failed to build (build variant: pc).
make[1]: *** [package/Makefile:116: package/boot/grub2/compile] Error 1
make[1]: Leaving directory 
make: *** 
package/boot/grub2/compile] Error 2

This is because it lacks dependency on liblzma during build package 

If I add the following changes to the package all works as expected.

diff --git a/package/boot/grub2/Makefile b/package/boot/grub2/Makefile
index b3cb5e076f..885be65dc6 100644
--- a/package/boot/grub2/Makefile
+++ b/package/boot/grub2/Makefile
@@ -46,7 +46,7 @@ define Package/grub2-editenv
    SUBMENU:=Boot Loaders
    TITLE:=Grub2 Environment editor
+  DEPENDS:=@TARGET_x86 +liblzma

This is a hotfix but I dont´t think this is the final solution, because 
lzma is provided by the package xz.
And This is maintained in the package feed [2].

A dependency from a core package to the package feed is not allowed as I 

The best would be to move xz to openwrt core.
But as far as I know this was the case before, but then it was moved to 
the package feed for reasons I don't know.
What is your opinion on this or how can we solve this in another way?
Or do you not have this problem?

Best regards



More information about the openwrt-devel mailing list