mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 11:37:20 -08:00
dev-util/netsurf-buildsystem: use upstream version of a patch
Our PRE_ and POST_TARGETS patch was merged upstream with a tweak to ensure that rule prerequisites are not empty. Let's use that merged version instead. Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
This commit is contained in:
+21
-19
@@ -1,10 +1,7 @@
|
||||
https://listmaster.pepperfish.net/hyperkitty/list/netsurf-dev@netsurf-browser.org/thread/NUOLUXAZS2GYBJ3Q5GCTGSYLKOX3MCME/
|
||||
|
||||
From 1a6171aa8fd69b20f5c7d2be31ab00539adae959 Mon Sep 17 00:00:00 2001
|
||||
From 067a5105a76e51eebcdf7e7786d1f91040442d47 Mon Sep 17 00:00:00 2001
|
||||
From: Michael Orlitzky <michael@orlitzky.com>
|
||||
Date: Mon, 14 Aug 2023 12:43:54 -0400
|
||||
Subject: [PATCH] makefiles/Makefile.top: dependencies for PRE_ and
|
||||
POST_TARGETS
|
||||
Date: Mon, 14 Aug 2023 13:23:09 -0400
|
||||
Subject: makefiles/Makefile.top: dependencies for PRE_ and POST_TARGETS
|
||||
|
||||
The PRE_TARGETS and POST_TARGETS are supposed to be built before and
|
||||
after $(OBJECTS), respectively -- at least according to the comments
|
||||
@@ -48,25 +45,30 @@ Gentoo bug 711200.
|
||||
The fix simply adds the stated dependencies on $(OBJECTS) and
|
||||
$(POST_TARGETS) to guarantee the correct order.
|
||||
---
|
||||
makefiles/Makefile.top | 5 +++++
|
||||
1 file changed, 5 insertions(+)
|
||||
makefiles/Makefile.top | 10 ++++++++++
|
||||
1 file changed, 10 insertions(+)
|
||||
|
||||
diff --git a/makefiles/Makefile.top b/makefiles/Makefile.top
|
||||
index caac166..dafdfaa 100644
|
||||
index 0b0fe22..2a41697 100644
|
||||
--- a/makefiles/Makefile.top
|
||||
+++ b/makefiles/Makefile.top
|
||||
@@ -176,6 +176,11 @@ OBJECTS := $(addprefix $(BUILDDIR)/,$(filter %.o, \
|
||||
$(subst /,_,$(subst .cmhg,.o,$(SOURCES))) \
|
||||
$(subst /,_,$(subst .s,.o,$(SOURCES)))))
|
||||
@@ -422,6 +422,16 @@ else
|
||||
endif
|
||||
endif
|
||||
|
||||
+# Ensure that PRE_TARGETS are built before OBJECTS, and POST_TARGETS
|
||||
+# after them.
|
||||
+ifneq ($(PRE_TARGETS),)
|
||||
+# Ensure that PRE_TARGETS are built before OBJECTS.
|
||||
+$(OBJECTS): $(PRE_TARGETS)
|
||||
+$(POST_TARGETS): $(OBJECTS)
|
||||
+endif
|
||||
+
|
||||
bin_for_test = $(addprefix $(BUILDDIR)/,$(firstword $(subst :, ,$(ITEM))))
|
||||
TEST_BINARIES := $(foreach ITEM,$(TEST_ITEMS),$(bin_for_test))
|
||||
|
||||
+ifneq ($(POST_TARGETS),)
|
||||
+# Ensure that POST_TARGETS are built after OBJECTS.
|
||||
+$(POST_TARGETS): $(OBJECTS)
|
||||
+endif
|
||||
+
|
||||
###############################################################################
|
||||
# Autogenerated, implied rules
|
||||
###############################################################################
|
||||
--
|
||||
2.41.0
|
||||
cgit v1.2.1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user