Added a patch from Andrew Gaffney <agaffney@gentoo.org> from bug #174188 to fix a...
authorChris Gianelloni <wolf31o2@gentoo.org>
Thu, 21 Jun 2007 19:41:58 +0000 (19:41 +0000)
committerChris Gianelloni <wolf31o2@gentoo.org>
Thu, 21 Jun 2007 19:41:58 +0000 (19:41 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@512 67a159dc-881f-0410-a524-ba9dfbe2cb84

ChangeLog
gen_package.sh

index 0d4483042ea9aa575b5ca3593699337adaed752d..13ab949e52bf1025691ab6b5794ef03a09caf58c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,11 @@
 # Copyright 2006-2007 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+  21 Jun 2007; Chris Gianelloni <wolf31o2@gentoo.org> gen_package.sh:
+  Added a patch from Andrew Gaffney <agaffney@gentoo.org> from bug #174188 to
+  fix a problem with the System.map file copying that was previously
+  introduced.
+
   21 Jun 2007; Chris Gianelloni <wolf31o2@gentoo.org> genkernel.8:
   Added patch from Nelson Batalha <nelson_batalha@hotmail.com> from bug
   #172766 to add documentation for genkernel's LUKS features.
index b2cec34c10d10be0edd7b2e7c466d54ae00fbe93..323bb7c830baf024002168d4bb1d19eec2ff7f04 100644 (file)
@@ -34,7 +34,12 @@ gen_minkernpackage()
            fi
        fi
 
-       cp "${TMPDIR}/System.map-${KV}" "${TEMP}/minkernpackage/System.map-${ARCH}-${KV}" || gen_die 'Could not copy System.map for the kernel package!';
+       if [ "${CMD_KERNCACHE}" != "" ]
+       then
+           /bin/tar -xj -C ${TEMP}/minkernpackage -f ${CMD_KERNCACHE} System.map-${ARCH}-${KV}
+       else
+               cp "${KERNEL_DIR}/System.map" "${TEMP}/minkernpackage/System.map-${ARCH}-${KV}" || gen_die 'Could not copy System.map for the kernel package!';
+       fi
        
        cd "${TEMP}/minkernpackage" 
        /bin/tar -jcpf ${MINKERNPACKAGE} * || gen_die 'Could not compress the kernel package!'