[isdn4k-utils] build with -fno-strict-aliasing
Than Ngo
than at fedoraproject.org
Thu Apr 25 16:12:23 UTC 2013
commit df973f4f613ca16d83baa2e9d058969ffdfa768b
Author: Than Ngo <than at redhat.com>
Date: Thu Apr 25 18:11:55 2013 +0200
build with -fno-strict-aliasing
...ls-CVS-2010-05-01-patched-strict-aliasing.patch | 48 ++++++++++++++++++++
isdn4k-utils.spec | 12 ++++-
2 files changed, 58 insertions(+), 2 deletions(-)
---
diff --git a/isdn4k-utils-CVS-2010-05-01-patched-strict-aliasing.patch b/isdn4k-utils-CVS-2010-05-01-patched-strict-aliasing.patch
new file mode 100644
index 0000000..4518071
--- /dev/null
+++ b/isdn4k-utils-CVS-2010-05-01-patched-strict-aliasing.patch
@@ -0,0 +1,48 @@
+diff -up isdn4k-utils-CVS-2010-05-01-patched/ipppd/Makefile.in.me isdn4k-utils-CVS-2010-05-01-patched/ipppd/Makefile.in
+--- isdn4k-utils-CVS-2010-05-01-patched/ipppd/Makefile.in.me 2013-04-25 17:40:08.094933867 +0200
++++ isdn4k-utils-CVS-2010-05-01-patched/ipppd/Makefile.in 2013-04-25 17:40:53.068248859 +0200
+@@ -73,7 +73,7 @@ endif
+
+ DEBUG_FLAGS = @CONFIG_IPPPD_DEBUGFLAGS@
+ COMPILE_FLAGS = @CFLAGS@
+-CFLAGS = $(RPM_OPT_FLAGS)
++CFLAGS = $(RPM_OPT_FLAGS) -fno-strict-aliasing
+ VER = 2.2.0
+
+ # it's a hack
+diff -up isdn4k-utils-CVS-2010-05-01-patched/pcbit/Makefile.in.me isdn4k-utils-CVS-2010-05-01-patched/pcbit/Makefile.in
+--- isdn4k-utils-CVS-2010-05-01-patched/pcbit/Makefile.in.me 2013-04-25 17:38:59.497504029 +0200
++++ isdn4k-utils-CVS-2010-05-01-patched/pcbit/Makefile.in 2013-04-25 17:39:37.366085214 +0200
+@@ -5,7 +5,7 @@
+ #
+ #
+ SHELL = /bin/sh
+-CFLAGS = -Wall -Wstrict-prototypes $(RPM_OPT_FLAGS)
++CFLAGS = -Wall -Wstrict-prototypes $(RPM_OPT_FLAGS) -fno-strict-aliasing
+ INCLUDES = -I. -DDEBUG -I at CONFIG_KERNELDIR@/drivers/isdn/pcbit
+ LDFLAGS = -L../lib @LIBS@
+ PROGRAM = pcbitctl
+diff -up isdn4k-utils-CVS-2010-05-01-patched/rcapid/Makefile.am.me isdn4k-utils-CVS-2010-05-01-patched/rcapid/Makefile.am
+--- isdn4k-utils-CVS-2010-05-01-patched/rcapid/Makefile.am.me 2013-04-25 17:42:52.840761232 +0200
++++ isdn4k-utils-CVS-2010-05-01-patched/rcapid/Makefile.am 2013-04-25 17:43:05.903271787 +0200
+@@ -8,7 +8,7 @@ MAINTAINERCLEANFILES = configure aclo
+ stamp-h.in comperr
+
+ INCLUDES = -I../capi20 $(all_includes)
+-CFLAGS = -Wall $(RPM_OPT_FLAGS)
++CFLAGS = -Wall $(RPM_OPT_FLAGS) -fno-strict-aliasing
+ LDFLAGS = -L../capi20/.libs -L../capi20 $(all_libraries)
+ LDADD = -lcapi20
+
+diff -up isdn4k-utils-CVS-2010-05-01-patched/vbox/src/Makefile.in.me isdn4k-utils-CVS-2010-05-01-patched/vbox/src/Makefile.in
+--- isdn4k-utils-CVS-2010-05-01-patched/vbox/src/Makefile.in.me 2013-04-25 17:41:43.948342480 +0200
++++ isdn4k-utils-CVS-2010-05-01-patched/vbox/src/Makefile.in 2013-04-25 17:42:17.984067228 +0200
+@@ -13,7 +13,7 @@ NCURSES_HAVE = @HAVE_NCURSES_PACK@
+ TCL_LIBS = @LINK_TCL_LIBS@
+ TCL_HAVE = @HAVE_TCL_PACK@
+
+-override CFLAGS += $(VBOX_CFLAGS)
++override CFLAGS += $(VBOX_CFLAGS) -fno-strict-aliasing
+
+ #----------------------------------------------------------------------------#
+ # Headers #
diff --git a/isdn4k-utils.spec b/isdn4k-utils.spec
index e74b734..dea52c8 100644
--- a/isdn4k-utils.spec
+++ b/isdn4k-utils.spec
@@ -6,7 +6,7 @@
Summary: Utilities for configuring an ISDN subsystem
Name: isdn4k-utils
Version: 3.2
-Release: 90%{?dist}
+Release: 92%{?dist}
License: GPLv2+ and GPL+ and MIT and BSD and zlib
Group: Applications/System
Url: http://www.isdn4linux.de/
@@ -45,6 +45,7 @@ Patch23: isdn-manpages.patch
Patch24: isdn4k-fix-ipppd.patch
Patch25: isdn4k-utils-capi20-link.patch
Patch26: isdn4k-utils-CVS-2010-05-01-patched-legal-fixes.patch
+Patch27: isdn4k-utils-CVS-2010-05-01-patched-strict-aliasing.patch
Requires: udev >= 039-10.14.EL4
Requires: hwdata >= 0.146.18.EL-1
@@ -73,7 +74,7 @@ BuildRequires: libtool
BuildRequires: ppp-devel
BuildRequires: systemd-units >= 39-2
# for /usr/bin/pod2man
-%if 0%{?fedora} > 18
+%if 0%{?fedora} > 18 || 0%{?rhel} > 6
BuildRequires: perl-podlators
%endif
@@ -151,6 +152,7 @@ The isdn4k-utils-doc package contains the documentation for isdn4k-utils.
%patch24 -p1 -b .fix-ipppd
%patch25 -p1 -b .capi20-link
%patch26 -p1 -b .legal
+%patch27 -p1 -b .no-strict-aliasing
# remove useless files
find -type d -name "CVS" | xargs rm -rf
@@ -394,6 +396,12 @@ echo "# config files" >> %{buildroot}/etc/ppp/ioptions
%changelog
+* Thu Apr 25 2013 Than Ngo <than at redhat.com> - 3.2-92
+- build with -fno-strict-aliasing
+
+* Wed Apr 03 2013 Than Ngo <than at redhat.com> - 3.2-91
+- add rhel condition
+
* Fri Mar 01 2013 Than Ngo <than at redhat.com> - 3.2-90
- add BR perl-podlators for pod2man
More information about the scm-commits
mailing list