Re: [MacPorts] #14619: Error when installing postgresql83-server +universal
#14619: Error when installing postgresql83-server +universal ------------------------------------+--------------------------------------- Reporter: tbou@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Keywords: postgresql83 universal | ------------------------------------+--------------------------------------- Comment(by 10.50@…): Postgresql83 will not build universal files with the default Portfile. I encounter three problems: 1. Build process uses ld directly, and ld cannot handle more than one arch at a time; 2. SIZEOF_UNSIGNED_LONG in src/include/pg_config.h does not change according to arch; 3. On my late 2008 MacBook with gcc-4.0.1, I cannot build postgres83 because gcc-4.0 crashes with a bus error at some point (I have opened a ticket in the Apple bugtracker for this). I have attached a fix in three files: 1. A ld.sh shell script that replaces direct ld calls by a tool that analyses the line and extracts the output file out of the args; 2. A modified Portfile that: a. Appends to the ld.sh the necessary calls to ld with the correct archs and a final call to lipo to join the separate .o files; b. Alters the src/Makefile.global file to replace direct ld calls by calls to our ld.sh script tool; c. Defines a universal variant and a gcc42 variant to avoid the 3rd problem cited above; 3. A patch file to fix problem #2, patch applied after the configuration phase. The ld.sh and patch_pg_config_h should be stored in a ${portpath}/files subdirectory. Please test and tell me. V. -- Ticket URL: <http://trac.macports.org/ticket/14619#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts