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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 287C7158086 for ; Sat, 16 Oct 2021 12:15:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4EF75E0817; Sat, 16 Oct 2021 12:15:45 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A235BE0817 for ; Sat, 16 Oct 2021 12:15:44 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A47BB342E67 for ; Sat, 16 Oct 2021 12:15:43 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 20111E3 for ; Sat, 16 Oct 2021 12:15:42 +0000 (UTC) From: "Fabian Groffen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Fabian Groffen" Message-ID: <1634386539.35bc9c8bbdf00b7aca254a4a1b5f622331548c0a.grobian@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-arch/gzip/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-arch/gzip/gzip-1.11.ebuild X-VCS-Directories: app-arch/gzip/ X-VCS-Committer: grobian X-VCS-Committer-Name: Fabian Groffen X-VCS-Revision: 35bc9c8bbdf00b7aca254a4a1b5f622331548c0a X-VCS-Branch: master Date: Sat, 16 Oct 2021 12:15:42 +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: c5c79f05-4906-4985-bda6-d7bb4ddf749f X-Archives-Hash: 0a512ad6cfb6f48a52905740972b0299 commit: 35bc9c8bbdf00b7aca254a4a1b5f622331548c0a Author: Fabian Groffen gentoo org> AuthorDate: Sat Oct 16 12:15:13 2021 +0000 Commit: Fabian Groffen gentoo org> CommitDate: Sat Oct 16 12:15:39 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=35bc9c8b app-arch/gzip-1.11: fix compilation on older Darwin Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Fabian Groffen gentoo.org> app-arch/gzip/gzip-1.11.ebuild | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app-arch/gzip/gzip-1.11.ebuild b/app-arch/gzip/gzip-1.11.ebuild index b41b9f81067..395fb2de49b 100644 --- a/app-arch/gzip/gzip-1.11.ebuild +++ b/app-arch/gzip/gzip-1.11.ebuild @@ -20,6 +20,15 @@ PATCHES=( "${FILESDIR}/${PN}-1.3.8-install-symlinks.patch" ) +src_prepare() { + default + if [[ ${CHOST} == *darwin* && ${CHOST##*darwin} -le 17 ]] ; then + # Fix older Darwin inline definition problem + sed -i -e '/define _GL_EXTERN_INLINE_STDHEADER_BUG/s/_BUG/_DISABLE/' \ + lib/config.hin || die + fi +} + src_configure() { use static && append-flags -static # avoid text relocation in gzip