From a4ac94e6a29b969e5fe1681cf38e88084650621a Mon Sep 17 00:00:00 2001 From: Jakov Smolić Date: Thu, 7 Oct 2021 10:56:02 +0200 Subject: sci-libs/djbfft: Fix tc-directly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: https://bugs.gentoo.org/731874 Closes: https://bugs.gentoo.org/725432 Closes: https://bugs.gentoo.org/721352 Signed-off-by: Jakov Smolić --- sci-libs/djbfft/djbfft-0.76-r3.ebuild | 2 ++ .../djbfft/files/djbfft-0.76-tc-directly.patch | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 sci-libs/djbfft/files/djbfft-0.76-tc-directly.patch diff --git a/sci-libs/djbfft/djbfft-0.76-r3.ebuild b/sci-libs/djbfft/djbfft-0.76-r3.ebuild index a0dcc7e2d8fb..eee460123e69 100644 --- a/sci-libs/djbfft/djbfft-0.76-r3.ebuild +++ b/sci-libs/djbfft/djbfft-0.76-r3.ebuild @@ -17,6 +17,7 @@ PATCHES=( "${FILESDIR}"/${P}-gcc3.patch "${FILESDIR}"/${P}-shared.patch "${FILESDIR}"/${P}-headers.patch + "${FILESDIR}"/${P}-tc-directly.patch ) DOCS=( CHANGES README TODO VERSION ) @@ -35,6 +36,7 @@ src_prepare() { } multilib_src_configure() { + tc-export AR RANLIB [[ ${ABI} == x86* ]] && append-cflags -malign-double sed -i -e "s:\"lib\":\"$(get_libdir)\":" hier.c || die diff --git a/sci-libs/djbfft/files/djbfft-0.76-tc-directly.patch b/sci-libs/djbfft/files/djbfft-0.76-tc-directly.patch new file mode 100644 index 000000000000..340d3b7be6a6 --- /dev/null +++ b/sci-libs/djbfft/files/djbfft-0.76-tc-directly.patch @@ -0,0 +1,22 @@ +# https://bugs.gentoo.org/731874 +# https://bugs.gentoo.org/725432 +--- a/Makefile ++++ b/Makefile +@@ -736,7 +736,7 @@ warn-auto.sh systype + echo 'rm -f "$$main"'; \ + echo 'if [ "$${main##*.}" = "a" ]'; \ + echo 'then'; \ +- echo ' ar cr "$$main" $${1+"$$@"}'; \ ++ echo ' $(AR) cr "$$main" $${1+"$$@"}'; \ + case "`cat systype`" in \ + sunos-5.*) ;; \ + unix_sv*) ;; \ +@@ -745,7 +745,7 @@ warn-auto.sh systype + dgux-*) ;; \ + hp-ux-*) ;; \ + sco*) ;; \ +- *) echo ' ranlib "$$main"' ;; \ ++ *) echo ' $(RANLIB) "$$main"' ;; \ + esac; \ + echo 'else'; \ + echo ' exec `head -1 conf-ld` -shared -Wl,-soname,libdjbfft.so.0.7.6 -o "$$main" $${1+"$$@"}'; \ -- cgit v1.2.3-65-gdbad