The uudecode binary is used to build Java-related components, and
uudecode is provided by the sharutils package on all supported
RPM platforms. When building with "--without=cephfs_java",
sharutils is not needed.
Thanks to Nathan Cutler <ncutler@suse.cz> for going into the
details with me.
On OBS without this patch we get the error message:
[ 170s] -----------------------------------------------------------------
[ 170s] ----- building ceph.spec (user abuild)
[ 170s] -----------------------------------------------------------------
[ 170s] -----------------------------------------------------------------
[ 170s] + exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --nosignature --define 'disturl obs://build.opensuse.org/home:osynge:ceph:wip:wip_obs_fedora/Fedora_20/
c0bbbc1e62228ca956ac3d367edc4fba-master' /home/abuild/rpmbuild/SOURCES/ceph.spec
[ 170s] error: Failed build dependencies:
[ 170s] sharutils is needed by ceph-1:2+git.
1435043747.
c1bd02c-1.1.x86_64
With this patch we can build fedora 22 and fedora 20 rpms fine.
Signed-off-by: Owen Synge <osynge@suse.com>
(cherry picked from commit
43c1784640538b813f0575c50f721ac911a30b3e)
Conflicts:
ceph.spec.in
_with_systemd -> trivial resolution
Requires: hdparm
Requires: cryptsetup
Requires(post): binutils
+%if 0%{with cephfs_java}
+BuildRequires: sharutils
+%endif
BuildRequires: gcc-c++
BuildRequires: boost-devel
%if 0%{defined suse_version}
#################################################################################
# specific
#################################################################################
-%if ! 0%{?rhel} || 0%{?fedora}
-BuildRequires: sharutils
-%endif
-
%if 0%{defined suse_version}
%if 0%{?suse_version} > 1210
Requires: gptfdisk