<pre style='margin:0'>
Landon Fuller (landonf) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/8c1a34e2d05e3331e11f89afbe2a1dc7a3e575e0">https://github.com/macports/macports-ports/commit/8c1a34e2d05e3331e11f89afbe2a1dc7a3e575e0</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 8c1a34e2d05 gcc(8|9|-devel): include runtime JIT support
</span>8c1a34e2d05 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 8c1a34e2d05e3331e11f89afbe2a1dc7a3e575e0
</span>Author: Landon Fuller <landonf@macports.org>
AuthorDate: Tue Sep 1 10:55:56 2020 -0600
<span style='display:block; white-space:pre;color:#404040;'> gcc(8|9|-devel): include runtime JIT support
</span>---
lang/gcc-devel/Portfile | 16 +++++--
lang/gcc-devel/files/patch-fix-libgccjit-soname | 58 +++++++++++++++++++++++++
lang/gcc8/Portfile | 16 +++++--
lang/gcc8/files/patch-fix-libgccjit-soname | 51 ++++++++++++++++++++++
lang/gcc9/Portfile | 16 +++++--
lang/gcc9/files/patch-fix-libgccjit-soname | 51 ++++++++++++++++++++++
6 files changed, 196 insertions(+), 12 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/gcc-devel/Portfile b/lang/gcc-devel/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index c08e46f5805..6498bee6875 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/gcc-devel/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/gcc-devel/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -9,8 +9,8 @@ PortGroup conflicts_build 1.0
</span> epoch 4
name gcc-devel
version 11-20200614
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-subport libgcc-devel { revision 0 }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+subport libgcc-devel { revision 1 }
</span> platforms darwin
categories lang
maintainers nomaintainer
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -48,6 +48,8 @@ checksums rmd160 5d1c8f310cee642b590c3e7592e8463bbf675ab4 \
</span> sha256 40635ce0e16ad628ea195270923b2bcbbcb6e1e552e0a18dfc1a9c49f286a741 \
size 71538232
<span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch-fix-libgccjit-soname
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> depends_lib-append port:cctools \
port:gmp \
path:lib/pkgconfig/isl.pc:isl \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -68,9 +70,14 @@ platform darwin {
</span> configure.pre_args-append --build=${build_arch}-apple-darwin${os.major}
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+set gcc_configure_langs {c c++ objc obj-c++ lto fortran}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${subport} eq "gcc-devel"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lappend gcc_configure_langs jit
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> configure.dir ${workpath}/build
configure.cmd ${worksrcpath}/configure
<span style='display:block; white-space:pre;background:#ffe0e0;'>-configure.args --enable-languages=c,c++,objc,obj-c++,lto,fortran \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args --enable-languages=[join ${gcc_configure_langs} ","] \
</span> --libdir=${prefix}/lib/${name} \
--includedir=${prefix}/include/${name} \
--infodir=${prefix}/share/info \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -93,7 +100,8 @@ configure.args --enable-languages=c,c++,objc,obj-c++,lto,fortran \
</span> --with-as=${prefix}/bin/as \
--with-ld=${prefix}/bin/ld \
--with-ar=${prefix}/bin/ar \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- --with-bugurl=https://trac.macports.org/newticket
</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;'>+ --enable-host-shared
</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;color:#808080;'>diff --git a/lang/gcc-devel/files/patch-fix-libgccjit-soname b/lang/gcc-devel/files/patch-fix-libgccjit-soname
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..b5c2f569db9
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/gcc-devel/files/patch-fix-libgccjit-soname
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,58 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- gcc/jit/Make-lang.in.orig 2020-09-01 10:19:31.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ gcc/jit/Make-lang.in 2020-09-01 10:25:27.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -48,17 +48,22 @@
</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;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-LIBGCCJIT_LINKER_NAME = libgccjit.so
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ LIBGCCJIT_VERSION_NUM = 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ LIBGCCJIT_MINOR_NUM = 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ LIBGCCJIT_RELEASE_NUM = 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-LIBGCCJIT_SONAME = $(LIBGCCJIT_LINKER_NAME).$(LIBGCCJIT_VERSION_NUM)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-LIBGCCJIT_FILENAME = \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- $(LIBGCCJIT_SONAME).$(LIBGCCJIT_MINOR_NUM).$(LIBGCCJIT_RELEASE_NUM)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ifeq ($(strip $(filter-out darwin%,$(target_os))),)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ LIBGCCJIT_LINKER_NAME = libgccjit.dylib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ LIBGCCJIT_FILENAME = libgccjit.$(LIBGCCJIT_VERSION_NUM).dylib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ LIBGCCJIT_LINKER_NAME = libgccjit.so
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ LIBGCCJIT_SONAME = $(LIBGCCJIT_LINKER_NAME).$(LIBGCCJIT_VERSION_NUM)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ LIBGCCJIT_FILENAME = \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(LIBGCCJIT_SONAME).$(LIBGCCJIT_MINOR_NUM).$(LIBGCCJIT_RELEASE_NUM)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-LIBGCCJIT_LINKER_NAME_SYMLINK = $(LIBGCCJIT_LINKER_NAME)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-LIBGCCJIT_SONAME_SYMLINK = $(LIBGCCJIT_SONAME)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ LIBGCCJIT_LINKER_NAME_SYMLINK = $(LIBGCCJIT_LINKER_NAME)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ LIBGCCJIT_SONAME_SYMLINK = $(LIBGCCJIT_SONAME)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Conditionalize the use of the LD_VERSION_SCRIPT_OPTION and
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # LD_SONAME_OPTION depending if configure found them, using $(if)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -127,9 +132,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(LIBGCCJIT_SONAME_SYMLINK): $(LIBGCCJIT_FILENAME)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ln -sf $(LIBGCCJIT_FILENAME) $(LIBGCCJIT_SONAME_SYMLINK)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ifneq ($(strip $(filter-out darwin%,$(target_os))),)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(LIBGCCJIT_LINKER_NAME_SYMLINK): $(LIBGCCJIT_SONAME_SYMLINK)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ln -sf $(LIBGCCJIT_SONAME_SYMLINK) $(LIBGCCJIT_LINKER_NAME_SYMLINK)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++endif
</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;'>+ # Build hooks:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -313,6 +320,14 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Install DLL file
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(INSTALL_PROGRAM) $(LIBGCCJIT_FILENAME) \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(DESTDIR)$(bindir)/$(LIBGCCJIT_FILENAME)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++else ifeq ($(strip $(filter-out darwin%,$(target_os))),)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++jit.install-common: installdirs jit.install-headers
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(INSTALL_PROGRAM) $(LIBGCCJIT_FILENAME) \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(DESTDIR)$(libdir)/$(LIBGCCJIT_FILENAME)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ install_name_tool -id $(libdir)/$(LIBGCCJIT_FILENAME) $(DESTDIR)/$(libdir)/$(LIBGCCJIT_FILENAME)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ln -sf \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(LIBGCCJIT_FILENAME) \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(DESTDIR)/$(libdir)/$(LIBGCCJIT_LINKER_NAME)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ jit.install-common: installdirs jit.install-headers
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(INSTALL_PROGRAM) $(LIBGCCJIT_FILENAME) \
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/gcc8/Portfile b/lang/gcc8/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 23ff84ec1cc..7b3f37bb068 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/gcc8/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/gcc8/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -10,8 +10,8 @@ PortGroup xcode_workaround 1.0
</span> epoch 4
name gcc8
version 8.4.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-subport libgcc8 { revision 0 }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+subport libgcc8 { revision 1 }
</span> platforms darwin
categories lang
maintainers nomaintainer
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -43,6 +43,8 @@ checksums rmd160 4b3890e8865fae1d2b91166fb98e1097f5401d4a \
</span> # NOTE : The logic here must match that in the libgcc port.
set isLastSupported [ expr ${os.major} < 11 ]
<span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch-fix-libgccjit-soname
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> depends_lib port:cctools \
port:gmp \
path:lib/pkgconfig/isl.pc:isl \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -67,9 +69,14 @@ platform darwin {
</span> configure.pre_args-append --build=${build_arch}-apple-darwin${os.major}
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+set gcc_configure_langs {c c++ objc obj-c++ lto fortran}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${subport} eq "gcc8"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lappend gcc_configure_langs jit
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> configure.dir ${workpath}/build
configure.cmd ${worksrcpath}/configure
<span style='display:block; white-space:pre;background:#ffe0e0;'>-configure.args --enable-languages=c,c++,objc,obj-c++,lto,fortran \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args --enable-languages=[join ${gcc_configure_langs} ","] \
</span> --libdir=${prefix}/lib/${name} \
--includedir=${prefix}/include/${name} \
--infodir=${prefix}/share/info \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -92,7 +99,8 @@ configure.args --enable-languages=c,c++,objc,obj-c++,lto,fortran \
</span> --with-as=${prefix}/bin/as \
--with-ld=${prefix}/bin/ld \
--with-ar=${prefix}/bin/ar \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- --with-bugurl=https://trac.macports.org/newticket
</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;'>+ --enable-host-shared
</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;color:#808080;'>diff --git a/lang/gcc8/files/patch-fix-libgccjit-soname b/lang/gcc8/files/patch-fix-libgccjit-soname
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..8ca4e7cbbcb
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/gcc8/files/patch-fix-libgccjit-soname
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,51 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- gcc/jit/Make-lang.in.orig 2020-08-27 13:02:17.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ gcc/jit/Make-lang.in 2020-08-27 13:29:30.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -40,16 +40,22 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # into the jit rule, but that needs a little bit of work
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # to do the right thing within all.cross.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-LIBGCCJIT_LINKER_NAME = libgccjit.so
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ LIBGCCJIT_VERSION_NUM = 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ LIBGCCJIT_MINOR_NUM = 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ LIBGCCJIT_RELEASE_NUM = 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-LIBGCCJIT_SONAME = $(LIBGCCJIT_LINKER_NAME).$(LIBGCCJIT_VERSION_NUM)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-LIBGCCJIT_FILENAME = \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- $(LIBGCCJIT_SONAME).$(LIBGCCJIT_MINOR_NUM).$(LIBGCCJIT_RELEASE_NUM)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-LIBGCCJIT_LINKER_NAME_SYMLINK = $(LIBGCCJIT_LINKER_NAME)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-LIBGCCJIT_SONAME_SYMLINK = $(LIBGCCJIT_SONAME)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ifeq ($(strip $(filter-out darwin%,$(target_os))),)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ LIBGCCJIT_LINKER_NAME = libgccjit.dylib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ LIBGCCJIT_FILENAME = libgccjit.$(LIBGCCJIT_VERSION_NUM).dylib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ LIBGCCJIT_LINKER_NAME = libgccjit.so
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ LIBGCCJIT_SONAME = $(LIBGCCJIT_LINKER_NAME).$(LIBGCCJIT_VERSION_NUM)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ LIBGCCJIT_FILENAME = \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(LIBGCCJIT_SONAME).$(LIBGCCJIT_MINOR_NUM).$(LIBGCCJIT_RELEASE_NUM)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ LIBGCCJIT_LINKER_NAME_SYMLINK = $(LIBGCCJIT_LINKER_NAME)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ LIBGCCJIT_SONAME_SYMLINK = $(LIBGCCJIT_SONAME)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Conditionalize the use of the LD_VERSION_SCRIPT_OPTION and
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # LD_SONAME_OPTION depending if configure found them, using $(if)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -278,12 +284,19 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ jit.install-common: installdirs
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(INSTALL_PROGRAM) $(LIBGCCJIT_FILENAME) \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(DESTDIR)/$(libdir)/$(LIBGCCJIT_FILENAME)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ifeq ($(strip $(filter-out darwin%,$(target_os))),)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ install_name_tool -id $(libdir)/$(LIBGCCJIT_FILENAME) $(DESTDIR)/$(libdir)/$(LIBGCCJIT_FILENAME)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ln -sf \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(LIBGCCJIT_FILENAME) \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(DESTDIR)/$(libdir)/$(LIBGCCJIT_LINKER_NAME)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ln -sf \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(LIBGCCJIT_FILENAME) \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(DESTDIR)/$(libdir)/$(LIBGCCJIT_SONAME_SYMLINK)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ln -sf \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(LIBGCCJIT_SONAME_SYMLINK)\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(DESTDIR)/$(libdir)/$(LIBGCCJIT_LINKER_NAME_SYMLINK)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(INSTALL_DATA) $(srcdir)/jit/libgccjit.h \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(DESTDIR)/$(includedir)/libgccjit.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(INSTALL_DATA) $(srcdir)/jit/libgccjit++.h \
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/gcc9/Portfile b/lang/gcc9/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 15865a68a9a..b0b5acf8a43 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/gcc9/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/gcc9/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -10,8 +10,8 @@ PortGroup xcode_workaround 1.0
</span> epoch 3
name gcc9
version 9.3.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 1
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-subport libgcc9 { revision 1 }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+subport libgcc9 { revision 2 }
</span> platforms darwin
categories lang
maintainers nomaintainer
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -38,6 +38,8 @@ checksums rmd160 e0ade31726b8fbb1eb308e2b1383a79633aef996 \
</span> sha256 71e197867611f6054aa1119b13a0c0abac12834765fe2d81f35ac57f84f742d1 \
size 70533868
<span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch-fix-libgccjit-soname
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> depends_lib port:cctools \
port:gmp \
path:lib/pkgconfig/isl.pc:isl \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -58,9 +60,14 @@ platform darwin {
</span> configure.pre_args-append --build=${build_arch}-apple-darwin${os.major}
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+set gcc_configure_langs {c c++ objc obj-c++ lto fortran}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${subport} eq "gcc9"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lappend gcc_configure_langs jit
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> configure.dir ${workpath}/build
configure.cmd ${worksrcpath}/configure
<span style='display:block; white-space:pre;background:#ffe0e0;'>-configure.args --enable-languages=c,c++,objc,obj-c++,lto,fortran \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args --enable-languages=[join ${gcc_configure_langs} ","] \
</span> --libdir=${prefix}/lib/${name} \
--includedir=${prefix}/include/${name} \
--infodir=${prefix}/share/info \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -83,7 +90,8 @@ configure.args --enable-languages=c,c++,objc,obj-c++,lto,fortran \
</span> --with-as=${prefix}/bin/as \
--with-ld=${prefix}/bin/ld \
--with-ar=${prefix}/bin/ar \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- --with-bugurl=https://trac.macports.org/newticket
</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;'>+ --enable-host-shared
</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;color:#808080;'>diff --git a/lang/gcc9/files/patch-fix-libgccjit-soname b/lang/gcc9/files/patch-fix-libgccjit-soname
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..8ca4e7cbbcb
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/gcc9/files/patch-fix-libgccjit-soname
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,51 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- gcc/jit/Make-lang.in.orig 2020-08-27 13:02:17.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ gcc/jit/Make-lang.in 2020-08-27 13:29:30.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -40,16 +40,22 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # into the jit rule, but that needs a little bit of work
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # to do the right thing within all.cross.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-LIBGCCJIT_LINKER_NAME = libgccjit.so
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ LIBGCCJIT_VERSION_NUM = 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ LIBGCCJIT_MINOR_NUM = 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ LIBGCCJIT_RELEASE_NUM = 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-LIBGCCJIT_SONAME = $(LIBGCCJIT_LINKER_NAME).$(LIBGCCJIT_VERSION_NUM)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-LIBGCCJIT_FILENAME = \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- $(LIBGCCJIT_SONAME).$(LIBGCCJIT_MINOR_NUM).$(LIBGCCJIT_RELEASE_NUM)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-LIBGCCJIT_LINKER_NAME_SYMLINK = $(LIBGCCJIT_LINKER_NAME)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-LIBGCCJIT_SONAME_SYMLINK = $(LIBGCCJIT_SONAME)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ifeq ($(strip $(filter-out darwin%,$(target_os))),)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ LIBGCCJIT_LINKER_NAME = libgccjit.dylib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ LIBGCCJIT_FILENAME = libgccjit.$(LIBGCCJIT_VERSION_NUM).dylib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ LIBGCCJIT_LINKER_NAME = libgccjit.so
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ LIBGCCJIT_SONAME = $(LIBGCCJIT_LINKER_NAME).$(LIBGCCJIT_VERSION_NUM)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ LIBGCCJIT_FILENAME = \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(LIBGCCJIT_SONAME).$(LIBGCCJIT_MINOR_NUM).$(LIBGCCJIT_RELEASE_NUM)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ LIBGCCJIT_LINKER_NAME_SYMLINK = $(LIBGCCJIT_LINKER_NAME)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ LIBGCCJIT_SONAME_SYMLINK = $(LIBGCCJIT_SONAME)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Conditionalize the use of the LD_VERSION_SCRIPT_OPTION and
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # LD_SONAME_OPTION depending if configure found them, using $(if)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -278,12 +284,19 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ jit.install-common: installdirs
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(INSTALL_PROGRAM) $(LIBGCCJIT_FILENAME) \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(DESTDIR)/$(libdir)/$(LIBGCCJIT_FILENAME)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ifeq ($(strip $(filter-out darwin%,$(target_os))),)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ install_name_tool -id $(libdir)/$(LIBGCCJIT_FILENAME) $(DESTDIR)/$(libdir)/$(LIBGCCJIT_FILENAME)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ln -sf \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(LIBGCCJIT_FILENAME) \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(DESTDIR)/$(libdir)/$(LIBGCCJIT_LINKER_NAME)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ln -sf \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(LIBGCCJIT_FILENAME) \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(DESTDIR)/$(libdir)/$(LIBGCCJIT_SONAME_SYMLINK)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ln -sf \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(LIBGCCJIT_SONAME_SYMLINK)\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(DESTDIR)/$(libdir)/$(LIBGCCJIT_LINKER_NAME_SYMLINK)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(INSTALL_DATA) $(srcdir)/jit/libgccjit.h \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(DESTDIR)/$(includedir)/libgccjit.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(INSTALL_DATA) $(srcdir)/jit/libgccjit++.h \
</span></pre><pre style='margin:0'>
</pre>