Package: postfix-gld
Version: 1.7-5
Severity: important
Tags: patch
User: hardening-disc...@lists.alioth.debian.org
Usertags: goal-hardening

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256


Hello,

As you previously enable CFLAGS, i've just refreshed your patch
debian/patches/01 to pass {CPP,LD}FLAGS to make in debian/rules and
updated upstream Makefile.in to use it.
I don't use postfix-gld so it maybe needs more intensive tests than i've
made.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJUJ9RMAAoJEJmGUYuaqqCli5MP/jYxSewDmzTb16KE1E8DMlaU
yr64sJbjBP8nJ2ub3Kj0f96n1rOQKu/5OvKQk6Fi62DrKypNDRzBObvq6iqyt+RA
xg8bcd62hWSeFwDkt5VHNWxqGyMXQ7ECfiR8X4XrlHWnqL+1iY18WfbpFce4ZPxP
jfZI62AsDaHQSYd0xZ/KuIwkgsBrtvhh7z4cEfINKSR1wT/0cAQjjvu1kLMZod2P
xRcbkiPhmkZjAWiX8lnLqqRk1cTRuQHIxZVdj15RXC5Wyml2W4kC9XgyIa6K/qfF
81/mABKeiISNV+xlY0VJe/ztv0HCiOepdfHhvrCZ/tOT/6hu2rPlKHf1MD1OM0yy
LtlkUOa0GEFNQJhtt225NVzPbARHBLCmgY2rT3ptY9yF0UbIlfxTujUwbmv0bmfD
loA4wHWmCG5GlURDdGQX6WLmyRngN26YgRdRYccRB7anpSYfxjyr0m/xyARO4KPU
0XJQbSbMvlhSJI0hFEJZ/RGYV5hMWcYs2WIwUbdytoiZZrJRu6obrbgc4gTfkEO/
Y9fPF2kqHqze+LO9sv14jjOeqSsQ7V8I4Toelln6czZ80oI8SIe+rz6y90B8hMZ8
ug4E5AEzQXrt1R4OyAnNaBYpt4o0OVwbSkMG9KuMlzTy/ZNnDqQKfVSzFaVENuIw
3ddbI+nFf1dlrAIq88Sa
=YEgw
-----END PGP SIGNATURE-----
diff -Nru postfix-gld-1.7/debian/changelog postfix-gld-1.7/debian/changelog
--- postfix-gld-1.7/debian/changelog	2014-03-16 16:53:11.000000000 +0100
+++ postfix-gld-1.7/debian/changelog	2014-09-28 11:13:08.000000000 +0200
@@ -1,3 +1,10 @@
+postfix-gld (1.7-5.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Refresh debian/patches/01 to pass CPPFLAGS and LDFLAGS to gcc calls
+
+ -- Guillaume Delacour <g...@iroqwa.org>  Sun, 28 Sep 2014 11:06:30 +0200
+
 postfix-gld (1.7-5) unstable; urgency=medium
 
   * Fixed typo in README.Debian.
diff -Nru postfix-gld-1.7/debian/patches/01 postfix-gld-1.7/debian/patches/01
--- postfix-gld-1.7/debian/patches/01	2010-04-19 00:09:12.000000000 +0200
+++ postfix-gld-1.7/debian/patches/01	2014-09-28 11:12:46.000000000 +0200
@@ -1,8 +1,11 @@
 From: Santiago Vila <sanv...@debian.org>
 Subject: Changed Makefile.in to support DEB_BUILD_OPTIONS
+Last-Update: 2014-09-28
 
---- a/Makefile.in
-+++ b/Makefile.in
+Index: postfix-gld-1.7/Makefile.in
+===================================================================
+--- postfix-gld-1.7.orig/Makefile.in
++++ postfix-gld-1.7/Makefile.in
 @@ -1,23 +1,24 @@
  all: gld
  
@@ -11,27 +14,27 @@
  gld: cnf.o server.o sql.o sockets.o greylist.o gld.h
 -	@CC@ -O2 @DEFS@ -Wall server.o sql.o sockets.o cnf.o greylist.o @LIBS@ @SQL_LIBS@ -o gld
 -	strip gld
-+	@CC@ $(CFLAGS) @DEFS@ server.o sql.o sockets.o cnf.o greylist.o @LIBS@ @SQL_LIBS@ -o gld
++	@CC@ $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) @DEFS@ server.o sql.o sockets.o cnf.o greylist.o @LIBS@ @SQL_LIBS@ -o gld
  
  sockets.o: sockets.c sockets.h
 -	@CC@ -O2 @DEFS@ -Wall -c sockets.c
-+	@CC@ $(CFLAGS) @DEFS@ -c sockets.c
++	@CC@ $(CFLAGS) $(CPPFLAGS) @DEFS@ -c sockets.c
  
  cnf.o: cnf.c gld.h
 -	@CC@ -O2 @DEFS@ -Wall -c cnf.c
-+	@CC@ $(CFLAGS) @DEFS@ -c cnf.c
++	@CC@ $(CFLAGS) $(CPPFLAGS) @DEFS@ -c cnf.c
  
  greylist.o: greylist.c gld.h
 -	@CC@ -O2 @DEFS@ -Wall -c greylist.c
-+	@CC@ $(CFLAGS) @DEFS@ -c greylist.c
++	@CC@ $(CFLAGS) $(CPPFLAGS) @DEFS@ -c greylist.c
  
  server.o: server.c gld.h
 -	@CC@ -O2 @DEFS@ -Wall -c server.c
-+	@CC@ $(CFLAGS) @DEFS@ -c server.c
++	@CC@ $(CFLAGS) $(CPPFLAGS) @DEFS@ -c server.c
  
  sql.o: sql.c
 -	@CC@ -O2 @DEFS@ @SQL_CFLAGS@ -Wall -c sql.c
-+	@CC@ $(CFLAGS) @DEFS@ @SQL_CFLAGS@ -c sql.c
++	@CC@ $(CFLAGS) $(CPPFLAGS) @DEFS@ @SQL_CFLAGS@ -c sql.c
  
  clean:
  	rm -f  gld *.o
diff -Nru postfix-gld-1.7/debian/rules postfix-gld-1.7/debian/rules
--- postfix-gld-1.7/debian/rules	2014-03-15 12:00:00.000000000 +0100
+++ postfix-gld-1.7/debian/rules	2014-09-28 11:15:49.000000000 +0200
@@ -16,7 +16,7 @@
 
 build:
 	./configure --prefix=/usr --with-$(DATABASE)
-	$(MAKE) CFLAGS="$(CFLAGS)"
+	$(MAKE) CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)"
 	touch build
 
 clean:

Reply via email to