ports/147313: [patch] www/django - depend on py-psycopg2 as python adapter for PostgreSQL database

Daniel Gerzo danger at FreeBSD.org
Wed Jun 2 09:00:12 UTC 2010


>Number:         147313
>Category:       ports
>Synopsis:       [patch] www/django - depend on py-psycopg2 as python adapter for PostgreSQL database
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 02 09:00:11 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Daniel Gerzo
>Release:        FreeBSD 8.0-STABLE amd64
>Organization:
SysCare s. r. o.
>Environment:
>Description:
As far as I know Django project itself prefers psycopg2. We have it in ports, so I think
there's no real reason why we should opt for psycopg1.

Make the change for both Django 1.1 and 1.2
>How-To-Repeat:
>Fix:

--- django.diff begins here ---
diff -ruN py-django11.orig/Makefile py-django11/Makefile
--- py-django11.orig/Makefile	2010-06-02 10:46:08.914389006 +0200
+++ py-django11/Makefile	2010-06-02 10:49:50.394054626 +0200
@@ -48,7 +48,7 @@
 .endif
 
 .if defined(WITH_POSTGRESQL)
-RUN_DEPENDS+=	${PYTHON_SITELIBDIR}/psycopgmodule.so:${PORTSDIR}/databases/py-psycopg
+RUN_DEPENDS+=	${PYTHON_SITELIBDIR}/psycopg2/_psycopg.so:${PORTSDIR}/databases/py-psycopg2
 .endif
 
 .if defined(WITH_MYSQL)
diff -ruN py-django.orig/Makefile py-django/Makefile
--- py-django.orig/Makefile	2010-06-02 10:45:59.561685417 +0200
+++ py-django/Makefile	2010-06-02 10:50:04.523657047 +0200
@@ -46,7 +46,7 @@
 .endif
 
 .if defined(WITH_POSTGRESQL)
-RUN_DEPENDS+=	${PYTHON_SITELIBDIR}/psycopgmodule.so:${PORTSDIR}/databases/py-psycopg
+RUN_DEPENDS+=	${PYTHON_SITELIBDIR}/psycopg2/_psycopg.so:${PORTSDIR}/databases/py-psycopg2
 .endif
 
 .if defined(WITH_MYSQL)
--- django.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list