Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/gforth/
Date: Mon, 05 Jul 2021 08:10:17
Message-Id: 1625472578.e40aad97e99802d7ea05f6046940418f8f34c008.slyfox@gentoo
1 commit: e40aad97e99802d7ea05f6046940418f8f34c008
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jul 5 08:09:21 2021 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Mon Jul 5 08:09:38 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e40aad97
7
8 dev-lang/gforth: add a hack for slibtool
9
10 For library building gforth relies on a `libtool` binary to be
11 present at runtime.
12
13 Reported-by: Alessandro Barbieri
14 Closes: https://bugs.gentoo.org/799371
15 Package-Manager: Portage-3.0.20, Repoman-3.0.3
16 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
17
18 dev-lang/gforth/gforth-0.7.3-r2.ebuild | 9 +++++++++
19 1 file changed, 9 insertions(+)
20
21 diff --git a/dev-lang/gforth/gforth-0.7.3-r2.ebuild b/dev-lang/gforth/gforth-0.7.3-r2.ebuild
22 index 874e12892be..dfd7e9a7b68 100644
23 --- a/dev-lang/gforth/gforth-0.7.3-r2.ebuild
24 +++ b/dev-lang/gforth/gforth-0.7.3-r2.ebuild
25 @@ -30,6 +30,15 @@ PATCHES=(
26 src_prepare() {
27 default
28
29 + # gforth uses both $LIBTOOL and $GNU_LIBTOOL.
30 + # Let's settle on the former: bug #799371
31 + if [[ -n $LIBTOOL ]]; then
32 + export GNU_LIBTOOL=$LIBTOOL
33 + # ./configure does not generate it, but slibtool assumes
34 + # it's around
35 + ln -s ${EPREFIX}/usr/bin/libtool libtool || die
36 + fi
37 +
38 # We patches both configure and configure.ac.
39 # Avoid reruining aclocal.
40 touch aclocal.m4 configure || die