summaryrefslogtreecommitdiff
path: root/ctdb/packaging
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2016-03-01 12:20:35 +1100
committerAmitay Isaacs <amitay@samba.org>2016-03-07 14:43:15 +0100
commitc65d174eaebaba6bc6944b7fb1532944c512a0cd (patch)
tree868a4b580e2f069c94f10fa01f0d9b6e388e1e38 /ctdb/packaging
parentace23f0a81b057fbabd7e75a777688fee81bce94 (diff)
downloadsamba-c65d174eaebaba6bc6944b7fb1532944c512a0cd.tar.gz
ctdb-packaging: Set --libexecdir in RPM spec file
If the files section uses %{_libexecdir} then CTDB must also be configured to build and install with the same path, otherwise rpmbuild can fail due to a mismatch. "rpmbuild --showrc" indicates that the default %configure command sets: --libexecdir=%{_libexecdir} \ A mismatch will occur on SUSE systems, where SLES 12 and OpenSUSE 12 set _libexecdir to %{_exec_prefix}/lib. The failure was initially seen when testing on Debian where _libexecdir is set to %{_prefix}/lib/x86_64-linux-gnu, though Debian is an unlikely platform for building RPMs... Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com> Autobuild-User(master): Amitay Isaacs <amitay@samba.org> Autobuild-Date(master): Mon Mar 7 14:43:15 CET 2016 on sn-devel-144
Diffstat (limited to 'ctdb/packaging')
-rw-r--r--ctdb/packaging/RPM/ctdb.spec.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/ctdb/packaging/RPM/ctdb.spec.in b/ctdb/packaging/RPM/ctdb.spec.in
index 2e13d3ee49b..a8ed2d63d76 100644
--- a/ctdb/packaging/RPM/ctdb.spec.in
+++ b/ctdb/packaging/RPM/ctdb.spec.in
@@ -97,6 +97,7 @@ CFLAGS="$RPM_OPT_FLAGS $EXTRA -D_GNU_SOURCE" ./buildtools/bin/waf configure \
--prefix=%{_prefix} \
--includedir=%{_includedir}/ctdb \
--libdir=%{_libdir} \
+ --libexecdir=%{_libexecdir} \
--sysconfdir=%{_sysconfdir} \
--mandir=%{_mandir} \
--localstatedir="/var"