diff --git a/pl-5.7.6-strndup-no-static.patch b/pl-5.7.6-strndup-no-static.patch new file mode 100644 index 0000000..cb5b205 --- /dev/null +++ b/pl-5.7.6-strndup-no-static.patch @@ -0,0 +1,11 @@ +--- pl-5.7.6/src/mkvmi.c.BAD 2009-06-12 17:02:41.000000000 -0500 ++++ pl-5.7.6/src/mkvmi.c 2009-06-12 17:02:52.000000000 -0500 +@@ -142,7 +142,7 @@ + } + + +-static char * ++char * + strndup(const char *in, size_t len) + { char *s = malloc(len+1); + diff --git a/pl.spec b/pl.spec index b50d933..4b19eec 100644 --- a/pl.spec +++ b/pl.spec @@ -3,7 +3,7 @@ Name: pl Version: 5.7.6 -Release: 4%{?dist} +Release: 5%{?dist} Summary: SWI-Prolog - Edinburgh compatible Prolog compiler @@ -18,6 +18,7 @@ Patch1: %{name}-5.6.57-jpl-configure.patch Patch2: %{name}-5.6.57-jpl-configure-alpha.patch Patch3: %{name}-5.6.60-jni.patch Patch4: %{name}-5.6.57-jpl-configure-s390x.patch +Patch5: pl-5.7.6-strndup-no-static.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: gmp-devel @@ -105,6 +106,7 @@ in Prolog. In both setups it provides a reentrant bidirectional interface. %patch2 -p1 -b .libjvm-alpha %patch3 -p1 -b .jni %patch4 -p1 -b .libjvm-s390X +%patch5 -p1 -b .strndup-no-static ( mkdir doc-install cd doc-install @@ -241,6 +243,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Fri Jun 12 2009 Dennis Gilmore 5.7.6-5 +-dont use a static definition for strndup + * Mon Mar 02 2009 Dennis Gilmore 5.7.6-4 - fix JAVA_HOME and JAVA_LIB for sparc arches