diff options
| author | Dave Hibberd <dave.hibberd@gmail.com> | 2016-04-05 00:38:50 +0100 |
|---|---|---|
| committer | Dave Hibberd <dave.hibberd@gmail.com> | 2016-04-05 01:17:49 +0100 |
| commit | 461bb6d23be87b4b79d978696e45b23f484682e1 (patch) | |
| tree | 792df72be95b1e9a53f10729845508254ceaa2ca /debian/patches | |
| parent | ed1ae8ef50b749bf62e5591b8dbcdcfe3dddd2a2 (diff) | |
Updated for hardening errors, fixed watch file, tidied up URLs in control,
renamed remove-cflags to hardening patch
Diffstat (limited to 'debian/patches')
| -rw-r--r-- | debian/patches/hardening | 27 | ||||
| -rw-r--r-- | debian/patches/remove-cflags | 17 | ||||
| -rw-r--r-- | debian/patches/series | 2 |
3 files changed, 28 insertions, 18 deletions
diff --git a/debian/patches/hardening b/debian/patches/hardening new file mode 100644 index 0000000..a629022 --- /dev/null +++ b/debian/patches/hardening @@ -0,0 +1,27 @@ +Description: Fix Lintian hardening errors caused by flags not being passed to compiler, +use debhelper compiler flags +Author: Dave Hibberd <d@vehibberd.com> +Last-Update: 2016-04-05 + +--- a/Makefile.in ++++ b/Makefile.in +@@ -3,8 +3,8 @@ + CC = gcc + LD = gcc + # CFLAGS = -O2 -g -s -Wstrict-prototypes +-CFLAGS = -O2 -g -Wno-unused-result -Wstrict-prototypes +-LDFLAGS = ++#CFLAGS = -O2 -g -Wno-unused-result -Wstrict-prototypes ++#LDFLAGS = + LIBS = -lax25 -lax25io + + include Makefile.include +@@ -24,7 +24,7 @@ + DIGI_OBJS = $(DIGI_SRC:.c=.o) + CALIBRATE_OBJS = $(CALIBRATE_SRC:.c=.o) + .c.o: +- $(CC) $(CFLAGS) -c $< ++ $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -c $< + + install: installbin installman installhelp installconf + install -b -m 755 -D -d $(VAR_DIR) diff --git a/debian/patches/remove-cflags b/debian/patches/remove-cflags deleted file mode 100644 index 2ffdb5d..0000000 --- a/debian/patches/remove-cflags +++ /dev/null @@ -1,17 +0,0 @@ -Description: Remove CFLAGS and LDFLAGS to fix Lintian hardening errors -Author: Dave Hibberd <d@vehibberd.com> -Last-Update: 2015-09-07 - ---- a/Makefile.in -+++ b/Makefile.in -@@ -3,8 +3,8 @@ - CC = gcc - LD = gcc - # CFLAGS = -O2 -g -s -Wstrict-prototypes --CFLAGS = -O2 -g -Wno-unused-result -Wstrict-prototypes --LDFLAGS = -+#CFLAGS = -O2 -g -Wno-unused-result -Wstrict-prototypes -+#LDFLAGS = - LIBS = -lax25 -lax25io - - include Makefile.include diff --git a/debian/patches/series b/debian/patches/series index 5113b0a..330f0f2 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,4 +1,4 @@ -remove-cflags +hardening folder-update install-dir-creation makefile-install-locations |
