<pre style='margin:0'>
Chris Jones (cjones051073) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/c2f52d3529d4d8958143af466a32070fbfaec016">https://github.com/macports/macports-ports/commit/c2f52d3529d4d8958143af466a32070fbfaec016</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new c2f52d3529d gcc1{0,1,2}: Add work around for missing rpath entries See: https://trac.macports.org/ticket/65503
</span>c2f52d3529d is described below
<span style='display:block; white-space:pre;color:#808000;'>commit c2f52d3529d4d8958143af466a32070fbfaec016
</span>Author: Chris Jones <jonesc@macports.org>
AuthorDate: Mon Jul 18 13:50:26 2022 +0100
<span style='display:block; white-space:pre;color:#404040;'> gcc1{0,1,2}: Add work around for missing rpath entries
</span><span style='display:block; white-space:pre;color:#404040;'> See: https://trac.macports.org/ticket/65503
</span>---
lang/gcc10/Portfile | 32 ++++++++++++++++++++++++++++----
lang/gcc11/Portfile | 20 +++++++++++++++++---
lang/gcc12/Portfile | 19 ++++++++++++++++---
3 files changed, 61 insertions(+), 10 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/gcc10/Portfile b/lang/gcc10/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index c3669b61086..54ccbdb718e 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/gcc10/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/gcc10/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -10,7 +10,7 @@ PortGroup cltversion 1.0
</span> epoch 6
name gcc10
version 10.4.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 3
</span> platforms darwin
categories lang
maintainers nomaintainer
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -101,6 +101,8 @@ if {${subport} eq ${name}} {
</span> }
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+set mp_extra_rpath ${prefix}/lib/libgcc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> configure.dir ${workpath}/build
configure.cmd ${worksrcpath}/configure
configure.args --enable-languages=[join ${gcc_configure_langs} ","] \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -129,7 +131,7 @@ configure.args --enable-languages=[join ${gcc_configure_langs} ","] \
</span> --with-ar=${prefix}/bin/ar \
--with-bugurl=https://trac.macports.org/newticket \
--enable-host-shared \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- --with-darwin-extra-rpath=${prefix}/lib/libgcc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-darwin-extra-rpath=${mp_extra_rpath}
</span>
# see https://lists.macports.org/pipermail/macports-dev/2017-August/036209.html
# --disable-tls does not limit functionality
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -409,11 +411,31 @@ if {${subport} ne ${name}} {
</span>
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Ensure all dylibs in destroot have our extra rpath added ..
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # https://trac.macports.org/ticket/65503
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach dlib [ exec find ${destroot}${prefix} -type f -and -name "*.dylib" ] {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_debug "Ensuring DYLIB '${dlib}' has RPATH '${mp_extra_rpath}'"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Note install_name_tool returns a failure if the dylib already has the entry
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # We don't want that here so force final status to be true...
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system "install_name_tool -add_rpath ${mp_extra_rpath} ${dlib} > /dev/null 2>&1 ; true"
</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> platform powerpc {
configure.universal_archs ppc ppc64
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-platform i386 {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.universal_archs i386 x86_64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if { ${os.platform} eq "darwin" && ${os.major} >= 20 } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ platform i386 {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.universal_archs x86_64 arm64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ platform arm {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.universal_archs x86_64 arm64
</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;'>+ platform i386 {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.universal_archs i386 x86_64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span> }
variant universal {
configure.args-delete --disable-multilib
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -421,9 +443,11 @@ variant universal {
</span> # the generated compiler doesn't accept -arch
configure.env-append \
"CPP=${configure.cc} -E" \
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ "CPP_FOR_BUILD=${configure.cc} -E" \
</span> "CXXCPP=${configure.cxx} -E"
build.env-append \
"CPP=${configure.cc} -E" \
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ "CPP_FOR_BUILD=${configure.cc} -E" \
</span> "CXXCPP=${configure.cxx} -E"
configure.cc-append [get_canonical_archflags]
configure.cc_archflags
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/gcc11/Portfile b/lang/gcc11/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index b06986de2a6..13474c9ca21 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/gcc11/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/gcc11/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -11,9 +11,8 @@ epoch 1
</span>
name gcc11
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# Note, ARM builds have their own version below...
</span> version 11.3.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 4
</span>
platforms darwin
categories lang
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -114,6 +113,8 @@ set gcc_ld ${prefix}/bin/ld
</span> set gcc_ar ${prefix}/bin/ar
set gcc_nm ${prefix}/bin/nm
<span style='display:block; white-space:pre;background:#e0ffe0;'>+set mp_extra_rpath ${prefix}/lib/libgcc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> configure.dir ${workpath}/build
configure.cmd ${worksrcpath}/configure
configure.args --enable-languages=[join ${gcc_configure_langs} ","] \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -139,7 +140,7 @@ configure.args --enable-languages=[join ${gcc_configure_langs} ","] \
</span> --with-build-config=bootstrap-debug \
--with-bugurl=https://trac.macports.org/newticket \
--enable-host-shared \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- --with-darwin-extra-rpath=${prefix}/lib/libgcc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-darwin-extra-rpath=${mp_extra_rpath}
</span>
# see https://lists.macports.org/pipermail/macports-dev/2017-August/036209.html
# --disable-tls does not limit functionality
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -433,6 +434,17 @@ if { ${subport} ne ${name}} {
</span>
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Ensure all dylibs in destroot have our extra rpath added ..
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # https://trac.macports.org/ticket/65503
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach dlib [ exec find ${destroot}${prefix} -type f -and -name "*.dylib" ] {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_debug "Ensuring DYLIB '${dlib}' has RPATH '${mp_extra_rpath}'"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Note install_name_tool returns a failure if the dylib already has the entry
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # We don't want that here so force final status to be true...
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system "install_name_tool -add_rpath ${mp_extra_rpath} ${dlib} > /dev/null 2>&1 ; true"
</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> platform powerpc {
configure.universal_archs ppc ppc64
}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -454,9 +466,11 @@ variant universal {
</span> # the generated compiler doesn't accept -arch
configure.env-append \
"CPP=${configure.cc} -E" \
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ "CPP_FOR_BUILD=${configure.cc} -E" \
</span> "CXXCPP=${configure.cxx} -E"
build.env-append \
"CPP=${configure.cc} -E" \
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ "CPP_FOR_BUILD=${configure.cc} -E" \
</span> "CXXCPP=${configure.cxx} -E"
configure.cc-append [get_canonical_archflags]
configure.cc_archflags
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/gcc12/Portfile b/lang/gcc12/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 62b8d050654..bb9bec756db 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/gcc12/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/gcc12/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -23,8 +23,8 @@ long_description {*}${description}, including front ends for \
</span> C, C++, Objective-C, Objective-C++ and Fortran.
version 12.1.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 3
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-subport libgcc12 { revision 3 }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+subport libgcc12 { revision 4 }
</span>
checksums rmd160 6cdb114103541230492bbc6093585cb10e5e5ea6 \
sha256 62fd634889f31c02b64af2c468f064b47ad1ca78411c45abe6ac4b5f8dd19c7b \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -82,6 +82,8 @@ proc get_clean_sysroot {} {
</span> return [regsub {MacOSX1[1-9]\.[0-9]+\.sdk} ${configure.sdkroot} {MacOSX.sdk}]
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+set mp_extra_rpath ${prefix}/lib/libgcc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> configure.dir ${workpath}/build
configure.cmd ${worksrcpath}/configure
configure.args --enable-languages=[join ${gcc_configure_langs} ","] \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -110,7 +112,7 @@ configure.args --enable-languages=[join ${gcc_configure_langs} ","] \
</span> --with-ar=${prefix}/bin/ar \
--with-bugurl=https://trac.macports.org/newticket \
--enable-host-shared \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- --with-darwin-extra-rpath=${prefix}/lib/libgcc \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-darwin-extra-rpath=${mp_extra_rpath} \
</span> --with-libiconv-prefix=${prefix}
# see https://lists.macports.org/pipermail/macports-dev/2017-August/036209.html
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -405,6 +407,17 @@ if {${subport} ne ${name}} {
</span>
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Ensure all dylibs in destroot have our extra rpath added ..
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # https://trac.macports.org/ticket/65503
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach dlib [ exec find ${destroot}${prefix} -type f -and -name "*.dylib" ] {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_debug "Ensuring DYLIB '${dlib}' has RPATH '${mp_extra_rpath}'"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Note install_name_tool returns a failure if the dylib already has the entry
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # We don't want that here so force final status to be true...
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system "install_name_tool -add_rpath ${mp_extra_rpath} ${dlib} > /dev/null 2>&1 ; true"
</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> platform powerpc {
configure.universal_archs ppc ppc64
}
</pre><pre style='margin:0'>
</pre>