Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Apr 2013 15:04:14 -0700 (PDT)
From:      Craig Leres <leres@ee.lbl.gov>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        leres@ee.lbl.gov
Subject:   ports/177620: databases/py-MySQLdb*: Inconsistent CONFLICTS
Message-ID:  <201304032204.r33M4E3l060962@fun.ee.lbl.gov>
Resent-Message-ID: <201304032210.r33MA1x6070808@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201304032204.r33M4E3l060962>