Opened 17 years ago

Closed 15 years ago

Last modified 15 years ago

#12703 closed defect (fixed)

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: jmroot (Joshua Root)
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 (1)

Portfile (2.4 KB) - added by jmroot (Joshua Root) 16 years ago.
new portfile with +postgresql8* variants

Download all attachments as: .zip

Change History (11)

comment:1 Changed 16 years ago by nox@…

Milestone: Port UpdatesPort Enhancements
Summary: rb-postgres requiring old version of PostgreSQLrb-postgres should depend on the latest postgresql port available

comment:2 Changed 16 years ago by jmroot (Joshua Root)

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.

comment:3 Changed 16 years ago by rick.martinez@…

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

comment:4 in reply to:  3 Changed 16 years ago by jmroot (Joshua Root)

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.

comment:5 Changed 16 years ago by jmroot (Joshua Root)

Cc: jmr@… removed
Owner: changed from macports-tickets@… to jmr@…
Status: newassigned

Changed 16 years ago by jmroot (Joshua Root)

Attachment: Portfile added

new portfile with +postgresql8* variants

comment:6 Changed 16 years ago by jmroot (Joshua Root)

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.

comment:7 Changed 16 years ago by jmroot (Joshua Root)

Cc: jmr@… added
Owner: changed from jmr@… to macports-tickets@…
Status: assignednew

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

comment:8 Changed 15 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

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

comment:9 Changed 15 years ago by jmroot (Joshua Root)

Port: rb-postgres added

comment:10 Changed 15 years ago by (none)

Milestone: Port Enhancements

Milestone Port Enhancements deleted

Note: See TracTickets for help on using tickets.