Bug 839668

Summary: rpmbuild fails on Fedora 17 due to %ghost files in the spec
Product: [Community] GlusterFS Reporter: Niels de Vos <ndevos>
Component: buildAssignee: Niels de Vos <ndevos>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: pre-releaseCC: gluster-bugs, kkeithle
Target Milestone: ---Keywords: Patch
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-3.4.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-24 17:15:41 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 839656    
Bug Blocks:    

Description Niels de Vos 2012-07-12 14:09:30 UTC
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

How reproducible:
100% on Fedora 17

Steps to Reproduce:
1. make dist
2. rpmbuild -ta glusterfs-3git.tar.gz
  
Actual results:
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) 


Expected results:
Packages should be built.

Additional info:
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).

Comment 1 Niels de Vos 2012-07-16 16:18:44 UTC
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.

Comment 2 Vijay Bellur 2012-07-17 15:22:33 UTC
CHANGE: http://review.gluster.com/3674 (build: Create directories and files that get created during runtime) merged in master by Anand Avati (avati)

Comment 3 Vijay Bellur 2012-10-25 07:49:04 UTC
CHANGE: http://review.gluster.org/3899 (build: Create directories and files that get created during runtime) merged in release-3.3 by Vijay Bellur (vbellur)