Bug 174188 - copy System.map into minimal kernel package tarball
Bug#: 174188 Product:  Gentoo Hosted Projects Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: enhancement Priority: P2
Resolution: FIXED Assigned To: genkernel@gentoo.org Reported By: agaffney@gentoo.org
Component: genkernel
URL: 
Summary: copy System.map into minimal kernel package tarball
Keywords:  
Status Whiteboard: 
Opened: 2007-04-11 18:18 0000
Description:   Opened: 2007-04-11 18:18 0000
Patch attached.

------- Comment #1 From Andrew Gaffney 2007-04-11 18:19:31 0000 -------
Created an attachment (id=115985) [details]
patch

This copies the System.map for the compiled kernel into the directory that gets
tar'd up for the minimal kernel package.

------- Comment #2 From Chris Gianelloni (RETIRED) 2007-04-12 11:43:31 0000 -------
Added to SVN

------- Comment #3 From Chris Gianelloni (RETIRED) 2007-04-12 19:35:10 0000 -------
Fixed in 3.4.8

------- Comment #4 From Andrew Gaffney 2007-04-13 23:50:42 0000 -------
Created an attachment (id=116211) [details]
new patch

This patch should work in all circumstances. It combines the patch I emailed
you (which was successfully tested) with the logic from code higher in the
function that extracts the kernel/config from the kerncache tarball if you're
using kerncache. I double-checked that the System.map-* file it's looking for
in the tarball *does* exist in my local kerncache.

------- Comment #5 From Andrew Gaffney 2007-04-13 23:50:59 0000 -------
Reopening for the new patch.

------- Comment #6 From Andrew Gaffney 2007-04-16 13:43:05 0000 -------
This patch has been successfully tested on bender (sparc dev box) with
catalyst.

------- Comment #7 From Chris Gianelloni (RETIRED) 2007-05-21 00:33:20 0000 -------
Cool.

------- Comment #8 From Luca 2007-06-01 11:09:58 0000 -------
I got this error while using genkernel 3.4.8 with kernel 2.6.20-r8:

This is the error:
*       >> Copying to bincache...
*         >> Appending evms2 cpio data...
*               EVMS2: Adding support...
*         >> Appending insmod cpio data...
*         >> Appending modules cpio data...
* Creating minimal kernel package
* Gentoo Linux Genkernel; Version 3.4.8^[[0m
* Running with options: --callback=emerge -q -kb media-libs/alsa-lib
media-sound/alsa-utils net-dialup/globespan-adsl net-dialup/slmodem
net-wireless/hostap-utils net-wireless/ipw3945 net-wireless/madwifi-ng-tools
net-wireless/rt2500 sys-apps/pcmciautils sys-fs/cryptsetup-lu$

* ERROR: Could not copy System.map for the kernel package!

Using latest catalyst with those settings:
boot/kernel/gentoo/use: pcmcia usb oss atm

------- Comment #9 From Andrew Gaffney 2007-06-01 12:33:14 0000 -------
That's what the 2nd patch in this bug fixes.

------- Comment #10 From Chris Gianelloni (RETIRED) 2007-06-21 19:41:58 0000 -------
Well, I'd InSVN this again, but you didn't remove it the first time when you
reopened the bug.  ;]

So... umm... InSVN... again...

------- Comment #11 From Tais P. Hansen 2007-08-08 09:42:56 0000 -------
I'm also getting a similar error as comment #8 describes:

* Gentoo Linux Genkernel; Version 3.4.8
* Linux Kernel 2.6.21-gentoo-r4 for x86...
* Creating minimal kernel package
cp: cannot stat `/var/tmp/genkernel/System.map-2.6.21-gentoo-r4': No such file
or directory
* ERROR: Could not copy System.map for the kernel package!

------- Comment #12 From Andrew Gaffney 2007-08-08 11:44:51 0000 -------
Why do people continue to report that it doesn't work after it's already been
said in the bug that the issue is fixed and just waiting a new genkernel
version to be released?

------- Comment #13 From Tais P. Hansen 2007-08-08 12:25:31 0000 -------
I'm sorry. I read through the history and it was not clear to me that it was
still waiting on a new version of genkernel four months after the revised patch
was added. I assumed the patch might have been forgotten since 3.4.8 was
recently marked stable in portage stating it was used to build the livecds
although it still breaks building here.

------- Comment #14 From Christian Fernandez 2007-08-13 00:42:34 0000 -------
hmm I am still getting this error..
is this fix? I see this patches are from April..

------- Comment #15 From Chris Gianelloni (RETIRED) 2007-08-22 19:54:06 0000 -------
Please test genkernel 3.4.9_prer1 or better.  This should be fixed now.

------- Comment #16 From Austin McKinley 2007-09-01 21:22:18 0000 -------
*** Bug 191006 has been marked as a duplicate of this bug. ***