commit:     604a695d20a10bb03ed983911322be3a90b735df
Author:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 15 05:36:12 2023 +0000
Commit:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Wed Nov 15 05:39:37 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=604a695d

dev-embedded/sdcc: fix build issue with USE=-mos65c02

Don't generate a Makefile instead of attempting to remove it afterwards.

Closes: https://bugs.gentoo.org/917354
Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org>

 dev-embedded/sdcc/sdcc-4.3.0-r1.ebuild | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/dev-embedded/sdcc/sdcc-4.3.0-r1.ebuild 
b/dev-embedded/sdcc/sdcc-4.3.0-r1.ebuild
index 6bfa58b9f7e7..9e37f736f518 100644
--- a/dev-embedded/sdcc/sdcc-4.3.0-r1.ebuild
+++ b/dev-embedded/sdcc/sdcc-4.3.0-r1.ebuild
@@ -96,6 +96,10 @@ src_prepare() {
        # libiberty configure will fail if this was not set
        export libiberty_topdir="${S}"/support/sdbinutils/libiberty
 
+       # this does not build: https://sourceforge.net/p/sdcc/bugs/3673/
+       # disable for now
+       sed 's:device/lib/mos65c02/Makefile::' -i configure.ac || die
+
        default
        eautoreconf
 
@@ -144,10 +148,6 @@ src_configure() {
                $(use_enable mos65c02 mos65c02-port)
        )
        econf "${myeconfargs[@]}"
-
-       # this does not build: https://sourceforge.net/p/sdcc/bugs/3673/
-       # disable for now
-       rm device/lib/mos65c02/Makefile || die
 }
 
 src_compile() {

Reply via email to