jskarvad pushed to postfix (master). "Overriden DEF_SHLIB_DIR according to build host (..more)"

notifications at fedoraproject.org notifications at fedoraproject.org
Tue Mar 24 15:48:13 UTC 2015


jskarvad pushed to postfix (master).  "Overriden DEF_SHLIB_DIR according to build host (..more)"

>From 545b3695b67cd8fe56af15d40e97e407fccff596 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jaroslav=20=C5=A0karvada?= <jskarvad at redhat.com>
Date: Tue, 24 Mar 2015 16:48:06 +0100
Subject: Overriden DEF_SHLIB_DIR according to build host

  Resolves: rhbz#1202921

diff --git a/postfix.spec b/postfix.spec
index b99ebb3..f48edc5 100644
--- a/postfix.spec
+++ b/postfix.spec
@@ -42,7 +42,7 @@
 Name: postfix
 Summary: Postfix Mail Transport Agent
 Version: 3.0.0
-Release: 4%{?dist}
+Release: 5%{?dist}
 Epoch: 2
 Group: System Environment/Daemons
 URL: http://www.postfix.org
@@ -210,6 +210,11 @@ maps with Postfix, you need this.
 %patch3 -p1 -b .alternatives
 %patch8 -p1 -b .large-fs
 
+# Change DEF_SHLIB_DIR according to build host
+sed -i \
+'s|^\(\s*#define\s\+DEF_SHLIB_DIR\s\+\)"/usr/lib/postfix"|\1"%{_libdir}/postfix"|' \
+src/global/mail_params.h
+
 %if %{with pflogsumm}
 gzip -dc %{SOURCE53} | tar xf -
 pushd pflogsumm-%{pflogsumm_ver}
@@ -278,6 +283,10 @@ CCARGS="${CCARGS} $(getconf LFS_CFLAGS)"
 
 LDFLAGS="%{?__global_ldflags} %{?_hardened_build:-Wl,-z,relro,-z,now}"
 
+# SHLIB_RPATH is needed to find private libraries
+# LDFLAGS are added to SHLIB_RPATH because the postfix build system
+# ignores them. Adding LDFLAGS to SHLIB_RPATH is currently the only
+# way how to get them in
 make -f Makefile.init makefiles shared=yes dynamicmaps=yes \
   %{?_hardened_build:pie=yes} CCARGS="${CCARGS}" AUXLIBS="${AUXLIBS}" \
   AUXLIBS_LDAP="${AUXLIBS_LDAP}" AUXLIBS_PCRE="${AUXLIBS_PCRE}" \
@@ -719,6 +728,10 @@ rm -rf $RPM_BUILD_ROOT
 %endif
 
 %changelog
+* Tue Mar 24 2015 Jaroslav Škarvada <jskarvad at redhat.com> - 2:3.0.0-5
+- Overriden DEF_SHLIB_DIR according to build host
+  Resolves: rhbz#1202921
+
 * Fri Mar 13 2015 Jaroslav Škarvada <jskarvad at redhat.com> - 2:3.0.0-4
 - Switched to dynamically loaded libraries and database plugins
 - Enabled PostgreSQL support by default
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/postfix.git/commit/?h=master&id=545b3695b67cd8fe56af15d40e97e407fccff596

--
You received this message due to your preference settings at
https://apps.fedoraproject.org/notifications//fmnscmcommits.id.fedoraproject.org/email/29390


More information about the scm-commits mailing list