Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 282100 | Differences between
and this patch

Collapse All | Expand All

(-)/home/sping/Desktop/v2.patch (-5 / +6 lines)
Lines 42-48 Link Here
42
index 7bab9e1..ec5df4b 100755
42
index 7bab9e1..ec5df4b 100755
43
--- a/gen_compile.sh
43
--- a/gen_compile.sh
44
+++ b/gen_compile.sh
44
+++ b/gen_compile.sh
45
@@ -444,6 +444,41 @@ compile_lvm() {
45
@@ -444,6 +444,42 @@ compile_lvm() {
46
 	fi
46
 	fi
47
 }
47
 }
48
 
48
 
Lines 65-79 Link Here
65
+		sed -i "s/^# LDFLAGS = -static/LDFLAGS = -static/" Makefile
65
+		sed -i "s/^# LDFLAGS = -static/LDFLAGS = -static/" Makefile
66
+
66
+
67
+		print_info 1 'mdadm: >> Compiling...'
67
+		print_info 1 'mdadm: >> Compiling...'
68
+			compile_generic 'mdadm' utils
68
+			compile_generic 'mdadm mdmon' utils
69
+
69
+
70
+		mkdir -p "${TEMP}/mdadm/sbin"
70
+		mkdir -p "${TEMP}/mdadm/sbin"
71
+		install -m 0755 -s mdadm "${TEMP}/mdadm/sbin/mdadm"
71
+		install -m 0755 -s mdadm "${TEMP}/mdadm/sbin/mdadm"
72
+		install -m 0755 -s mdmon "${TEMP}/mdadm/sbin/mdmon"
72
+		print_info 1 '      >> Copying to bincache...'
73
+		print_info 1 '      >> Copying to bincache...'
73
+		cd "${TEMP}/mdadm"
74
+		cd "${TEMP}/mdadm"
74
+		strip "sbin/mdadm" ||
75
+		strip "sbin/mdadm" "sbin/mdmon" ||
75
+			gen_die 'Could not strip mdadm!'
76
+			gen_die 'Could not strip mdadm binaries!'
76
+		/bin/tar -cjf "${MDADM_BINCACHE}" sbin/mdadm ||
77
+		/bin/tar -cjf "${MDADM_BINCACHE}" sbin/mdadm sbin/mdmon ||
77
+			gen_die 'Could not create binary cache'
78
+			gen_die 'Could not create binary cache'
78
+
79
+
79
+		cd "${TEMP}"
80
+		cd "${TEMP}"

Return to bug 282100