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 DEC14139360 for ; Tue, 3 Aug 2021 14:17:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0553DE09D1; Tue, 3 Aug 2021 14:17:21 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DB2F3E09D1 for ; Tue, 3 Aug 2021 14:17:20 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0C648343BBC for ; Tue, 3 Aug 2021 14:17:20 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9A05B7A7 for ; Tue, 3 Aug 2021 14:17:18 +0000 (UTC) From: "David Seifert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Seifert" Message-ID: <1628000224.2d5296df85f652c9c0f3dbf29aeaccedb4d43588.soap@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/libcap/, sys-libs/libcap/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-libs/libcap/files/libcap-2.52-build-system-fixes.patch sys-libs/libcap/libcap-2.52.ebuild X-VCS-Directories: sys-libs/libcap/ sys-libs/libcap/files/ X-VCS-Committer: soap X-VCS-Committer-Name: David Seifert X-VCS-Revision: 2d5296df85f652c9c0f3dbf29aeaccedb4d43588 X-VCS-Branch: master Date: Tue, 3 Aug 2021 14:17:18 +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: 4ddbdb82-7bb3-4b66-a6af-0c406be7df20 X-Archives-Hash: 168a9279132af99ead4e71f8705609aa commit: 2d5296df85f652c9c0f3dbf29aeaccedb4d43588 Author: David Seifert gentoo org> AuthorDate: Tue Aug 3 14:17:04 2021 +0000 Commit: David Seifert gentoo org> CommitDate: Tue Aug 3 14:17:04 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d5296df sys-libs/libcap: proper passing of objcopy to build system Should be a proper fix, not just a rough attempt, as I've tested via moving the binary away and all looks good. Closes: https://bugs.gentoo.org/806274 Signed-off-by: David Seifert gentoo.org> .../libcap/files/libcap-2.52-build-system-fixes.patch | 17 ++++++++++------- sys-libs/libcap/libcap-2.52.ebuild | 3 --- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/sys-libs/libcap/files/libcap-2.52-build-system-fixes.patch b/sys-libs/libcap/files/libcap-2.52-build-system-fixes.patch index 3c9bf03f397..2d6b441c485 100644 --- a/sys-libs/libcap/files/libcap-2.52-build-system-fixes.patch +++ b/sys-libs/libcap/files/libcap-2.52-build-system-fixes.patch @@ -42,24 +42,27 @@ diff --git a/Make.Rules b/Make.Rules index 8f7906c..fea4c78 100644 --- a/Make.Rules +++ b/Make.Rules -@@ -52,7 +52,6 @@ GOMAJOR=1 +@@ -52,18 +52,13 @@ GOMAJOR=1 # Compilation specifics KERNEL_HEADERS := $(topdir)/libcap/include/uapi -IPATH += -fPIC -I$(KERNEL_HEADERS) -I$(topdir)/libcap/include - CC := $(CROSS_COMPILE)gcc +-CC := $(CROSS_COMPILE)gcc DEFINES := -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -@@ -60,7 +59,7 @@ COPTS ?= -O2 + COPTS ?= -O2 CFLAGS ?= $(COPTS) $(DEFINES) BUILD_CC ?= $(CC) BUILD_COPTS ?= -O2 -BUILD_CFLAGS ?= $(BUILD_COPTS) $(DEFINES) $(IPATH) +-AR := $(CROSS_COMPILE)ar +-RANLIB := $(CROSS_COMPILE)ranlib +-OBJCOPY := $(CROSS_COMPILE)objcopy +BUILD_CFLAGS ?= $(CFLAGS) - AR := $(CROSS_COMPILE)ar - RANLIB := $(CROSS_COMPILE)ranlib - OBJCOPY := $(CROSS_COMPILE)objcopy -@@ -77,10 +76,13 @@ LIBPSXLIB := -L$(topdir)/libcap -lpsx $(PSXLINKFLAGS) + DEBUG = -g #-DDEBUG + WARNINGS=-Wall -Wwrite-strings \ + -Wpointer-arith -Wcast-qual -Wcast-align \ +@@ -77,10 +72,13 @@ BUILD_GPERF := $(shell which gperf >/dev/null 2>/dev/null && echo yes) diff --git a/sys-libs/libcap/libcap-2.52.ebuild b/sys-libs/libcap/libcap-2.52.ebuild index cd7de80ecb4..6dc8e00f317 100644 --- a/sys-libs/libcap/libcap-2.52.ebuild +++ b/sys-libs/libcap/libcap-2.52.ebuild @@ -47,9 +47,6 @@ run_emake() { PAM_CAP="$(usex pam yes no)" DYNAMIC=yes GOLANG=no - CC="$(tc-getCC)" - AR="$(tc-getAR)" - RANLIB="$(tc-getRANLIB)" ) emake "${args[@]}" "$@" }