Fix #115263, #117392, add a fix to sanify LOCALVERSION if unresolved variables are embedded.

git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@347 67a159dc-881f-0410-a524-ba9dfbe2cb84
cleanup-cruft
Tim Yamin 19 years ago
parent d57e746790
commit ded2cbe1aa

@ -19,7 +19,7 @@ set_grub_bootloader() {
GRUB_BOOTFS=${BOOTFS} GRUB_BOOTFS=${BOOTFS}
else else
# Extract block device information from /etc/fstab # Extract block device information from /etc/fstab
GRUB_ROOTFS=$(awk '/[[:space:]]\/[[:space:]]/ { print $1 }' /etc/fstab) GRUB_ROOTFS=$(awk '/^[^#].+[[:space:]]\/[[:space:]]/ { print $1 }' /etc/fstab)
GRUB_BOOTFS=$(awk '/^[^#].+[[:space:]]\/boot[[:space:]]/ { print $1 }' /etc/fstab) GRUB_BOOTFS=$(awk '/^[^#].+[[:space:]]\/boot[[:space:]]/ { print $1 }' /etc/fstab)
# If /boot is not defined in /etc/fstab, it must be the same as / # If /boot is not defined in /etc/fstab, it must be the same as /

@ -739,6 +739,9 @@ compile_klibc() {
elif [ "${ARCH}" = 'x86' ] elif [ "${ARCH}" = 'x86' ]
then then
compile_generic "ARCH=i386" utils compile_generic "ARCH=i386" utils
elif [ "${KERNEL_CROSS_COMPILE}" != '' ]
then
compile_generic "CROSS=${KERNEL_CROSS_COMPILE}" utils
else else
compile_generic "" utils compile_generic "" utils
fi fi

@ -31,7 +31,7 @@ get_KV() {
VER=`grep ^VERSION\ \= ${KERNEL_DIR}/Makefile | awk '{ print $3 };'` VER=`grep ^VERSION\ \= ${KERNEL_DIR}/Makefile | awk '{ print $3 };'`
PAT=`grep ^PATCHLEVEL\ \= ${KERNEL_DIR}/Makefile | awk '{ print $3 };'` PAT=`grep ^PATCHLEVEL\ \= ${KERNEL_DIR}/Makefile | awk '{ print $3 };'`
SUB=`grep ^SUBLEVEL\ \= ${KERNEL_DIR}/Makefile | awk '{ print $3 };'` SUB=`grep ^SUBLEVEL\ \= ${KERNEL_DIR}/Makefile | awk '{ print $3 };'`
EXV=`grep ^EXTRAVERSION\ \= ${KERNEL_DIR}/Makefile | sed -e "s/EXTRAVERSION =//" -e "s/ //g"` EXV=`grep ^EXTRAVERSION\ \= ${KERNEL_DIR}/Makefile | sed -e "s/EXTRAVERSION =//" -e "s/ //g" -e 's/\$([a-z]*)//gi'`
if [ "${PAT}" -gt '4' -a "${VER}" -ge '2' -a -e ${KERNEL_DIR}/.config ] if [ "${PAT}" -gt '4' -a "${VER}" -ge '2' -a -e ${KERNEL_DIR}/.config ]
then then
KERN_24=0 KERN_24=0

@ -627,7 +627,10 @@ create_initramfs() {
if ! isTrue "${CMD_NOINSTALL}" if ! isTrue "${CMD_NOINSTALL}"
then then
cp ${TMPDIR}/initramfs-${KV} /boot/initramfs-${KNAME}-${ARCH}-${KV} || if [ "${GENERATE_Z_IMAGE}" != '1' ]
gen_die 'Could not copy the initramfs to /boot!' then
cp ${TMPDIR}/initramfs-${KV} /boot/initramfs-${KNAME}-${ARCH}-${KV} ||
gen_die 'Could not copy the initramfs to /boot!'
fi
fi fi
} }

@ -2,7 +2,7 @@
# Genkernel v3 # Genkernel v3
PATH="/bin:/usr/bin:/sbin:/usr/sbin" PATH="/bin:/usr/bin:/sbin:/usr/sbin"
GK_V='3.3.10' GK_V='3.3.11'
TMPDIR='/var/tmp/genkernel' TMPDIR='/var/tmp/genkernel'
TODEBUGCACHE=1 # Until an error occurs or DEBUGFILE is fully qualified. TODEBUGCACHE=1 # Until an error occurs or DEBUGFILE is fully qualified.

Loading…
Cancel
Save