macports and brew postgresql --universal builds

From: Doug Coleman <doug(dot)coleman(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: macports and brew postgresql --universal builds
Date: 2012-08-10 17:14:05
Message-ID: CAEb+CXUb+cz-m_WRCOFJKF-Xq12y+e1zgxtbNTbdgXBnuRO4AQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

The MacPorts Project (http://www.macports.org/) supports building
universal binaries (32/64bit binaries in one file) for most projects.
For PostgreSQL, they apply two patches after the configure script to
correct some of the typedefs. Otherwise, the build fails in compiling
a switch statement with duplicate cases.

The HomeBrew Project (http://mxcl.github.com/homebrew/) is a worthy
successor to MacPorts, but they don't yet support a --universal
argument for building PostgreSQL. There is currently a pull request on
github to add universal support, but it's based on the patches from
the MacPorts project.

It would be nice if the PostgreSQL project would make these patches unnecessary.

A diff of the HomeBrew pull request to add universal support:
https://github.com/mxcl/homebrew/pull/14111/files

The patches in question:
https://trac.macports.org/export/96361/trunk/dports/databases/postgresql91/files/pg_config.h.ed
https://trac.macports.org/export/96361/trunk/dports/databases/postgresql91/files/ecpg_config.h.ed

If someone were to fix this, to test if the fix worked you would need
a Mac with HomeBrew, the HomeBrew pull request above but without lines
70-74, and this command:

brew install postgresql --universal

Note that if you previously had postgresql installed with HomeBrew,
you would need to uninstall it first.

Cheers,
Doug

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Fujii Masao 2012-08-10 17:19:42 Re: Prevent restored WAL files from being archived again Re: Unnecessary WAL archiving after failover
Previous Message Greg Stark 2012-08-10 16:57:25 Re: WIP patch for consolidating misplaced-aggregate checks