Description of problem:
When building package that contains
and if this file is not created during build process, rpmbuild fails with
RPM build errors:
File not found: ...BUILDROOT/package-v-r/<some_file>
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Fixed upstream. rpmbuild no more complains if file listed as %ghost is not present in build root.
The ghost files are required to be present at build-time for populating the file's metadata with some semi-sane values. If we want to permit really non-existent ghost files, the stat() info needs to be faked out to avoid completely bogus stuff like this (which is what you get now if a %ghost doesn't exist at build-time):
[pmatilai@turre RPMS]$ rpm -qplv ghosttest-1.0-1.x86_64.rpm
?--------- 1 root root 0 Jan 1 1970 /tmp/nofile
This bug appears to have been reported against 'rawhide' during the Fedora 11 development cycle.
Changing version to '11'.
More information and reason for this action is here:
rpm 4.8.0-beta1 in rawhide permits creating %ghost's without actually requiring fake files in buildroot.