# HG changeset patch
# User Sean Farley <sean@mcs.anl.gov>
# Date 1339376686 18000
# Node ID 2eb8b17895e3325288be6de036114857e1583d84
# Parent ddef67a58d9340210c7acda34c34a1d45117ec86
gcc-derived-compilers: strip debug symbols to supress debugger warnings
diff --git a/dports/lang/apple-gcc40/Portfile b/dports/lang/apple-gcc40/Portfile
a
|
b
|
|
2 | 2 | |
3 | 3 | PortSystem 1.0 |
4 | 4 | |
5 | 5 | name apple-gcc40 |
6 | 6 | version 5494 |
| 7 | revision 1 |
7 | 8 | categories lang |
8 | 9 | platforms darwin |
9 | 10 | maintainers nomaintainer |
10 | 11 | description Apple's version of gcc 4.0 |
11 | 12 | long_description Apple's version of the GNU compiler collection, \ |
… |
… |
|
56 | 57 | |
57 | 58 | post-destroot { |
58 | 59 | file delete -force \ |
59 | 60 | ${destroot}${nprefix}/man ${destroot}${nprefix}/info |
60 | 61 | system "cd ${destroot}${prefix}/bin && ln -sf ${nprefix}/bin/gcc-apple-4.0 && ln -sf ${nprefix}/bin/cpp-apple-4.0" |
| 62 | # strip the libraries and ignore errors from dynamic stubs |
| 63 | system -W ${destroot}${prefix} "find . -type f -name '*.dylib' | xargs -I{} strip -x {}; echo" |
61 | 64 | } |
62 | 65 | |
| 66 | |
63 | 67 | # It's difficult to distinguish between Apple's gcc-4.0 and gcc-4.2 releases |
64 | 68 | livecheck.type none |
diff --git a/dports/lang/apple-gcc42/Portfile b/dports/lang/apple-gcc42/Portfile
a
|
b
|
|
4 | 4 | PortGroup select 1.0 |
5 | 5 | |
6 | 6 | name apple-gcc42 |
7 | 7 | version 5666.3 |
8 | 8 | set gcc_version 4.2.1 |
9 | | revision 7 |
| 9 | revision 8 |
10 | 10 | categories lang |
11 | 11 | platforms darwin |
12 | 12 | license GPL-2 |
13 | 13 | maintainers jeremyhu openmaintainer |
14 | 14 | installs_libs no |
… |
… |
|
235 | 235 | delete ${destroot}${prefix}/libexec/${name}/gcc/powerpc-apple-darwin${os.major}/4.2.1/as |
236 | 236 | ln -s ../../../../../bin/as ${destroot}${prefix}/libexec/${name}/gcc/powerpc-apple-darwin${os.major}/4.2.1/as |
237 | 237 | delete ${destroot}${prefix}/libexec/${name}/gcc/powerpc-apple-darwin${os.major}/4.2.1/ld |
238 | 238 | ln -s ../../../../../bin/ld ${destroot}${prefix}/libexec/${name}/gcc/powerpc-apple-darwin${os.major}/4.2.1/ld |
239 | 239 | } |
| 240 | # strip the libraries and ignore errors from dynamic stubs |
| 241 | system -W ${destroot}${prefix} "find . -type f -name '*.dylib' | xargs -I{} strip -x {}; echo" |
240 | 242 | } |
241 | 243 | |
242 | 244 | livecheck.type regex |
243 | 245 | livecheck.url [lindex ${master_sites} 0] |
244 | 246 | livecheck.regex gcc-(\\d+(?:\\.\\d+)*)\\.tar |
diff --git a/dports/lang/gcc42/Portfile b/dports/lang/gcc42/Portfile
a
|
b
|
|
3 | 3 | PortSystem 1.0 |
4 | 4 | PortGroup select 1.0 |
5 | 5 | |
6 | 6 | name gcc42 |
7 | 7 | version 4.2.4 |
8 | | revision 3 |
| 8 | revision 4 |
9 | 9 | platforms darwin |
10 | 10 | categories lang |
11 | 11 | maintainers mww openmaintainer |
12 | 12 | # an exception in the license allows dependents to not be GPL |
13 | 13 | license {GPL-3+ GPL-2+ Permissive} |
… |
… |
|
120 | 120 | post-destroot { |
121 | 121 | # install/copy ffitarget.h only if we have it |
122 | 122 | if {![catch {set ffitarget.h [glob ${destroot}${prefix}/lib/${name}/gcc/*/${version}/include/ffitarget.h]} result]} { |
123 | 123 | file copy ${ffitarget.h} ${destroot}${prefix}/include/${name}/ |
124 | 124 | } |
| 125 | # strip the libraries and ignore errors from dynamic stubs |
| 126 | system -W ${destroot}${prefix} "find . -type f -name '*.dylib' | xargs -I{} strip -x {}; echo" |
125 | 127 | } |
126 | 128 | |
127 | 129 | select.group gcc |
128 | 130 | select.file ${filespath}/mp-${name} |
129 | 131 | |
diff --git a/dports/lang/gcc43/Portfile b/dports/lang/gcc43/Portfile
a
|
b
|
|
3 | 3 | PortSystem 1.0 |
4 | 4 | PortGroup select 1.0 |
5 | 5 | |
6 | 6 | name gcc43 |
7 | 7 | version 4.3.6 |
8 | | revision 3 |
| 8 | revision 4 |
9 | 9 | platforms darwin |
10 | 10 | categories lang |
11 | 11 | maintainers mww openmaintainer |
12 | 12 | # an exception in the license allows dependents to not be GPL |
13 | 13 | license {GPL-3+ GPL-2+ Permissive} |
… |
… |
|
133 | 133 | ${destroot}${prefix}/share/info |
134 | 134 | # install/copy ffitarget.h only if we have it |
135 | 135 | if {![catch {set ffitarget.h [glob ${destroot}${prefix}/lib/${name}/gcc/*/${version}/include/ffitarget.h]} result]} { |
136 | 136 | file copy ${ffitarget.h} ${destroot}${prefix}/include/${name}/ |
137 | 137 | } |
| 138 | # strip the libraries and ignore errors from dynamic stubs |
| 139 | system -W ${destroot}${prefix} "find . -type f -name '*.dylib' | xargs -I{} strip -x {}; echo" |
138 | 140 | } |
139 | 141 | |
140 | 142 | select.group gcc |
141 | 143 | select.file ${filespath}/mp-${name} |
142 | 144 | |
diff --git a/dports/lang/gcc44/Portfile b/dports/lang/gcc44/Portfile
a
|
b
|
|
4 | 4 | PortGroup select 1.0 |
5 | 5 | |
6 | 6 | name gcc44 |
7 | 7 | epoch 1 |
8 | 8 | version 4.4.7 |
9 | | revision 1 |
| 9 | revision 2 |
10 | 10 | platforms darwin |
11 | 11 | categories lang |
12 | 12 | maintainers mww openmaintainer |
13 | 13 | # an exception in the license allows dependents to not be GPL |
14 | 14 | license {GPL-3+ Permissive} |
… |
… |
|
138 | 138 | } |
139 | 139 | file rename ${destroot}${prefix}/share/python/aotcompile.py \ |
140 | 140 | ${destroot}${prefix}/share/python/aotcompile-44.py |
141 | 141 | file rename ${destroot}${prefix}/share/python/classfile.py \ |
142 | 142 | ${destroot}${prefix}/share/python/classfile-44.py |
| 143 | # strip the libraries and ignore errors from dynamic stubs |
| 144 | system -W ${destroot}${prefix} "find . -type f -name '*.dylib' | xargs -I{} strip -x {}; echo" |
143 | 145 | } |
144 | 146 | |
145 | 147 | select.group gcc |
146 | 148 | select.file ${filespath}/mp-${name} |
147 | 149 | |
diff --git a/dports/lang/gcc45/Portfile b/dports/lang/gcc45/Portfile
a
|
b
|
|
4 | 4 | PortGroup select 1.0 |
5 | 5 | |
6 | 6 | name gcc45 |
7 | 7 | epoch 1 |
8 | 8 | version 4.5.3 |
9 | | revision 4 |
| 9 | revision 5 |
10 | 10 | platforms darwin |
11 | 11 | categories lang |
12 | 12 | maintainers mww openmaintainer |
13 | 13 | # an exception in the license allows dependents to not be GPL |
14 | 14 | license {GPL-3+ Permissive} |
… |
… |
|
149 | 149 | } |
150 | 150 | file rename ${destroot}${prefix}/share/python/aotcompile.py \ |
151 | 151 | ${destroot}${prefix}/share/python/aotcompile-45.py |
152 | 152 | file rename ${destroot}${prefix}/share/python/classfile.py \ |
153 | 153 | ${destroot}${prefix}/share/python/classfile-45.py |
| 154 | # strip the libraries and ignore errors from dynamic stubs |
| 155 | system -W ${destroot}${prefix} "find . -type f -name '*.dylib' | xargs -I{} strip -x {}; echo" |
154 | 156 | } |
155 | 157 | |
156 | 158 | select.group gcc |
157 | 159 | select.file ${filespath}/mp-${name} |
158 | 160 | |
diff --git a/dports/lang/gcc46/Portfile b/dports/lang/gcc46/Portfile
a
|
b
|
|
4 | 4 | PortGroup select 1.0 |
5 | 5 | |
6 | 6 | name gcc46 |
7 | 7 | epoch 1 |
8 | 8 | version 4.6.3 |
9 | | revision 2 |
| 9 | revision 3 |
10 | 10 | platforms darwin |
11 | 11 | categories lang |
12 | 12 | maintainers mww openmaintainer |
13 | 13 | # an exception in the license allows dependents to not be GPL |
14 | 14 | license {GPL-3+ Permissive} |
… |
… |
|
120 | 120 | ${destroot}${prefix}/share/info |
121 | 121 | # install/copy ffitarget.h only if we have it |
122 | 122 | if {![catch {set ffitarget.h [glob ${destroot}${prefix}/lib/${name}/gcc/*/${version}/include/ffitarget.h]} result]} { |
123 | 123 | file copy ${ffitarget.h} ${destroot}${prefix}/include/${name}/ |
124 | 124 | } |
| 125 | # strip the libraries and ignore errors from dynamic stubs |
| 126 | system -W ${destroot}${prefix} "find . -type f -name '*.dylib' | xargs -I{} strip -x {}; echo" |
125 | 127 | } |
126 | 128 | |
127 | 129 | select.group gcc |
128 | 130 | select.file ${filespath}/mp-${name} |
129 | 131 | |
diff --git a/dports/lang/gcc47/Portfile b/dports/lang/gcc47/Portfile
a
|
b
|
|
4 | 4 | PortGroup select 1.0 |
5 | 5 | |
6 | 6 | name gcc47 |
7 | 7 | epoch 1 |
8 | 8 | version 4.7.1 |
| 9 | revision 1 |
9 | 10 | platforms darwin |
10 | 11 | categories lang |
11 | 12 | maintainers mww openmaintainer |
12 | 13 | license GPL-3 |
13 | 14 | description The GNU compiler collection |
… |
… |
|
118 | 119 | ${destroot}${prefix}/share/info |
119 | 120 | # install/copy ffitarget.h only if we have it |
120 | 121 | if {![catch {set ffitarget.h [glob ${destroot}${prefix}/lib/${name}/gcc/*/${version}/include/ffitarget.h]} result]} { |
121 | 122 | file copy ${ffitarget.h} ${destroot}${prefix}/include/${name}/ |
122 | 123 | } |
| 124 | # strip the libraries and ignore errors from dynamic stubs |
| 125 | system -W ${destroot}${prefix} "find . -type f -name '*.dylib' | xargs -I{} strip -x {}; echo" |
123 | 126 | } |
124 | 127 | |
125 | 128 | select.group gcc |
126 | 129 | select.file ${filespath}/mp-${name} |
127 | 130 | |
diff --git a/dports/lang/gcc48/Portfile b/dports/lang/gcc48/Portfile
a
|
b
|
|
3 | 3 | PortSystem 1.0 |
4 | 4 | PortGroup select 1.0 |
5 | 5 | |
6 | 6 | name gcc48 |
7 | 7 | version 4.8-20120610 |
| 8 | revision 1 |
8 | 9 | platforms darwin |
9 | 10 | categories lang |
10 | 11 | maintainers mww openmaintainer |
11 | 12 | license GPL-3 |
12 | 13 | description The GNU compiler collection, prerelease BETA |
… |
… |
|
102 | 103 | ${destroot}${prefix}/share/info |
103 | 104 | # install/copy ffitarget.h only if we have it |
104 | 105 | if {![catch {set ffitarget.h [glob ${destroot}${prefix}/lib/${name}/gcc/*/${version}/include/ffitarget.h]} result]} { |
105 | 106 | file copy ${ffitarget.h} ${destroot}${prefix}/include/${name}/ |
106 | 107 | } |
| 108 | # strip the libraries and ignore errors from dynamic stubs |
| 109 | system -W ${destroot}${prefix} "find . -type f -name '*.dylib' | xargs -I{} strip -x {}; echo" |
107 | 110 | } |
108 | 111 | |
109 | 112 | select.group gcc |
110 | 113 | select.file ${filespath}/mp-${name} |
111 | 114 | |
diff --git a/dports/lang/llvm-gcc42/Portfile b/dports/lang/llvm-gcc42/Portfile
a
|
b
|
|
2 | 2 | |
3 | 3 | PortSystem 1.0 |
4 | 4 | |
5 | 5 | name llvm-gcc42 |
6 | 6 | version 2.9 |
7 | | revision 2 |
| 7 | revision 3 |
8 | 8 | categories lang |
9 | 9 | platforms darwin |
10 | 10 | license GPL-2+ |
11 | 11 | maintainers erickt mfeiri jeremyhu |
12 | 12 | description llvm-gcc42 is a gcc compiler frontend for llvm |
… |
… |
|
94 | 94 | if {![catch {set ffitarget.h [glob ${destroot}${prefix}/lib/${name}/gcc/*/${version}/include/ffitarget.h]} result]} { |
95 | 95 | file copy ${ffitarget.h} ${destroot}${prefix}/include/${name}/ |
96 | 96 | } |
97 | 97 | xinstall -m 755 -d ${destroot}${prefix}/etc/select/gcc |
98 | 98 | xinstall -m 444 ${filespath}/mp-llvm-gcc42 ${destroot}${prefix}/etc/select/gcc/ |
| 99 | # strip the libraries and ignore errors from dynamic stubs |
| 100 | system -W ${destroot}${prefix} "find . -type f -name '*.dylib' | xargs -I{} strip -x {}; echo" |
99 | 101 | } |
100 | 102 | |
101 | 103 | platform darwin { |
102 | 104 | depends_run-append port:ld64 |
103 | 105 | |