[pth] Build with -D_FILE_OFFSET_BITS=64 to get stat64 in pth_high.c
Michael Schwendt
mschwendt at fedoraproject.org
Wed Feb 20 11:53:46 UTC 2013
commit 896457be631fe4dce36eb791ca1a26e18f1a85ba
Author: Michael Schwendt <mschwendt at fedoraproject.org>
Date: Wed Feb 20 12:53:41 2013 +0100
Build with -D_FILE_OFFSET_BITS=64 to get stat64 in pth_high.c
- Guard the ARM CFLAGS sed substitution.
pth.spec | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/pth.spec b/pth.spec
index 6763b74..e75ca1a 100644
--- a/pth.spec
+++ b/pth.spec
@@ -1,7 +1,7 @@
Summary: The GNU Portable Threads library
Name: pth
Version: 2.0.7
-Release: 18%{?dist}
+Release: 19%{?dist}
License: LGPLv2+
Group: System Environment/Libraries
URL: http://www.gnu.org/software/pth/
@@ -44,10 +44,12 @@ Development headers and libraries for GNU Pth.
%build
-OUR_CFLAGS="${RPM_OPT_FLAGS}"
+OUR_CFLAGS="${RPM_OPT_FLAGS} -D_FILE_OFFSET_BITS=64"
%ifarch %{arm}
-OUR_CFLAGS=$(echo "${RPM_OPT_FLAGS}" | sed -e 's/-Wp,-D_FORTIFY_SOURCE=2/-D_FORTIFY_SOURCE=0/g')
+OUR_CFLAGS=$(echo "${OUR_CFLAGS}" | sed -e 's/-Wp,-D_FORTIFY_SOURCE=2/-D_FORTIFY_SOURCE=0/g')
+# guard
+echo "${OUR_CFLAGS}" | grep FORTIFY_SOURCE=0
%endif
CFLAGS="${OUR_CFLAGS}"
@@ -118,6 +120,10 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Wed Feb 20 2013 Michael Schwendt <mschwendt at fedoraproject.org> - 2.0.7-19
+- Build with -D_FILE_OFFSET_BITS=64 to get stat64 in pth_high.c
+- Guard the ARM CFLAGS sed substitution.
+
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.0.7-18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
More information about the scm-commits
mailing list