commit:     529ac465f12bf9ead54425ac142154d86389ae2a
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 23 17:10:27 2020 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Thu Jul 23 17:10:48 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=529ac465

dev-libs/hiredis: don't call AR directly

While here, update other vars we pass to Makefile.

Closes: https://bugs.gentoo.org/723704
Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>

 dev-libs/hiredis/files/hiredis-0.14.1-honor-AR.patch | 11 +++++++++++
 dev-libs/hiredis/hiredis-0.14.1.ebuild               | 10 ++++++----
 2 files changed, 17 insertions(+), 4 deletions(-)

diff --git a/dev-libs/hiredis/files/hiredis-0.14.1-honor-AR.patch 
b/dev-libs/hiredis/files/hiredis-0.14.1-honor-AR.patch
new file mode 100644
index 00000000000..0bfcf0988e8
--- /dev/null
+++ b/dev-libs/hiredis/files/hiredis-0.14.1-honor-AR.patch
@@ -0,0 +1,11 @@
+--- a/Makefile
++++ b/Makefile
+@@ -51,7 +51,7 @@ DYLIB_MAJOR_NAME=$(LIBNAME).$(DYLIBSUFFIX).$(HIREDIS_MAJOR)
+ DYLIBNAME=$(LIBNAME).$(DYLIBSUFFIX)
+ DYLIB_MAKE_CMD=$(CC) -shared -Wl,-soname,$(DYLIB_MINOR_NAME) -o $(DYLIBNAME) 
$(LDFLAGS)
+ STLIBNAME=$(LIBNAME).$(STLIBSUFFIX)
+-STLIB_MAKE_CMD=ar rcs $(STLIBNAME)
++STLIB_MAKE_CMD=$(AR) rcs $(STLIBNAME)
+ 
+ # Platform-specific overrides
+ uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not')

diff --git a/dev-libs/hiredis/hiredis-0.14.1.ebuild 
b/dev-libs/hiredis/hiredis-0.14.1.ebuild
index 9028b420d2d..b0bf2fbfaed 100644
--- a/dev-libs/hiredis/hiredis-0.14.1.ebuild
+++ b/dev-libs/hiredis/hiredis-0.14.1.ebuild
@@ -18,7 +18,10 @@ RESTRICT="!test? ( test )"
 DEPEND="test? ( dev-db/redis )"
 
 src_prepare() {
-       local PATCHES=( "${FILESDIR}/${PN}-0.13.3-disable-network-tests.patch" )
+       local PATCHES=(
+               "${FILESDIR}"/${PN}-0.13.3-disable-network-tests.patch
+               "${FILESDIR}"/${PN}-0.14.1-honor-AR.patch
+       )
        default
 
        # use GNU ld syntax on Solaris
@@ -31,9 +34,8 @@ _build() {
                CC="$(tc-getCC)" \
                PREFIX="${EPREFIX}/usr" \
                LIBRARY_PATH="$(get_libdir)" \
-               ARCH= \
-               DEBUG= \
-               OPTIMIZATION="${CPPFLAGS}" \
+               DEBUG_FLAGS= \
+               OPTIMIZATION= \
                "$@"
 }
 

Reply via email to