[SCM] rem/master: Add 2001_unhide_build_rules patch
vasudev-guest at users.alioth.debian.org
vasudev-guest at users.alioth.debian.org
Mon Dec 21 16:48:22 UTC 2015
The following commit has been merged in the master branch:
commit 9b41120992c45e512d34f31e0e406d2eb3ab90ac
Author: Vasudev Kamath <kamathvasudev at gmail.com>
Date: Mon Dec 21 22:10:35 2015 +0530
Add 2001_unhide_build_rules patch
diff --git a/debian/patches/2001_unhide_build_rules.patch b/debian/patches/2001_unhide_build_rules.patch
new file mode 100644
index 0000000..a0aea7b
--- /dev/null
+++ b/debian/patches/2001_unhide_build_rules.patch
@@ -0,0 +1,80 @@
+Description: Unhide build commands
+ Upstream hides all build commands, this doesn't allow tools like blhc
+ to check for hardening of the built binaries. This patch unhides all
+ build commands.
+Author: Vasudev Kamath <vasudev at copyninja.info>
+Last-Update: 2015-12-20
+
+--- a/Makefile
++++ b/Makefile
+@@ -80,39 +80,35 @@
+
+
+ $(SHARED): $(OBJS)
+- @echo " LD $@"
+- @$(LD) $(LFLAGS) $(SH_LFLAGS) $^ -L$(LIBRE_SO) -lre $(LIBS) -o $@
++ $(LD) $(LFLAGS) $(SH_LFLAGS) $^ -L$(LIBRE_SO) -lre $(LIBS) -o $@
+
+
+ $(STATIC): $(OBJS)
+- @echo " AR $@"
+- @$(AR) $(AFLAGS) $@ $^
++ $(AR) $(AFLAGS) $@ $^
+ ifneq ($(RANLIB),)
+- @$(RANLIB) $@
++ $(RANLIB) $@
+ endif
+
+ $(BUILD)/%.o: src/%.c $(BUILD) Makefile $(MK) $(MODMKS)
+- @echo " CC $@"
+- @$(CC) $(CFLAGS) -c $< -o $@ $(DFLAGS)
++ $(CC) $(CFLAGS) -c $< -o $@ $(DFLAGS)
+
+
+ $(BUILD)/%.o: src/%.S $(BUILD) Makefile $(MK) $(MODMKS)
+- @echo " AS $@"
+- @$(CC) $(CFLAGS) -c $< -o $@ $(DFLAGS)
++ $(CC) $(CFLAGS) -c $< -o $@ $(DFLAGS)
+
+
+ $(BUILD): Makefile $(MK) $(MODMKS)
+- @mkdir -p $(patsubst %,$(BUILD)/%,$(sort $(dir $(SRCS))))
+- @touch $@
++ mkdir -p $(patsubst %,$(BUILD)/%,$(sort $(dir $(SRCS))))
++ touch $@
+
+
+ .PHONY: clean
+ clean:
+- @rm -rf $(SHARED) $(STATIC) test.d test.o test $(BUILD)
++ rm -rf $(SHARED) $(STATIC) test.d test.o test $(BUILD)
+
+
+ install: $(SHARED) $(STATIC)
+- @mkdir -p $(DESTDIR)$(LIBDIR) $(DESTDIR)$(INCDIR)
++ mkdir -p $(DESTDIR)$(LIBDIR) $(DESTDIR)$(INCDIR)
+ $(INSTALL) -m 0644 $(shell find include -name "*.h") \
+ $(DESTDIR)$(INCDIR)
+ $(INSTALL) -m 0755 $(SHARED) $(DESTDIR)$(LIBDIR)
+@@ -120,16 +116,14 @@
+
+ .PHONY: uninstall
+ uninstall:
+- @rm -rf $(DESTDIR)$(INCDIR)
+- @rm -f $(DESTDIR)$(LIBDIR)/$(SHARED)
+- @rm -f $(DESTDIR)$(LIBDIR)/$(STATIC)
++ rm -rf $(DESTDIR)$(INCDIR)
++ rm -f $(DESTDIR)$(LIBDIR)/$(SHARED)
++ rm -f $(DESTDIR)$(LIBDIR)/$(STATIC)
+
+ -include test.d
+
+ test.o: test.c
+- @echo " CC $@"
+- @$(CC) $(CFLAGS) -c $< -o $@ $(DFLAGS)
++ $(CC) $(CFLAGS) -c $< -o $@ $(DFLAGS)
+
+ test$(BIN_SUFFIX): test.o $(SHARED) $(STATIC)
+- @echo " LD $@"
+- @$(LD) $(LFLAGS) $< -L. -lrem -lre $(LIBS) -o $@
++ $(LD) $(LFLAGS) $< -L. -lrem -lre $(LIBS) -o $@
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..7c045ce
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+2001_unhide_build_rules.patch
--
rem packaging
More information about the pkg-multimedia-commits
mailing list