]> git.pld-linux.org Git - packages/netsniff-ng.git/commitdiff
- added opt patch (use our optflags also for mausezahn) auto/th/netsniff-ng-0.6.7-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 24 May 2020 12:42:21 +0000 (14:42 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 24 May 2020 12:42:21 +0000 (14:42 +0200)
netsniff-ng-opt.patch [new file with mode: 0644]
netsniff-ng.spec

diff --git a/netsniff-ng-opt.patch b/netsniff-ng-opt.patch
new file mode 100644 (file)
index 0000000..dce94b9
--- /dev/null
@@ -0,0 +1,19 @@
+--- netsniff-ng-0.6.7/mausezahn/Makefile.orig  2020-05-04 15:15:32.000000000 +0200
++++ netsniff-ng-0.6.7/mausezahn/Makefile       2020-05-24 14:38:43.298126207 +0200
+@@ -71,7 +71,7 @@
+                       staging/directmops.o \
+                       staging/mausezahn.o
+-mausezahn-eflags = -O2 -I. -I.. \
++mausezahn-eflags = -I. -I.. \
+                  -DVERSION_STRING=\"$(VERSION_STRING)\" \
+                  -DVERSION_LONG=\"$(VERSION_LONG)\"
+--- netsniff-ng-0.6.7/Extra.orig       2020-05-04 15:15:32.000000000 +0200
++++ netsniff-ng-0.6.7/Extra    2020-05-24 14:39:00.224701174 +0200
+@@ -1,4 +1,4 @@
+ # Targets that need extra treatment for now
+ curvetun: LDFLAGS += -L ${CONFIG_NACL_LIB_DIR}
+-mausezahn: CFLAGS = $(mausezahn-eflags)
++mausezahn: CFLAGS += $(mausezahn-eflags)
index 13fc74ce56f464f01067624222c139c2e4f4fcd7..0cce11ca611e99f6d65b1fbc19548f467b2d0f7a 100644 (file)
@@ -7,6 +7,7 @@ License:        GPL v2
 Group:         Networking/Utilities
 Source0:       http://pub.netsniff-ng.org/netsniff-ng/%{name}-%{version}.tar.xz
 # Source0-md5: 2aba9835923c30721fa891a9dc59507c
+Patch0:                %{name}-opt.patch
 URL:           http://netsniff-ng.org/
 BuildRequires: GeoIP-devel >= 1.4.8
 BuildRequires: bison
@@ -56,12 +57,15 @@ BuildRoot:  %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 # not autoconf configure
 ./configure \
        --sysconfdir="%{_sysconfdir}" \
        --prefix="%{_prefix}"
+
+# as of 0.6.7 code relies on -fcommon behaviour, force it for gcc 10+
 %{__make} \
        CC="%{__cc}" \
        CPPFLAGS="%{rpmcflags} %{rpmcppflags} -fcommon" \
This page took 0.065277 seconds and 4 git commands to generate.