From Bugzilla Helper: User-Agent: Mozilla/5.0 (compatible; Konqueror/3.4; Linux) KHTML/3.4.1 (like Gecko) Description of problem: I'm using the -f and -p flags with the %post section of a spec file to have a fairly long Perl script be run after my RPM is installed. Initially I didn't know where the -f flag would be looking for my file. Should I put it in SOURCES, SPECS, or something else? Anyway, I figured that rpmbuild would complain until I got it right. Unfortunately, rpmbuild doesn't complain. Looking at the processScriptFiles() function, it looks like it should. However, something is making it not complain. It would be nice if it did complain and stop building my RPM. Version-Release number of selected component (if applicable): rpm-4.4.1-21 How reproducible: Always Steps to Reproduce: 1. Use this %post section: %post -p /usr/bin/perl -f %{name}.post 2. Make sure %{name}.post doesn't exist. 3. Build RPM. Actual Results: Built fine. Expected Results: Rpmbuild should have aborted with an error message saying that it couldn't open %{name}.post. Additional info:
It didn't complain because -f doesn't work when not using %setup, which will be filed as another bug.