commit:     2d5296df85f652c9c0f3dbf29aeaccedb4d43588
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Tue Aug  3 14:17:04 2021 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> 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 <soap <AT> 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[@]}" "$@"
 }

Reply via email to