Author: ward Date: 2008-08-03 00:14:30 +0200 (Sun, 03 Aug 2008) New Revision: 213
Added: buildrom-devel/packages/unifdef/patches/ buildrom-devel/packages/unifdef/patches/series buildrom-devel/packages/unifdef/patches/unifdef-build-fix.patch Modified: buildrom-devel/packages/unifdef/unifdef.mk Log:
Unifef's build target used to depend on the .o binary file, instead of the .c source.
This trivial patch includes a patch for the unifdef makefile and modifies the build script to apply it.
Signed-off-by: Cristi M?\196?\131gheru?\200?\153an cristi.magherusan@net.utcluj.ro Acked-by: Peter Stuge peter@stuge.se Acked-by: Ward Vandewege ward@gnu.org
Added: buildrom-devel/packages/unifdef/patches/series =================================================================== --- buildrom-devel/packages/unifdef/patches/series (rev 0) +++ buildrom-devel/packages/unifdef/patches/series 2008-08-02 22:14:30 UTC (rev 213) @@ -0,0 +1 @@ +unifdef-build-fix.patch
Added: buildrom-devel/packages/unifdef/patches/unifdef-build-fix.patch =================================================================== --- buildrom-devel/packages/unifdef/patches/unifdef-build-fix.patch (rev 0) +++ buildrom-devel/packages/unifdef/patches/unifdef-build-fix.patch 2008-08-02 22:14:30 UTC (rev 213) @@ -0,0 +1,14 @@ +diff -Naur unifdef-1.0.orig/Makefile unifdef-1.0/Makefile +--- unifdef-1.0.orig/Makefile 2000-02-12 05:54:36.000000000 +0200 ++++ unifdef-1.0/Makefile 2008-08-02 23:20:26.000000000 +0300 +@@ -2,8 +2,8 @@ + CFLAGS = -O2 + DEST = /usr + +-unifdef: unifdef.o +- $(CC) unifdef.o -o unifdef ++unifdef: unifdef.c ++ $(CC) unifdef.c -o unifdef + + clean: + rm -f unifdef *.o
Modified: buildrom-devel/packages/unifdef/unifdef.mk =================================================================== --- buildrom-devel/packages/unifdef/unifdef.mk 2008-07-07 15:24:19 UTC (rev 212) +++ buildrom-devel/packages/unifdef/unifdef.mk 2008-08-02 22:14:30 UTC (rev 213) @@ -5,6 +5,8 @@ UNIFDEF_STAMP_DIR=$(UNIFDEF_DIR)/stamps UNIFDEF_LOG_DIR=$(UNIFDEF_DIR)/logs
+UNIFDEF_PATCHES=$(PACKAGE_DIR)/unifdef/patches + ifeq ($(CONFIG_VERBOSE),y) UNIFDEF_BUILD_LOG=/dev/stdout UNIFDEF_CONFIG_LOG=/dev/stdout @@ -21,9 +23,14 @@ @ tar -C $(UNIFDEF_DIR) -zxf $(SOURCE_DIR)/$(UNIFDEF_SOURCE) @ rm -f $(UNIFDEF_SRC_DIR)/unifdef @ rm -f $(UNIFDEF_SRC_DIR)/unifdef.o - @ touch $@ + @ touch $@
-$(UNIFDEF_SRC_DIR)/unifdef: $(UNIFDEF_STAMP_DIR) $(UNIFDEF_LOG_DIR) $(UNIFDEF_STAMP_DIR)/.unpacked +$(UNIFDEF_STAMP_DIR)/.patched: $(UNIFDEF_STAMP_DIR)/.unpacked + @ echo "Patching unifdef..." + @ $(BIN_DIR)/doquilt.sh $(UNIFDEF_SRC_DIR) $(UNIFDEF_PATCHES) + @ touch $@ + +$(UNIFDEF_SRC_DIR)/unifdef: $(UNIFDEF_STAMP_DIR) $(UNIFDEF_LOG_DIR) $(UNIFDEF_STAMP_DIR)/.patched @ echo "Building unifdef (host)..." @ $(MAKE) -C $(UNIFDEF_SRC_DIR) CC=$(HOST_CC) > $(UNIFDEF_BUILD_LOG) 2>&1