From f991589ceb5b3596bab7a2c52cd47f4f6d94ca8a Mon Sep 17 00:00:00 2001 From: Viorel Munteanu Date: Sun, 13 Nov 2022 10:15:40 +0200 Subject: [PATCH] dev-util/kbuild: fix lto, cflags, dependencies Fix compilation with bison, lto and custom cflags Closes: https://bugs.gentoo.org/734354 Closes: https://bugs.gentoo.org/448862 Closes: https://bugs.gentoo.org/858386 Signed-off-by: Viorel Munteanu --- dev-util/kbuild/kbuild-0.1.9998.3499.ebuild | 41 +++++--------------- dev-util/kbuild/kbuild-9999.ebuild | 43 ++++++--------------- 2 files changed, 21 insertions(+), 63 deletions(-) diff --git a/dev-util/kbuild/kbuild-0.1.9998.3499.ebuild b/dev-util/kbuild/kbuild-0.1.9998.3499.ebuild index ef85feb535924..2954327d377c7 100644 --- a/dev-util/kbuild/kbuild-0.1.9998.3499.ebuild +++ b/dev-util/kbuild/kbuild-0.1.9998.3499.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -7,7 +7,7 @@ inherit autotools toolchain-funcs MY_P="${P}-src" DESCRIPTION="A makefile framework for writing simple makefiles for complex tasks" -HOMEPAGE="http://svn.netlabs.org/kbuild/wiki" +HOMEPAGE="https://trac.netlabs.org/kbuild/wiki" #SRC_URI="ftp://ftp.netlabs.org/pub/${PN}/${MY_P}.tar.gz" SRC_URI="https://dev.gentoo.org/~polynomial-c/${MY_P}.tar.xz" @@ -16,20 +16,13 @@ SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" -# We cannot depend on virtual/yacc until bug #734354 has been fixed -DEPEND=" +BDEPEND=" sys-apps/texinfo sys-devel/flex sys-devel/gettext virtual/pkgconfig - || ( - dev-util/byacc - dev-util/yacc - yacc > old bison for now. - # See bug #734354 - bison doesn't work here. - # We can remove this once Bison works again! - if has_version -b "dev-util/byacc" ; then - export YACC=byacc - elif has_version -b "dev-util/yacc" ; then - export YACC=yacc - elif has_version -b " yacc > old bison for now. - # See bug #734354 - bison doesn't work here. - # We can remove this once Bison works again! - if has_version -b "dev-util/byacc" ; then - export YACC=byacc - elif has_version -b "dev-util/yacc" ; then - export YACC=yacc - elif has_version -b "