diff options
author | Niels de Vos <ndevos@redhat.com> | 2018-01-24 11:41:39 +0100 |
---|---|---|
committer | Anoop C S <anoopcs@autistici.org> | 2018-02-08 12:21:55 +0000 |
commit | 4400ea86c685054657823e679c7ee001591c503a (patch) | |
tree | 83197ca129563b556c2f84d5bf15e91ab4f76c42 /glusterfs.spec.in | |
parent | 5d9b8347af01e4b79d4df99bb5679b54b9ab18e3 (diff) |
build: use libtirpc by default, even if ipv6 is not the default
An error sneaked in with Change-Id I86f847dfd. The check for requiring
libtirpc-devel should be done regardless of the ipv6-default. Even if
IPv6 is not the default, libtirpc-devel should be used unless it is
explicitly requested by a --without option.
libtirpc can not be used on EL6 and EL7 yet. The EL7 version does not
provide xdr_sizeof(), in addition to that, EL6 does not have
xdr_uint32_t() and xdr_uint64_t().
BUG: 1538723
Change-Id: I4a8292de2eddad16137df5998334133fc1e11261
Fixes: 0c57232ae07f48bd6483bfe88a182f832377ef52
Signed-off-by: Niels de Vos <ndevos@redhat.com>
(cherry picked from commit 7631b22a5960363518ad13da8661c76a1ffec253)
Diffstat (limited to 'glusterfs.spec.in')
-rw-r--r-- | glusterfs.spec.in | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/glusterfs.spec.in b/glusterfs.spec.in index ba9bc9838e3..b6aa44bbf3a 100644 --- a/glusterfs.spec.in +++ b/glusterfs.spec.in @@ -63,6 +63,13 @@ # rpmbuild -ta @PACKAGE_NAME@-@PACKAGE_VERSION@.tar.gz --without libtirpc %{?_without_libtirpc:%global _without_libtirpc --without-libtirpc} +# Do not use libtirpc on EL6, it does not have xdr_uint64_t() and xdr_uint32_t +# Do not use libtirpc on EL7, it does not have xdr_sizeof() +%if ( 0%{?rhel} && 0%{?rhel} <= 7 ) +%global _without_libtirpc --without-libtirpc +%endif + + # ocf # if you wish to compile an rpm without the OCF resource agents... # rpmbuild -ta @PACKAGE_NAME@-@PACKAGE_VERSION@.tar.gz --without ocf @@ -237,7 +244,7 @@ BuildRequires: python2-devel %if ( 0%{?fedora} && 0%{?fedora} < 26 ) || ( 0%{?rhel} ) BuildRequires: python-ctypes %endif -%if ( 0%{?_with_ipv6default:1} ) && ( 0%{!?_without_libtirpc:1} ) +%if ( 0%{?_with_ipv6default:1} ) || ( 0%{!?_without_libtirpc:1} ) BuildRequires: libtirpc-devel %endif %if ( 0%{?fedora} && 0%{?fedora} > 27 ) |