Gentoo Archives: gentoo-commits

From: "Victor Ostorga (vostorga)" <vostorga@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/vrb/files: vrb-0.5.1-configure.patch
Date: Thu, 06 Aug 2009 02:11:07
Message-Id: E1MYsRc-0000md-CC@stork.gentoo.org
1 vostorga 09/08/06 02:11:04
2
3 Modified: vrb-0.5.1-configure.patch
4 Log:
5 respecting CC variable, CFLAGS, LDFLAGS, omiting -Werror, fixing links, bugs #240232 #243956 #260888
6 (Portage version: 2.1.6.13/cvs/Linux i686)
7
8 Revision Changes Path
9 1.2 dev-libs/vrb/files/vrb-0.5.1-configure.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/vrb/files/vrb-0.5.1-configure.patch?rev=1.2&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/vrb/files/vrb-0.5.1-configure.patch?rev=1.2&content-type=text/plain
13 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/vrb/files/vrb-0.5.1-configure.patch?r1=1.1&r2=1.2
14
15 Index: vrb-0.5.1-configure.patch
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/dev-libs/vrb/files/vrb-0.5.1-configure.patch,v
18 retrieving revision 1.1
19 retrieving revision 1.2
20 diff -u -r1.1 -r1.2
21 --- vrb-0.5.1-configure.patch 9 Mar 2007 20:08:15 -0000 1.1
22 +++ vrb-0.5.1-configure.patch 6 Aug 2009 02:11:03 -0000 1.2
23 @@ -1,17 +1,65 @@
24 ---- configure.old 2007-03-08 21:38:59.000000000 +0530
25 -+++ configure 2007-03-08 21:42:37.000000000 +0530
26 -@@ -341,8 +341,8 @@
27 +diff -NrU5 vrb-0.5.1.original/configure vrb-0.5.1/configure
28 +--- vrb-0.5.1.original/configure 2009-08-05 19:22:47.000000000 -0600
29 ++++ vrb-0.5.1/configure 2009-08-05 19:57:15.000000000 -0600
30 +@@ -314,11 +314,11 @@
31 + #-----------------------------------------------------------------------------
32 + unamem=$( uname -m | tr ' ' '_' )
33 + unames=$( uname -s | tr ' ' '_' )
34 + unamer=$( uname -r | tr ' ' '_' )
35 +
36 +-gcc="gcc"
37 ++gcc=${CC}
38 +
39 + lib_cp_cmd="${gcc}"
40 + pgm_cp_cmd="${gcc}"
41 +
42 + lib_cc_cmd="${gcc}"
43 +@@ -331,23 +331,23 @@
44 + pgm_ld_cmd="${gcc}"
45 +
46 + lib_def=( "${lib_def[@]}" "-DARCH_${unamem}" "-DARCH=${unamem}" )
47 + pgm_def=( "${pgm_def[@]}" "-DARCH_${unamem}" "-DARCH=${unamem}" )
48 +
49 +-lib_warn=( -Werror -Wall -Wnested-externs -Wno-cast-qual -Wno-trigraphs -Wuninitialized -Wwrite-strings )
50 +-pgm_warn=( -Werror -Wall -Wnested-externs -Wno-cast-qual -Wno-trigraphs -Wuninitialized -Wwrite-strings )
51 ++lib_warn=( -Wall -Wnested-externs -Wno-cast-qual -Wno-trigraphs -Wuninitialized -Wwrite-strings )
52 ++pgm_warn=( -Wall -Wnested-externs -Wno-cast-qual -Wno-trigraphs -Wuninitialized -Wwrite-strings )
53 +
54 + if [[ -n "${warninline}" ]]; then
55 + lib_warn=( "${lib_warn[@]}" -Winline )
56 pgm_warn=( "${pgm_warn[@]}" -Winline )
57 fi
58
59 -lib_feat=( -fomit-frame-pointer -funsigned-char -funsigned-bitfields -fgnu-linker -frerun-loop-opt -finline -finline-functions -fmove-all-movables )
60 -pgm_feat=( -fomit-frame-pointer -funsigned-char -funsigned-bitfields -fgnu-linker -frerun-loop-opt -finline -finline-functions -fmove-all-movables )
61 -+lib_feat=( -fomit-frame-pointer -funsigned-char -funsigned-bitfields -frerun-loop-opt -finline -finline-functions )
62 -+pgm_feat=( -fomit-frame-pointer -funsigned-char -funsigned-bitfields -frerun-loop-opt -finline -finline-functions )
63 ++lib_feat="${CFLAGS} ${LDFLAGS}"
64 ++pgm_feat="${CFLAGS} ${LDFLAGS}"
65
66 - lib_cp_opt=( -pipe )
67 - pgm_cp_opt=( -pipe )
68 -@@ -1268,7 +1268,7 @@
69 +-lib_cp_opt=( -pipe )
70 +-pgm_cp_opt=( -pipe )
71 ++lib_cp_opt="${CFLAGS} ${LDFLAGS}"
72 ++pgm_cp_opt="${CFLAGS} ${LDFLAGS}"
73 +
74 + if [[ -n "${std}" ]]; then
75 + lib_cp_opt=( "${lib_cp_opt[@]}" "-std=${std}" )
76 + pgm_cp_opt=( "${pgm_cp_opt[@]}" "-std=${std}" )
77 + fi
78 +@@ -375,11 +375,11 @@
79 + if [[ -n "${as_verbose}" ]]; then
80 + lib_as_opt=( -v "${lib_as_opt[@]}" )
81 + pgm_as_opt=( -v "${pgm_as_opt[@]}" )
82 + fi
83 +
84 +-lib_ld_opt=( -pipe -shared -nostdlib -nostartfiles )
85 ++lib_ld_opt=("${CFLAGS} ${LDFLAGS}" -pipe -shared -nostdlib -nostartfiles)
86 + pgm_ld_opt=( -pipe )
87 + if [[ -n "${ld_verbose}" ]]; then
88 + lib_ld_opt=( -v "${lib_ld_opt[@]}" )
89 + pgm_ld_opt=( -v "${pgm_ld_opt[@]}" )
90 + fi
91 +@@ -1266,11 +1266,11 @@
92 + # Generate Makefile specs to compile library sources.
93 + #----------------------------------------------------
94 class_product_src lib "${libname}" | while read srcname; do
95 vmsg 9 "Generating Makefile section: lib ${libname} ${srcname}"
96 srcdir=$( dirname "${srcname}" )
97 @@ -20,12 +68,31 @@
98 objname=$( echo "${srcname}" | gawk -F/ '{print $NF;}' | gawk -F. 'BEGIN{OFS=".";}{$NF="o";print $0;}' )
99 for lc in arlib solib; do
100 [[ "${lc}" = "arlib" ]] && libfeat=( -DARLIBRARY=1 )
101 -@@ -1398,7 +1398,7 @@
102 + [[ "${lc}" = "solib" ]] && libfeat=( -DSOLIBRARY=1 -DfPIC=1 -fPIC )
103 +
104 +@@ -1352,11 +1352,11 @@
105 + echo -n " obj/${pgmclass}/${pgmname}/${objname}"
106 + done
107 + echo ""
108 +
109 + # link, object files, libraries
110 +- echo -n "${tab}\$(pgm_ld_cmd) \$(pgm_ld_opt) -o ${pgmclass}/${pgmname}"
111 ++ echo -n "${tab}\$(pgm_ld_cmd) \$(CFLAGS) \$(LDFLAGS) \$(pgm_ld_opt) -o ${pgmclass}/${pgmname}"
112 + class_product_obj "${pgmclass}" "${pgmname}" | while read objname; do
113 + echo -n " obj/${pgmclass}/${pgmname}/${objname}"
114 + done
115 + if [[ -z "${nosolib}" && -n "${execdynamic}" ]]; then
116 + echo -n " -L./lib"
117 +@@ -1396,11 +1396,11 @@
118 +
119 + # compile each source file for each object needed by this executable
120 class_product_src "${pgmclass}" "${pgmname}" | while read srcname; do
121 vmsg 9 "Generating Makefile section: ${pgmclass} ${pgmname} ${srcname}"
122 srcdir=$( dirname "${srcname}" )
123 - srcref="-I ${srcdir} -I ${source}/include -I- -I ./include ${srcname}"
124 + srcref="-iquote ${srcdir} -iquote ${source}/include -I ./include ${srcname}"
125 - objname=$( echo "${srcname}" | gawk -F/ '{print $NF;}' | gawk -F. 'BEGIN{OFS=".";}{$NF="o";print $0;}' )
126 + objname=$( echo "${srcname}" | gawk -F/ '{print $NF;}' | gawk -F. 'BEGIN{OFS=".";}{$NF="o";print $0;}' )
127 echo "obj/${pgmclass}/${pgmname}/${objname}: ${srcname}"
128 if [[ -n "${asm}" ]]; then
129 + if [[ -n "${cpp}" ]]; then
130 + cppname=$( echo "${objname}" | gawk -F. 'BEGIN{OFS=".";}{$NF="i";print $0;}' )