ports/177620: databases/py-MySQLdb*: Inconsistent CONFLICTS
Craig Leres
leres at ee.lbl.gov
Wed Apr 3 22:10:02 UTC 2013
>Number: 177620
>Category: ports
>Synopsis: databases/py-MySQLdb*: Inconsistent CONFLICTS
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Apr 03 22:10:01 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Craig Leres
>Release: FreeBSD 9.1-RELEASE amd64
>Organization:
Lawrence Berkeley National Laboratory
>Environment:
System: FreeBSD fun.ee.lbl.gov 9.1-RELEASE FreeBSD 9.1-RELEASE #4 r13: Fri Feb 1 19:03:16 PST 2013 leres at fun.ee.lbl.gov:/sys/amd64/compile/LBL amd64
>Description:
It's possible to install both py-MySQLdb and py-MySQLdb55
(or any one of the other satellite ports) even though they
install files in the same locations.
>How-To-Repeat:
cd /usr/ports/databases/py-MySQLdb && make install
cd /usr/ports/databases/py-MySQLdb55 && make install
pkg_info -g pkg_info -g py27-MySQLdb-1.2.3_2
(notice tons of bad checksums)
>Fix:
Currently the CONFLICTS are:
% cd /usr/ports/databases && grep CONFLICTS py-MySQLdb*/Makefile
py-MySQLdb/Makefile:CONFLICTS= py*-MySQLdb-devel-[0-9]*
py-MySQLdb41/Makefile:CONFLICTS= py*-MySQLdb-devel-[0-9]* py*-MySQLdb-[0-9]* py*-MySQLdb[45][0-9]-[0-9]*
py-MySQLdb50/Makefile:CONFLICTS= py*-MySQLdb-devel-[0-9]* py*-MySQLdb-[0-9]* py*-MySQLdb[45][0-9]-[0-9]*
py-MySQLdb51/Makefile:CONFLICTS= py*-MySQLdb-devel-[0-9]* py*-MySQLdb-[0-9]* py*-MySQLdb[45][0-9]-[0-9]*
py-MySQLdb55/Makefile:CONFLICTS= py*-MySQLdb-devel-[0-9]* py*-MySQLdb-[0-9]* py*-MySQLdb[45][0-9]-[0-9]*
Change py-MySQLdb's CONFLICTS to:
CONFLICTS= py*-MySQLdb-[0-9]* py*-MySQLdb[45][0-9]-[0-9]*
Remove CONFLICTS from the py-MySQLdb[45][0-9] ports and use
CONFLICTS from the master port.
Note that this eliminates the "py*-MySQLdb-devel-[0-9]*"
pattern from CONFLICTS in the satellite ports which doesn't
match any current ports.
See attached patch.
--- patch.txt begins here ---
--- py-MySQLdb/Makefile.orig 2013-04-03 14:51:22.000000000 -0700
+++ py-MySQLdb/Makefile 2013-04-03 14:51:54.000000000 -0700
@@ -23,7 +23,7 @@
PYDISTUTILS_PKGNAME= MySQL-python
PYEASYINSTALL_ARCHDEP= yes
-CONFLICTS= py*-MySQLdb-devel-[0-9]*
+CONFLICTS= py*-MySQLdb-[0-9]* py*-MySQLdb[45][0-9]-[0-9]*
PORTDOCS= *
DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
--- py-MySQLdb41/Makefile.orig 2013-04-03 14:54:24.000000000 -0700
+++ py-MySQLdb41/Makefile 2012-11-19 10:05:04.000000000 -0800
@@ -9,6 +9,8 @@
COMMENT= Access a MySQL database through Python (Using MySQL 4.1 Client)
+CONFLICTS= py*-MySQLdb-devel-[0-9]* py*-MySQLdb-[0-9]* py*-MySQLdb[45][0-9]-[0-9]*
+
WANT_MYSQL_VER= 41
MASTERDIR= ${.CURDIR}/../py-MySQLdb
--- py-MySQLdb50/Makefile.orig 2013-04-03 14:54:44.000000000 -0700
+++ py-MySQLdb50/Makefile 2012-11-19 10:05:05.000000000 -0800
@@ -9,6 +9,8 @@
COMMENT= Access a MySQL database through Python (Using MySQL 5.0 Client)
+CONFLICTS= py*-MySQLdb-devel-[0-9]* py*-MySQLdb-[0-9]* py*-MySQLdb[45][0-9]-[0-9]*
+
WANT_MYSQL_VER= 50
MASTERDIR= ${.CURDIR}/../py-MySQLdb
--- py-MySQLdb51/Makefile.orig 2013-04-03 14:54:53.000000000 -0700
+++ py-MySQLdb51/Makefile 2013-04-03 14:54:57.000000000 -0700
@@ -9,8 +9,6 @@
COMMENT= Access a MySQL database through Python (Using MySQL 5.1 Client)
-CONFLICTS= py*-MySQLdb-devel-[0-9]* py*-MySQLdb-[0-9]* py*-MySQLdb[45][0-9]-[0-9]*
-
WANT_MYSQL_VER= 51
MASTERDIR= ${.CURDIR}/../py-MySQLdb
--- py-MySQLdb55/Makefile.orig 2013-04-03 14:50:46.000000000 -0700
+++ py-MySQLdb55/Makefile 2013-04-03 14:51:06.000000000 -0700
@@ -9,8 +9,6 @@
COMMENT= Access a MySQL database through Python (Using MySQL 5.5 Client)
-CONFLICTS= py*-MySQLdb-devel-[0-9]* py*-MySQLdb-[0-9]* py*-MySQLdb[45][0-9]-[0-9]*
-
WANT_MYSQL_VER= 55
MASTERDIR= ${.CURDIR}/../py-MySQLdb
--- patch.txt ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list