Building custom flavours fails for 2.6.27-5.8

Bug #278459 reported by Tetsuo Handa
4
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: linux-source-2.6.27

Hello.

I'm experiencing similar problem reported at https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.20/+bug/261708 .

2.6.27-5.8 refers a nonexistent directory linux-2.6.27/debian/abi/2.6.27-5.8/ .
Only previous version's linux-2.6.27/debian/abi/2.6.27-4.7/ directory exists.

I'm doing

  ln -s 2.6.27-4.7/ debian/abi/2.6.27-5.8

as a workaround.

Why current version's directory is missing?

Regards.

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

Are you sure your git tree is up to date? What command(s) are you using the build the custom flavor?

Examining the git tree I have here it looks like debian/abi/2.6.27-5.8 exists:

ogasawara@yoji:~/ubuntu-intrepid$ ls debian/abi/2.6.27-5.8
abiname amd64 i386

Changed in linux:
status: New → Incomplete
Revision history for this message
Tetsuo Handa (9-launchpad-i-love-sakura-ne-jp) wrote :
Download full text (3.3 KiB)

Sorry.
As of my first report, 2.6.27-5.8 was the current and 2.6.27-4.7 was the previous.
As of this report, 2.6.27-6.9 is the current and 2.6.27-5.8 is the previous.

It seems that I was missing some preparations before building custom flavours.
I tried to build "generic" flavour kernel, and debian/abi/2.6.27-6.9/ was created at runtime.
So, linux_2.6.27-6.9.tar.gz has only debian/abi/2.6.27-5.8/ directory,
but it isn't a bug that debian/abi/2.6.27-6.9/ is missing.

Please close this topic.

By the way, it is a regrettable thing for me that Intrepid removed support for binary-custom infrastructure ( debian/binary-custom.d/ ).
My patch modifies include/linux/sched.h , forcing me to install customized linux-headers-2.6.27-6_2.6.27-6.9_all.deb which contains modified include/linux/sched.h , for ./usr/src/linux-headers-2.6.27-6-custom/include/linux/sched.h in linux-headers-2.6.27-6-custom_2.6.27-6.9_i386.deb is a symlink to ../../../linux-headers-2.6.27-6/include/linux/sched.h instead of modified include/linux/sched.h itself.
And after I install customized linux-headers-2.6.27-6_2.6.27-6.9_all.deb which contains modified include/linux/sched.h , update manager warns that original linux-headers-2.6.27-6_2.6.27-6.9_all.deb which contains original include/linux/sched.h is available. Ouch!

Thanks.
-----

root@tomoyo:~# cd /usr/src/
root@tomoyo:/usr/src# VERSION=`uname -r | cut -d - -f 1,2`
root@tomoyo:/usr/src# echo $VERSION
2.6.27-6
root@tomoyo:/usr/src# apt-get source linux-image-${VERSION}-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
NOTICE: 'linux' packaging is maintained in the 'Git' version control system at:
http://kernel.ubuntu.com/git-repos/ubuntu/ubuntu-intrepid
Skipping already downloaded file 'linux_2.6.27-6.9.dsc'
Skipping already downloaded file 'linux_2.6.27-6.9.tar.gz'
Need to get 0B of source archives.
dpkg-source: extracting linux in linux-2.6.27
dpkg-source: info: unpacking linux_2.6.27-6.9.tar.gz
root@tomoyo:/usr/src# cd linux-2.6.27/
root@tomoyo:/usr/src/linux-2.6.27# ls -l debian/abi/
total 8
drwxr-xr-x 4 root root 4096 2008-10-07 11:19 2.6.27-5.8
-rw-r--r-- 1 root root 71 2008-10-07 11:19 perm-blacklist
root@tomoyo:/usr/src/linux-2.6.27# export CONCURRENCY_LEVEL=`grep -c '^processor' /proc/cpuinfo`
root@tomoyo:/usr/src/linux-2.6.27# debian/rules binary-debs flavours=generic
Preparing generic...
install -d /usr/src/linux-2.6.27/debian/build/build-generic
touch /usr/src/linux-2.6.27/debian/build/build-generic/ubuntu-build
cat /usr/src/linux-2.6.27/debian/config/i386/config /usr/src/linux-2.6.27/debian/config/i386/config.generic | sed -e 's/.*CONFIG_VERSION_SIGNATURE.*/CONFIG_VERSION_SIGNATURE="Ubuntu 2.6.27-6.9-generic"/' > /usr/src/linux-2.6.27/debian/build/build-generic/.config
find /usr/src/linux-2.6.27/debian/build/build-generic -name "*.ko" | xargs rm -f
make ARCH=i386 EXTRAVERSION=-6-generic CONFIG_DEBUG_SECTION_MISMATCH=y SUBLEVEL=27 O=/usr/src/linux-2.6.27/debian/build/build-generic silentoldconfig prepare scripts
(...snipped...)
II: Done
install -d /usr/src/linux-2.6.27/debian/abi/2.6.27-6.9/i386
find /usr/src/linux-2.6.27/debian/build/build-generic/ -name \*.ko | \
...

Read more...

Changed in linux:
status: Incomplete → Invalid
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.