- Add check-0.9.6-strdup.patch

This commit is contained in:
Jerry James 2009-04-07 15:03:14 +00:00
parent 34ac142591
commit aaa97ffa32
2 changed files with 32 additions and 1 deletions

24
check-0.9.6-strdup.patch Normal file
View File

@ -0,0 +1,24 @@
diff -dur check-0.9.6.ORIG/src/Makefile.am check-0.9.6/src/Makefile.am
--- check-0.9.6.ORIG/src/Makefile.am 2008-12-29 06:48:45.000000000 -0700
+++ check-0.9.6/src/Makefile.am 2009-04-07 08:51:13.000000000 -0600
@@ -7,7 +7,7 @@
EXTRA_DIST = check.h.in
-AM_CFLAGS = @GCOV_CFLAGS@ -ansi -pedantic
+AM_CFLAGS = @GCOV_CFLAGS@ -pedantic
CFILES =\
diff -dur check-0.9.6.ORIG/src/Makefile.in check-0.9.6/src/Makefile.in
--- check-0.9.6.ORIG/src/Makefile.in 2008-12-29 07:07:01.000000000 -0700
+++ check-0.9.6/src/Makefile.in 2009-04-07 08:51:22.000000000 -0600
@@ -206,7 +206,7 @@
noinst_LTLIBRARIES = libcheckinternal.la
include_HEADERS = check.h
EXTRA_DIST = check.h.in
-AM_CFLAGS = @GCOV_CFLAGS@ -ansi -pedantic
+AM_CFLAGS = @GCOV_CFLAGS@ -pedantic
CFILES = \
check.c \
check_error.c \

View File

@ -1,8 +1,11 @@
Name: check
Version: 0.9.6
Release: 2%{?dist}
Release: 3%{?dist}
Summary: A unit test framework for C
Source0: http://download.sourceforge.net/check/%{name}-%{version}.tar.gz
# This patch fixes debian bug 519597: use of -ansi conflicts with strdup()
# usage. Debian sent this patch upstream already.
Patch0: check-0.9.6-strdup.patch
Group: Development/Tools
License: LGPLv2+
URL: http://check.sourceforge.net/
@ -35,6 +38,7 @@ Static libraries of check.
%prep
%setup -q
%patch0 -p1
%build
%configure CFLAGS="${RPM_OPT_FLAGS} -fPIC"
@ -82,6 +86,9 @@ fi
%{_libdir}/libcheck.a
%changelog
* Tue Apr 7 2009 Jerry James <loganjerry@gmail.com> - 0.9.6-3
- Add check-0.9.6-strdup.patch
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild