Bug 451943

Summary: postgresql-8.2.9-1.fc8.src.rpm does not build as root
Product: [Fedora] Fedora Reporter: Danilo Marcucci <danilo>
Component: postgresqlAssignee: Tom Lane <tgl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 8CC: hhorak
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-07-15 13:52:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File log none

Description Danilo Marcucci 2008-06-18 09:45:13 UTC
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

Comment 1 Danilo Marcucci 2008-06-18 09:45:13 UTC
Created attachment 309710 [details]
File log

Comment 2 Tom Lane 2008-06-18 13:56:49 UTC
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.

Comment 3 Danilo Marcucci 2008-07-15 13:20:16 UTC
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.