summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNRK <nrk@disroot.org>2024-06-09 11:18:16 +0000
committerArthur Zamarin <arthurzam@gentoo.org>2024-06-11 08:29:50 +0300
commitd77f855326c6b9cd1e12fd3bcd9a9f52db127115 (patch)
tree3bc3503a692ceb73b29a32d21486c0f8d9830b45 /dev-lang/uasm
parentdev-lang/go: Stabilize 1.22.4 arm64, #934026 (diff)
downloadgentoo-d77f855326c6b9cd1e12fd3bcd9a9f52db127115.tar.gz
gentoo-d77f855326c6b9cd1e12fd3bcd9a9f52db127115.tar.bz2
gentoo-d77f855326c6b9cd1e12fd3bcd9a9f52db127115.zip
dev-lang/uasm: fix makefile dependency order
Closes: https://bugs.gentoo.org/933867 Signed-off-by: NRK <nrk@disroot.org> Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'dev-lang/uasm')
-rw-r--r--dev-lang/uasm/files/makefile-dep-fix.patch22
-rw-r--r--dev-lang/uasm/uasm-2.56.2.ebuild1
2 files changed, 23 insertions, 0 deletions
diff --git a/dev-lang/uasm/files/makefile-dep-fix.patch b/dev-lang/uasm/files/makefile-dep-fix.patch
new file mode 100644
index 000000000000..66b5ab3d5293
--- /dev/null
+++ b/dev-lang/uasm/files/makefile-dep-fix.patch
@@ -0,0 +1,22 @@
+Bug: https://bugs.gentoo.org/933867
+
+diff --git a/gccLinux64.mak b/gccLinux64.mak
+index 9d4431a..e4fb10f 100644
+--- a/gccLinux64.mak
++++ b/gccLinux64.mak
+@@ -31,13 +31,13 @@ include gccmod.inc
+
+ #.c.o:
+ # $(CC) -c $(inc_dirs) $(c_flags) -o $(OUTD)/$*.o $<
+-$(OUTD)/%.o: %.c
++$(OUTD)/%.o: %.c | $(OUTD)
+ $(CC) -D __UNIX__ -c $(inc_dirs) $(c_flags) $(CFLAGS) $(CPPFLAGS) -o $(OUTD)/$*.o $<
+
+ all: $(OUTD) $(OUTD)/$(TARGET1)
+
+ $(OUTD):
+- mkdir $(OUTD)
++ mkdir -p $(OUTD)
+
+ $(OUTD)/$(TARGET1) : $(OUTD)/main.o $(proj_obj)
+ ifeq ($(DEBUG),0)
diff --git a/dev-lang/uasm/uasm-2.56.2.ebuild b/dev-lang/uasm/uasm-2.56.2.ebuild
index 8210588c135e..3d96057ef673 100644
--- a/dev-lang/uasm/uasm-2.56.2.ebuild
+++ b/dev-lang/uasm/uasm-2.56.2.ebuild
@@ -15,6 +15,7 @@ SLOT="0"
KEYWORDS="~amd64"
PATCHES=(
"${FILESDIR}/build-fix.patch"
+ "${FILESDIR}/makefile-dep-fix.patch"
)
src_prepare() {