Description of problem: postgresql-8.2.9-1.fc8.src.rpm not builded Version-Release number of selected component (if applicable): 8.2.9-1 How reproducible: rpmbuild --define "dist .fc8" --define "fedora 8" --rebuild --target i686 /usr/src/redhat/SRPMS/postgresql-8.2.9-1.fc8.src.rpm Steps to Reproduce: 1. 2. 3. Actual results: Not builded Expected results: Builded postgresql-8.2.9-1.fc8.i686.rpm Additional info: postgresql-8.2.9-1.fc8.src.rpm.log created with these parameter: rpmbuild --define "dist .fc8" --define "fedora 8" --rebuild --target i686 /usr/src/redhat/SRPMS/postgresql-8.2.9-1.fc8.src.rpm 2>&1 | tee -a postgresql-8.2.9-1.fc8.src.rpm.log
Created attachment 309710 [details] File log
Well, you didn't provide the critical log file: pg_regress: initdb failed Examine ./log/initdb.log for the reason. but my guess based on the paths is that you tried to do the build as root. Postgres refuses (quite properly) to run as root, so you either have to do the build as non-root or skip the regression tests (-- define='runselftest 0'). Personally I never build RPMs as root, and it's generally Red Hat policy not to.
I have try to rebuild with this option "--define='runselftest 0'" and the pakage its rebuilded correctly. If you want you can close this "bug" as resolved. Thanks.