Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/frotz: Add a missing dependency to the Makefile to fix build problems
@ 2022-10-15  6:04 Thomas Huth
  2023-07-10 21:27 ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Huth @ 2022-10-15  6:04 UTC (permalink / raw)
  To: buildroot; +Cc: Thomas Petazzoni

There are currently some build jobs failing where blorblib is built before
hash.h has been created. This patch should hopefully fix these issues.

Signed-off-by: Thomas Huth <huth@tuxfamily.org>
---
 See e.g. here for a failed build:
 http://autobuild.buildroot.net/results/9cd213ce2d36f797041c7b21044c2b2c223dd546/build-end.log

 ...0001-Makefile-blorb-lib-needs-hash.h.patch | 40 +++++++++++++++++++
 1 file changed, 40 insertions(+)
 create mode 100644 package/frotz/0001-Makefile-blorb-lib-needs-hash.h.patch

diff --git a/package/frotz/0001-Makefile-blorb-lib-needs-hash.h.patch b/package/frotz/0001-Makefile-blorb-lib-needs-hash.h.patch
new file mode 100644
index 0000000000..3bde10b6ba
--- /dev/null
+++ b/package/frotz/0001-Makefile-blorb-lib-needs-hash.h.patch
@@ -0,0 +1,40 @@
+From cdf0ad4aff2d8937034e02e41a5aadcca320ea18 Mon Sep 17 00:00:00 2001
+From: Thomas Huth <huth@tuxfamily.org>
+Date: Fri, 14 Oct 2022 20:29:41 +0200
+Subject: [PATCH] Makefile: blorb-lib needs hash.h
+
+If running "make blorb-lib" on a vanilla source directory, the
+compilation fails with:
+
+ make -C src/blorb
+ make[1]: Entering directory '/home/thomas/src/frotz/src/blorb'
+ cc -Wall -std=c99 -O3  -g -D_POSIX_C_SOURCE=200809L -I../common -fPIC
+  -fpic -o blorblib.o -c blorblib.c
+ In file included from blorblib.c:11:
+ ../common/frotz.h:74:10: fatal error: hash.h: No such file or directory
+    74 | #include "hash.h"
+       |          ^~~~~~~~
+ compilation terminated.
+
+Looks like we also have to make sure that hash.h is in place before
+compiling the blorb target, thus add the dependency to the Makefile.
+---
+ Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile b/Makefile
+index 1d27b09..3d2bc45 100644
+--- a/Makefile
++++ b/Makefile
+@@ -461,7 +461,7 @@ $(SDL_LIB): $(COMMON_DEFINES) $(HASH) $(SDL_DIR)
+ $(DUMB_LIB): $(COMMON_DEFINES) $(HASH)
+ 	$(MAKE) -C $(DUMB_DIR)
+ 
+-$(BLORB_LIB): $(COMMON_DEFINES)
++$(BLORB_LIB): $(COMMON_DEFINES) $(HASH)
+ 	$(MAKE) -C $(BLORB_DIR)
+ 
+ $(SUB_CLEAN):
+-- 
+2.37.3
+
-- 
2.37.3

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-07-16 16:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-15  6:04 [Buildroot] [PATCH] package/frotz: Add a missing dependency to the Makefile to fix build problems Thomas Huth
2023-07-10 21:27 ` Thomas Petazzoni via buildroot
2023-07-16 18:19   ` Thomas Huth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox