:: [DNG] "chimeara/ceres" in lsb_relea…
Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: matheu
Ημερομηνία:  
Υ/ο: dng
Παλιά Θέματα: Re: [DNG] systemd breaking linuxcnc ...
Αντικείμενο: [DNG] "chimeara/ceres" in lsb_release output causes failure to compile kernel
Hi!

I tried to see how to report this bug on bugs.devuan.org, or on
dev1galaxy.org but couldn't magage with Tor.

Here's the error:

$ make -j8 deb-pkg

  HOSTCC  scripts/kconfig/conf.o
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf  --syncconfig Kconfig
  UPD     include/config/kernel.release
make clean
sh ./scripts/package/mkdebian
  TAR     linux-5.4.9.tar.gz
origversion=$(dpkg-parsechangelog -SVersion |sed 's/-[^-]*$//');\
        mv linux-5.4.9.tar.gz ../linux-5.4.9_${origversion}.orig.tar.gz
dpkg-parsechangelog: warning:     debian/changelog(l2): found end of file
where expected first heading
dpkg-parsechangelog: error: fatal error occurred while parsing
debian/changelog
dpkg-buildpackage -r"fakeroot -u" -a$(cat debian/arch)  -i.git -us -uc
dpkg-buildpackage: warning:     debian/changelog(l2): found end of file
where expected first heading
dpkg-buildpackage: error: fatal error occurred while parsing debian/changelog
make[1]: *** [scripts/Makefile.package:77: deb-pkg] Error 25
make: *** [Makefile:1427: deb-pkg] Error 2


And here's the fix. In the kernel source, in the file:

./scripts/package/mkdebian

add '| cut -d/ ' into this line:

< elif distribution=$(lsb_release -cs 2>/dev/null) && [ -n "$distribution"
] && [ "$distribution" != "n/a" ]; then

so that it becomes:

> elif distribution=$(lsb_release -cs | cut -d/ -f2 2>/dev/null) && [ -n

"$distribution" ] && [ "$distribution" != "n/a" ]; then

Save it. And then the kernel can be compiled.

The issue is with the lsb_release, or the kernel folks should accept the
second filed to have a '/'... and change the mkdebian file accordingly.

$ lsb_release -cs
chimaera/ceres
$
does not work with the kernel.

I hope this report will still be useful!

matheu