<pre style='margin:0'>
Ken (kencu) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/3ce236775f1a6d0b77d5e94e28efd83f33a5bf59">https://github.com/macports/macports-ports/commit/3ce236775f1a6d0b77d5e94e28efd83f33a5bf59</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 3ce236775f1a6d0b77d5e94e28efd83f33a5bf59
</span>Author: Ken Cunningham <kencu@macports.org>
AuthorDate: Sat Apr 6 18:33:04 2024 -0700
<span style='display:block; white-space:pre;color:#404040;'> gcc7-bootstrap: isolated gcc version for bootstrapping
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Tiger cannot build gcc10-bootstrap using system tools,
</span><span style='display:block; white-space:pre;color:#404040;'> or apple-gcc42.
</span>---
lang/gcc7-bootstrap/Portfile | 179 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 179 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/gcc7-bootstrap/Portfile b/lang/gcc7-bootstrap/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..9c64ad9d57e
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/gcc7-bootstrap/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,179 @@
</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:filetype=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 gcc7-bootstrap
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 7.5.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms {darwin < 9}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories lang
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers nomaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# an exception in the license allows dependents to not be GPL
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license {GPL-3+ Permissive}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description isolated gcc version used for bootstrapping.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description ${description}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://gcc.gnu.org/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+master_sites http://gcc.gnu.org/pub/gcc/releases/gcc-${version}/:gcc \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ gnu:gcc/gcc-${version}:gcc \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ http://gcc.gnu.org/pub/gcc/infrastructure/:gccinfrastructure \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ gnu:gcc/infrastructure:gccinfrastructure
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+distname gcc-${version}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+dist_subdir gcc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set MPFR mpfr-4.1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set GMP gmp-6.2.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set MPC mpc-1.2.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set ISL isl-0.24
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+distfiles ${distname}${extract.suffix}:gcc \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${MPFR}.tar.bz2:gccinfrastructure \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${GMP}.tar.bz2:gccinfrastructure \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${MPC}.tar.gz:gccinfrastructure \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${ISL}.tar.bz2:gccinfrastructure
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums gcc-7.5.0.tar.gz \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rmd160 e5d647a8d26cd300b17b1a7defefe9292bf7a5d9 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 4f518f18cfb694ad7975064e99e200fe98af13603b47e67e801ba9580e50a07f \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 112743638 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ mpfr-4.1.0.tar.bz2 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rmd160 7a6d028b63c864566f62d47a58521e00a2890c28 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 feced2d430dd5a97805fa289fed3fc8ff2b094c02d05287fd6133e7f1f0ec926 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 1747243 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ gmp-6.2.1.tar.bz2 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rmd160 2a4204453eb608bec6bb647ff5a0c47ca4d43878 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 eae9326beb4158c386e39a356818031bd28f3124cf915f8c5b1dc4c7a36b4d7c \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 2493916 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ mpc-1.2.1.tar.gz \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rmd160 8c25b71d080936aab6ffa84f4f9d99b662d82c47 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 838731 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ isl-0.24.tar.bz2 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rmd160 b3bf8e1ad50207d4eebecc47cb4cffdac6581a57 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 2261594 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ make-3.81.tar.gz \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rmd160 a713a72875cb9a29568677c98022465c6f55cbbf \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 16b77de9f013bcd536b7bc1efbe314223aedfe250f9063e33cbb4dfd347215a2 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 1564560
</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;'>+extract {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach f ${distfiles} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set f [lindex [split ${f} :] 0]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_debug "Extracting: ${f}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[string match "*bz2*" ${f}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${workpath} "/usr/bin/tar xjf [shellescape ${distpath}/${f}]"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[string match "*gz*" ${f}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${workpath} "/usr/bin/tar xzf [shellescape ${distpath}/${f}]"
</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;'>+post-extract {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ln -s ${workpath}/${MPFR} ${worksrcpath}/mpfr
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ln -s ${workpath}/${GMP} ${worksrcpath}/gmp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ln -s ${workpath}/${MPC} ${worksrcpath}/mpc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ln -s ${workpath}/${ISL} ${worksrcpath}/isl
</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;'>+# Skip bootstrap comparison
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace {s|^do-compare =|do-compare = /usr/bin/true|g} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/Makefile.in \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/config/bootstrap-debug.mk \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/config/bootstrap-debug-lean.mk \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/config/bootstrap-debug-lib.mk
</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;'>+# sterilize MacPorts build environment
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compiler.cpath
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compiler.library_path
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.cxx_stdlib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.cflags
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.cxxflags
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.cppflags
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.optflags
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.ldflags
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.universal_cflags
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.universal_cxxflags
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.universal_cppflags
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.universal_ldflags
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.universal_args
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.ccache no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.distcc no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.env-append PATH=/usr/bin:/bin:/usr/sbin:/sbin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.env-append PATH=/usr/bin:/bin:/usr/sbin:/sbin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set prefix_frozen ${prefix}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+prefix ${prefix}/libexec/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.cmd ${worksrcpath}/configure
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.dir ${workpath}/build
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args --enable-languages=c,c++,objc,obj-c++ \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --enable-bootstrap \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-system-zlib \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --without-zstd \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --disable-nls \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --disable-tls \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-bugurl=https://trac.macports.org/newticket
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.dir ${configure.dir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.target bootstrap-lean
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+universal_variant no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platform darwin 8 {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Tiger has special requirements.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # apple-gcc42 is required for most Tiger software. It requires cctools and ld64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # to be installed to properly function. gcc7 is configured to run against these.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # so cctools and ld64 need to be lib_deps for gcc7 on Tiger.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib port:cctools port:ld64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_skip_archcheck-append cctools ld64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Tiger comes with make 3.80 but we need 3.81
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set MAKE_V make-3.81
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ master_sites-append gnu:make:gccmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ distfiles-append ${MAKE_V}.tar.gz:gccmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ checksums-append make-3.81.tar.gz \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rmd160 a713a72875cb9a29568677c98022465c6f55cbbf \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 16b77de9f013bcd536b7bc1efbe314223aedfe250f9063e33cbb4dfd347215a2 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 1564560
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ pre-configure {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file mkdir ${workpath}/bins
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${workpath}/${MAKE_V} "CC=/usr/bin/cc ./configure && make"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ln -s ${workpath}/${MAKE_V}/make ${workpath}/bins/make
</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.env-append MAKE=${workpath}/bins/make
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ build.env-append MAKE=${workpath}/bins/make
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.env-replace PATH=/usr/bin:/bin:/usr/sbin:/sbin \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PATH=${workpath}/bins:/usr/bin:/bin:/usr/sbin:/sbin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ build.env-replace PATH=/usr/bin:/bin:/usr/sbin:/sbin \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PATH=${workpath}/bins:/usr/bin:/bin:/usr/sbin:/sbin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-dwarf2 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-as=${prefix_frozen}/bin/as \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-ld=${prefix_frozen}/bin/ld \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-ar=${prefix_frozen}/bin/ar
</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></pre><pre style='margin:0'>
</pre>