[packages/aircrack-ng] added pldflags.patch
sls
sls at pld-linux.org
Tue Nov 17 14:54:41 CET 2015
commit f377f5bd69f26c87cd0ba92abedc088cc4ac2910
Author: Szymon Siwek <sls at pld-linux.org>
Date: Tue Nov 17 13:29:11 2015 +0100
added pldflags.patch
- switched seding common.mak to patching (in current version sed
won't apply anyway)
- TODO about optflags and cflags done (long time ago)
aircrack-ng.spec | 6 ++----
pldflags.patch | 11 +++++++++++
2 files changed, 13 insertions(+), 4 deletions(-)
---
diff --git a/aircrack-ng.spec b/aircrack-ng.spec
index 8161411..a72f8d8 100644
--- a/aircrack-ng.spec
+++ b/aircrack-ng.spec
@@ -2,8 +2,6 @@
# TODO:
# - PLD it more
# - Find more deps
-# - optflags
-# - cflags
# - sbin/bin - change to bin?
# - package airdrop-ng and airgraph-ng
#
@@ -26,6 +24,7 @@ Source0: http://download.aircrack-ng.org/%{name}-%{version}-%{subver}.tar.gz
# Source0-md5: ebe9d537f06f4d6956213af09c4476da
URL: http://www.aircrack-ng.org/
Patch0: install.patch
+Patch1: pldflags.patch
BuildRequires: libnl-devel
BuildRequires: openssl-devel
BuildRequires: pkgconfig
@@ -53,8 +52,7 @@ convert, etc.).
%prep
%setup -q -n %{name}-%{version}-%{subver}
%patch0 -p1
-
-sed -i -e 's#-Werror -O3#$(PLDFLAGS)#g' common.mak
+%patch1 -p1
%build
%{__make} -j1 \
diff --git a/pldflags.patch b/pldflags.patch
new file mode 100644
index 0000000..600f667
--- /dev/null
+++ b/pldflags.patch
@@ -0,0 +1,11 @@
+--- aircrack-ng-1.2-rc2/common.mak.orig 2015-11-17 13:23:14.717899992 +0100
++++ aircrack-ng-1.2-rc2/common.mak 2015-11-17 13:24:33.161433664 +0100
+@@ -118,7 +118,7 @@ REVISION = $(shell $(AC_ROOT)/evalrev $(
+ REVFLAGS ?= -D_REVISION=$(REVISION)
+
+ OPTFLAGS = -D_FILE_OFFSET_BITS=64
+-CFLAGS ?= -g -W -Wall -O3
++CFLAGS ?= -g -W -Wall $(PLDFLAGS)
+ CFLAGS += $(OPTFLAGS) $(REVFLAGS) $(COMMON_CFLAGS)
+
+ prefix = /usr/local
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/aircrack-ng.git/commitdiff/41e6054eae262640cd259177ca3c47c0f518fac0
More information about the pld-cvs-commit
mailing list