From nobody Sat May 13 14:22:58 2023 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 4QJSXL60v9z4BRBM; Sat, 13 May 2023 14:22:58 +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 4QJSXL5SGRz4GQB; Sat, 13 May 2023 14:22:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1683987778; 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=62HndEraZfRDOdVe/BRZKE3meikaIemN3uWd4sJ80wE=; b=yim4VpfUAC334Tg0Yk/tqo+jsoDDI37zoWapXnJv808CE0aijVR9E3lrvQyQUbzqWiimGr k7KLE2hfOdCgp1pNSAfUjyI/xRxX7thXjtGOnXfqTrmfclY3UOR43eCYLOsc0sEAUlVBXW 2cVDf4pu0ZfQJXAeT1SOckR94NRgf2bCyQEEGPEV0RUydQoues9xaXe2Xq6MUtQaLsr77H +vDaWVzAyHPsCMcLBvOhmCCoUaNWsHy6CZDHrP6Gn6YwWGkQzFiP06QuLoCKqv08wlp+Hg 1dgIoQ90ZdZ0xWuoaR42EMKhSxw2l748xmuBz3/mxVMgMqGxRiPKVN9rEXMCyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1683987778; 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=62HndEraZfRDOdVe/BRZKE3meikaIemN3uWd4sJ80wE=; b=k4ma3ZG84sz5BJMC8fiZjNGVP/4DYk0BfiHDFT/0yyVh5W0+F3dVVx+nDBCPnHXpSJ57HU avChFOWvQ35+FZepAxrMb2fMiZC6wHNDAIOhfaWSk6VjZFPzaRh0Sml9adJtbjiVfHPJ7m qENbpf8QlLJv+t4tFpvkXbmVK+dtmfa466LEcMvF/bwOOZqj5+iFgAN7eXXfk4uOUsyd0Q j7lXgwySVl0+XK3yCMwzo6zHp3j4BwM1W526qImr7Elz4SwZvWXCgiHlzUkoqCh5VIkgUG aqOiNl/epBxz+WCR7ppLDfg9QDMQAj/Bwpv+2EXg2rDST4Vk07LsdVBFhLgxUw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1683987778; a=rsa-sha256; cv=none; b=GliUZ+IBhe6dh4AAD2Pyqqk6E+JE3vmeJWg5MucTXavoG4QAV6wOhvxoUeVZtr2Q/q3fGw 72Oq+4falkFALazbO9cjo0xGqdxehLq9V2VmNxYzvGqJ51BR8oIw+7ggRNTtzMBSH+a+Bo ZfsZSYryabwgD3ssY3QXWTn6awawvETEdxXKkTR1/9b5pxAJAjzRBZk7KtxHHw8rSuGr62 hYclJyOdb4rsvp/SpM++L3AJU/aJ82ENhcRF79TS2j3yDDwUUQBm3pZFX6PHGNC3qMI/Qz P6xWKkEEIvUjkcKnJ99bSL7zzfphx1QbVgTKooPJjM8MtPaWMo/LirNRr3EmQA== 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 4QJSXL4TbVzLCr; Sat, 13 May 2023 14:22:58 +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 34DEMwgS000523; Sat, 13 May 2023 14:22:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 34DEMwC7000522; Sat, 13 May 2023 14:22:58 GMT (envelope-from git) Date: Sat, 13 May 2023 14:22:58 GMT Message-Id: <202305131422.34DEMwC7000522@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: 8c2a479977f0 - main - lang/gcc12-devel: Enable support for .init_array and .fini_array 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: 8c2a479977f02cc51675c47a5c7be317fdf8f4f4 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by salvadore: URL: https://cgit.FreeBSD.org/ports/commit/?id=8c2a479977f02cc51675c47a5c7be317fdf8f4f4 commit 8c2a479977f02cc51675c47a5c7be317fdf8f4f4 Author: Lorenzo Salvadore AuthorDate: 2023-05-08 08:49:08 +0000 Commit: Lorenzo Salvadore CommitDate: 2023-05-13 14:22:50 +0000 lang/gcc12-devel: Enable support for .init_array and .fini_array Enable support for .init_array and .fini_array, which FreeBSD supports since commit 83aa9cc00c2d83d05a0efe7a1496d8aab4a153bb in the src repository. There __FreeBSD_version is 1000009, so we start enabling the support from __FreeBSD_version == 1000010. See also review https://reviews.freebsd.org/D39968 for lang/gcc11-devel. Reported by: Dan McGregor --- lang/gcc12-devel/Makefile | 1 + lang/gcc12-devel/files/patch-gcc_configure | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/lang/gcc12-devel/Makefile b/lang/gcc12-devel/Makefile index 85478ef79681..1d6e4573f4e7 100644 --- a/lang/gcc12-devel/Makefile +++ b/lang/gcc12-devel/Makefile @@ -1,5 +1,6 @@ PORTNAME= gcc PORTVERSION= 12.2.1.s20230428 +PORTREVISION= 1 CATEGORIES= lang MASTER_SITES= GCC/snapshots/${DIST_VERSION} PKGNAMESUFFIX= ${SUFFIX}-devel diff --git a/lang/gcc12-devel/files/patch-gcc_configure b/lang/gcc12-devel/files/patch-gcc_configure new file mode 100644 index 000000000000..d4e7e8d23e60 --- /dev/null +++ b/lang/gcc12-devel/files/patch-gcc_configure @@ -0,0 +1,20 @@ +Enable support for .init_array and .fini_array, which FreeBSD supports +since commit 83aa9cc00c2d83d05a0efe7a1496d8aab4a153bb in the src +repository. + +There __FreeBSD_version is 1000009, so we start enabling the support +from __FreeBSD_version == 1000010. +--- gcc/configure.orig 2023-05-04 17:36:54 UTC ++++ gcc/configure +@@ -24214,6 +24214,11 @@ EOF + #else + # if defined __sun__ && defined __svr4__ + /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */ ++# elif defined __FreeBSD__ ++# include ++# if __FreeBSD_version >= 1000010 ++ /* FreeBSD supports .init_array/.fini_array since FreeBSD 10. */ ++# endif + # else + # error The C library not known to support .init_array/.fini_array + # endif