Commits

Joshua Root authored ad8acf53feb
llvm-*: build more reproducibly

No doubt building with newer macports-clang versions if they happen to be installed already seemed like a good idea at the time, but it means that different people will see different results when building these ports on the same platform. Also move some code that was checking the value of configure.compiler before it's potentially changed by blacklisting.
No tags

lang/llvm-3.3/Portfile

Modified
137 137 select.file ${filespath}/mp-${subport}
138 138 } elseif {${subport} == "clang-${llvm_version}"} {
139 139 select.group clang
140 140 select.file ${filespath}/mp-${subport}
141 141 }
142 142
143 143 # g++-4.0 fails to build some of the newer C++ for ppc
144 144 # Intel looks ok, but I prefer using gcc-4.2 for consistency
145 145 compiler.blacklist gcc-4.0
146 146
147 +# avoid dependency cycles
148 +compiler.blacklist-append macports-clang-*
149 +
147 150 variant universal {
148 151 if {[vercmp [macports_version] 2.5.99] >= 0} {
149 152 build.env-append \
150 153 UNIVERSAL=1 \
151 154 UNIVERSAL_ARCH=[get_canonical_archs]
152 155 destroot.env-append \
153 156 UNIVERSAL=1 \
154 157 UNIVERSAL_ARCH=[get_canonical_archs]
155 158 } else {
156 159 build.env-append \
170 173 system "echo \"static int ___ignoreme;\" > ${worksrcpath}/tools/llvm-shlib/ignore.c"
171 174 }
172 175 }
173 176 }
174 177
175 178 variant assertions description "Enable assertions for error detection (has performance impacts, especially on JIT)" {
176 179 configure.args-delete --disable-assertions
177 180 configure.args-append --enable-assertions
178 181 }
179 182
180 -# blacklist current and future versions if they're not available in order to
181 -# help break potential dependency cycles.
182 -foreach ver {3.3 3.4 3.7 3.8 3.9 4.0 5.0 6.0 7.0 8.0 devel} {
183 - if {![file exists ${prefix}/bin/clang-mp-${ver}]} {
184 - compiler.blacklist-append macports-clang-${ver}
185 - }
186 -}
187 -
188 183 platform darwin {
189 184 if {${build_arch} eq "i386"} {
190 185 configure.pre_args-append --build=i686-apple-darwin${os.major}
191 186 } elseif {${build_arch} eq "ppc"} {
192 187 configure.pre_args-append --build=powerpc-apple-darwin${os.major}
193 188 } elseif {${build_arch} eq "ppc64"} {
194 189 configure.pre_args-append --build=powerpc64-apple-darwin${os.major}
195 190 } else {
196 191 configure.pre_args-append --build=${build_arch}-apple-darwin${os.major}
197 192 }

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut