Skip to contentSkip to conversation

fix build (ceph.spec)

PATCH In review Danny Al-Gaaf 5 participants 15 messages Jan 30, 2013 – Feb 1, 2013

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

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
index 996fd4e..c30c0c1 100644
@@ -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
#2 lore raw

PATCH 2/6 ceph.spec.in: add rbd-fuse

In reply to Danny Al-Gaaf

Add %{_bindir}/rbd-fuse to the ceph-fuse subpackage.

---
 ceph.spec.in | 1 +
 1 file changed, 1 insertion(+)
ceph.spec.in +1 -0
index b98ae06..38aef98 100644
@@ -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
#3 lore raw

PATCH 3/6 ceph.spec.in: move libcephfs_jni.so to ceph-devel

In reply to Danny Al-Gaaf

Move 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
index 38aef98..67a4915 100644
@@ -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
#4 lore raw

PATCH 4/6 ceph.spec.in: don't move libcephfs_jni files around

In reply to Danny Al-Gaaf

Don'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
index 67a4915..f6a9006 100644
@@ -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
#5 lore raw

PATCH 5/6 ceph.spec.in: extend fix for libedit-devel on special SUSE versions

In reply to Danny Al-Gaaf

Extend 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
index f6a9006..0db7792 100644
@@ -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
#6 lore raw

PATCH 6/6 ceph.spec.in: fix file section for ceph-resource-agents

In reply to Danny Al-Gaaf

Create 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
index 0db7792..668edca 100644
@@ -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
#7 lore raw
In reply to Danny Al-Gaaf
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

#8 lore raw

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

#9 lore raw
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

#10 lore raw
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.

#11 lore raw
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.

#12 lore raw

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

#13 lore raw
In reply to Dan Mick

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

#14 lore raw

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