From nobody Fri Oct 28 14:56:09 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MzQbY4gnKz4gHgl; Fri, 28 Oct 2022 14:56:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MzQbY45kqz3mqZ; Fri, 28 Oct 2022 14:56:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666968969; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ZmcU7fYPOO/Y4pUXgo2HaRwRO/BA4konlL1JwdzhrR8=; b=Sp66wyIMEysb7UGIhwFtFA7FIaAyPMBtqoAOFZfoxpcHBHr2BDFrzFSnytBA9LrW+vw0uh LoBMGRcnAjGoESDHAWHc4R2kZ/EHUd+n7imgwbRYIrq8zMx2nmbpM+p/GEDUVzscoNbcBY e9a8rfYEx574V0KQawq1JBLW0IoqeJNBIctpeiZVm2+lOMbPgtV1L6ZQrlDnW+5Q9cnzgx +UVjbQT5G/dE4MImh4bDG1ISitSGLHGExEHepVLlNZCJydVjkyhj7x35GWGS5XgBTiarEn SOLRKUabObSoZFHr5nkZANHaeym1idWT24TR+WXslYWDUga7P3D4k3qJX/MHcQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4MzQbY382DzhcD; Fri, 28 Oct 2022 14:56:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 29SEu9UL097863; Fri, 28 Oct 2022 14:56:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 29SEu9xZ097862; Fri, 28 Oct 2022 14:56:09 GMT (envelope-from git) Date: Fri, 28 Oct 2022 14:56:09 GMT Message-Id: <202210281456.29SEu9xZ097862@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Lorenzo Salvadore Subject: git: 57936dba89ea - main - lang/gcc11: Enable D lang compiler List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: salvadore X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 57936dba89ea208e5dbc1bd2d7fda3d29a1838b3 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666968969; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ZmcU7fYPOO/Y4pUXgo2HaRwRO/BA4konlL1JwdzhrR8=; b=ON3haUJu5G/psWm+RBcyWtrOh8kS+JJivxjzxltjqORwfDRe1yiOT5ieBtLhHcbUqMCQ3c bWaZ8DbJxA39RpCSna77wxbxv85IaLToigKBsIv/FCPDSBczv/Lka7q31pt8b7ym1vdiNr MZdehVDCo0ec/rU2HVZ81pr4SggkQjLkCgD3iN8AuYpmShZGOQ8khtWHqAj1VfrgKuCRPa 5ZPIcIz47vSHjkgmgBlAfx3UVZOIgCnjEP9OAh7Zwtvknqq7iJB5OuXICCNS+DiF+V5hET nsXSqatfDmX/XDxAuI4DqrXEsvk1Fu+4oWMFO4F+Xl3u8k+6hqktI863AyQdKg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1666968969; a=rsa-sha256; cv=none; b=KqAvW3Juf5zZyBvCi6duc+FDXUOOENq2SZOIhe+VAE5LVTCPTjdrYaRWhNgNMdZYAiC63s ARTvt8fFrOqbaHj4o3p1k4qUI1Y3Hr66wK8JD6vWguXEAqVlatPzko87nfBx3S9M5PnqmB B/FTUN3HLofrlCjwzFhAAmjgo7Z61sRS3hpBVBU9o0vgiOnEyYdlcfQ6ATQV94R/FJ6aP1 ymrQwSCCZSMG5RcRxAsDXQF62cxrQePAPCDY2sufCrGsNyG0b0tmVynpgXrem1bpOUxR19 JnFeAVyyEozKzIUPNb+8bfC8EpJcjqEw/T9y103HPnG3+mGZb7BjTJvmqBgisQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by salvadore: URL: https://cgit.FreeBSD.org/ports/commit/?id=57936dba89ea208e5dbc1bd2d7fda3d29a1838b3 commit 57936dba89ea208e5dbc1bd2d7fda3d29a1838b3 Author: Lorenzo Salvadore AuthorDate: 2022-10-27 21:03:38 +0000 Commit: Lorenzo Salvadore CommitDate: 2022-10-28 14:55:48 +0000 lang/gcc11: Enable D lang compiler Forward the part of commit f61fb49b2e76fd4f7a5b7a11510b5109206c19f2 that enables D lang compiler. PR: 266825 Co-authored-by: Daniel Engberg --- lang/gcc11/Makefile | 5 +++-- .../patch-libphobos_libdruntime_core_sys_freebsd_config.d | 14 ++++++++++++++ lang/gcc11/pkg-plist | 3 +++ 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/lang/gcc11/Makefile b/lang/gcc11/Makefile index e41d8ee8cdd9..50daf6cc11f2 100644 --- a/lang/gcc11/Makefile +++ b/lang/gcc11/Makefile @@ -1,6 +1,6 @@ PORTNAME= gcc PORTVERSION= 11.3.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= lang MASTER_SITES= GCC PKGNAMESUFFIX= ${SUFFIX} @@ -69,7 +69,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} @@ -114,6 +114,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/files/patch-libphobos_libdruntime_core_sys_freebsd_config.d b/lang/gcc11/files/patch-libphobos_libdruntime_core_sys_freebsd_config.d new file mode 100644 index 000000000000..1c526cc8bb0b --- /dev/null +++ b/lang/gcc11/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/pkg-plist b/lang/gcc11/pkg-plist index cada193c9907..86cafdfda739 100644 --- a/lang/gcc11/pkg-plist +++ b/lang/gcc11/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%% @@ -16,6 +17,7 @@ bin/gcc-ranlib%%SUFFIX%% bin/gcov%%SUFFIX%% bin/gcov-dump%%SUFFIX%% bin/gcov-tool%%SUFFIX%% +bin/gdc%%SUFFIX%% bin/gfortran%%SUFFIX%% bin/lto-dump%%SUFFIX%% include/libgccjit++.h @@ -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