Subject: pkg/17964: no CONFLICTS lines for devel/automake and devel/automake-devel
To: None <gnats-bugs@gnats.netbsd.org>
From: Lubomir Sedlacik <salo@Xtrmntr.org>
List: netbsd-bugs
Date: 08/17/2002 16:11:24
>Number:         17964
>Category:       pkg
>Synopsis:       no CONFLICTS lines for devel/automake and devel/automake-devel
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Aug 17 07:12:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Lubomir Sedlacik
>Release:        NetBSD 1.6_BETA5
>Organization:
>Environment:
>Description:

there are no CONFLICTS lines for devel/automake and devel/automake-devel which
both install as automake-[0-9]* and will overwrite each others files and
corrupt pkg database (overlapping PLISTs).

>How-To-Repeat:

install devel/automake and try to install devel/automake-devel or vice versa.

>Fix:

Index: automake//Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/devel/automake/Makefile,v
retrieving revision 1.28
diff -u -r1.28 Makefile
--- automake//Makefile	2002/05/29 14:45:58	1.28
+++ automake//Makefile	2002/08/17 14:07:58
@@ -14,6 +14,8 @@
 
 DEPENDS=	autoconf>=2.13:../../devel/autoconf
 
+CONFLICTS=	automake-[0-9]*
+
 USE_BUILDLINK_ONLY=	YES
 GNU_CONFIGURE=		YES
 CONFIGURE_ENV=		PERL=${PERL5}
Index: automake-devel/Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/devel/automake-devel/Makefile,v
retrieving revision 1.2
diff -u -r1.2 Makefile
--- automake-devel/Makefile	2002/08/12 17:32:12	1.2
+++ automake-devel/Makefile	2002/08/17 14:07:58
@@ -13,6 +13,8 @@
 
 DEPENDS=	autoconf>=2.53:../../devel/autoconf-devel
 
+CONFLICTS=	automake-[0-9]*
+
 PLIST_SUBST+=		PKG_DIR_VERSION=1.6
 USE_BUILDLINK_ONLY=	YES
 GNU_CONFIGURE=		YES
>Release-Note:
>Audit-Trail:
>Unformatted: