On Fri, 25 May 2012, Guido Winkelmann wrote: > I keep having problems getting ceph built as an RPM. Now the install phase > fails with these messages: > > /usr/bin/install -c -m 644 ceph-osd.8 ceph-mds.8 ceph-mon.8 mkcephfs.8 ceph- > fuse.8 ceph-syn.8 crushtool.8 osdmaptool.8 monmaptool.8 ceph-conf.8 ceph-run.8 > ceph.8 mount.ceph.8 radosgw.8 radosgw-admin.8 ceph-authtool.8 rados.8 > librados-config.8 rbd.8 ceph-clsinfo.8 ceph-debugpack.8 cephfs.8 ceph- > dencoder.8 ceph-rbdnamer.8 > '/home/guido/rpmbuild/BUILDROOT/ceph-0.47.2-6.fc16.x86_64/usr/share/man/man8' > make[2]: Leaving directory `/home/guido/rpmbuild/BUILD/ceph-0.47.2/man' > make[1]: Leaving directory `/home/guido/rpmbuild/BUILD/ceph-0.47.2/man' > + rmdir /home/guido/rpmbuild/BUILDROOT/ceph-0.47.2-6.fc16.x86_64/bin > rmdir: failed to remove > `/home/guido/rpmbuild/BUILDROOT/ceph-0.47.2-6.fc16.x86_64/bin': No such file > or directory > error: Bad exit status from /var/tmp/rpm-tmp.VEjzUO (%install) > > > RPM build errors: > Bad exit status from /var/tmp/rpm-tmp.VEjzUO (%install) > > I managed to get it to build after all with this: > > --- ceph.spec.old 2012-05-25 16:03:37.763942616 +0200 > +++ ceph.spec 2012-05-25 15:54:17.016000363 +0200 > @@ -233,9 +233,9 @@ > > %install > make DESTDIR=$RPM_BUILD_ROOT install > -rmdir $RPM_BUILD_ROOT/bin > -rmdir $RPM_BUILD_ROOT/lib > -rmdir $RPM_BUILD_ROOT/include Whoops.. this hunk was inadvertantly included in a330c64cb032e12a7eec967d140d2b44a890faab. I'll back it out and you should be in good shape. Thanks! > +test -d $RPM_BUILD_ROOT/bin && rmdir $RPM_BUILD_ROOT/bin > +test -d $RPM_BUILD_ROOT/lib && rmdir $RPM_BUILD_ROOT/lib > +test -d $RPM_BUILD_ROOT/include && rmdir $RPM_BUILD_ROOT/include > find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' > find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';' > install -D src/init-ceph $RPM_BUILD_ROOT%{_initrddir}/ceph > > , but I don't understand the situation enough to say whether or not this is > really an appropriate solution. > > This is on a fresh Fedora 16 minimal install, by the way. > > Regards, > Guido > > -- > To unsubscribe from this list: send the line "unsubscribe ceph-devel" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > 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 majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html