robert pushed to prosody (master). "Build EPEL 5 without CFLAG -D_GNU_SOURCE, because it requires fallocate() which requires GLIBC >= 2.10 (which is not in RHEL 5)"

notifications at fedoraproject.org notifications at fedoraproject.org
Sat Apr 18 21:30:32 UTC 2015


>From b78c5c75e57323da321162efbc9b5459fdd46233 Mon Sep 17 00:00:00 2001
From: Robert Scheck <robert at fedoraproject.org>
Date: Sat, 18 Apr 2015 23:29:39 +0200
Subject: Build EPEL 5 without CFLAG -D_GNU_SOURCE, because it requires
 fallocate() which requires GLIBC >= 2.10 (which is not in RHEL 5)


diff --git a/prosody.spec b/prosody.spec
index 96148a7..3905160 100644
--- a/prosody.spec
+++ b/prosody.spec
@@ -58,6 +58,7 @@ added functionality, or prototype new protocols.
 %patch0 -p1 -b .config
 
 %build
+# CFLAG -D_GNU_SOURCE requires fallocate() which requires GLIBC >= 2.10
 ./configure \
   --prefix=%{_prefix} \
   --libdir=%{_libdir} \
@@ -65,7 +66,11 @@ added functionality, or prototype new protocols.
   --with-lua-include=%{_includedir}/lua-%{luaver} \
   --runwith=lua-%{luaver} \
 %endif
+%if 0%{?rhel} > 5
   --cflags="$RPM_OPT_FLAGS -fPIC -D_GNU_SOURCE" \
+%else
+  --cflags="$RPM_OPT_FLAGS -fPIC" \
+%endif
   --ldflags="$RPM_LD_FLAGS -shared" \
   --no-example-certs
 make %{?_smp_mflags}
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/prosody.git/commit/?h=master&id=b78c5c75e57323da321162efbc9b5459fdd46233


More information about the scm-commits mailing list