[am-utils] - bz955445 - am-utils package should be built with PIE flags

Ian Kent iankent at fedoraproject.org
Sun Apr 28 03:58:49 UTC 2013


commit 027f675657d7bb7ca32621167342d2b22a3bf846
Author: Ian Kent <ikent at redhat.com>
Date:   Sun Apr 28 11:58:26 2013 +0800

    - bz955445 - am-utils package should be built with PIE flags

 am-utils.spec |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/am-utils.spec b/am-utils.spec
index 6073a99..bcea327 100644
--- a/am-utils.spec
+++ b/am-utils.spec
@@ -1,7 +1,7 @@
 Summary: Automount utilities including an updated version of Amd
 Name: am-utils
 Version: 6.1.5
-Release: 26%{?dist}
+Release: 27%{?dist}
 License: BSD
 Epoch: 5
 Group: System Environment/Daemons
@@ -54,6 +54,10 @@ Patch5: am-utils-6.1.5-expn-temp.patch
 Patch6: am-utils-6.1.5-nolock-toplvl.patch
 # 566711 - am-utils: incorrect use of tcp_wrapper
 Patch7: am-utils-6.1.5-libwarp.patch
+# 955445 - am-utils package should be built with PIE flags
+Patch8: am-utils-6.1.5-use-_hardened_build-flag.patch
+
+%global _hardened_build	1
 
 # We need to filter out some perl requirements for now.
 %define _use_internal_dependency_generator 0
@@ -80,6 +84,7 @@ mounting and unmounting filesystems.
 %patch5 -p1
 %patch6 -p1
 %patch7 -p1
+#%patch8 -p1
 
 find_requires=%{old_find_requires}
 echo "$find_requires | grep -v lostaltmail.conf" > find-requires
@@ -89,7 +94,7 @@ chmod +x find-requires
 ./bootstrap
 %configure \
         --enable-shared \
-        --enable-am-cflags="${RPM_OPT_FLAGS} -DHAVE_LINUX_NFS_MOUNT_H" \
+        --enable-am-cflags="-DHAVE_LINUX_NFS_MOUNT_H" \
         --enable-libs="-lnsl -lresolv"
 
 sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
@@ -191,6 +196,10 @@ fi
 %{_libdir}/libamu.so*
 
 %changelog
+* Sun Apr 18 2013 Ian Kent <ikent at redhat.com> - 5:6.1.5-27
+- bz955445 - am-utils package should be built with PIE flags
+  - use _hardened_build flag.
+
 * Mon Feb 18 2013 Ian Kent <ikent at redhat.com> - 5:6.1.5-26
 - add BuildRequires for texinfo.
 


More information about the scm-commits mailing list