]> git.pld-linux.org Git - packages/libxcrypt.git/commitdiff
- disable -Werror from CFLAGS or this code won't compile under modern gcc
authorJacek Konieczny <jajcus@pld-linux.org>
Tue, 19 Jun 2012 10:29:39 +0000 (10:29 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    libxcrypt-noWerror.patch -> 1.1
    libxcrypt.spec -> 1.6

libxcrypt-noWerror.patch [new file with mode: 0644]
libxcrypt.spec

diff --git a/libxcrypt-noWerror.patch b/libxcrypt-noWerror.patch
new file mode 100644 (file)
index 0000000..1efa071
--- /dev/null
@@ -0,0 +1,12 @@
+diff -dur libxcrypt-3.0.2.orig/configure.in libxcrypt-3.0.2/configure.in
+--- libxcrypt-3.0.2.orig/configure.in  2008-07-16 14:30:29.000000000 +0200
++++ libxcrypt-3.0.2/configure.in       2012-06-19 12:27:48.000000000 +0200
+@@ -29,7 +29,7 @@
+ EXTRA_CFLAGS=""
+ if eval "test x$GCC = xyes"; then
+-    EXTRA_CFLAGS="-W -Wall -Wbad-function-cast -Wcast-align -Wcast-qual -Winline -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wshadow -Wstrict-prototypes -Wundef -Wpointer-arith -Werror"
++    EXTRA_CFLAGS="-W -Wall -Wbad-function-cast -Wcast-align -Wcast-qual -Winline -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wshadow -Wstrict-prototypes -Wundef -Wpointer-arith"
+ fi
+ AC_SUBST(EXTRA_CFLAGS)
index a72284f7f77a4ad5974ca7fd47ac081dcb126f5a..e1a4d9f63f84433eddae96868208fe7011c9eb94 100644 (file)
@@ -7,6 +7,7 @@ License:        LGPL v2.1+ (library), LGPL v2.1+/Public Domain (plugins)
 Group:         Libraries
 Source0:       ftp://ftp.suse.com/pub/people/kukuk/libxcrypt/%{name}-%{version}.tar.bz2
 # Source0-md5: 56cf4285086f26649b8792b53fe8b00f
+Patch0:                %{name}-noWerror.patch
 BuildRequires: sed >= 4.0
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -53,6 +54,7 @@ Ten pakiet zawiera statycznÄ… wersjÄ™ biblioteki libxcrypt.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %configure \
This page took 0.197658 seconds and 4 git commands to generate.