From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Brunner Subject: Re: [PATCH 0/4] ceph.spec.in: fixes and additions for the rpm spec file Date: Fri, 24 Sep 2010 23:04:20 +0200 Message-ID: <20100924210420.GA10944@dell.home> References: <20100709091116.GB29300@bambus> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from mail-fx0-f46.google.com ([209.85.161.46]:52547 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750976Ab0IXTCS (ORCPT ); Fri, 24 Sep 2010 15:02:18 -0400 Received: by fxm3 with SMTP id 3so922483fxm.19 for ; Fri, 24 Sep 2010 12:02:17 -0700 (PDT) Content-Disposition: inline In-Reply-To: Sender: ceph-devel-owner@vger.kernel.org List-ID: To: Sage Weil Cc: ceph-devel@vger.kernel.org On Fri, Sep 24, 2010 at 08:50:04PM +0200, Christian Brunner wrote: > 2010/7/9 Sage Weil : > > > > There's one other pitfall I ran into with the debs... by default sy= mbols > > 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. =A0I = have no > > idea where/when/if this is done during the rpmbuild. =A0The 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 >=20 > 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 patc= h > for the spec file is attached. >=20 > 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/t= mp/ mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log/ceph/ mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log/ceph/stat =20 +# To avoid that libcls_rbd.so.1.0.0 is beeing stiped by find-debuginfo= =2Esh +# 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_rb= d.so.1.0.0.debug + %clean rm -rf $RPM_BUILD_ROOT =20 --=20 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" i= n the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html