From nobody Sat Oct 30 02:46:13 2021 X-Original-To: dev-commits-ports-branches@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 51745182297B; Sat, 30 Oct 2021 02:46:14 +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 4Hh3Zt1Hkkz4Yn1; Sat, 30 Oct 2021 02:46:14 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 F15882263F; Sat, 30 Oct 2021 02:46:13 +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 19U2kDHP030674; Sat, 30 Oct 2021 02:46:13 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 19U2kDna030673; Sat, 30 Oct 2021 02:46:13 GMT (envelope-from git) Date: Sat, 30 Oct 2021 02:46:13 GMT Message-Id: <202110300246.19U2kDna030673@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org From: Jan Beich Subject: git: b1a8e908da76 - 2021Q4 - devel/basu: unbreak build with LLD 13 (devel/llvm13 or -CURRENT) List-Id: Commits to the quarterly branches of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-branches@freebsd.org X-BeenThere: dev-commits-ports-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jbeich X-Git-Repository: ports X-Git-Refname: refs/heads/2021Q4 X-Git-Reftype: branch X-Git-Commit: b1a8e908da76d6f35eef7486f0a30b637cf879b2 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch 2021Q4 has been updated by jbeich: URL: https://cgit.FreeBSD.org/ports/commit/?id=b1a8e908da76d6f35eef7486f0a30b637cf879b2 commit b1a8e908da76d6f35eef7486f0a30b637cf879b2 Author: Evgeniy Khramtsov AuthorDate: 2021-10-09 15:37:45 +0000 Commit: Jan Beich CommitDate: 2021-10-30 02:46:08 +0000 devel/basu: unbreak build with LLD 13 (devel/llvm13 or -CURRENT) ld: error: undefined symbol: __start_BUS_ERROR_MAP >>> referenced by bus-error.c >>> libsystemd_static.a.p/sd-bus_bus-error.c.o:(bus_error_name_to_errno) in archive src/libsystemd/libsystemd_static.a ld: error: undefined symbol: __stop_BUS_ERROR_MAP >>> referenced by bus-error.c >>> libsystemd_static.a.p/sd-bus_bus-error.c.o:(bus_error_name_to_errno) in archive src/libsystemd/libsystemd_static.a >>> referenced by bus-error.c >>> libsystemd_static.a.p/sd-bus_bus-error.c.o:(bus_error_name_to_errno) in archive src/libsystemd/libsystemd_static.a cc: error: linker command failed with exit code 1 (use -v to see invocation) PR: 258812 Obtained from: https://github.com/systemd/systemd/commit/945317a4b69d (cherry picked from commit ffe546db80d95396051300a693d07acdcda457a3) --- devel/basu/files/patch-lld13 | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/devel/basu/files/patch-lld13 b/devel/basu/files/patch-lld13 new file mode 100644 index 000000000000..fde89d2ea9ac --- /dev/null +++ b/devel/basu/files/patch-lld13 @@ -0,0 +1,23 @@ +https://lists.sr.ht/~emersion/public-inbox/%3CCANvPQf_5qOdfbe4Tk029yVB6BHipmYfQnuuCVoTUv3N%3D2f8jfw%40mail.gmail.com%3E +https://github.com/systemd/systemd/commit/945317a4b69d33752c9513bb8994fe8d5a786ea6 + +--- src/libsystemd/sd-bus/bus-error.h.orig 2021-01-06 13:56:51 UTC ++++ src/libsystemd/sd-bus/bus-error.h +@@ -28,11 +28,17 @@ int bus_error_set_errnofv(sd_bus_error *e, int error, + * the bus error table, and BUS_ERROR_MAP_ELF_USE has to be used at + * least once per compilation unit (i.e. per library), to ensure that + * the error map is really added to the final binary. ++ * ++ * In addition, set the retain attribute so that the section cannot be ++ * discarded by ld --gc-sections -z start-stop-gc. Older compilers would ++ * warn for the unknown attribute, so just disable -Wattributes. + */ + + #define BUS_ERROR_MAP_ELF_REGISTER \ ++ _Pragma("GCC diagnostic ignored \"-Wattributes\"") \ + __attribute__ ((__section__("BUS_ERROR_MAP"))) \ + __attribute__ ((__used__)) \ ++ __attribute__ ((retain)) \ + __attribute__ ((aligned(8))) + + #define BUS_ERROR_MAP_ELF_USE(errors) \