It helps if we assign the correct value to version

Send output of patch command to /dev/null
Show a message saying we're patching if there are patches for the util

git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@619 67a159dc-881f-0410-a524-ba9dfbe2cb84
cleanup-cruft
Andrew Gaffney 17 years ago
parent 6a3fb94230
commit 2ed29757ef

@ -2,6 +2,11 @@
# Copyright 2006-2008 Gentoo Foundation; Distributed under the GPL v2 # Copyright 2006-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: $ # $Header: $
11 Mar 2008; Andrew Gaffney <agaffney@gentoo.org> gen_compile.sh:
It helps if we assign the correct value to version
Send output of patch command to /dev/null
Show a message saying we're patching if there are patches for the util
11 Mar 2008; Andrew Gaffney <agaffney@gentoo.org> 11 Mar 2008; Andrew Gaffney <agaffney@gentoo.org>
+patches/busybox/1.7.4/1.7.4-static-error.diff: +patches/busybox/1.7.4/1.7.4-static-error.diff:
Add busybox patch to remove error about compiling statically Add busybox patch to remove error about compiling statically

@ -184,16 +184,17 @@ reset_args()
apply_patches() { apply_patches() {
util=$1 util=$1
version=$1 version=$2
if [ -d "${GK_SHARE}/patches/${util}/${version}" ] if [ -d "${GK_SHARE}/patches/${util}/${version}" ]
then then
print_info 1 "${util}: >> Applying patches..."
for i in "${GK_SHARE}/patches/${util}/${version}/*" for i in "${GK_SHARE}/patches/${util}/${version}/*"
do do
patch_success=0 patch_success=0
for j in `seq 0 5` for j in `seq 0 5`
do do
patch -p${j} -f < "${i}" patch -p${j} --backup-if-mismatch -f < "${i}" >/dev/null
if [ $? = 0 ] if [ $? = 0 ]
then then
patch_success=1 patch_success=1

Loading…
Cancel
Save