Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 174188 - copy System.map into minimal kernel package tarball
Summary: copy System.map into minimal kernel package tarball
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
: 191006 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-04-11 18:18 UTC by Andrew Gaffney (RETIRED)
Modified: 2007-09-01 21:22 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch (genkernel.patch,643 bytes, patch)
2007-04-11 18:19 UTC, Andrew Gaffney (RETIRED)
Details | Diff
new patch (genkernel.patch,754 bytes, patch)
2007-04-13 23:50 UTC, Andrew Gaffney (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Gaffney (RETIRED) gentoo-dev 2007-04-11 18:18:49 UTC
Patch attached.
Comment 1 Andrew Gaffney (RETIRED) gentoo-dev 2007-04-11 18:19:31 UTC
Created attachment 115985 [details, diff]
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 Chris Gianelloni (RETIRED) gentoo-dev 2007-04-12 11:43:31 UTC
Added to SVN
Comment 3 Chris Gianelloni (RETIRED) gentoo-dev 2007-04-12 19:35:10 UTC
Fixed in 3.4.8
Comment 4 Andrew Gaffney (RETIRED) gentoo-dev 2007-04-13 23:50:42 UTC
Created attachment 116211 [details, diff]
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 Andrew Gaffney (RETIRED) gentoo-dev 2007-04-13 23:50:59 UTC
Reopening for the new patch.
Comment 6 Andrew Gaffney (RETIRED) gentoo-dev 2007-04-16 13:43:05 UTC
This patch has been successfully tested on bender (sparc dev box) with catalyst.
Comment 7 Chris Gianelloni (RETIRED) gentoo-dev 2007-05-21 00:33:20 UTC
Cool.
Comment 8 Luca 2007-06-01 11:09:58 UTC
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 Andrew Gaffney (RETIRED) gentoo-dev 2007-06-01 12:33:14 UTC
That's what the 2nd patch in this bug fixes.
Comment 10 Chris Gianelloni (RETIRED) gentoo-dev 2007-06-21 19:41:58 UTC
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 Tais P. Hansen 2007-08-08 09:42:56 UTC
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 Andrew Gaffney (RETIRED) gentoo-dev 2007-08-08 11:44:51 UTC
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 Tais P. Hansen 2007-08-08 12:25:31 UTC
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 Christian Fernandez 2007-08-13 00:42:34 UTC
hmm I am still getting this error..
is this fix? I see this patches are from April..
Comment 15 Chris Gianelloni (RETIRED) gentoo-dev 2007-08-22 19:54:06 UTC
Please test genkernel 3.4.9_prer1 or better.  This should be fixed now.
Comment 16 Austin McKinley 2007-09-01 21:22:18 UTC
*** Bug 191006 has been marked as a duplicate of this bug. ***