Subject: kernel-package: make-kpkg fails building x86 kernel in bootstrap enviroment Package: kernel-package Version: 12.036+nmu3 Severity: normal
Dear Maintainer, I use a script to generate a working kernel for my AMD Geode devices. There is nothing special about it. It only creates a i386 bootstrap enviroment, chroots , updates and build a kernel. Today it failed (last run: a month ago) with a "sed" error. I played around with the make-kpgk parameters but nothing happend, so it seems to be a bug for me. What I've done: /usr/sbin/debootstrap --arch i386 wheezy /export/rootfs http://ftp.de.debian.org/debian mount -o bind /dev/ /export/rootfs/dev chroot /export/rootfs export LANG=C export HOME=/root export LC_ALL=C mount -t proc none /proc mount -t sysfs none /sys mount -t devpts none /dev/pts echo "deb http://ftp.de.debian.org/debian wheezy main contrib non-free"> /etc/apt/sources.list apt-get update apt-get -yqq install build-essential linux-source initramfs-tools linux-source libncurses5-dev fakeroot kernel-package openssh-server screen nfs-client pciutils usbutils wireless-tools iw firmware-linux-nonfree firmware-linux-free cd /usr/src tar xfj linux-source-*.tar.bz2 ln -s $(ls -d */) linux-source cd linux-source make ARCH=i386 clean make ARCH=i386 defconfig make-kpkg --rootcmd fakeroot --cross-compile - --arch i386 --initrd kernel-image kernel-headers ... see complete log at end of mail .... ====== making target debian/stamp/conf/vars [new prereqs: ]====== sed: -e expression #1, char 0: no previous regular expression make: *** [debian/stamp/conf/vars] Error 1 -- System Information: Debian Release: 7.8 APT prefers stable APT policy: (500, 'stable') Architecture: i386 (x86_64) Kernel: Linux 3.16.0-33-generic (SMP w/4 CPU cores) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/dash Versions of packages kernel-package depends on: ii binutils 2.22-8 ii build-essential 11.5 ii debianutils 4.3.2 ii file 5.11-2+deb7u6 ii gettext 0.18.1.1-9 ii make 3.81-8.2 ii module-init-tools 9-3 ii po-debconf 1.0.16+nmu2 ii util-linux 2.20.1-5.3 Versions of packages kernel-package recommends: ii cpio 2.11+dfsg-0.1+deb7u1 Versions of packages kernel-package suggests: pn btrfs-tools <none> ii bzip2 1.0.6-4 pn docbook-utils <none> ii e2fsprogs 1.42.5-1.1 pn grub | grub2 <none> ii initramfs-tools [linux-initramfs-tool] 0.109.1 pn jfsutils <none> ii libncurses5-dev [libncurses-dev] 5.9-10 ii linux-source 3.2+46 ii linux-source-3.2 [linux-source] 3.2.65-1 pn mcelog <none> Versions of packages kernel-package depends on: ii binutils 2.22-8 ii build-essential 11.5 ii debianutils 4.3.2 ii file 5.11-2+deb7u6 ii gettext 0.18.1.1-9 ii make 3.81-8.2 ii module-init-tools 9-3 ii po-debconf 1.0.16+nmu2 ii util-linux 2.20.1-5.3 Versions of packages kernel-package recommends: ii cpio 2.11+dfsg-0.1+deb7u1 Versions of packages kernel-package suggests: pn btrfs-tools <none> ii bzip2 1.0.6-4 pn docbook-utils <none> ii e2fsprogs 1.42.5-1.1 pn grub | grub2 <none> ii initramfs-tools [linux-initramfs-tool] 0.109.1 pn jfsutils <none> ii libncurses5-dev [libncurses-dev] 5.9-10 ii linux-source 3.2+46 ii linux-source-3.2 [linux-source] 3.2.65-1 pn mcelog <none> pn oprofile <none> pn pcmciautils <none> pn ppp <none> ii procps 1:3.3.3-3 pn quota <none> pn reiserfsprogs <none> pn squashfs-tools <none> ii udev 175-7.2 pn xfsprogs <none> pn xmlto <none> -- no debconf information --Output of make-kpkg --rootcmd fakeroot --cross-compile - --arch i386 --initrd kernel-image kernel-headers ====== making target debian/stamp/conf/minimal_debian [new prereqs: ]====== This is kernel package version 12.036+nmu3. 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 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/3.2.65/g' \ -e 's/=D/3.2.65-10.00.Custom/g' -e 's/=A/i386/g' \ -e 's/=SA//g' \ -e 's/=I//g' \ -e 's/=CV/3.2/g' \ -e 's/=M/Unknown Kernel Package Maintainer <unkn...@unconfigured.in.etc.kernel-pkg.conf>/g' \ -e 's/=ST/linux/g' -e 's/=B/i386/g' \ /usr/share/kernel-package/Control> debian/control test -f debian/changelog || sed -e 's/=V/3.2.65/g' \ -e 's/=D/3.2.65-10.00.Custom/g' -e 's/=A/i386/g' \ -e 's/=ST/linux/g' -e 's/=B/i386/g' \ -e 's/=M/Unknown Kernel Package Maintainer <unkn...@unconfigured.in.etc.kernel-pkg.conf>/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 `/usr/src/linux-source-3.2' ====== making target debian/stamp/conf/kernel-conf [new prereqs: ]====== make CROSS_COMPILE='' ARCH=i386 \ oldconfig; make[2]: Entering directory `/usr/src/linux-source-3.2' scripts/kconfig/conf --oldconfig Kconfig # # configuration written to .config # make[2]: Leaving directory `/usr/src/linux-source-3.2' make CROSS_COMPILE='' ARCH=i386 prepare make[2]: Entering directory `/usr/src/linux-source-3.2' scripts/kconfig/conf --silentoldconfig Kconfig make[2]: Leaving directory `/usr/src/linux-source-3.2' make[2]: Entering directory `/usr/src/linux-source-3.2' make[3]: Nothing to be done for `relocs'. CHK include/linux/version.h CHK include/generated/utsrelease.h CHK include/generated/package.h CALL scripts/checksyscalls.sh make[2]: Leaving directory `/usr/src/linux-source-3.2' echo done> debian/stamp/conf/kernel-conf make[1]: Leaving directory `/usr/src/linux-source-3.2' make -f debian/rules debian/stamp/conf/full-changelog make[1]: Entering directory `/usr/src/linux-source-3.2' ====== making target debian/stamp/conf/full-changelog [new prereqs: ]====== for file in ChangeLog Control Control.bin86 config templates.in rules; do \ cp -f /usr/share/kernel-package/$file ./debian/; \ done for dir in Config docs examples ruleset scripts pkg po; do \ cp -af /usr/share/kernel-package/$dir ./debian/; \ done install -p -m 755 /usr/share/kernel-package/rules debian/rules sed -e 's/=V/3.2.65/g' \ -e 's/=D/3.2.65-10.00.Custom/g' -e 's/=A/i386/g' \ -e 's/=SA//g' \ -e 's/=I//g' \ -e 's/=CV/3.2/g' \ -e 's/=M/Unknown Kernel Package Maintainer <unkn...@unconfigured.in.etc.kernel-pkg.conf>/g' \ -e 's/=ST/linux/g' -e 's/=B/i386/g' \ /usr/share/kernel-package/Control> debian/control sed -e 's/=V/3.2.65/g' -e 's/=D/3.2.65-10.00.Custom/g' \ -e 's/=A/i386/g' -e 's/=M/Unknown Kernel Package Maintainer <unkn...@unconfigured.in.etc.kernel-pkg.conf>/g' \ -e 's/=ST/linux/g' -e 's/=B/i386/g' \ /usr/share/kernel-package/changelog> debian/changelog chmod 0644 debian/control debian/changelog make -f debian/rules debian/stamp/conf/kernel-conf make[2]: Entering directory `/usr/src/linux-source-3.2' make[2]: `debian/stamp/conf/kernel-conf' is up to date. make[2]: Leaving directory `/usr/src/linux-source-3.2' make[1]: Leaving directory `/usr/src/linux-source-3.2' echo done> debian/stamp/conf/minimal_debian ====== making target debian/stamp/conf/vars [new prereqs: ]====== sed: -e expression #1, char 0: no previous regular expression make: *** [debian/stamp/conf/vars] Error 1 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org