#31000: postgresql90: pg_config contains -arch flags -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Keywords: | Port: postgresql90 -------------------------------------+-------------------------------------- postgresql90's pg_config program prints out `-arch` flags: {{{ $ /opt/local/lib/postgresql90/bin/pg_config | grep -- -arch CONFIGURE = '--prefix=/opt/local' '--disable-dependency-tracking' '-- sysconfdir=/opt/local/etc/postgresql90' '-- bindir=/opt/local/lib/postgresql90/bin' '-- libdir=/opt/local/lib/postgresql90' '-- includedir=/opt/local/include/postgresql90' '-- datadir=/opt/local/share/postgresql90' '--mandir=/opt/local/share/man' '--with-includes=/opt/local/include' '--with-libraries=/opt/local/lib' '--with-openssl' '--with-bonjour' '--with-readline' '--with-zlib' '--with- libxml' '--with-libxslt' '--enable-thread-safety' '--enable-integer- datetimes' '--with-ossp-uuid' 'CC=ccache /usr/bin/gcc-4.2' 'CFLAGS=-pipe -O2 -DAC_APPLE_UNIVERSAL_BUILD -arch x86_64 -arch i386' 'LDFLAGS=-L/opt/local/lib -arch x86_64 -arch i386' 'CPPFLAGS=-I/opt/local/include -I/opt/local/include/ossp' CFLAGS = -pipe -O2 -DAC_APPLE_UNIVERSAL_BUILD -arch x86_64 -arch i386 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv LDFLAGS = -L/opt/local/lib -arch x86_64 -arch i386 -L/opt/local/lib -L/opt/local/lib -Wl,-dead_strip_dylibs }}} This needs to be fixed, for the reasons explained in [wiki:PortfileRecipes#archflags PortfileRecipes]. When postgresql90 is installed universal, it causes ports using pg_config to fail when they are not built universal, for example [http://lists.macosforge.org/pipermail /macports-users/2011-August/025342.html postgis] as reported on the mailing list. I only tested postgresql90 but I imagine other postgresql ports are also affected. -- Ticket URL: <https://trac.macports.org/ticket/31000> MacPorts <http://www.macports.org/> Ports system for Mac OS