commit: c489eff50a5d38d4631b17ba067555b7cd31803b Author: WANG Xuerui <xen0n <AT> gentoo <DOT> org> AuthorDate: Wed Sep 11 07:48:23 2024 +0000 Commit: WANG Xuerui <xen0n <AT> gentoo <DOT> org> CommitDate: Mon Sep 23 11:50:46 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c489eff5
sys-devel/crosstool-ng: fix live ebuild Signed-off-by: WANG Xuerui <xen0n <AT> gentoo.org> sys-devel/crosstool-ng/crosstool-ng-9999.ebuild | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/sys-devel/crosstool-ng/crosstool-ng-9999.ebuild b/sys-devel/crosstool-ng/crosstool-ng-9999.ebuild index f0aa3dfbe151..78700c65fe2d 100644 --- a/sys-devel/crosstool-ng/crosstool-ng-9999.ebuild +++ b/sys-devel/crosstool-ng/crosstool-ng-9999.ebuild @@ -11,7 +11,7 @@ HOMEPAGE="https://crosstool-ng.github.io/" if [[ ${PV} == 9999 ]] ; then EGIT_REPO_URI="https://github.com/crosstool-ng/crosstool-ng.git" - inherit git-r3 + inherit autotools git-r3 else SRC_URI=" https://github.com/crosstool-ng/crosstool-ng/releases/download/${PN}-${PV/_rc/-rc}/${P}.tar.xz @@ -56,6 +56,19 @@ RDEPEND=" ${BDEPEND} " +src_prepare() { + if [[ ${PV} == 9999 ]]; then + # Some data files must be generated before autoreconf, and the logic + # is non-trivial, so the upstream bootstrap script must be used. + # In addition, eautoreconf mis-detects the project to make use of + # gettext while it actually isn't, so just rely on the invocation of + # autoreconf for us in the bootstrap script. + ./bootstrap || die "bootstrap failed" + fi + + default +} + src_configure() { # Needs bison+flex unset YACC LEX
