summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-07-14 03:18:24 +0100
committerSam James <sam@gentoo.org>2022-07-14 03:18:24 +0100
commit6bfd8c211053c93b57afdc8ec27b41188615d9c2 (patch)
treeeec152812ea7e7ef9e64fdda69e97e26e5d48e9f /media-libs/libmtp
parentapp-crypt/gnupg: backport yubikey fix (diff)
downloadgentoo-6bfd8c211053c93b57afdc8ec27b41188615d9c2.tar.gz
gentoo-6bfd8c211053c93b57afdc8ec27b41188615d9c2.tar.bz2
gentoo-6bfd8c211053c93b57afdc8ec27b41188615d9c2.zip
media-libs/libmtp: fix -fuse-ld filtering
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-libs/libmtp')
-rw-r--r--media-libs/libmtp/libmtp-1.1.20.ebuild6
-rw-r--r--media-libs/libmtp/libmtp-9999.ebuild6
2 files changed, 12 insertions, 0 deletions
diff --git a/media-libs/libmtp/libmtp-1.1.20.ebuild b/media-libs/libmtp/libmtp-1.1.20.ebuild
index 5e6a85f46c71..1d3b612f5449 100644
--- a/media-libs/libmtp/libmtp-1.1.20.ebuild
+++ b/media-libs/libmtp/libmtp-1.1.20.ebuild
@@ -9,6 +9,7 @@ if [[ ${PV} == 9999* ]]; then
EGIT_REPO_URI="https://git.code.sf.net/p/${PN}/code"
inherit autotools git-r3
else
+ inherit libtool
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~x86"
fi
@@ -50,6 +51,11 @@ src_prepare() {
touch config.rpath || die # This is from upstream autogen.sh
fi
eautoreconf
+ else
+ # Needed to fix -fuse-ld=* filtering (e.g. lld)
+ # Can drop this once copyright year in libtool file included
+ # says >= 2021 (was 2014 at time of writing).
+ elibtoolize
fi
}
diff --git a/media-libs/libmtp/libmtp-9999.ebuild b/media-libs/libmtp/libmtp-9999.ebuild
index ab7478bda189..c967b9ef0cc5 100644
--- a/media-libs/libmtp/libmtp-9999.ebuild
+++ b/media-libs/libmtp/libmtp-9999.ebuild
@@ -9,6 +9,7 @@ if [[ ${PV} == 9999* ]]; then
EGIT_REPO_URI="https://git.code.sf.net/p/${PN}/code"
inherit autotools git-r3
else
+ inherit libtool
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~x86"
fi
@@ -46,6 +47,11 @@ src_prepare() {
touch config.rpath || die # This is from upstream autogen.sh
fi
eautoreconf
+ else
+ # Needed to fix -fuse-ld=* filtering (e.g. lld)
+ # Can drop this once copyright year in libtool file included
+ # says >= 2021 (was 2014 at time of writing).
+ elibtoolize
fi
}