New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Ticket #12703 (closed defect: fixed)

Opened 22 months ago

Last modified 2 months ago

rb-postgres should depend on the latest postgresql port available

Reported by: rick.martinez@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.5.0
Keywords: postgresql postgres ruby rb-postgres Cc: jmr@…
Port: rb-postgres

Description

rb-postgres is requiring an older version of PostgreSQL although the latest port is postgresql82 (rb-postgres using postgresql81)

patch:

--- Portfile    (revision 29051)
+++ Portfile    (working copy)
@@ -15,10 +15,10 @@
 checksums              md5 8ef67b3f4b089248f0420baeb0e3b3c8
 platforms              darwin
 
-depends_lib-append             port:postgresql81
+depends_lib-append             port:postgresql82
 
-configure.args-append  --with-pgsql-include-dir=${prefix}/include/postgresql81 \
-                                               --with-pgsql-lib-dir=${prefix}/lib/postgresql81
+configure.args-append  --with-pgsql-include-dir=${prefix}/include/postgresql82 \
+                                               --with-pgsql-lib-dir=${prefix}/lib/postgresql82
 configure.env \
-       POSTGRES_LIB="${prefix}/lib/postgresql81 -L${prefix}/lib -lssl -lcrypto" \
-       POSTGRES_INCLUDE="${prefix}/include/postgresql81 -I${prefix}/include"
+       POSTGRES_LIB="${prefix}/lib/postgresql82 -L${prefix}/lib -lssl -lcrypto" \
+       POSTGRES_INCLUDE="${prefix}/include/postgresql82 -I${prefix}/include"

Attachments

Portfile (2.4 KB) - added by jmr@… 16 months ago.
new portfile with +postgresql8* variants

Change History

  Changed 20 months ago by nox@…

  • summary changed from rb-postgres requiring old version of PostgreSQL to rb-postgres should depend on the latest postgresql port available
  • milestone changed from Port Updates to Port Enhancements

  Changed 17 months ago by jmr@…

  • cc jmr@… added

There is now a postgresql83 as well. People may want to use rb-postgres without having to update their database to a newer format. This problem is therefore probably best solved with variants, one for each (incompatible) postgresql version.

follow-up: ↓ 4   Changed 17 months ago by rick.martinez@…

So the default should be to require 8.3 and then we provide 8.2/8.1/8.0 variants?

in reply to: ↑ 3   Changed 16 months ago by jmr@…

Replying to rick.martinez@gmail.com:

So the default should be to require 8.3 and then we provide 8.2/8.1/8.0 variants?

That's right.

  Changed 16 months ago by jmr@…

  • cc jmr@… removed
  • owner changed from macports-tickets@… to jmr@…
  • status changed from new to assigned

Changed 16 months ago by jmr@…

new portfile with +postgresql8* variants

  Changed 16 months ago by jmr@…

Could you please test this? I don't have Ruby or PostgreSQL installed currently. I noticed that the home page only says it supports versions up to 8.1, but then it hasn't been updated since 2005.

  Changed 16 months ago by jmr@…

  • cc jmr@… added
  • owner changed from jmr@… to macports-tickets@…
  • status changed from assigned to new

Un-assigning since I'm no longer actively working on this.

  Changed 5 months ago by jmr@…

  • status changed from new to closed
  • resolution set to fixed

Applied in r46890 since someone on IRC reported that it works.

  Changed 5 months ago by jmr@…

  • port set to rb-postgres

  Changed 2 months ago by anonymous

  • milestone Port Enhancements deleted

Milestone Port Enhancements deleted

Note: See TracTickets for help on using tickets.