From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1347125-garchives=archives.gentoo.org@lists.gentoo.org> 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 41880158086 for <garchives@archives.gentoo.org>; Wed, 8 Dec 2021 00:39:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6A5DB2BC006; Wed, 8 Dec 2021 00:39:55 +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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id F38C22BC006 for <gentoo-commits@lists.gentoo.org>; Wed, 8 Dec 2021 00:39:54 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2E727343324 for <gentoo-commits@lists.gentoo.org>; Wed, 8 Dec 2021 00:39:53 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 88AE379 for <gentoo-commits@lists.gentoo.org>; Wed, 8 Dec 2021 00:39:51 +0000 (UTC) From: "Sam James" <sam@gentoo.org> 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" <sam@gentoo.org> Message-ID: <1638923348.7c21d5be105004e3f906a299955ac9b464a249c2.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/netpbm/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/netpbm/netpbm-10.86.27.ebuild X-VCS-Directories: media-libs/netpbm/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 7c21d5be105004e3f906a299955ac9b464a249c2 X-VCS-Branch: master Date: Wed, 8 Dec 2021 00:39:51 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: ca29f9e2-50ae-4e98-bcd4-cb85bb865e64 X-Archives-Hash: 2fa87c55a9d9fb9518f7694f89c18585 commit: 7c21d5be105004e3f906a299955ac9b464a249c2 Author: Viorel Munteanu <ceamac.paragon <AT> gmail <DOT> com> AuthorDate: Tue Dec 7 08:31:31 2021 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Wed Dec 8 00:29:08 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c21d5be media-libs/netpbm: fix compilation with hardened clang Closes: https://bugs.gentoo.org/828127 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Viorel Munteanu <ceamac.paragon <AT> gmail.com> Closes: https://github.com/gentoo/gentoo/pull/23207 Signed-off-by: Sam James <sam <AT> gentoo.org> media-libs/netpbm/netpbm-10.86.27.ebuild | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/media-libs/netpbm/netpbm-10.86.27.ebuild b/media-libs/netpbm/netpbm-10.86.27.ebuild index a4bc1a21670d..c43a3d9a31f5 100644 --- a/media-libs/netpbm/netpbm-10.86.27.ebuild +++ b/media-libs/netpbm/netpbm-10.86.27.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit multilib toolchain-funcs +inherit flag-o-matic multilib toolchain-funcs DESCRIPTION="A set of utilities for converting to/from the netpbm (and related) formats" HOMEPAGE="http://netpbm.sourceforge.net/" @@ -73,6 +73,13 @@ netpbm_config() { fi } +# for bug #828127 +netpbm_cflags_for_build() { + if is-flagq -fPIC; then + echo -fPIC + fi +} + src_prepare() { default @@ -147,6 +154,7 @@ src_configure() { STRIPFLAG = CFLAGS_SHLIB = -fPIC + CFLAGS_FOR_BUILD += $(netpbm_cflags_for_build) LDRELOC = \$(LD) -r LDSHLIB = $(netpbm_ldshlib)