1 |
commit: 9ef832b915dc00ca70831bfbef788290b6e4ac75 |
2 |
Author: Tomasz Wasiak <tjwasiak <AT> poczta <DOT> onet <DOT> pl> |
3 |
AuthorDate: Thu Jan 12 03:38:47 2012 +0000 |
4 |
Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 12 03:39:47 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/genkernel.git;a=commit;h=9ef832b9 |
7 |
|
8 |
Support application of patches for more tools |
9 |
|
10 |
--- |
11 |
gen_compile.sh | 6 ++++++ |
12 |
1 files changed, 6 insertions(+), 0 deletions(-) |
13 |
|
14 |
diff --git a/gen_compile.sh b/gen_compile.sh |
15 |
index d865df8..68dabdb 100755 |
16 |
--- a/gen_compile.sh |
17 |
+++ b/gen_compile.sh |
18 |
@@ -519,6 +519,7 @@ compile_dmraid() { |
19 |
gen_die "Could not extract device-mapper binary cache!"; |
20 |
|
21 |
cd "${DMRAID_DIR}" |
22 |
+ apply_patches dmraid ${DMRAID_VER} |
23 |
print_info 1 'dmraid: >> Configuring...' |
24 |
|
25 |
LDFLAGS="-L${TEMP}/device-mapper/lib" \ |
26 |
@@ -560,6 +561,7 @@ compile_device_mapper() { |
27 |
[ ! -d "${DEVICE_MAPPER_DIR}" ] && |
28 |
gen_die "device-mapper directory ${DEVICE_MAPPER_DIR} invalid" |
29 |
cd "${DEVICE_MAPPER_DIR}" |
30 |
+ apply_patches device-mapper ${DEVICE_MAPPER_VER} |
31 |
CFLAGS="-fPIC" \ |
32 |
./configure --prefix=${TEMP}/device-mapper --enable-static_link \ |
33 |
--disable-selinux >> ${LOGFILE} 2>&1 || |
34 |
@@ -596,6 +598,7 @@ compile_e2fsprogs() { |
35 |
[ ! -d "${E2FSPROGS_DIR}" ] && |
36 |
gen_die "e2fsprogs directory ${E2FSPROGS_DIR} invalid" |
37 |
cd "${E2FSPROGS_DIR}" |
38 |
+ apply_patches e2fsprogs ${E2FSPROGS_VER} |
39 |
print_info 1 'e2fsprogs: >> Configuring...' |
40 |
LDFLAGS=-static ./configure >> ${LOGFILE} 2>&1 || |
41 |
gen_die 'Configuring e2fsprogs failed!' |
42 |
@@ -627,6 +630,7 @@ compile_fuse() { |
43 |
[ ! -d "${FUSE_DIR}" ] && |
44 |
gen_die "fuse directory ${FUSE_DIR} invalid" |
45 |
cd "${FUSE_DIR}" |
46 |
+ apply_patches fuse ${FUSE_VER} |
47 |
print_info 1 'fuse: >> Configuring...' |
48 |
./configure --disable-kernel-module --disable-example >> ${LOGFILE} 2>&1 || |
49 |
gen_die 'Configuring fuse failed!' |
50 |
@@ -663,6 +667,7 @@ compile_unionfs_fuse() { |
51 |
[ ! -d "${UNIONFS_FUSE_DIR}" ] && |
52 |
gen_die "unionfs-fuse directory ${UNIONFS_FUSE_DIR} invalid" |
53 |
cd "${UNIONFS_FUSE_DIR}" |
54 |
+ apply_patches unionfs-fuse ${UNIONFS_FUSE_VER} |
55 |
print_info 1 'unionfs-fuse: >> Compiling...' |
56 |
sed -i "/^\(CFLAGS\|CPPFLAGS\)/s:^\\(.*\\)$:\\1 -static -I${TEMP}/${FUSE_DIR}/include -L${TEMP}/${FUSE_DIR}/lib/.libs:" Makefile src/Makefile |
57 |
sed -i "/^LIB = /s:^LIB = \(.*\)$:LIB = -static -L${TEMP}/${FUSE_DIR}/lib/.libs \1 -ldl -lrt:" Makefile src/Makefile |
58 |
@@ -745,6 +750,7 @@ compile_gpg() { |
59 |
[ ! -d "${GPG_DIR}" ] && |
60 |
gen_die "gnupg directory ${GPG_DIR} invalid" |
61 |
cd "${GPG_DIR}" |
62 |
+ apply_patches gnupg ${GPG_VER} |
63 |
print_info 1 'gnupg: >> Configuring...' |
64 |
# --enable-minimal works, but it doesn't reduce the command length much. |
65 |
# Given its history and the precision this needs, explicit is cleaner. |