Author: jjneely
Update of /cvs/free/rpms/openafs/F-14
In directory se02.es.rpmfusion.net:/tmp/cvs-serv5054
Modified Files:
openafs.spec
Added Files:
openafs-1.4.14-fPIC.patch
Log Message:
* Thu Aug 04 2011 Jack Neely <jjneely(a)ncsu.edu> 0:1.4.14.1-2
- BuildReq automake and autoconf
- Patch osconf.m4 to force building with -fPIC as there were still
objects used in libraries that were not build with -fPIC
- Removed the CCOBJ environment variable with the configure line
openafs-1.4.14-fPIC.patch:
osconf.m4 | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
--- NEW FILE openafs-1.4.14-fPIC.patch ---
--- src/cf/osconf.m4.orig 2011-08-05 10:50:28.331936670 -0400
+++ src/cf/osconf.m4 2011-08-05 12:32:32.530773075 -0400
@@ -312,7 +312,7 @@
CCOBJ="${CC} -fPIC"
KERN_OPTMZ=-O2
LEX="flex -l"
- MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
+ MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS} -fPIC'
MT_LIBS="-lpthread"
PAM_CFLAGS="-g -O2 -Dlinux -DLINUX_PAM -fPIC"
SHLIB_CFLAGS="-fPIC"
@@ -368,11 +368,11 @@
i386_linux*)
CC="gcc -pipe"
- CCOBJ="gcc -pipe"
+ CCOBJ="gcc -pipe -fPIC"
MT_CC="gcc -pipe"
KERN_OPTMZ=-O2
LEX="flex -l"
- MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
+ MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS} -fPIC'
MT_LIBS="-lpthread"
DBG=-g
KERN_DBG=-g
Index: openafs.spec
===================================================================
RCS file: /cvs/free/rpms/openafs/F-14/openafs.spec,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- openafs.spec 25 Jul 2011 15:44:06 -0000 1.8
+++ openafs.spec 5 Aug 2011 19:07:27 -0000 1.9
@@ -13,7 +13,7 @@
Summary: Enterprise Network File System
Name: openafs
Version: 1.4.14.1
-Release: 1%{?dist}
+Release: 2%{?dist}
License: IBM
Group: System Environment/Daemons
URL:
http://www.openafs.org
@@ -26,6 +26,9 @@
BuildRoot: %{_tmppath}/%{name}-root
BuildRequires: krb5-devel, pam-devel, ncurses-devel, flex, byacc, bison
+BuildRequires: automake, autoconf
+
+Patch0: openafs-1.4.14-fPIC.patch
%description
The AFS distributed filesystem. AFS is a distributed filesystem
@@ -89,6 +92,9 @@
%prep
%setup -q -b 1 -n openafs-%{version}
+# This changes osconf.m4 to build with -fPIC on i386 and x86_64
+%patch0
+
# Convert the licese to UTF-8
mv src/LICENSE src/LICENSE~
iconv -f ISO-8859-1 -t UTF8 src/LICENSE~ > src/LICENSE
@@ -113,8 +119,7 @@
--disable-kernel-module \
--disable-strip-binaries \
--enable-supergroups \
- --with-krb5-conf=/usr/bin/krb5-config \
- CCOBJ=-fPIC
+ --with-krb5-conf=/usr/bin/krb5-config
# Build is not SMP compliant
make $RPM_OPT_FLGS all_nolibafs
@@ -306,6 +311,12 @@
%changelog
+* Thu Aug 04 2011 Jack Neely <jjneely(a)ncsu.edu> 0:1.4.14.1-2
+- BuildReq automake and autoconf
+- Patch osconf.m4 to force building with -fPIC as there were still
+ objects used in libraries that were not build with -fPIC
+- Removed the CCOBJ environment variable with the configure line
+
* Mon Jul 25 2011 Jack Neely <jjneely(a)ncsu.edu> 0.1.4.14.1-1
- Updated to OpenAFS version 1.4.14.1
- Populate cache directory even though we use memcache by default