This is strange. Maybe you are not referring to file you think you are. Perhaps you should try to add %prep section and run within: echo %{name}.files ls %{name}.files Just to be sure -----Original Message----- From: rpm-list-bounces@xxxxxxxxxxxxx [mailto:rpm-list-bounces@xxxxxxxxxxxxx] On Behalf Of Mark Galeck (CW) Sent: Thursday, January 24, 2013 11:24 AM To: General discussion about the RPM package manager Subject: RE: is there any chance rpmbuild exits before reading %files file The file that is missing, is the ....files file, not a specific file in the list. The ...files file is present before rpmbuild starts, I checked that. Immediately after rpmbuild exits, the file is deleted. What looks like is happening, somehow rpmbuild exits too early, while the file ...files is still being read Is it possible? -----Original Message----- From: rpm-list-bounces@xxxxxxxxxxxxx [mailto:rpm-list-bounces@xxxxxxxxxxxxx] On Behalf Of Eran Ben Natan Sent: Thursday, January 24, 2013 1:18 AM To: General discussion about the RPM package manager Subject: RE: is there any chance rpmbuild exits before reading %files file So let me get it right: You get an error on the file %{name}.files, or a specific file within the list? Can you try to add %prep section and just do ls to the missing file, for debugging purpose? -----Original Message----- From: rpm-list-bounces@xxxxxxxxxxxxx [mailto:rpm-list-bounces@xxxxxxxxxxxxx] On Behalf Of Mark Galeck (CW) Sent: Thursday, January 24, 2013 11:10 AM To: General discussion about the RPM package manager Subject: RE: is there any chance rpmbuild exits before reading %files file Hello, thank you for your reply! There is no %build or %install section. The only section is %files -f %{name}.files -----Original Message----- From: rpm-list-bounces@xxxxxxxxxxxxx [mailto:rpm-list-bounces@xxxxxxxxxxxxx] On Behalf Of Eran Ben Natan Sent: Wednesday, January 23, 2013 10:35 PM To: General discussion about the RPM package manager Subject: RE: is there any chance rpmbuild exits before reading %files file Is it possible that you delete the file in the %build or %install? Can you post the %files section? BTW, when I moved to rpmbuild 4.8.0 many of the issues I had with rpmbuild solved. -----Original Message----- From: rpm-list-bounces@xxxxxxxxxxxxx [mailto:rpm-list-bounces@xxxxxxxxxxxxx] On Behalf Of Mark Galeck (CW) Sent: Thursday, January 24, 2013 12:27 AM To: rpm-list@xxxxxxxxxxxxx Subject: is there any chance rpmbuild exits before reading %files file Hello, I am using rpmbuild command version 4.4.2.3 on Linux, with the following syntax rpmbuild -bb --define <defines> --target ppc-linux --buildroot <full path to a temp directory <spec file> The rpmbuild command fails with this message Could not open %files file <file in the %files section>: No such file or directory I did carefully examine the situation and as far as I can tell, the file in question, is present before rpmbuild starts executing. After rpmbuild exits, that file is immediately deleted. Could it possibly happen, that somehow rpmbuild is executing "in the background", as if, returning early, and then still reading the file in %files. Is there any chance of this happening? Thank you, Mark _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxxxxx http://lists.rpm.org/mailman/listinfo/rpm-list This mail was received via Mail-SeCure System. _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxxxxx http://lists.rpm.org/mailman/listinfo/rpm-list _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxxxxx http://lists.rpm.org/mailman/listinfo/rpm-list This mail was received via Mail-SeCure System. _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxxxxx http://lists.rpm.org/mailman/listinfo/rpm-list _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxxxxx http://lists.rpm.org/mailman/listinfo/rpm-list This mail was received via Mail-SeCure System. _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxxxxx http://lists.rpm.org/mailman/listinfo/rpm-list