All of lore.kernel.org
 help / color / mirror / Atom feed
* Problem building RPM from spec file
@ 2012-05-25 14:07 Guido Winkelmann
  2012-05-25 16:26 ` Sage Weil
  0 siblings, 1 reply; 2+ messages in thread
From: Guido Winkelmann @ 2012-05-25 14:07 UTC (permalink / raw)
  To: ceph-devel

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
+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


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

* Re: Problem building RPM from spec file
  2012-05-25 14:07 Problem building RPM from spec file Guido Winkelmann
@ 2012-05-25 16:26 ` Sage Weil
  0 siblings, 0 replies; 2+ messages in thread
From: Sage Weil @ 2012-05-25 16:26 UTC (permalink / raw)
  To: Guido Winkelmann; +Cc: ceph-devel

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@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> 

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

end of thread, other threads:[~2012-05-25 16:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-25 14:07 Problem building RPM from spec file Guido Winkelmann
2012-05-25 16:26 ` Sage Weil

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.