Package: exiftags
Version: 1.01-4
Severity: important
Tags: patch
Please enabled hardened build flags through dpkg-buildflags.
Patch attached.
Cheers,
Moritz
diff -Naur exiftags-1.01.orig/debian/compat exiftags-1.01/debian/compat
--- exiftags-1.01.orig/debian/compat 2012-01-05 22:11:45.000000000 +0100
+++ exiftags-1.01/debian/compat 2012-01-05 22:12:37.000000000 +0100
@@ -1 +1 @@
-7
+9
diff -Naur exiftags-1.01.orig/debian/patches/060-Makefile-harden.patch exiftags-1.01/debian/patches/060-Makefile-harden.patch
--- exiftags-1.01.orig/debian/patches/060-Makefile-harden.patch 1970-01-01 01:00:00.000000000 +0100
+++ exiftags-1.01/debian/patches/060-Makefile-harden.patch 2012-01-05 22:12:19.000000000 +0100
@@ -0,0 +1,36 @@
+diff -aur exiftags-1.01.orig/Makefile exiftags-1.01/Makefile
+--- exiftags-1.01.orig/Makefile 2012-01-05 22:09:03.000000000 +0100
++++ exiftags-1.01/Makefile 2012-01-05 22:10:21.000000000 +0100
+@@ -27,19 +27,19 @@
+
+ .SUFFIXES: .o .c
+ .c.o:
+- $(CC) $(CFLAGS) -o $@ -c $<
++ $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $<
+
+
+ all: exiftags exifcom exiftime
+
+ exiftags: exiftags.o $(OBJS) $(MKRS) $(HDRS)
+- $(CC) $(CFLAGS) -o $@ exiftags.o $(OBJS) $(MKRS) -lm
++ $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ exiftags.o $(OBJS) $(MKRS) -lm $(LDFLAGS)
+
+ exifcom: exifcom.o $(OBJS) $(NOMKRS) $(HDRS)
+- $(CC) $(CFLAGS) -o $@ exifcom.o $(OBJS) $(NOMKRS) -lm
++ $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ exifcom.o $(OBJS) $(NOMKRS) -lm $(LDFLAGS)
+
+ exiftime: exiftime.o timevary.o $(OBJS) $(NOMKRS) $(HDRS)
+- $(CC) $(CFLAGS) -o $@ exiftime.o timevary.o $(OBJS) $(NOMKRS) -lm
++ $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ exiftime.o timevary.o $(OBJS) $(NOMKRS) -lm $(LDFLAGS)
+
+ clean:
+ @rm -f $(OBJS) $(MKRS) $(NOMKRS) exiftags.o exifcom.o exiftime.o \
+@@ -51,3 +51,7 @@
+ mkdir -p $(mandir)
+ cp exiftags.1 exifcom.1 exiftime.1 $(mandir)
+ chmod 0644 $(mandir)/exiftags.1 $(mandir)/exifcom.1 $(mandir)/exiftime.1
++
++
++
++
+Nur in exiftags-1.01: Makefile~.
diff -Naur exiftags-1.01.orig/debian/patches/series exiftags-1.01/debian/patches/series
--- exiftags-1.01.orig/debian/patches/series 2012-01-05 22:11:45.000000000 +0100
+++ exiftags-1.01/debian/patches/series 2012-01-05 22:12:27.000000000 +0100
@@ -1,3 +1,4 @@
001-makefile.patch
010-492566-exifpgs.c.patch
050-hyphens-to-minuses-in-man.patch
+060-Makefile-harden.patch