All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] ceph.spec.in: fixes and additions for the rpm spec file
@ 2010-07-09  9:11 Christian Brunner
  2010-07-09 16:41 ` Sage Weil
  0 siblings, 1 reply; 4+ messages in thread
From: Christian Brunner @ 2010-07-09  9:11 UTC (permalink / raw)
  To: ceph-devel

Hi,

in the following I'll send a few fixes and additions for the rpm spec file.
Please commit the patches that you like to the repository.

Regards, 
Christian

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/4] ceph.spec.in: fixes and additions for the rpm spec file
  2010-07-09  9:11 [PATCH 0/4] ceph.spec.in: fixes and additions for the rpm spec file Christian Brunner
@ 2010-07-09 16:41 ` Sage Weil
  2010-09-24 18:50   ` Christian Brunner
  0 siblings, 1 reply; 4+ messages in thread
From: Sage Weil @ 2010-07-09 16:41 UTC (permalink / raw)
  To: Christian Brunner; +Cc: ceph-devel

On Fri, 9 Jul 2010, Christian Brunner wrote:
> Hi,
> 
> in the following I'll send a few fixes and additions for the rpm spec file.
> Please commit the patches that you like to the repository.

Thanks, committing now.

There's one other pitfall I ran into with the debs... by default symbols 
are stripped from all binaries, but the libcls_rbd.so shared object needs 
to _not_ be stripped, or else the class loading doesn't work.  I have no 
idea where/when/if this is done during the rpmbuild.  The version in the 
built package should look like so:

$ nm .libs/libcls_rbd.so
000000000000797d T __cls_init
000000000020ce50 D __cls_name
000000000020ce7c B __cls_name__rbd
000000000020ce78 B __cls_ver__1_1
000000000020ce48 D __cls_ver_maj
000000000020ce4c D __cls_ver_min

Thanks-
sage

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/4] ceph.spec.in: fixes and additions for the rpm spec file
  2010-07-09 16:41 ` Sage Weil
@ 2010-09-24 18:50   ` Christian Brunner
  2010-09-24 21:04     ` Christian Brunner
  0 siblings, 1 reply; 4+ messages in thread
From: Christian Brunner @ 2010-09-24 18:50 UTC (permalink / raw)
  To: Sage Weil; +Cc: ceph-devel

2010/7/9 Sage Weil <sage@newdream.net>:
>
> There's one other pitfall I ran into with the debs... by default symbols
> are stripped from all binaries, but the libcls_rbd.so shared object needs
> to _not_ be stripped, or else the class loading doesn't work.  I have no
> idea where/when/if this is done during the rpmbuild.  The version in the
> built package should look like so:
>
> $ nm .libs/libcls_rbd.so
> 000000000000797d T __cls_init
> 000000000020ce50 D __cls_name
> 000000000020ce7c B __cls_name__rbd
> 000000000020ce78 B __cls_ver__1_1
> 000000000020ce48 D __cls_ver_maj
> 000000000020ce4c D __cls_ver_min

After setting up a new build system I ran into this, too. I've now
looked at this a bit closer and was able to find a workaround. A patch
for the spec file is attached.

Christian

---
 ceph.spec.in |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/ceph.spec.in b/ceph.spec.in
index c92ff9d..ab91f7b 100644
--- a/ceph.spec.in
+++ b/ceph.spec.in
@@ -75,6 +75,11 @@ mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/ceph/tmp/
 mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log/ceph/
 mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log/ceph/stat

+# To avoid that libcls_rbd.so.1.0.0 is being striped by find-debuginfo.sh
+# we pretend that the debug symbols have already been extracted
+mkdir -p $RPM_BUILD_ROOT/usr/lib/debug/%{_libdir}/rados-classes/
+touch $RPM_BUILD_ROOT/usr/lib/debug/%{_libdir}/rados-classes/libcls_rbd.so.1.0.0.debug
+
 %clean
 rm -rf $RPM_BUILD_ROOT

--
1.7.1
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/4] ceph.spec.in: fixes and additions for the rpm spec file
  2010-09-24 18:50   ` Christian Brunner
@ 2010-09-24 21:04     ` Christian Brunner
  0 siblings, 0 replies; 4+ messages in thread
From: Christian Brunner @ 2010-09-24 21:04 UTC (permalink / raw)
  To: Sage Weil; +Cc: ceph-devel

On Fri, Sep 24, 2010 at 08:50:04PM +0200, Christian Brunner wrote:
> 2010/7/9 Sage Weil <sage@newdream.net>:
> >
> > There's one other pitfall I ran into with the debs... by default symbols
> > are stripped from all binaries, but the libcls_rbd.so shared object needs
> > to _not_ be stripped, or else the class loading doesn't work.  I have no
> > idea where/when/if this is done during the rpmbuild.  The version in the
> > built package should look like so:
> >
> > $ nm .libs/libcls_rbd.so
> > 000000000000797d T __cls_init
> > 000000000020ce50 D __cls_name
> > 000000000020ce7c B __cls_name__rbd
> > 000000000020ce78 B __cls_ver__1_1
> > 000000000020ce48 D __cls_ver_maj
> > 000000000020ce4c D __cls_ver_min
> 
> After setting up a new build system I ran into this, too. I've now
> looked at this a bit closer and was able to find a workaround. A patch
> for the spec file is attached.
> 
> Christian

I'm sorry. Sending the patch with cut and paste was a bad idea. Here is
the patch again...

---
 ceph.spec.in |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/ceph.spec.in b/ceph.spec.in
index c92ff9d..ab91f7b 100644
--- a/ceph.spec.in
+++ b/ceph.spec.in
@@ -75,6 +75,11 @@ mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/ceph/tmp/
 mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log/ceph/
 mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log/ceph/stat
 
+# To avoid that libcls_rbd.so.1.0.0 is beeing stiped by find-debuginfo.sh
+# we petend that the debug symbols have already been extracted
+mkdir -p $RPM_BUILD_ROOT/usr/lib/debug/%{_libdir}/rados-classes/
+touch $RPM_BUILD_ROOT/usr/lib/debug/%{_libdir}/rados-classes/libcls_rbd.so.1.0.0.debug
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-- 
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-09-24 19:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-09  9:11 [PATCH 0/4] ceph.spec.in: fixes and additions for the rpm spec file Christian Brunner
2010-07-09 16:41 ` Sage Weil
2010-09-24 18:50   ` Christian Brunner
2010-09-24 21:04     ` Christian Brunner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.