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 EE8CB159C9C for ; Wed, 7 Aug 2024 19:34:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 641792BC082; Wed, 7 Aug 2024 19:34:34 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 4B85F2BC082 for ; Wed, 7 Aug 2024 19:34:34 +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 8FA763430CE for ; Wed, 7 Aug 2024 19:34:33 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A805B1EBF for ; Wed, 7 Aug 2024 19:34:30 +0000 (UTC) From: "Petr Vaněk" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Petr Vaněk" Message-ID: <1723059154.8af93c014c2cec57b4f93b963756266f5967c35c.arkamar@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-mail/mailfront/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-mail/mailfront/mailfront-2.22-r1.ebuild X-VCS-Directories: net-mail/mailfront/ X-VCS-Committer: arkamar X-VCS-Committer-Name: Petr Vaněk X-VCS-Revision: 8af93c014c2cec57b4f93b963756266f5967c35c X-VCS-Branch: master Date: Wed, 7 Aug 2024 19:34:30 +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: dd8399aa-07e7-4df0-9574-257c56af25b2 X-Archives-Hash: 765625fe285922280f76baf64c1e54fe commit: 8af93c014c2cec57b4f93b963756266f5967c35c Author: Petr Vaněk gentoo org> AuthorDate: Wed Aug 7 11:00:30 2024 +0000 Commit: Petr Vaněk gentoo org> CommitDate: Wed Aug 7 19:32:34 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8af93c01 net-mail/mailfront: respect AR, RANLIB and LDFLAGS Closes: https://bugs.gentoo.org/727834 Closes: https://bugs.gentoo.org/792249 Closes: https://bugs.gentoo.org/792252 Signed-off-by: Petr Vaněk gentoo.org> net-mail/mailfront/mailfront-2.22-r1.ebuild | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/net-mail/mailfront/mailfront-2.22-r1.ebuild b/net-mail/mailfront/mailfront-2.22-r1.ebuild index 1ca496fbbd32..d7880f49f5c7 100644 --- a/net-mail/mailfront/mailfront-2.22-r1.ebuild +++ b/net-mail/mailfront/mailfront-2.22-r1.ebuild @@ -19,13 +19,26 @@ RDEPEND="${DEPEND} virtual/qmail net-libs/cvm" +src_prepare() { + default + local sed_args=( + # make compilation more verbose + -e '/exec/ {h;s/exec/echo/g;G}' + # replace AR and be more verbose, bug #792249 + -e "/ar cr/ {h;s/ar/echo &/;G;s:ar:$(tc-getAR):g}" + # replace RANLIB and be more verbose, bug #792252 + -e "/ranlib/ {h;s/ranlib/echo &/;G;s:ranlib:$(tc-getRANLIB):g}" + ) + sed -i "${sed_args[@]}" Makefile || die +} + src_configure() { echo "${EPREFIX}/var/qmail" > conf-qmail || die echo "/var/qmail/bin" > conf-bin || die echo "/usr/$(get_libdir)/mailfront" > conf-modules || die echo "/usr/include" > conf-include || die echo "$(tc-getCC) ${CFLAGS}" > conf-cc || die - echo "$(tc-getCC) ${CFLAGS} -fPIC -shared" > conf-ccso || die + echo "$(tc-getCC) ${CFLAGS} -fPIC -shared ${LDFLAGS}" > conf-ccso || die echo "$(tc-getCC) ${LDFLAGS}" > conf-ld || die }