<pre style='margin:0'>
Herby Gillot (herbygillot) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/ccadd204436e0d1fb159d08ccf01cede3266a5af">https://github.com/macports/macports-ports/commit/ccadd204436e0d1fb159d08ccf01cede3266a5af</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit ccadd204436e0d1fb159d08ccf01cede3266a5af
</span>Author: Sergey Fedorov <vital.had@gmail.com>
AuthorDate: Mon Nov 7 21:21:48 2022 +0800
<span style='display:block; white-space:pre;color:#404040;'> strip7: to use with tenfourfox
</span>---
devel/strip7/Portfile | 239 +++++++++++++++++++++
devel/strip7/files/PR-12400897.patch | 35 +++
devel/strip7/files/PR-37520.patch | 55 +++++
devel/strip7/files/cctools-829-lto.patch | 39 ++++
.../strip7/files/cctools-839-static-dis_info.patch | 22 ++
devel/strip7/files/cctools-862-prunetrie.patch | 34 +++
.../files/cctools-895-OFILE_LLVM_BITCODE.patch | 18 ++
devel/strip7/files/cctools-895-big_endian.patch | 12 ++
devel/strip7/files/not-clang.patch | 12 ++
.../files/patch-strip-ignore-zero-nsects.diff | 36 ++++
devel/strip7/files/snowleopard-strnlen.patch | 21 ++
11 files changed, 523 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/strip7/Portfile b/devel/strip7/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..cde90b34ac0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/strip7/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,239 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name strip7
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Xcode 8.1 - matching cctools
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 895
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set ld64_version 274.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories devel
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers nomaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license {APSL-2 GPL-2+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+installs_libs no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description A modified version of strip that ignores variant n_sects
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description ${name}. Useful only for building TenFourFox with modern gcc versions.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://opensource.apple.com/source/cctools/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+master_sites https://github.com/apple-oss-distributions/cctools/archive:main \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ https://github.com/apple-oss-distributions/ld64/archive:ld64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+distfiles ld64-${ld64_version}.tar.gz:ld64 cctools-${version}.tar.gz:main
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums ld64-274.1.tar.gz \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rmd160 3d8f0c1d739f08bd13d699678f4e0d8aa58fa804 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 8416c20f6cf6dce94ae1ae5f22ed8b60e1425e239329f15ac70bff5b022c255f \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 674542 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cctools-895.tar.gz \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rmd160 2f0f6da7e85f8a69b627b80a279724cb8cc05297 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 24cd06fd8e7e31170f4a260d6443de640ef1603bdb324b3277ae76b91b9c4093 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 1726980
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${os.major} > 15} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ known_fail yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ pre-fetch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_error "${name} requires MacOS 10.11 or earlier"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return -code error "incompatible OS version"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles cctools-829-lto.patch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PR-37520.patch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cctools-839-static-dis_info.patch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PR-12400897.patch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cctools-862-prunetrie.patch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cctools-895-big_endian.patch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cctools-895-OFILE_LLVM_BITCODE.patch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ not-clang.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# tenfourfox special strip7 modification
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append patch-strip-ignore-zero-nsects.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${os.major} < 11} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append snowleopard-strnlen.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_build port:libunwind-headers
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set all_llvm_variants {llvm39 llvm40 llvm50 llvmdev}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${os.major} < 12} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lappend all_llvm_variants llvm34
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${os.major} < 14} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lappend all_llvm_variants llvm37
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+array set llvm_variant_version {llvm34 3.4 llvm37 3.7 llvm39 3.9 llvm40 4.0 llvm50 5.0 llvmdev devel}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set llvm_version {}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+foreach variantname $all_llvm_variants {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set this_llvm_version $llvm_variant_version($variantname)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ variant $variantname description "Use llvm-${this_llvm_version} for libLTO, llvm-mc, llvm-size, and llvm-nm" "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set llvm_version $this_llvm_version
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append port:llvm-${this_llvm_version}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+proc some_llvm_variant_set {} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ global all_llvm_variants
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach variantname $all_llvm_variants {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[variant_isset $variantname]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if { ![some_llvm_variant_set] } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${os.major} == 12 || ${os.major} == 13} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Using llvm-3.7 to break a dependency cycle (https://trac.macports.org/ticket/53138)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ default_variants +llvm37
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } elseif {${os.major} == 10 || ${os.major} == 11} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ default_variants +llvm34
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } elseif {${os.major} == 9} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Using llvm-3.3 to break dependency cycle (https://trac.macports.org/ticket/52091)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ default_variants +llvm33
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {![some_llvm_variant_set] && ${os.major} >= 10} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ default_variants +llvm50
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot.args RAW_DSTROOT=${destroot} DSTROOT=${destroot}${prefix} RC_ProjectSourceVersion=${version}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+worksrcdir cctools-cctools-${version}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-extract {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file copy ${worksrcpath}/../ld64-ld64-${ld64_version}/src/other/PruneTrie.cpp ${worksrcpath}/misc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system "touch ${worksrcpath}/../ld64-ld64-${ld64_version}/src/abstraction/configure.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # We don't want to build cctools ld. We want to use ld64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "/^SUBDIRS_32/s/ld//" ${worksrcpath}/Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "/^COMMON_SUBDIRS/s/ ld / /" ${worksrcpath}/Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Use our chosen version of llvm
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${llvm_version} ne ""} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s:\"llvm-objdump\":\"llvm-objdump-mp-${llvm_version}\":" ${worksrcpath}/otool/main.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s:\"llvm-mc\":\"llvm-mc-mp-${llvm_version}\":" ${worksrcpath}/as/driver.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s:@@LLVM_LIBDIR@@:${prefix}/libexec/llvm-${llvm_version}/lib:" ${worksrcpath}/libstuff/lto.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach file [glob ${worksrcpath}/{*/,}Makefile] {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s:/usr/local:@PREFIX@:g" ${file}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s:/usr:@PREFIX@:g" ${file}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s:@PREFIX@:${prefix}:g" ${file}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s:${prefix}/efi:${prefix}:g" ${file}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s:/Developer${prefix}:${prefix}:g" ${file}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s:${prefix}/man:${prefix}/share/man:g" ${file}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Don't strip installed binaries
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s:\\(install .*\\)-s :\\1:g" ${file}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${os.major} < 10} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s:${prefix}/bin/mig:/usr/bin/mig:g" ${file}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+use_configure no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+use_parallel_build yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://trac.macports.org/ticket/43745
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.cflags-append -std=gnu99
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.target all
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set cxx_stdlibflags {}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {[string match *clang* ${configure.cxx}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set cxx_stdlibflags -stdlib=${configure.cxx_stdlib}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.cppflags-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -I${worksrcpath}/../ld64-ld64-${ld64_version}/src/abstraction \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -I${worksrcpath}/../ld64-ld64-${ld64_version}/src/other \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -I${worksrcpath}/include
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+pre-build {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {![variant_isset xcode]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ build.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ RC_ProjectSourceVersion=${version} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ USE_DEPENDENCY_FILE=NO \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ BUILD_DYLIBS=NO \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CC="${configure.cc} ${configure.cflags}" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CXX="${configure.cxx} ${configure.cxxflags}" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CXXLIB="${cxx_stdlibflags}" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ TRIE=-DTRIE_SUPPORT \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ RC_ARCHS="[get_canonical_archs]" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ SDK="${configure.cppflags}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${llvm_version} ne ""} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ build.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ LTO=-DLTO_SUPPORT \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ RC_CFLAGS="[get_canonical_archflags] `llvm-config-mp-${llvm_version} --cflags`" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ LLVM_MC="llvm-mc-mp-${llvm_version}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ build.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ LTO= \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ RC_CFLAGS="[get_canonical_archflags]"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+pre-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {![variant_isset xcode]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ destroot.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ RC_ProjectSourceVersion=${version} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ USE_DEPENDENCY_FILE=NO \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ BUILD_DYLIBS=NO \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CC="${configure.cc} ${configure.cflags}" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CXX="${configure.cxx} ${configure.cxxflags}" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CXXLIB="${cxx_stdlibflags}" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ TRIE=-DTRIE_SUPPORT \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ RC_ARCHS="[get_canonical_archs]" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ SDK="${configure.cppflags}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${llvm_version} ne ""} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ destroot.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ LTO=-DLTO_SUPPORT \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ RC_CFLAGS="[get_canonical_archflags] `llvm-config-mp-${llvm_version} --cflags`" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ LLVM_MC="llvm-mc-mp-${llvm_version}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ destroot.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ LTO= \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ RC_CFLAGS="[get_canonical_archflags]"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platform macosx {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ build.args-append RC_OS="macos"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ destroot.args-append RC_OS="macos"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot.target install_tools
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot.args-append DSTROOT=${destroot}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file delete -force ${destroot}${prefix}/OpenSourceLicenses
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file delete -force ${destroot}${prefix}/OpenSourceVersions
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file delete -force ${destroot}${prefix}/RelNotes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file delete -force ${destroot}${prefix}/share
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file delete -force ${destroot}${prefix}/libexec
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${os.major} < 10} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file delete -force ${destroot}/Developer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Provided by port:cctools-headers
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file delete -force ${destroot}${prefix}/include
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set xcode_cmds {ar as bitcode_strip check_dylib checksyms cmpdylib codesign_allocate ctf_insert indr install_name_tool libtool lipo llvm-otool mtoc nm nm-classic nmedit otool otool-classic pagestuff ranlib redo_prebinding seg_addr_table seg_hack segedit size size-classic strings}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach xcode_cmd $xcode_cmds {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file delete -force ${destroot}${prefix}/bin/${xcode_cmd}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ move ${destroot}${prefix}/bin/strip ${destroot}${prefix}/bin/strip7
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.type none
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/strip7/files/PR-12400897.patch b/devel/strip7/files/PR-12400897.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..8a2ac5003f2
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/strip7/files/PR-12400897.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,35 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- misc/nm.c 1969-12-31 16:00:00.000000000 -0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ misc/nm.c 2012-09-29 12:36:22.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -496,7 +496,7 @@ void *cookie)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ uint32_t nsymbols;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ struct value_diff *value_diffs;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- char *short_name, *has_suffix;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ char *short_name, *suffix;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ enum bool is_framework;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cmd_flags = (struct cmd_flags *)cookie;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -650,9 +650,20 @@ void *cookie)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ process_flags.lib_names[j] =
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ (char *)dl + dl->dylib.name.offset;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ short_name = guess_short_name(process_flags.lib_names[j],
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- &is_framework, &has_suffix);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if(short_name != NULL)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- process_flags.lib_names[j] = short_name;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ &is_framework, &suffix);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if(short_name != NULL) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if (suffix) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ char *combined_name;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ asprintf(&combined_name, "%s%s", short_name, suffix);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if (combined_name) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ process_flags.lib_names[j] = combined_name;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ free(short_name);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ free(suffix);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ process_flags.lib_names[j] = short_name;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ j++;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lc = (struct load_command *)
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/strip7/files/PR-37520.patch b/devel/strip7/files/PR-37520.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..fcac838fb5f
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/strip7/files/PR-37520.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,55 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- as/ppc.c.orig 2013-01-04 10:39:49.000000000 +0100
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ as/ppc.c 2013-01-04 10:40:02.000000000 +0100
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1019,6 +1019,8 @@ char *op)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* if this instruction requires labels mark it for later */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ switch(insn.reloc){
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ case NO_RELOC:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ break;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ case PPC_RELOC_HI16:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ case PPC_RELOC_LO16:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ case PPC_RELOC_HA16:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1033,6 +1035,7 @@ char *op)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ insn.reloc);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ break;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ case PPC_RELOC_BR14:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ case PPC_RELOC_BR14_predicted:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fix_new(frag_now,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ thisfrag - frag_now->fr_literal,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 4,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- as/m88k.c.orig 1969-12-31 16:00:00.000000000 -0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ as/m88k.c 2013-07-05 10:32:19.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -600,6 +600,10 @@ char *op)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* if this instruction requires labels mark it for later */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ switch (insn.reloc) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ case NO_RELOC:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ break;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ case M88K_RELOC_LO16:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ case M88K_RELOC_HI16:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fix_new(
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- as/sparc.c.orig 1969-12-31 16:00:00.000000000 -0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ as/sparc.c 2013-07-05 10:32:14.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -851,6 +851,20 @@ sparc_ip (str)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* plug absolutes directly into opcode */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ switch(the_insn.reloc) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ case SPARC_RELOC_13:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if (the_insn.exp.X_seg == SEG_BIG)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ opcode |= (*(int *) generic_bignum) & 0x1fff;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ opcode |= the_insn.exp.X_add_number & 0x1fff;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ the_insn.reloc = SPARC_RELOC_NONE;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ break;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ case SPARC_RELOC_22:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if (the_insn.exp.X_seg == SEG_BIG)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ opcode |= (*(int *) generic_bignum) & 0x3fffff;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ opcode |= the_insn.exp.X_add_number & 0x3fffff;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ the_insn.reloc = SPARC_RELOC_NONE;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ break;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ case SPARC_RELOC_HI22:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* extract upper 22 bits from constant */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ opcode |= (the_insn.exp.X_add_number >> 10) & 0x3fffff;
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/strip7/files/cctools-829-lto.patch b/devel/strip7/files/cctools-829-lto.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..79c811a882d
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/strip7/files/cctools-829-lto.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,39 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- libstuff/lto.c.orig 1969-12-31 16:00:00.000000000 -0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ libstuff/lto.c 2012-09-04 14:59:31.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -112,13 +112,21 @@ void **pmod) /* maybe NULL */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lto_path = makestr(prefix, "../lib/libLTO.dylib", NULL);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lto_handle = dlopen(lto_path, RTLD_NOW);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ free(lto_path);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ lto_path = NULL;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(lto_handle == NULL){
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- free(lto_path);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- lto_path = NULL;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- lto_handle = dlopen("/Applications/Xcode.app/Contents/"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- "Developer/Toolchains/XcodeDefault."
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- "xctoolchain/usr/lib/libLTO.dylib",
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- RTLD_NOW);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ const char *lto_paths[] = {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ "@@LLVM_LIBDIR@@/libLTO.dylib",
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/libLTO.dylib",
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ "/usr/lib/libLTO.dylib",
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ "/Applications/Xcode.app/usr/lib/libLTO.dylib",
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ "/Developer/usr/lib/libLTO.dylib",
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ NULL
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ };
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ const char **p;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ for(p = lto_paths; *p && !lto_handle ; p++) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ lto_handle = dlopen(*p, RTLD_NOW);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(lto_handle == NULL)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return(0);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -142,8 +150,6 @@ void **pmod) /* maybe NULL */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lto_get_sym_attr == NULL ||
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lto_get_sym_name == NULL){
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ dlclose(lto_handle);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if(lto_path != NULL)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- free(lto_path);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return(0);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/strip7/files/cctools-839-static-dis_info.patch b/devel/strip7/files/cctools-839-static-dis_info.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..3a490ce34e6
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/strip7/files/cctools-839-static-dis_info.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,22 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- otool/arm_disasm.c.orig 2013-08-29 14:23:24.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ otool/arm_disasm.c 2013-08-29 14:23:51.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -62,7 +62,7 @@ typedef char bfd_byte;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* HACKS to avoid pulling in all of FSF binutils include/dis-asm.h */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ typedef int (*fprintf_ftype) (void *, const char*, ...);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-struct disassemble_info { /* HACK'ed up for just what we need here */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++static struct disassemble_info { /* HACK'ed up for just what we need here */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fprintf_ftype fprintf_func;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ void *stream;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- otool/i386_disasm.c.orig 2013-08-29 14:23:19.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ otool/i386_disasm.c 2013-08-29 14:24:00.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1600,7 +1600,7 @@ static unsigned int xmm_rm(int r_m, int
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /*
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * This is passed to the llvm disassembler.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-struct disassemble_info {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++static struct disassemble_info {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ enum bool verbose;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* Relocation information. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ struct relocation_info *sorted_relocs;
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/strip7/files/cctools-862-prunetrie.patch b/devel/strip7/files/cctools-862-prunetrie.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..ebe7d9a14c8
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/strip7/files/cctools-862-prunetrie.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,34 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- misc/Makefile.orig 2015-01-10 20:43:30.000000000 -0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ misc/Makefile 2015-01-10 20:51:27.000000000 -0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -201,14 +201,18 @@ indr.NEW: indr.o
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(OFILE_DIR)/indr.private.o
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(DSYMUTIL) $(SYMROOT)/indr.NEW
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-strip.NEW: strip.o
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++strip.NEW: strip.o PruneTrie.o
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(CC) $(RC_CFLAGS) -nostdlib -r \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -o $(OBJROOT)/strip.private.o \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(OFILE_DIR)/strip.o $(LIBSTUFF)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(CXX) $(RC_CFLAGS) $(SDK) -o $(SYMROOT)/strip.NEW \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- $(OFILE_DIR)/strip.private.o $(LIB_PRUNETRIE) $(CXXLIB)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(OFILE_DIR)/strip.private.o $(OFILE_DIR)/PruneTrie.o $(CXXLIB)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(DSYMUTIL) $(SYMROOT)/strip.NEW
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++PruneTrie.o: PruneTrie.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(CXX) $(CXXFLAGS) $(RC_CFLAGS) $(SDK) $(CXXLIB) -c -o \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(OBJROOT)/PruneTrie.o $(SRCROOT)/PruneTrie.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ nmedit.NEW: nmedit.o
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(CC) $(RC_CFLAGS) -nostdlib -r \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -o $(OBJROOT)/nmedit.private.o \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- misc/strip.c.orig 2015-01-10 21:25:17.000000000 -0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ misc/strip.c 2015-01-10 21:25:40.000000000 -0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -47,7 +47,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "stuff/unix_standard_mode.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "stuff/execute.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #ifdef TRIE_SUPPORT
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#include <mach-o/prune_trie.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include "prune_trie.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif /* TRIE_SUPPORT */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* These are set from the command line arguments */
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/strip7/files/cctools-895-OFILE_LLVM_BITCODE.patch b/devel/strip7/files/cctools-895-OFILE_LLVM_BITCODE.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..c137e4cf182
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/strip7/files/cctools-895-OFILE_LLVM_BITCODE.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,18 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- misc/strings.c-orig 2016-12-09 19:03:02.000000000 +0100
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ misc/strings.c 2016-12-23 10:35:34.000000000 +0100
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -335,8 +335,13 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * If the ofile is not an object file then process it without reguard
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * to sections.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if(ofile->object_addr == NULL || ofile->member_type == OFILE_LLVM_BITCODE){
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if(ofile->file_type == OFILE_FAT && ofile->arch_flag.cputype != 0){
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if(ofile->object_addr == NULL
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#ifdef LTO_SUPPORT
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ || ofile->member_type == OFILE_LLVM_BITCODE){
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ){
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#endif /* LTO_SUPPORT */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if(ofile->file_type == OFILE_FAT && ofile->arch_flag.cputype != 0){
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(ofile->fat_header->magic == FAT_MAGIC_64){
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ addr = ofile->file_addr +
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ofile->fat_archs64[ofile->narch].offset;
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/strip7/files/cctools-895-big_endian.patch b/devel/strip7/files/cctools-895-big_endian.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..92aa091a3e1
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/strip7/files/cctools-895-big_endian.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,12 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- libstuff/ofile.c- 2016-12-16 11:53:10.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ libstuff/ofile.c 2016-12-16 11:53:41.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -3423,7 +3423,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(size - offset > sizeof(uint32_t)){
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ memcpy(&magic, addr + offset, sizeof(uint32_t));
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #ifdef __BIG_ENDIAN__
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if(magic == FAT_MAGIC || (magic == FAT_MAGIC_64)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if(magic == FAT_MAGIC || magic == FAT_MAGIC_64)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif /* __BIG_ENDIAN__ */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #ifdef __LITTLE_ENDIAN__
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(magic == SWAP_INT(FAT_MAGIC) ||
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/strip7/files/not-clang.patch b/devel/strip7/files/not-clang.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..6db44a2132e
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/strip7/files/not-clang.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,12 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- as/driver.c.orig 2015-11-23 21:01:45.000000000 -0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ as/driver.c 2015-11-23 21:09:24.000000000 -0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -280,6 +280,9 @@ char **envp)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ arch_flag.cputype == CPU_TYPE_ARM)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ run_clang = 1;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ /* MACPORTS: Don't use the clang assembler for now. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ run_clang = 0;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /*
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * Use the clang as the assembler if is the default or asked to with
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * the -q flag. But don't use it asked to use the system assembler
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/strip7/files/patch-strip-ignore-zero-nsects.diff b/devel/strip7/files/patch-strip-ignore-zero-nsects.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..40f3ecfb750
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/strip7/files/patch-strip-ignore-zero-nsects.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,36 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- misc/strip.c.orig 2018-09-16 17:48:10.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ misc/strip.c 2018-09-16 17:52:04.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -2951,11 +2951,15 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ n_type = symbols[i].n_type;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ n_sect = symbols[i].n_sect;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if((n_type & N_TYPE) == N_SECT){
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if(n_sect == 0 || n_sect > nsects){
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if(n_sect > nsects){
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ error_arch(arch, member, "bad n_sect for symbol "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "table entry %d in: ", i);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return(FALSE);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if (n_sect == 0) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ warning_arch(arch, member, "ignoring n_sect == 0 for "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ "symbol table entry %d in: ", i);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ s_flags = sections[n_sect - 1]->flags;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ n_desc = symbols[i].n_desc;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -2967,11 +2971,15 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ n_type = symbols64[i].n_type;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ n_sect = symbols64[i].n_sect;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if((n_type & N_TYPE) == N_SECT){
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if(n_sect == 0 || n_sect > nsects){
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if(n_sect > nsects){
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ error_arch(arch, member, "bad n_sect for symbol "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "table entry %d in: ", i);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return(FALSE);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if (n_sect == 0) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ warning_arch(arch, member, "ignoring n_sect == 0 for "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ "symbol table entry %d in: ", i);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ s_flags = sections64[n_sect - 1]->flags;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ n_desc = symbols64[i].n_desc;
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/strip7/files/snowleopard-strnlen.patch b/devel/strip7/files/snowleopard-strnlen.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..80e3b82e3b2
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/strip7/files/snowleopard-strnlen.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,21 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- otool/ofile_print.c.orig 2013-11-10 22:33:14.000000000 -0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ otool/ofile_print.c 2013-11-10 22:34:19.000000000 -0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -225,6 +225,18 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "stuff/guess_short_name.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "ofile_print.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++static size_t
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++strnlen(const char *s, size_t maxlen)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++{
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ size_t len;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ for (len = 0; len < maxlen; len++, s++) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if (!*s)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ break;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ return (len);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* <mach/loader.h> */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* The maximum section alignment allowed to be specified, as a power of two */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define MAXSECTALIGN 15 /* 2**15 or 0x8000 */
</span></pre><pre style='margin:0'>
</pre>