From: Guido Winkelmann <guido-ceph@thisisnotatest.de>
To: ceph-devel@vger.kernel.org
Subject: Problem building RPM from spec file
Date: Fri, 25 May 2012 16:07:17 +0200 [thread overview]
Message-ID: <2244126.L98NqaTFBF@pc10> (raw)
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
next reply other threads:[~2012-05-25 14:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-25 14:07 Guido Winkelmann [this message]
2012-05-25 16:26 ` Problem building RPM from spec file Sage Weil
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2244126.L98NqaTFBF@pc10 \
--to=guido-ceph@thisisnotatest.de \
--cc=ceph-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.