From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id AE2CA15800F for ; Sat, 14 Jan 2023 19:17:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 42F63E08EC; Sat, 14 Jan 2023 19:17:33 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E39E6E08ED for ; Sat, 14 Jan 2023 19:17:32 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CE391340E5C for ; Sat, 14 Jan 2023 19:17:31 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 17DB6882 for ; Sat, 14 Jan 2023 19:17:29 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1673723677.5d2982b0e0e30d8caa74281cb61d25521726f819.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-auth/passwdqc/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-auth/passwdqc/passwdqc-1.4.0-r2.ebuild sys-auth/passwdqc/passwdqc-2.0.2-r1.ebuild X-VCS-Directories: sys-auth/passwdqc/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 5d2982b0e0e30d8caa74281cb61d25521726f819 X-VCS-Branch: master Date: Sat, 14 Jan 2023 19:17:29 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: a6420b2a-7803-4743-a7a1-ae348d65eb54 X-Archives-Hash: 8c03d02517bef50cf0c2bb895f9d57e5 commit: 5d2982b0e0e30d8caa74281cb61d25521726f819 Author: WANG Xuerui gentoo org> AuthorDate: Fri Jan 13 07:32:53 2023 +0000 Commit: Sam James gentoo org> CommitDate: Sat Jan 14 19:14:37 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d2982b0 sys-auth/passwdqc: fix build with lld-16 Signed-off-by: WANG Xuerui gentoo.org> Signed-off-by: Sam James gentoo.org> sys-auth/passwdqc/passwdqc-1.4.0-r2.ebuild | 15 +++++++++++++-- sys-auth/passwdqc/passwdqc-2.0.2-r1.ebuild | 15 +++++++++++++-- 2 files changed, 26 insertions(+), 4 deletions(-) diff --git a/sys-auth/passwdqc/passwdqc-1.4.0-r2.ebuild b/sys-auth/passwdqc/passwdqc-1.4.0-r2.ebuild index abb50e927b18..90ea5b5ec52c 100644 --- a/sys-auth/passwdqc/passwdqc-1.4.0-r2.ebuild +++ b/sys-auth/passwdqc/passwdqc-1.4.0-r2.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -inherit pam toolchain-funcs +inherit flag-o-matic pam toolchain-funcs DESCRIPTION="Password strength checking library (and PAM module)" HOMEPAGE="http://www.openwall.com/passwdqc/" @@ -40,6 +40,17 @@ src_prepare() { } +src_configure() { + # ideally we want !tc-ld-is-bfd for best future-proofing, but it needs + # https://github.com/gentoo/gentoo/pull/28355 + # mold needs this too but right now tc-ld-is-mold is also not available + if tc-ld-is-lld; then + append-ldflags -Wl,--undefined-version + fi + + default +} + _emake() { emake \ SHARED_LIBDIR="/usr/$(get_libdir)" \ diff --git a/sys-auth/passwdqc/passwdqc-2.0.2-r1.ebuild b/sys-auth/passwdqc/passwdqc-2.0.2-r1.ebuild index a81c6b2a6942..2710ce4c24dc 100644 --- a/sys-auth/passwdqc/passwdqc-2.0.2-r1.ebuild +++ b/sys-auth/passwdqc/passwdqc-2.0.2-r1.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -inherit pam toolchain-funcs +inherit flag-o-matic pam toolchain-funcs DESCRIPTION="Password strength checking library (and PAM module)" HOMEPAGE="http://www.openwall.com/passwdqc/" @@ -40,6 +40,17 @@ src_prepare() { } +src_configure() { + # ideally we want !tc-ld-is-bfd for best future-proofing, but it needs + # https://github.com/gentoo/gentoo/pull/28355 + # mold needs this too but right now tc-ld-is-mold is also not available + if tc-ld-is-lld; then + append-ldflags -Wl,--undefined-version + fi + + default +} + _emake() { emake \ SHARED_LIBDIR="/usr/$(get_libdir)" \