ClusterLabs / cluster-glue

Reusable Cluster Components ("glue")
http://clusterlabs.org/
GNU General Public License v2.0
18 stars 28 forks source link

Fixed RPM build failure #12

Closed inouekazu closed 7 years ago

inouekazu commented 7 years ago

'make rpm' before adding commit of "Fix hg archive error" :

[root@918c143e80c3 src]# git clone https://github.com/ClusterLabs/cluster-glue.git
[root@918c143e80c3 src]# cd cluster-glue/

[root@918c143e80c3 cluster-glue]# export TAG=222743c
[root@918c143e80c3 cluster-glue]# git checkout ${TAG}
[root@918c143e80c3 cluster-glue]# export DISTRO=`rpm --eval %{dist} | sed 's/^\.//'`
[root@918c143e80c3 cluster-glue]# cp cluster-glue-fedora.spec cluster-glue-${DISTRO}.spec

[root@918c143e80c3 cluster-glue]# make rpm
rm -f cluster-glue.tar.bz2
hg archive -t tbz2 -r 222743c cluster-glue.tar.bz2
abort: no repository found in '/usr/local/src/cluster-glue' (.hg not found)!
make: *** [hgarchive] Error 255

'make rpm' before adding commit of "Fix: Drop hb_report from spec file" :

[root@918c143e80c3 cluster-glue]# make rpm
(snip)
Processing files: cluster-glue-1.0.12-3.el7.x86_64
error: File not found: /root/rpmbuild/BUILDROOT/cluster-glue-1.0.12-3.el7.x86_64/usr/sbin/hb_report
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.wYN4LQ
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd cluster-glue
+ DOCDIR=/root/rpmbuild/BUILDROOT/cluster-glue-1.0.12-3.el7.x86_64/usr/share/doc/cluster-glue-1.0.12
+ export DOCDIR
+ /usr/bin/mkdir -p /root/rpmbuild/BUILDROOT/cluster-glue-1.0.12-3.el7.x86_64/usr/share/doc/cluster-glue-1.0.12
+ cp -pr doc/stonith/README.bladehpi doc/stonith/README.cyclades doc/stonith/README.drac3 doc/stonith/README.dracmc doc/stonith/README.external doc/stonith/README.ibmrsa doc/stonith/README.ibmrsa-telnet doc/stonith/README.ipmilan doc/stonith/README.ippower9258 doc/stonith/README.meatware doc/stonith/README.rackpdu doc/stonith/README.rcd_serial doc/stonith/README.riloe doc/stonith/README.vacm doc/stonith/README.vcenter doc/stonith/README.wti_mpc doc/stonith/README_kdumpcheck.txt /root/rpmbuild/BUILDROOT/cluster-glue-1.0.12-3.el7.x86_64/usr/share/doc/cluster-glue-1.0.12
+ cp -pr logd/logd.cf /root/rpmbuild/BUILDROOT/cluster-glue-1.0.12-3.el7.x86_64/usr/share/doc/cluster-glue-1.0.12
+ cp -pr AUTHORS /root/rpmbuild/BUILDROOT/cluster-glue-1.0.12-3.el7.x86_64/usr/share/doc/cluster-glue-1.0.12
+ cp -pr COPYING /root/rpmbuild/BUILDROOT/cluster-glue-1.0.12-3.el7.x86_64/usr/share/doc/cluster-glue-1.0.12
+ cp -pr ChangeLog /root/rpmbuild/BUILDROOT/cluster-glue-1.0.12-3.el7.x86_64/usr/share/doc/cluster-glue-1.0.12
+ exit 0

RPM build errors:
    File not found: /root/rpmbuild/BUILDROOT/cluster-glue-1.0.12-3.el7.x86_64/usr/sbin/hb_report
make: *** [rpm] Error 1
krig commented 7 years ago

Looks good to me, thank you!