qt4-mac and postgres sql driver

Michael Dickens michaelld at macports.org
Thu Oct 14 08:08:08 PDT 2010


Hi Petr - I see no reason to not include variants for psql[83,84,90,91]; certainly makes sense if some of the older ones do not do +universal correctly but the newer ones do.  I'll add those to the 4.7.0 Portfile I'm working on right now & will be checking in either later today or tomorrow depending on how quickly testing goes.

I think it would be awesome to have sub-variants for what you want to do: I specify +psql=84 or +psql=90, which internally to the Portfile I have a single "variant psql" and then inside a "switch psql_val" with cases, or whatever keywords / phrasing one decides to use.  That way, I can always know that the user wants some +psql variant (the default if no "=foo" is added), and then allow relatively simple upgrading to newer versions -- even simply based on the user's command line entry (as I would do in this case).

Anyway, thanks for the tip, and look for an updated qt4-mac soon. - MLD

On Oct 14, 2010, at 10:37 AM, Petr Vanek wrote:
> for some reason I need to build qt4-mac with postgresql driver for i386 and x86_64 architectures (universal). Unfortunately the qt4-mac depends on postgresql83 (8.3.x version) which is broken for x86_64:
>
> http://trac.macports.org/ticket/14619
> potential fix (which does not work, but I did not examine it more):
> http://trac.macports.org/changeset/63149
>
> Is there any reason why qt4-mac still uses postgresql83? All compiles fine when I force it manually to postgresql84.
>
> Of course I can understand the e.g. Qt4.6.x should keep backward compatibility. But what about to bump sql for currently approaching 4.7 (qt4-mac-devel). Or do it like variants (+postgresql83, 84, 90, 91...).
>
> Btw or is there any possibility to have something like "meta package" called eg. postgresql wich will be marked as installed when user installs one of 83-91 versions?


More information about the macports-dev mailing list