From bc2b3aa851eda2fa46b4253d04b1879831188752 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Sun, 5 May 2024 00:44:54 -0400 Subject: [PATCH] media-libs/libltc: run elibtoolize in non-live ebuild When building live, we always run eautoreconf. However, even in release mode we should still run elibtoolize to get important fixes -- such as the ones that pass through LTO sanity flags to the link phase. Signed-off-by: Eli Schwartz Signed-off-by: Sam James --- media-libs/libltc/libltc-1.3.2.ebuild | 9 +++++++-- media-libs/libltc/libltc-9999.ebuild | 7 ++++++- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/media-libs/libltc/libltc-1.3.2.ebuild b/media-libs/libltc/libltc-1.3.2.ebuild index 48b679efc14b6..19a2a8ecf8137 100644 --- a/media-libs/libltc/libltc-1.3.2.ebuild +++ b/media-libs/libltc/libltc-1.3.2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -9,6 +9,7 @@ if [[ ${PV} == *9999 ]]; then inherit git-r3 autotools EGIT_REPO_URI="https://github.com/x42/libltc" else + inherit libtool SRC_URI="https://github.com/x42/libltc/releases/download/v${PV}/${P}.tar.gz" KEYWORDS="amd64" fi @@ -19,7 +20,11 @@ RESTRICT="mirror" src_prepare() { default - [[ ${PV} == *9999 ]] && eautoreconf + if [[ ${PV} = *9999 ]]; then + eautoreconf + else + elibtoolize + fi } src_install() { diff --git a/media-libs/libltc/libltc-9999.ebuild b/media-libs/libltc/libltc-9999.ebuild index 1151950f7c7ab..3049a511a9852 100644 --- a/media-libs/libltc/libltc-9999.ebuild +++ b/media-libs/libltc/libltc-9999.ebuild @@ -9,6 +9,7 @@ if [[ ${PV} == *9999 ]]; then inherit git-r3 autotools EGIT_REPO_URI="https://github.com/x42/libltc" else + inherit libtool SRC_URI="https://github.com/x42/libltc/releases/download/v${PV}/${P}.tar.gz" KEYWORDS="~amd64" fi @@ -19,7 +20,11 @@ RESTRICT="mirror" src_prepare() { default - [[ ${PV} == *9999 ]] && eautoreconf + if [[ ${PV} = *9999 ]]; then + eautoreconf + else + elibtoolize + fi } src_install() {