Red Hat Bugzilla – Bug 839668
rpmbuild fails on Fedora 17 due to %ghost files in the spec
Last modified: 2013-07-24 13:15:41 EDT
Description of problem:
Avati noticed that on Fedora 15 (and also on Fedora 17) the glusterfs.spec.in can not be used to build RPMs from the 'make dist' tarball.
Version-Release number of selected component (if applicable):
glusterfs/master and rpm-4.9
100% on Fedora 17
Steps to Reproduce:
1. make dist
2. rpmbuild -ta glusterfs-3git.tar.gz
RPM build errors:
Recognition of file "/home/avati/rpmbuild/BUILDROOT/glusterfs-3git-1.fc15.x86_64/var/lib/glusterd/geo-replication" failed: mode 100755 cannot open `/home/avati/rpmbuild/BUILDROOT/glusterfs-3git-1.fc15.x86_64/var/lib/glusterd/geo-replication' (No such file or directory)
Packages should be built.
The same glusterfs.spec.in can be used with 'make dist' on RHEL-6 without issues. Bug 839656 was opened with a small example spec file to get more information from the rpm maintainer(s).
http://review.gluster.com/3674 contains a patch that makes building work for me again. I see this as a workaround until bug 839656 is fixed, not as a permanent solution.
CHANGE: http://review.gluster.com/3674 (build: Create directories and files that get created during runtime) merged in master by Anand Avati (email@example.com)
CHANGE: http://review.gluster.org/3899 (build: Create directories and files that get created during runtime) merged in release-3.3 by Vijay Bellur (firstname.lastname@example.org)