[MacPorts] #33673: libpqxx: tests don't work

MacPorts noreply at macports.org
Sun Mar 18 01:19:22 PDT 2012


#33673: libpqxx: tests don't work
-------------------------------------+--------------------------------------
 Reporter:  ryandesign@…             |       Owner:  dweber@…           
     Type:  defect                   |      Status:  new                
 Priority:  Normal                   |   Milestone:                     
Component:  ports                    |     Version:  2.0.4              
 Keywords:                           |        Port:  libpqxx            
-------------------------------------+--------------------------------------
 "sudo port test libpqxx" doesn't work. It says:

 {{{
 DEBUG: Executing proc-pre-org.macports.test-test-0
 sh: initdb: command not found
 shell command "initdb -D libpqxx-4.0/test_libpqxx" returned error 127
 }}}

 This is not surprising since "initdb" is a command provided by the
 postgresql ports, and they're never installed anywhere in $PATH. The fix
 is to call these programs by their correct absolute paths; the attached
 patch (which should be applied after updating the port to 4.0 using the
 patches in #33671) fixes this, but then we run into this next error:

 {{{
 DEBUG: Executing proc-pre-org.macports.test-test-0
 The files belonging to this database system will be owned by user
 "macports".
 This user must also own the server process.

 The database cluster will be initialized with locale en_US.UTF-8.
 The default database encoding has accordingly been set to UTF8.
 The default text search configuration will be set to "english".

 creating directory libpqxx-4.0/test_libpqxx ... initdb: could not create
 directory "libpqxx-4.0": Permission denied
 shell command "/opt/local/lib/postgresql91/bin/initdb -D
 libpqxx-4.0/test_libpqxx" returned error 1
 }}}

 I don't know postgresql or libpqxx so I'm not sure what needs to be done
 to fix this.

-- 
Ticket URL: <https://trac.macports.org/ticket/33673>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list