aboutsummaryrefslogtreecommitdiffstats
path: root/main/nmap/fortify-source.patch
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2016-03-20 00:42:36 +0100
committerSören Tempel <soeren+git@soeren-tempel.net>2016-03-20 00:52:39 +0100
commit6030f8b148614a039807e4cf41b2b718bf744373 (patch)
treec1fd1fd444e5a96b5323b654faad6a733d495c1e /main/nmap/fortify-source.patch
parentb3571c864ad9ac5d7c6a51ca188cb90b76c2035b (diff)
downloadaports-6030f8b148614a039807e4cf41b2b718bf744373.tar.gz
aports-6030f8b148614a039807e4cf41b2b718bf744373.tar.bz2
aports-6030f8b148614a039807e4cf41b2b718bf744373.tar.xz
main/nmap: upgrade to 7.10
Diffstat (limited to 'main/nmap/fortify-source.patch')
-rw-r--r--main/nmap/fortify-source.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/main/nmap/fortify-source.patch b/main/nmap/fortify-source.patch
new file mode 100644
index 0000000000..7eabead8be
--- /dev/null
+++ b/main/nmap/fortify-source.patch
@@ -0,0 +1,16 @@
+-D_FORTIFY_SOURCE=2 is enable in gcc by default on alpine. See the
+010_all_default-fortify-source.patch patch in main/gcc. Disabling
+it here silences a bunch of compiler warnings.
+
+diff -upr nmap-7.10.orig/Makefile.in nmap-7.10/Makefile.in
+--- nmap-7.10.orig/Makefile.in 2016-03-20 00:47:16.555111217 +0100
++++ nmap-7.10/Makefile.in 2016-03-20 00:47:26.348392650 +0100
+@@ -41,7 +41,7 @@ DEFS = @DEFS@ -DNMAP_NAME=\"$(NMAP_NAME)
+ # http://gcc.gnu.org/ml/gcc-patches/2004-09/msg02055.html
+ # Level 1 only makes changes that don't affect "conforming" programs,
+ # while level 2 enforces additional restrictions.
+-DEFS += -D_FORTIFY_SOURCE=2
++# DEFS += -D_FORTIFY_SOURCE=2
+ # For mtrace debugging -- see MTRACE define in main.cc for instructions
+ # Should only be enabled during debugging and not in any real release.
+ # DEFS += -DMTRACE=1