Opened 13 years ago

Closed 12 years ago

#34033 closed enhancement (fixed)

map server @6.0.2 update add +postgis

Reported by: jeabraham Owned by: mbarchfe@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: haspatch Cc:
Port: mapserver

Description

Mapserver was not compiling for me, so I tried the latest version. There is a mapserver bug that I had to patch, and I added PostGIS support.

It shouldn't be dependent on a particular version of postgresql, but I don't know how to select a version in the variant/dependencies.

Attachments (4)

Portfile (2.2 KB) - added by jeabraham 13 years ago.
New portfile
patch-renderers-agg-include-agg_renderer_outline_aa.h.diff (647 bytes) - added by jeabraham 13 years ago.
Patch file for a bug in mapserver
portdiff (1.5 KB) - added by jeabraham 13 years ago.
Diff in the portfile
port.diff (1.5 KB) - added by mf2k (Frank Schima) 13 years ago.

Download all attachments as: .zip

Change History (8)

Changed 13 years ago by jeabraham

Attachment: Portfile added

New portfile

Changed 13 years ago by jeabraham

Patch file for a bug in mapserver

Changed 13 years ago by jeabraham

Attachment: portdiff added

Diff in the portfile

Changed 13 years ago by mf2k (Frank Schima)

Attachment: port.diff added

comment:1 Changed 13 years ago by mf2k (Frank Schima)

Keywords: haspatch added
Owner: changed from macports-tickets@… to mbarchfe@…
Type: updateenhancement
Version: 2.0.4

In the future, please don't forget to Cc the maintainer(s).

Please name your patch like foo.diff so Trac recognizes it. Also, do not change the # $Id: line.

The postgis port has postgresql variants. So if, for example, it was built with postgresql90, then this wouldn't work. I suggest you make all the postgresql* variants like the postgis port.

comment:2 Changed 13 years ago by jeabraham

Thanks for the clues. This is my first port submission that I did all by myself so thanks for pointing out my beginner mistakes.

The postgis port has postgresql variants. So if, for example, it was built with postgresql90, then this wouldn't work. I suggest you make all the postgresql* variants like the postgis port.

Hmm, the postgis variant should automatically use the most up-to-date installed postgresql, if I knew how to query ports to figure out what was installed (along the lines of:

   postgresqlinstalled = {somehow query ports to figure out the most recent variant installed)

) there are two lines in the Portfile that could be adjusted:

  depends_lib-append		port:postgresql{postgresqlinstalled}
   configure.args-append   --with-postgis=${prefix}/lib/postgresql{postgresqlinstalled}/bin/pg_config

-- John Abraham jea@…

comment:3 in reply to:  2 Changed 12 years ago by tbonfort (Thomas Bonfort)

Replying to jea@…:

Thanks for the clues. This is my first port submission that I did all by myself so thanks for pointing out my beginner mistakes.

The postgis port has postgresql variants. So if, for example, it was built with postgresql90, then this wouldn't work. I suggest you make all the postgresql* variants like the postgis port.

Hmm, the postgis variant should automatically use the most up-to-date installed postgresql, if I knew how to query ports to figure out what was installed (along the lines of:

   postgresqlinstalled = {somehow query ports to figure out the most recent variant installed)

) there are two lines in the Portfile that could be adjusted:

  depends_lib-append		port:postgresql{postgresqlinstalled}
   configure.args-append   --with-postgis=${prefix}/lib/postgresql{postgresqlinstalled}/bin/pg_config

-- John Abraham jea@…

#30250 contains an updated portfile which attempts to use an installed postgres version

comment:4 Changed 12 years ago by anddam (Andrea D'Amore)

Resolution: fixed
Status: newclosed

Updated to 6.0.3 in r96046, maintainer timeout and port abandoned #35424. I added you as maintainer since you were willing to, I used the variants and the postgres trick from patch provided in #30250.

Ticket closed as fixed.

Note: See TracTickets for help on using tickets.