aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenzo Salvadore <salvadore@FreeBSD.org>2022-10-22 10:31:35 +0000
committerLorenzo Salvadore <salvadore@FreeBSD.org>2022-10-22 10:37:24 +0000
commitf61fb49b2e76fd4f7a5b7a11510b5109206c19f2 (patch)
treebfa2871fae4e2f154aab620728c4826372ba4684
parent14abc130b91b6752a7906a3bf029214c3667772c (diff)
downloadports-f61fb49b2e76fd4f7a5b7a11510b5109206c19f2.tar.gz
ports-f61fb49b2e76fd4f7a5b7a11510b5109206c19f2.zip
lang/gcc11-devel: Update to 11.3.1.s20221021 and enable D lang compiler
- Update to 11.3.1.s20221021. - Enable D lang compiler (second attempt): this time the values in libphobos/libdruntime/core/sys/freebsd/config.d have been updated to include FreeBSD 14 (CURRENT), and while here the values corresponding to FreeBSD 12 and 13 have also been updated to the latest supported version [1]. PR: 266825 [1] Co-authored-by: Daniel Engberg <diizzy@FreeBSD.org>
-rw-r--r--lang/gcc11-devel/Makefile5
-rw-r--r--lang/gcc11-devel/distinfo6
-rw-r--r--lang/gcc11-devel/files/patch-libphobos_libdruntime_core_sys_freebsd_config.d14
-rw-r--r--lang/gcc11-devel/pkg-plist3
4 files changed, 23 insertions, 5 deletions
diff --git a/lang/gcc11-devel/Makefile b/lang/gcc11-devel/Makefile
index 00c636938bcc..82840b41cd9c 100644
--- a/lang/gcc11-devel/Makefile
+++ b/lang/gcc11-devel/Makefile
@@ -1,5 +1,5 @@
PORTNAME= gcc
-PORTVERSION= 11.3.1.s20221014
+PORTVERSION= 11.3.1.s20221021
CATEGORIES= lang
MASTER_SITES= GCC/snapshots/${DIST_VERSION}
PKGNAMESUFFIX= ${SUFFIX}-devel
@@ -75,7 +75,7 @@ CONFIGURE_TARGET= x86_64-portbld-${OPSYS:tl}${OSREL}
CONFIGURE_ARGS+= --with-abi=elfv2
.endif
-LANGUAGES:= c,c++,objc,fortran,jit
+LANGUAGES:= c,c++,d,objc,fortran,jit
TARGLIB= ${PREFIX}/lib/gcc${SUFFIX}
TARGLIB32= ${PREFIX}/lib32 # The version information is added later
LIBEXEC= ${PREFIX}/libexec/gcc${SUFFIX}
@@ -120,6 +120,7 @@ INFO= gcc${SUFFIX}/cpp \
gcc${SUFFIX}/gcc \
gcc${SUFFIX}/gccinstall \
gcc${SUFFIX}/gccint \
+ gcc${SUFFIX}/gdc \
gcc${SUFFIX}/gfortran \
gcc${SUFFIX}/libgccjit \
gcc${SUFFIX}/libgomp
diff --git a/lang/gcc11-devel/distinfo b/lang/gcc11-devel/distinfo
index 4da698c8acd9..ecee85938c40 100644
--- a/lang/gcc11-devel/distinfo
+++ b/lang/gcc11-devel/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1665822677
-SHA256 (gcc-11-20221014.tar.xz) = 5b8804cd348168e200ce36aa36b4d9cbe69a27d4bc3819e1602de63b8411badf
-SIZE (gcc-11-20221014.tar.xz) = 75801968
+TIMESTAMP = 1666392616
+SHA256 (gcc-11-20221021.tar.xz) = dd890e520ce62cb28b7756f4acdf2094e8ad82a68683434fad49416f34b50802
+SIZE (gcc-11-20221021.tar.xz) = 75798884
diff --git a/lang/gcc11-devel/files/patch-libphobos_libdruntime_core_sys_freebsd_config.d b/lang/gcc11-devel/files/patch-libphobos_libdruntime_core_sys_freebsd_config.d
new file mode 100644
index 000000000000..1c526cc8bb0b
--- /dev/null
+++ b/lang/gcc11-devel/files/patch-libphobos_libdruntime_core_sys_freebsd_config.d
@@ -0,0 +1,14 @@
+--- libphobos/libdruntime/core/sys/freebsd/config.d.orig 2022-10-21 22:39:24 UTC
++++ libphobos/libdruntime/core/sys/freebsd/config.d
+@@ -13,8 +13,9 @@ public import core.sys.posix.config;
+ // __FreeBSD_version numbers are documented in the Porter's Handbook.
+ // NOTE: When adding newer versions of FreeBSD, verify all current versioned
+ // bindings are still compatible with the release.
+- version (FreeBSD_13) enum __FreeBSD_version = 1300000;
+-else version (FreeBSD_12) enum __FreeBSD_version = 1202000;
++ version (FreeBSD_14) enum __FreeBSD_version = 1400000;
++else version (FreeBSD_13) enum __FreeBSD_version = 1301000;
++else version (FreeBSD_12) enum __FreeBSD_version = 1203000;
+ else version (FreeBSD_11) enum __FreeBSD_version = 1104000;
+ else version (FreeBSD_10) enum __FreeBSD_version = 1004000;
+ else version (FreeBSD_9) enum __FreeBSD_version = 903000;
diff --git a/lang/gcc11-devel/pkg-plist b/lang/gcc11-devel/pkg-plist
index cada193c9907..1856252e6fad 100644
--- a/lang/gcc11-devel/pkg-plist
+++ b/lang/gcc11-devel/pkg-plist
@@ -5,6 +5,7 @@ bin/%%GNU_HOST%%-gcc-%%GCC_VERSION%%
bin/%%GNU_HOST%%-gcc-ar%%SUFFIX%%
bin/%%GNU_HOST%%-gcc-nm%%SUFFIX%%
bin/%%GNU_HOST%%-gcc-ranlib%%SUFFIX%%
+bin/%%GNU_HOST%%-gdc%%SUFFIX%%
bin/%%GNU_HOST%%-gfortran%%SUFFIX%%
bin/c++%%SUFFIX%%
bin/cpp%%SUFFIX%%
@@ -13,6 +14,7 @@ bin/gcc%%SUFFIX%%
bin/gcc-ar%%SUFFIX%%
bin/gcc-nm%%SUFFIX%%
bin/gcc-ranlib%%SUFFIX%%
+bin/gdc%%SUFFIX%%
bin/gcov%%SUFFIX%%
bin/gcov-dump%%SUFFIX%%
bin/gcov-tool%%SUFFIX%%
@@ -26,6 +28,7 @@ man/man1/gcc%%SUFFIX%%.1.gz
man/man1/gcov%%SUFFIX%%.1.gz
man/man1/gcov-dump%%SUFFIX%%.1.gz
man/man1/gcov-tool%%SUFFIX%%.1.gz
+man/man1/gdc%%SUFFIX%%.1.gz
man/man1/gfortran%%SUFFIX%%.1.gz
man/man1/lto-dump%%SUFFIX%%.1.gz
share/gcc-%%GCC_VERSION%%/python/libstdcxx/__init__.py