fix build (ceph.spec)
cover fix build (ceph.spec)
This set fixes some issues in the spec file.
I'm not sure what the reason for #35e5d74e5c5786bc91df5dc10b5c08c77305df4e was. But I would revert it and fix the underlaying issues instead. Patch #2 adds rbd-fuse to the file list and should fix build again. At least it works for us at SUSE/RHEL/CentOS in the openSUSE build service.
Danny Al-Gaaf (6):
Revert "Don't install rbd-fuse binary"
ceph.spec.in: add rbd-fuse
ceph.spec.in: move libcephfs_jni.so to ceph-devel ceph.spec.in: don't move libcephfs_jni files around ceph.spec.in: extend fix for libedit-devel on special SUSE versions ceph.spec.in: fix file section for ceph-resource-agents
ceph.spec.in | 13 ++++++++----- src/Makefile.am | 4 +--- 2 files changed, 9 insertions(+), 8 deletions(-)
Signature · 1 line
1.8.1.1
PATCH 1/6 Revert "Don't install rbd-fuse binary"
This reverts commit 35e5d74e5c5786bc91df5dc10b5c08c77305df4e.
-> fix build instead
--- src/Makefile.am | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
src/Makefile.am +1 -3
@@ -26,8 +26,6 @@ bin_PROGRAMS = # like bin_PROGRAMS, but these targets are only built for debug builds bin_DEBUGPROGRAMS = sbin_PROGRAMS = -noinst_PROGRAMS = - sbin_SCRIPTS = \ ceph-disk-prepare \ ceph-disk-activate \
@@ -166,7 +164,7 @@ bin_PROGRAMS += ceph-fuse rbd_fuse_SOURCES = rbd_fuse/rbd-fuse.c rbd_fuse_LDADD = -lfuse librados.la librbd.la $(LIBGLOBAL_LDA) rbd_fuse_CXXFLAGS = ${AM_CXXFLAGS} -noinst_PROGRAMS += rbd-fuse +bin_PROGRAMS += rbd-fuse endif
Signature · 1 line
1.8.1.1
PATCH 2/6 ceph.spec.in: add rbd-fuse
In reply to Danny Al-GaafAdd %{_bindir}/rbd-fuse to the ceph-fuse subpackage.
--- ceph.spec.in | 1 + 1 file changed, 1 insertion(+)
ceph.spec.in +1 -0
@@ -392,6 +392,7 @@ fi %files fuse %defattr(-,root,root,-) %{_bindir}/ceph-fuse +%{_bindir}/rbd-fuse %{_mandir}/man8/ceph-fuse.8* /sbin/mount.fuse.ceph
Signature · 1 line
1.8.1.1
PATCH 3/6 ceph.spec.in: move libcephfs_jni.so to ceph-devel
In reply to Danny Al-GaafMove libcephfs_jni.so to the ceph-devel package since so-files they shouldn't be part of the library package.
--- ceph.spec.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
ceph.spec.in +2 -1
@@ -414,6 +414,7 @@ fi %{_libdir}/libcephfs.so %{_libdir}/librbd.so %{_libdir}/librados.so +/usr/lib/jni/libcephfs_jni.so ################################################################################# %files radosgw
@@ -561,7 +562,7 @@ fi %files -n libcephfs_jni1 %defattr(-,root,root,-) -/usr/lib/jni/libcephfs_jni.so* +/usr/lib/jni/libcephfs_jni.so.* %files -n cephfs-java %defattr(-,root,root,-)
Signature · 1 line
1.8.1.1
PATCH 4/6 ceph.spec.in: don't move libcephfs_jni files around
In reply to Danny Al-GaafDon't move libcephfs_jni files around from %{_libdir} to /usr/lib/jni/ in the buildroot. They should be placed in %{_libdir} as all libs.
--- ceph.spec.in | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-)
ceph.spec.in +2 -6
@@ -280,10 +280,6 @@ mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log/ceph/ mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/run/ceph/ mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/ceph/ -# Relocate java packages to expected locations in buildroot. -mkdir -p $RPM_BUILD_ROOT/usr/lib/jni -mv $RPM_BUILD_ROOT/usr/lib64/libcephfs_jni.so* $RPM_BUILD_ROOT/usr/lib/jni/. - # udev rules install -D -m 644 udev/50-rbd.rules $RPM_BUILD_ROOT/lib/udev/rules.d/50-rbd.rules
@@ -414,7 +410,7 @@ fi %{_libdir}/libcephfs.so %{_libdir}/librbd.so %{_libdir}/librados.so -/usr/lib/jni/libcephfs_jni.so +%{_libdir}/libcephfs_jni.so ################################################################################# %files radosgw
@@ -562,7 +558,7 @@ fi %files -n libcephfs_jni1 %defattr(-,root,root,-) -/usr/lib/jni/libcephfs_jni.so.* +%{_libdir}/libcephfs_jni.so.* %files -n cephfs-java %defattr(-,root,root,-)
Signature · 1 line
1.8.1.1
PATCH 5/6 ceph.spec.in: extend fix for libedit-devel on special SUSE versions
In reply to Danny Al-GaafExtend fix for libedit-devel on special SUSE versions, use ncurses also on src/ocf/Makefile and src/java/Makefile
--- ceph.spec.in | 2 ++ 1 file changed, 2 insertions(+)
ceph.spec.in +2 -0
@@ -259,6 +259,8 @@ export RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed -e 's/i386/i486/'` sed -i -e "s/-lcurses/-lncurses/g" Makefile sed -i -e "s/-lcurses/-lncurses/g" src/Makefile sed -i -e "s/-lcurses/-lncurses/g" man/Makefile +sed -i -e "s/-lcurses/-lncurses/g" src/ocf/Makefile +sed -i -e "s/-lcurses/-lncurses/g" src/java/Makefile %endif make -j$(getconf _NPROCESSORS_ONLN)
Signature · 1 line
1.8.1.1
PATCH 6/6 ceph.spec.in: fix file section for ceph-resource-agents
In reply to Danny Al-GaafCreate needed dirs (/usr/lib/ocf/resource.d/ceph) for the ceph-resource-agents subpackage.
--- ceph.spec.in | 3 +++ 1 file changed, 3 insertions(+)
ceph.spec.in +3 -0
@@ -446,6 +446,9 @@ fi %if %{with ocf} %files resource-agents %defattr(0755,root,root,-) +%dir /usr/lib/ocf +%dir /usr/lib/ocf/resource.d +%dir /usr/lib/ocf/resource.d/ceph /usr/lib/ocf/resource.d/%{name}/* %endif
Signature · 1 line
1.8.1.1
Quoted 4 lines · Danny Al-Gaaf
This set fixes some issues in the spec file.
I'm not sure what the reason for #35e5d74e5c5786bc91df5dc10b5c08c77305df4e was. But I would revert it and fix the underlaying issues instead.
That is a pretty obtuse commit message, but it was actually because while rbd-fuse is ready to be in-tree, we don't think it's ready for people to be using; there are some undocumented gotchas involved with it and not a lot of testing. :)
I'll let others comment on the Java library moves and other packaging changes. -Greg
Am 30.01.2013 19:07, schrieb Gregory Farnum:
Quoted 8 lines · Danny Al-Gaaf
Quoted 5 lines
This set fixes some issues in the spec file.
I'm not sure what the reason for #35e5d74e5c5786bc91df5dc10b5c08c77305df4e was. But I would revert it and fix the underlaying issues instead.
Quoted 4 lines
That is a pretty obtuse commit message, but it was actually because while rbd-fuse is ready to be in-tree, we don't think it's ready for people to be using; there are some undocumented gotchas involved with it and not a lot of testing. :)
Hm, but this is git master and not a released ceph version or the next tree. IMO rbd-fuse should be installed in the master branch to be tested. Otherwise it will be build but maybe never tested by others than developers which know it's there.
Quoted 2 lines
I'll let others comment on the Java library moves and other packaging changes. -Greg
Only an additional comment: I've moved the libcephfs_jni.* files to %{_libdir} because this is what SUSE already do for e.g. the *.so files in the libjnidispatch package.
Danny
Quoted 14 lines · Danny Al-Gaaf
Am 30.01.2013 19:07, schrieb Gregory Farnum:
Quoted 8 lines · Danny Al-Gaaf
Quoted 5 lines
This set fixes some issues in the spec file.
I'm not sure what the reason for #35e5d74e5c5786bc91df5dc10b5c08c77305df4e was. But I would revert it and fix the underlaying issues instead.
Quoted 4 lines
That is a pretty obtuse commit message, but it was actually because while rbd-fuse is ready to be in-tree, we don't think it's ready for people to be using; there are some undocumented gotchas involved with it and not a lot of testing. :)
Quoted 4 lines
Hm, but this is git master and not a released ceph version or the next tree. IMO rbd-fuse should be installed in the master branch to be tested. Otherwise it will be build but maybe never tested by others than developers which know it's there.
I think the end goal is to build an rbd-fuse package, just like ceph-fuse. I'm not sure it matters how mature the tool is before it goes into the package; as long as it is separate, people can not install it, and the distros can keep it out of their supported repos as they like.
s
Quoted 11 lines
Quoted 3 lines
I'll let others comment on the Java library moves and other packaging changes. -Greg
Only an additional comment: I've moved the libcephfs_jni.* files to %{_libdir} because this is what SUSE already do for e.g. the *.so files in the libjnidispatch package.
Danny
Quoted 4 lines · Sage Weil
I think the end goal is to build an rbd-fuse package, just like ceph-fuse. I'm not sure it matters how mature the tool is before it goes into the package; as long as it is separate, people can not install it, and the distros can keep it out of their supported repos as they like.
I like that plan a lot better.
Quoted 11 lines · Dan Mick
Quoted 5 lines · Sage Weil
I think the end goal is to build an rbd-fuse package, just like ceph-fuse.
I'm not sure it matters how mature the tool is before it goes into the package; as long as it is separate, people can not install it, and the distros can keep it out of their supported repos as they like.I like that plan a lot better.
and the major reason it wasn't yet done is that there are no manpages, tests, etc., but I wanted this to be available to experimenters.
I'll pick up these patches and create an rbd-fuse package.
Cheers,
Gary
Quoted 20 lines · Dan Mick
Quoted 11 lines · Dan Mick
Quoted 5 lines · Sage Weil
I think the end goal is to build an rbd-fuse package, just like ceph-fuse.
I'm not sure it matters how mature the tool is before it goes into the package; as long as it is separate, people can not install it, and the distros can keep it out of their supported repos as they like.I like that plan a lot better.
and the major reason it wasn't yet done is that there are no manpages, tests, etc., but I wanted this to be available to experimenters. --
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
The patches have been applied to the wip-rpm-update3 branch. Additionally, rbd-fuse has been put into it's own package.
Please have a look and let me know if that works for everyone.
Thanks,
Gary
Quoted 20 lines · Dan Mick
Quoted 11 lines · Dan Mick
Quoted 5 lines · Sage Weil
I think the end goal is to build an rbd-fuse package, just like ceph-fuse.
I'm not sure it matters how mature the tool is before it goes into the package; as long as it is separate, people can not install it, and the distros can keep it out of their supported repos as they like.I like that plan a lot better.
and the major reason it wasn't yet done is that there are no manpages, tests, etc., but I wanted this to be available to experimenters. --
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi Gary,
seems to work fine. Feel free to check [1] for build results (i586/x86_64) on openSUSE 11.4-Factory, SLE11-SP2, Fedora 16-18, RHEL6, CentOS6, Ubuntu 12.10 (the source of the package is currently a merge of master and wip-rpm-update3).
Danny
[1]
https://build.opensuse.org/package/show?package=ceph&project=home%3Adalgaaf%3Aceph
Am 01.02.2013 08:00, schrieb Gary Lowell:
Quoted 35 lines
The patches have been applied to the wip-rpm-update3 branch. Additionally, rbd-fuse has been put into it's own package.
Please have a look and let me know if that works for everyone.
Thanks, Gary
Quoted 13 lines · Dan Mick
Quoted 10 lines · Dan Mick
Quoted 5 lines · Sage Weil
I think the end goal is to build an rbd-fuse package, just like ceph-fuse. I'm not sure it matters how mature the tool is before it goes into the package; as long as it is separate, people can not install it, and the distros can keep it out of their supported repos as they like.
Quoted 8 lines
Quoted 1 line
I like that plan a lot better.
and the major reason it wasn't yet done is that there are no manpages, tests, etc., but I wanted this to be available to experimenters. -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] More majordomo info at
http://vger.kernel.org/majordomo-info.html-- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html