From 983623aaf4af033cbfddeae7494fc69901723df8361471e3d6ffe2db8819ebf9 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Mon, 17 Nov 2008 16:10:21 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/keyutils?expand=0&rev=4 --- keyutils-1.2-strict-aliasing-punning.patch | 13 +++++++++++ keyutils.changes | 6 +++++ keyutils.spec | 26 +++++++++++++++------- 3 files changed, 37 insertions(+), 8 deletions(-) create mode 100644 keyutils-1.2-strict-aliasing-punning.patch diff --git a/keyutils-1.2-strict-aliasing-punning.patch b/keyutils-1.2-strict-aliasing-punning.patch new file mode 100644 index 0000000..0e2ca71 --- /dev/null +++ b/keyutils-1.2-strict-aliasing-punning.patch @@ -0,0 +1,13 @@ +Index: Makefile +=================================================================== +--- Makefile.orig 2006-08-22 18:40:00.000000000 +0200 ++++ Makefile 2008-11-12 01:04:22.000000000 +0100 +@@ -76,7 +76,7 @@ keyctl: keyctl.c keyutils.h Makefile + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< -L. -lkeyutils -Wl,-rpath,$(LIB) + + request-key: request-key.c keyutils.h Makefile +- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< -L. -lkeyutils -Wl,-rpath,$(LIB) ++ $(CC) $(CFLAGS) -fno-strict-aliasing $(LDFLAGS) -o $@ $< -L. -lkeyutils -Wl,-rpath,$(LIB) + + + MAN1 := $(DESTDIR)/usr/share/man/man1 diff --git a/keyutils.changes b/keyutils.changes index 4b6fe8e..de3b2c3 100644 --- a/keyutils.changes +++ b/keyutils.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Nov 13 00:03:14 CET 2008 - crrodriguez@suse.de + +- build request-key.c with -fno-strict-aliasing to avoid + possible breakages + ------------------------------------------------------------------- Thu Apr 10 12:54:45 CEST 2008 - ro@suse.de diff --git a/keyutils.spec b/keyutils.spec index 5b5bebe..f97850e 100644 --- a/keyutils.spec +++ b/keyutils.spec @@ -2,9 +2,16 @@ # spec file for package keyutils (Version 1.2) # # Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. -# This file and all modifications and additions to the pristine -# package are under the same license as the package itself. # +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + # Please submit bugfixes or comments via http://bugs.opensuse.org/ # @@ -18,10 +25,10 @@ Group: System/Kernel AutoReqProv: on Summary: Linux Key Management Utilities Version: 1.2 -Release: 71 +Release: 106 Source0: http://people.redhat.com/~dhowells/keyutils/%name-%version.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build -PreReq: %install_info_prereq +Patch: keyutils-1.2-strict-aliasing-punning.patch %description Utilities to control the kernel key management facility and to provide @@ -53,6 +60,7 @@ Authors: License: GPL v2 or later; LGPL v2.1 or later Summary: Development package for building linux key management utilities Group: System/Kernel +Requires: %{name}-libs = %{version} glibc-devel %description devel This package provides headers and libraries for building key utilities. @@ -65,6 +73,7 @@ Authors: %prep %setup -q +%patch %build make NO_ARLIB=1 CFLAGS="$RPM_OPT_FLAGS" @@ -72,11 +81,9 @@ make NO_ARLIB=1 CFLAGS="$RPM_OPT_FLAGS" %install make install NO_ARLIB=1 DESTDIR=$RPM_BUILD_ROOT LIBDIR=/%_lib USRLIBDIR=/usr/%_lib -%post -%run_ldconfig +%post libs -p /sbin/ldconfig -%postun -%run_ldconfig +%postun libs -p /sbin/ldconfig %files %defattr(-,root,root,-) @@ -99,6 +106,9 @@ make install NO_ARLIB=1 DESTDIR=$RPM_BUILD_ROOT LIBDIR=/%_lib USRLIBDIR=/usr/%_l %{_includedir}/* %changelog +* Thu Nov 13 2008 crrodriguez@suse.de +- build request-key.c with -fno-strict-aliasing to avoid + possible breakages * Thu Apr 10 2008 ro@suse.de - added baselibs.conf file to build xxbit packages for multilib support