From 8556ea8399e782d2c13a15719c58a153c645b3c6 Mon Sep 17 00:00:00 2001 From: Thomas Deutschmann Date: Fri, 25 Dec 2020 14:03:18 +0100 Subject: sys-block/open-isns: respect AR Closes: https://bugs.gentoo.org/721492 Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Thomas Deutschmann --- .../files/open-isns-0.100-respect-AR.patch | 30 ++++++++++++++++++++++ sys-block/open-isns/open-isns-0.100.ebuild | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 sys-block/open-isns/files/open-isns-0.100-respect-AR.patch (limited to 'sys-block') diff --git a/sys-block/open-isns/files/open-isns-0.100-respect-AR.patch b/sys-block/open-isns/files/open-isns-0.100-respect-AR.patch new file mode 100644 index 000000000000..66e52e548125 --- /dev/null +++ b/sys-block/open-isns/files/open-isns-0.100-respect-AR.patch @@ -0,0 +1,30 @@ +--- a/Makefile.in ++++ b/Makefile.in +@@ -33,6 +33,7 @@ else + SOLIB_VERSION_OPTS = + endif + ++AR = @AR@ + CC = @CC@ + CPPFLAGS= @CPPFLAGS@ + CFLAGS = @CFLAGS@ -I. -Iinclude -I$(srcdir) -I$(srcdir)/include +@@ -161,7 +162,7 @@ solib-message.o: message.c + + ifeq ($(BUILD_STATIC),1) + $(LIB): $(LIBOBJS) +- ar cr $@ $(LIBOBJS) ++ $(AR) cr $@ $(LIBOBJS) + else + $(LIB): + endif +--- a/configure.ac ++++ b/configure.ac +@@ -4,6 +4,7 @@ AC_CONFIG_AUX_DIR([aclocal]) + + AC_CONFIG_HEADER(config.h) + ++AM_PROG_AR + AC_PROG_CC + AC_CANONICAL_HOST + AC_C_BIGENDIAN + diff --git a/sys-block/open-isns/open-isns-0.100.ebuild b/sys-block/open-isns/open-isns-0.100.ebuild index 878669c9073a..63213dbfd792 100644 --- a/sys-block/open-isns/open-isns-0.100.ebuild +++ b/sys-block/open-isns/open-isns-0.100.ebuild @@ -25,6 +25,8 @@ RDEPEND="${DEPEND}" PATCHES=( "${FILESDIR}/${PN}-0.98-libressl-compatibility.patch" + "${FILESDIR}/${PN}-0.100-respect-AR.patch" + # Upstream patches (can usually be removed with next version bump) "${FILESDIR}"/${P}-no_Werror.patch ) -- cgit v1.2.3-65-gdbad