Bug#905732: kernel-package: fails to create debian directory (/bin/sh: 1: [: -lt: unexpected operator)
On 11/08/18 18:43, Claude Heiland-Allen wrote: Worked (albeit slowly) without -j 32. To be precise, this worked: I think this is an issue with using an old .config and not updating it properly with new variables defined in the new kernel. Seems if I go through the make oldconfig stuff (invoked by make-kpkg) once successfully, with the build failing after that with the can't crate debian directory, then subsequently trying make-kpkg again does work with -j 32
Bug#905732: kernel-package: fails to create debian directory (/bin/sh: 1: [: -lt: unexpected operator)
On 08/08/18 19:37, Claude Heiland-Allen wrote: * What exactly did you do (or not do) that was effective (or ineffective)? .../linux-4.18-rc8$ make-kpkg --rootcmd=fakeroot -j 32 --initrd kernel_image --verbose * What was the outcome of this action? The build failed after a couple of seconds, with errors from /bin/sh along the way. Worked (albeit slowly) without -j 32. To be precise, this worked: .../linux-4.18-rc8$ make-kpkg --rootcmd=fakeroot --initrd kernel_image
Bug#905732: kernel-package: fails to create debian directory (/bin/sh: 1: [: -lt: unexpected operator)
With /bin/sh -> dash: On 08/08/18 19:37, Claude Heiland-Allen wrote: /bin/sh: 1: [: -lt: unexpected operator /bin/sh: 1: [: -gt: unexpected operator /bin/sh: 1: [: -lt: unexpected operator With /bin/sh -> bash: --8<-- /bin/sh: line 0: [: -lt: unary operator expected /bin/sh: line 0: [: -gt: unary operator expected /bin/sh: line 0: [: -lt: unary operator expected --8<-- So it isn't a simple bashism.
Bug#905732: kernel-package: fails to create debian directory (/bin/sh: 1: [: -lt: unexpected operator)
Package: kernel-package Version: 13.018+nmu1 Severity: normal Dear Maintainer, * What led up to the situation? I tried to make-kpkg with the latest linux-4.18-rc8 * What exactly did you do (or not do) that was effective (or ineffective)? .../linux-4.18-rc8$ make-kpkg --rootcmd=fakeroot -j 32 --initrd kernel_image --verbose * What was the outcome of this action? The build failed after a couple of seconds, with errors from /bin/sh along the way. * What outcome did you expect instead? The .deb kernel package to have been built. Full log: 8< claude@eiskaffee:~/opt/src/linux/linux-4.18-rc8$ make-kpkg --rootcmd=fakeroot -j 32 --initrd kernel_image --verbose exec make kpkg_version=13.018+nmu1 -f /usr/share/kernel-package/ruleset/minimal.mk debian V=1 INITRD=YES ROOT_CMD=fakeroot /bin/sh: 1: [: -lt: unexpected operator /bin/sh: 1: [: -gt: unexpected operator /bin/sh: 1: [: -lt: unexpected operator == making target debian/stamp/conf/minimal_debian [new prereqs: ]== This is kernel package version 13.018+nmu1. test -d debian || mkdir debian test ! -e stamp-building || rm -f stamp-building install -p -m 755 /usr/share/kernel-package/rules debian/rules for file in ChangeLog Control Control.bin86 config templates.in rules; do \ cp -f /usr/share/kernel-package/$file ./debian/; \ done cp: cannot stat '/usr/share/kernel-package/ChangeLog': No such file or directory for dir in Config docs examples ruleset scripts pkg po; do \ cp -af /usr/share/kernel-package/$dir ./debian/; \ done test -f debian/control || sed -e 's/=V/../g' \ -e 's/=D/..-10.00.Custom/g' -e 's/=A/amd64/g' \ -e 's/=SA//g' \ -e 's/=I//g'\ -e 's/=CV/./g' \ -e 's/=M/Unknown Kernel Package Maintainer /g' \ -e 's/=ST/linux/g' -e 's/=B/x86_64/g'\ -e 's/=R/initramfs-tools | linux-initramfs-tool,/g' /usr/share/kernel-package/Control > debian/control test -f debian/changelog || sed -e 's/=V/../g' \ -e 's/=D/..-10.00.Custom/g'-e 's/=A/amd64/g' \ -e 's/=ST/linux/g' -e 's/=B/x86_64/g' \ -e 's/=M/Unknown Kernel Package Maintainer /g'\ /usr/share/kernel-package/changelog > debian/changelog chmod 0644 debian/control debian/changelog test -d ./debian/stamp || mkdir debian/stamp make -f debian/rules debian/stamp/conf/kernel-conf make[1]: Entering directory '/home/claude/opt/src/linux/linux-4.18-rc8' dpkg-parsechangelog: warning: debian/changelog(l1): version '..-10.00.Custom' is invalid: version number does not start with digit LINE: linux-source-.. (..-10.00.Custom) unstable; urgency=low dpkg-parsechangelog: warning: debian/changelog(l1): version '..-10.00.Custom' is invalid: version number does not start with digit LINE: linux-source-.. (..-10.00.Custom) unstable; urgency=low dpkg-parsechangelog: warning: debian/changelog(l1): version '..-10.00.Custom' is invalid: version number does not start with digit LINE: linux-source-.. (..-10.00.Custom) unstable; urgency=low dpkg-parsechangelog: warning: debian/changelog(l1): version '..-10.00.Custom' is invalid: version number does not start with digit LINE: linux-source-.. (..-10.00.Custom) unstable; urgency=low dpkg-parsechangelog: warning: debian/changelog(l1): version '..-10.00.Custom' is invalid: version number does not start with digit LINE: linux-source-.. (..-10.00.Custom) unstable; urgency=low /bin/sh: 1: [: -lt: unexpected operator /bin/sh: 1: [: -gt: unexpected operator /bin/sh: 1: [: -lt: unexpected operator /bin/sh: 1: [: -lt: unexpected operator /bin/sh: 1: [: -eq: unexpected operator /bin/sh: 1: [: -eq: unexpected operator /bin/sh: 1: [: -lt: unexpected operator /bin/sh: 1: [: -eq: unexpected operator /bin/sh: 1: [: -eq: unexpected operator /bin/sh: 1: [: -gt: unexpected operator /bin/sh: 1: [: -ge: unexpected operator /bin/sh: 1: [: -lt: unexpected operator /bin/sh: 1: [: -eq: unexpected operator /bin/sh: 1: [: -eq: unexpected operator == making target debian/stamp/conf/kernel-conf [new prereqs: ]== makeARCH=x86_64 \ oldconfig; make[2]: Entering directory '/home/claude/opt/src/linux/linux-4.18-rc8' make[2]: *** No rule to make target 'oldconfig'. Stop. make[2]: Leaving directory '/home/claude/opt/src/linux/linux-4.18-rc8' make[1]: *** [debian/ruleset/targets/common.mk:199: debian/stamp/conf/kernel-conf] Error 2 make[1]: Leaving directory '/home/claude/opt/src/linux/linux-4.18-rc8' make: *** [/usr/share/kernel-package/ruleset/minimal.mk:106: debian/stamp/conf/minimal_debian] Error 2 Failed to create a ./debian directory: at