Bug#338103: kernel-package: Failed to build linux image with option O=/usr/src/linux-2.6.build

2005-12-23 Thread Paul

Using kernel-package 10.020

Several problems...

debian/ruleset/kernel_version.mk - The rule for debian_conf_var uses white 
spaces rather than tabs.

debian/ruleset/kernel_version.mk - The debian_TOPDIR rule appears to return a 
null string. $(srctree) is not being set, nor is $(TOPDIR) (with the 
2.6.15-rc6 kernel)..

debian/ruleset/targets/target.mk - As a result of debian_TOPDIR returning a 
null string, the sed in the conf.vars rule barfs with an error.

Fixing debian_conf_var and commenting out the problematic sed line results in 
a little more progress. However, the top level makefile in the kernel source 
tree fails at the prepare3 stage due to .config being present.


Regards, Paul.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#338103: kernel-package: Failed to build linux image with option O=/usr/src/linux-2.6.build

2005-11-07 Thread Joel Soete
Package: kernel-package
Version: 9.008.4
Severity: wishlist

Hi all,

When I build manualy a kernel 2.6, I abuse of the build option
O=/My_Kernel_Build_dir
It allow me to save a clean src tree and build as much different config as
space disk allow me ;-) _without duplicate src tree_ (I trust that d-i could
also take some benefit)

Reading MAKEFLAGS option, I was hoping that if I do:
# MAKEFLAGS= O=../linux-2.6-pa-b180  make-kpkg --revision=b180 kernel_image

that would make the same trick?

unfortunately it failed as follow:
# MAKEFLAGS= O=../linux-2.6-pa-b180  make-kpkg --revision=b180 kernel_image
/usr/share/kernel-package/kernel_version.mk:18: warning: overriding commands
for target `debian_VERSION'
Makefile:112: warning: ignoring old commands for target `debian_VERSION'
/usr/share/kernel-package/kernel_version.mk:21: warning: overriding commands
for target `debian_PATCHLEVEL'
Makefile:112: warning: ignoring old commands for target `debian_PATCHLEVEL'
/usr/share/kernel-package/kernel_version.mk:24: warning: overriding commands
for target `debian_SUBLEVEL'
Makefile:112: warning: ignoring old commands for target `debian_SUBLEVEL'
/usr/share/kernel-package/kernel_version.mk:27: warning: overriding commands
for target `debian_EXTRAVERSION'
Makefile:112: warning: ignoring old commands for target `debian_EXTRAVERSION'
/usr/share/kernel-package/kernel_version.mk:30: warning: overriding commands
for target `debian_LOCALVERSION'
Makefile:112: warning: ignoring old commands for target `debian_LOCALVERSION'
# work around idiocy in recent kernel versions
test ! -e scripts/package/builddeb || \
mv -f scripts/package/builddeb scripts/package/builddeb.dist
test ! -e scripts/package/Makefile || \
(mv -f scripts/package/Makefile scripts/package/Makefile.dist  \
   (echo # Dummy file ; echo help:)   scripts/package/Makefile)
test ! -f stamp-debian  test ! -f debian/official  \
  rm -rf ./debian  mkdir ./debian
test ! -f stamp-debian  \
   ( test ! -f debian/official || test ! -f debian/control)  \
   sed -e 's/=V/2.6.14-pa0/g' -e 's/=D/b180/g'\
   -e 's/=A/hppa/g'   -e 's/=SA//g'  \
-e 's/=L/palo, /g' -e 's/=I//g' \
-e 's/=CV/2.6/g'  \
-e 's/=M/Unknown Kernel Package Maintainer
[EMAIL PROTECTED]/g'   \
-e 's/=ST/kernel/g'  -e 's/=B/parisc/g' \
 /usr/share/kernel-package/Control debian/control
test ! -f stamp-debian  test ! -f debian/official\
   sed -e 's/=V/2.6.14-pa0/g' -e 's/=D/b180/g'   \
-e 's/=A/hppa/g' -e 's/=M/Unknown Kernel Package Maintainer
[EMAIL PROTECTED]/g' \
-e 's/=ST/kernel/g' -e 's/=B/parisc/g'   \
/usr/share/kernel-package/changelog  debian/changelog
test ! -f debian/rules\
   install -p -m 755 /usr/share/kernel-package/rules debian/rules
echo done   stamp-debian
test -f .config || test ! -f .config.save || \
cp -pf .config.save .config
test -f .config || test ! -f /usr/share/kernel-package/Config/config || \
cp -pf /usr/share/kernel-package/Config/config .config
test -f .config || test ! -f /usr/share/kernel-package/config || \
cp -pf /usr/share/kernel-package/config  .config
test -f .config || (echo *** Need a config file .config  false)
/usr/share/kernel-package/kernel_version.mk:34: warning: overriding commands
for target `debian_TOPDIR'
Makefile:112: warning: ignoring old commands for target `debian_TOPDIR'
Please ignore the warning about overriding and ignoring targets above.
These are harmless. They are only invoked in a part of the process
that tries to snarf variable values for the conf.vars file.
make[2]: *** No rule to make target `debian_conf_var'.  Stop.
make[1]: *** [debian_conf_var] Error 2
make: *** [conf.vars] Error 2

Any idea?

Thanks in advance,
Joel

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: hppa (parisc)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14-pa0-b180
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages kernel-package depends on:
ii  dpkg  1.13.11package maintenance system for Deb
ii  dpkg-dev  1.13.11package building tools for Debian
ii  gcc [c-compiler]  4:4.0.2-1  The GNU C compiler
ii  gcc-3.3 [c-compiler]  1:3.3.6-10 The GNU C compiler
ii  gcc-4.0 [c-compiler]  4.0.2-2The GNU C compiler
ii  make  3.80-11The GNU version of the make util
ii  perl  5.8.7-6Larry Wall's Practical Extraction

Versions of packages kernel-package recommends:
ii  bzip2 1.0.2-10   high-quality block-sorting file co
ii  libc6-dev