FTBFS: cannot build powerpc 2.6 kernels, missing rule for conf.vars

Bug #12810 reported by Debian Bug Importer
6
Affects Status Importance Assigned to Milestone
kernel-package (Debian)
Fix Released
Unknown
kernel-package (Ubuntu)
Fix Released
Medium
Colin Watson

Bug Description

Automatically imported from Debian bug report #294751 http://bugs.debian.org/294751

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Automatically imported from Debian bug report #294751 http://bugs.debian.org/294751

Revision history for this message
Debian Bug Importer (debzilla) wrote :
Download full text (3.5 KiB)

Message-Id: <E1Czajz-0003Bd-54@pegasos>
Date: Fri, 11 Feb 2005 14:21:47 +0100
From: Sven Luther <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: FTBFS: cannot build powerpc 2.6 kernels, missing rule for conf.vars

Package: kernel-package
Version: 8.120
Severity: serious
Justification: FTBFS

As said, i am not able to build the powerpc 2.6.10 kernel package with this,
while building it with my 8.119 + versioned script hack worked fine :

cd
/home/sven/debian/kernel/build/kernel-patch-powerpc-2.6.10-2.6.10/tmp/kernel-source-2.6.10;
APPEND_TO_VERSION='' make-kpkg configure
make[1]: Entering directory
`/home/sven/debian/kernel/build/kernel-patch-powerpc-2.6.10-2.6.10/tmp/kernel-source-2.6.10'
# 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 " > scripts/package/Makefile)
test ! -f stamp-debian && test ! -f debian/official && \
      rm -rf ./debian && mkdir ./debian
make[1]: [stamp-debian] Error 1 (ignored)
test ! -f stamp-debian && \
               ( test ! -f debian/official || test ! -f debian/control) && \
   sed -e 's/=V/2.6.10/g' -e 's/=D/2.6.10-2/g' \
       -e 's/=A/powerpc/g' -e 's/=SA//g' \
                -e 's/=L/quik, /g' -e 's/=I/initrd-tools (>= 0.1.48), /g' \
                -e 's/=CV/2.6/g' \
                -e 's/=M/Unknown Kernel Package Maintainer
<email address hidden>/g' \
                -e 's/=ST/kernel/g' \
                 /usr/share/kernel-package/Control> debian/control
make[1]: [stamp-debian] Error 1 (ignored)
test ! -f stamp-debian && test ! -f debian/official && \
   sed -e 's/=V/2.6.10/g' -e 's/=D/2.6.10-2/g' \
    -e 's/=A/powerpc/g' -e 's/=M/Unknown Kernel Package Maintainer
<email address hidden>/g' \
            -e 's/=ST/kernel/g' \
        /usr/share/kernel-package/changelog > debian/changelog
make[1]: [stamp-debian] Error 1 (ignored)
test ! -f debian/rules && \
   install -p -m 755 /usr/share/kernel-package/rules debian/rules
echo done > stamp-debian
make[1]: *** No rule to make target `conf.vars', needed by `stamp-configure'.
Stop.
make[1]: Leaving directory
`/home/sven/debian/kernel/build/kernel-patch-powerpc-2.6.10-2.6.10/tmp/kernel-source-2.6.10'
make: *** [stamp-configure] Error 2

Hope you can find what is broken here :)

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: powerpc (ppc)
Kernel: Linux 2.6.8-powerpc
Locale: LANG=fr_FR@euro, LC_CTYPE=fr_FR@euro (charmap=ISO-8859-15)

Versions of packages kernel-package depends on:
ii dpkg 1.10.26 Package maintenance system for Deb
ii dpkg-dev 1.10.26 Package building tools for Debian
ii gcc [c-compiler] 4:3.3.5...

Read more...

Revision history for this message
In , Sven Luther (sven-luther) wrote : trivial patch : conf_vars -> conf.vars :)

tags 294751 + patch
thanks

Here is attached the trivial patch to fix this issue, at least i think so.

Friendly,

Sven Luther

Revision history for this message
In , Sven Luther (sven-luther) wrote : oh well, the patch was not enough :/

Hello,

The previous patch did fix the one issue, but it immediately failed with :

test ! -f debian/rules && \
   install -p -m 755 /usr/share/kernel-package/rules debian/rules
echo done > stamp-debian
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.
sed: -e expression #1, char 0: no previous regular expression
make[1]: *** [conf.vars] Error 1
make[1]: Leaving directory
`/home/sven/debian/kernel/build/kernel-patch-powerpc-2.6.10-2.6.10/tmp/kernel-source-2.6.10'
make: *** [stamp-configure] Error 2

Which clearly seems to be a bug in :

  @sed -e 's%$(TOPDIR)%$$(TOPDIR)%g' .mak > conf.vars

And .mak is :

VERSION = 2
PATCHLEVEL = 6
SUBLEVEL = 10
EXTRAVERSION =
KPKG_SELECTED_MODULES =
Debian Revision = 2.6.10-2
KPKG_ARCH =
do_parallel =
fast_dep =

Not sure what this is about, so let's see what meld tells me of your changes :)

Mmm, nothing very speaking.

Friendly,

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <20050211175304.GA19580@pegasos>
Date: Fri, 11 Feb 2005 18:53:04 +0100
From: Sven Luther <email address hidden>
To: <email address hidden>
Subject: trivial patch : conf_vars -> conf.vars :)

--HcAYCG3uE/tztfnV
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline

tags 294751 + patch
thanks

Here is attached the trivial patch to fix this issue, at least i think so.

Friendly,

Sven Luther

--HcAYCG3uE/tztfnV
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: attachment; filename="kernel-package.diff"

--- /usr/share/kernel-package/rules.orig 2005-02-11 18:54:57.783898864 +0100
+++ /usr/share/kernel-package/rules 2005-02-11 18:55:16.107113312 +0100
@@ -1707,7 +1707,7 @@
     install -p -m 755 $(DEBDIR)/rules debian/rules
  echo done > $@

-conf_vars: Makefile .config
+conf.vars: Makefile .config
  @rm -f .mak
  @touch .mak
  @echo Please ignore the warning about overriding and ignoring targets above.

--HcAYCG3uE/tztfnV--

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <20050211180347.GA19736@pegasos>
Date: Fri, 11 Feb 2005 19:03:47 +0100
From: Sven Luther <email address hidden>
To: <email address hidden>
Subject: oh well, the patch was not enough :/

Hello,

The previous patch did fix the one issue, but it immediately failed with :

test ! -f debian/rules && \
   install -p -m 755 /usr/share/kernel-package/rules debian/rules
echo done > stamp-debian
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.
sed: -e expression #1, char 0: no previous regular expression
make[1]: *** [conf.vars] Error 1
make[1]: Leaving directory
`/home/sven/debian/kernel/build/kernel-patch-powerpc-2.6.10-2.6.10/tmp/kernel-source-2.6.10'
make: *** [stamp-configure] Error 2

Which clearly seems to be a bug in :

  @sed -e 's%$(TOPDIR)%$$(TOPDIR)%g' .mak > conf.vars

And .mak is :

VERSION = 2
PATCHLEVEL = 6
SUBLEVEL = 10
EXTRAVERSION =
KPKG_SELECTED_MODULES =
Debian Revision = 2.6.10-2
KPKG_ARCH =
do_parallel =
fast_dep =

Not sure what this is about, so let's see what meld tells me of your changes :)

Mmm, nothing very speaking.

Friendly,

Revision history for this message
In , liam (liam-liams) wrote : Same Problem....i386

Hello,

I've got an identical problem to luther. Tried patch but it didn't work
either. I reverted to using the 'rules' file from the 8.119 package and
this seemed to work once I'd done a 'make-kpkg clean' and 'rm
debian/changelog'.

I'm not sure what other complications will arise from using the older
'rules' file but it works for me for now.

Liam.

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Sat, 12 Feb 2005 02:37:26 +0000
From: liam <email address hidden>
To: <email address hidden>
Subject: Same Problem....i386

Hello,

I've got an identical problem to luther. Tried patch but it didn't work
either. I reverted to using the 'rules' file from the 8.119 package and
this seemed to work once I'd done a 'make-kpkg clean' and 'rm
debian/changelog'.

I'm not sure what other complications will arise from using the older
'rules' file but it works for me for now.

Liam.

Revision history for this message
In , Manoj (srivasta) wrote : Bug#294751: fixed in kernel-package 8.121

Source: kernel-package
Source-Version: 8.121

We believe that the bug you reported is fixed in the latest version of
kernel-package, which is due to be installed in the Debian FTP archive:

kernel-package_8.121.dsc
  to pool/main/k/kernel-package/kernel-package_8.121.dsc
kernel-package_8.121.tar.gz
  to pool/main/k/kernel-package/kernel-package_8.121.tar.gz
kernel-package_8.121_all.deb
  to pool/main/k/kernel-package/kernel-package_8.121_all.deb

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to <email address hidden>,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Manoj Srivastava <email address hidden> (supplier of updated kernel-package package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing <email address hidden>)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sat, 12 Feb 2005 00:06:22 -0600
Source: kernel-package
Binary: kernel-package
Architecture: source all
Version: 8.121
Distribution: unstable
Urgency: low
Maintainer: Manoj Srivastava <email address hidden>
Changed-By: Manoj Srivastava <email address hidden>
Description:
 kernel-package - A utility for building Linux kernel related Debian packages.
Closes: 294736 294751 294889
Changes:
 kernel-package (8.121) unstable; urgency=low
 .
   * Bug fix: "FTBFS: cannot build powerpc 2.6 kernels, missing rule for
     conf.vars", thanks to Sven Luther (Closes: #294751).
   * Bug fix: "kernel-package: only postinst/rm scripts get =D and co
     substituted, while preinst/rm do not ...", thanks to Sven Luther
                                                          (Closes: #294736).
   * kernel-package locks up when building (Closes: #294889).
Files:
 e0616f657243acad5d0b37c238c732f7 483 misc optional kernel-package_8.121.dsc
 fce13a4ddd9f30eea31b87a0c0fef267 495211 misc optional kernel-package_8.121.tar.gz
 d595019890467d119bf4cd9d986b5fe3 351424 misc optional kernel-package_8.121_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCDaSQIbrau78kQkwRAt15AJ0RGeHRqZBEtxY76/8UIkmn1OQS1QCeMBGj
2TdPMdhx0uvlRbrSumzWc10=
=PpFp
-----END PGP SIGNATURE-----

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Sat, 12 Feb 2005 02:02:02 -0500
From: Manoj Srivastava <email address hidden>
To: <email address hidden>
Subject: Bug#294751: fixed in kernel-package 8.121

Source: kernel-package
Source-Version: 8.121

We believe that the bug you reported is fixed in the latest version of
kernel-package, which is due to be installed in the Debian FTP archive:

kernel-package_8.121.dsc
  to pool/main/k/kernel-package/kernel-package_8.121.dsc
kernel-package_8.121.tar.gz
  to pool/main/k/kernel-package/kernel-package_8.121.tar.gz
kernel-package_8.121_all.deb
  to pool/main/k/kernel-package/kernel-package_8.121_all.deb

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to <email address hidden>,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Manoj Srivastava <email address hidden> (supplier of updated kernel-package package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing <email address hidden>)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sat, 12 Feb 2005 00:06:22 -0600
Source: kernel-package
Binary: kernel-package
Architecture: source all
Version: 8.121
Distribution: unstable
Urgency: low
Maintainer: Manoj Srivastava <email address hidden>
Changed-By: Manoj Srivastava <email address hidden>
Description:
 kernel-package - A utility for building Linux kernel related Debian packages.
Closes: 294736 294751 294889
Changes:
 kernel-package (8.121) unstable; urgency=low
 .
   * Bug fix: "FTBFS: cannot build powerpc 2.6 kernels, missing rule for
     conf.vars", thanks to Sven Luther (Closes: #294751).
   * Bug fix: "kernel-package: only postinst/rm scripts get =D and co
     substituted, while preinst/rm do not ...", thanks to Sven Luther
                                                          (Closes: #294736).
   * kernel-package locks up when building (Closes: #294889).
Files:
 e0616f657243acad5d0b37c238c732f7 483 misc optional kernel-package_8.121.dsc
 fce13a4ddd9f30eea31b87a0c0fef267 495211 misc optional kernel-package_8.121.tar.gz
 d595019890467d119bf4cd9d986b5fe3 351424 misc optional kernel-package_8.121_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCDaSQIbrau78kQkwRAt15AJ0RGeHRqZBEtxY76/8UIkmn1OQS1QCeMBGj
2TdPMdhx0uvlRbrSumzWc10=
=PpFp
-----END PGP SIGNATURE-----

Revision history for this message
Martin Pitt (pitti) wrote :

The fix should just be merged from Debian. Colin, what do you think, does that
affect us at all?

Revision history for this message
Colin Watson (cjwatson) wrote :

I think it's OK to merge, but it doesn't affect our kernels, so perhaps best to
leave it until post-Hoary.

Revision history for this message
Matt Zimmerman (mdz) wrote :

OK, downgrading

Revision history for this message
Colin Watson (cjwatson) wrote :

Fixed by Fabio's merge of 8.131ubuntu1.

Changed in kernel-package:
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.