Description of problem: ghost files are never shown in the file list Version-Release number of selected component (if applicable): rpm-4.1.1 Solution: Either invert the meaning of the bit in qve_fflags or don't initialize it with zero.
Created attachment 94248 [details] patch to fix it
Hmmm, this fix is going to depend on whether %ghost files are considered part of a package or not. I'm inclined to say not part of a package, and hence should not be displayed in normal file listings. Hmmm ... Thanks for noticing and patch.
But then the option should read "--ghost" ;-) One can also argue that they are part of the package because 'rpm -qf <ghostfile>' works and they get deleted when the package is uninstalled.
There's something broken here, but I'm not prepared to re- re- define %ghost semantics right now, possibly not ever. Gah, %ghost is so pointless and broken, sigh.
NEEDINFO so I don't have to see the bug every day.
Closing due to inactivity. If this issue still occurs with current releases, please reopen and set the release in which you've encountered the problem.
It's easy to reproduce: rpm -qf /var/lib/rpm/__db.001 rpm -ql rpm | grep __db
Created attachment 113405 [details] Add --ghost to balance --noghost Michael, rather than change current behaviour would being able to set --ghost be enough for you? This means that we don't confuse anyone with existing queries but a new option would provide ghost listing and verification. Query lists all %ghosts [pauln@anu rpm-4.4.x]$ ./rpm --ghost -ql rpm | grep __db /var/lib/rpm/__db.001 /var/lib/rpm/__db.002 /var/lib/rpm/__db.003 /var/lib/rpm/__db.004 /var/lib/rpm/__db.005 /var/lib/rpm/__db.006 /var/lib/rpm/__db.007 /var/lib/rpm/__db.008 /var/lib/rpm/__db.009 verify works as expected [pauln@anu rpm-4.4.x]$ ./rpm --ghost -V rpm | grep __db .....UG. c /var/lib/rpm/__db.001 .....UG. c /var/lib/rpm/__db.002 .....UG. c /var/lib/rpm/__db.003
Sure, --ghost is fine. Thanks!
I've commited to RPM head and I'll see about getting into 4.4.x Was there any particulary rpm version you had targetted for this?
No, I just found the bug one day and fixed it in our (i.e. SuSE's) rpm. RPM head is enough for me.