From owner-freebsd-bugs Wed Sep 15 19:37:40 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from mail.westbend.net (ns1.westbend.net [209.224.254.131]) by hub.freebsd.org (Postfix) with ESMTP id A590914C0E for ; Wed, 15 Sep 1999 19:37:36 -0700 (PDT) (envelope-from hetzels@westbend.net) Received: from admin (admin.westbend.net [209.224.254.141]) by mail.westbend.net (8.9.3/8.9.3) with SMTP id VAA82467 for ; Wed, 15 Sep 1999 21:37:35 -0500 (CDT) (envelope-from hetzels@westbend.net) Message-ID: <039101beffeb$f9d90760$8dfee0d1@westbend.net> From: "Scot W. Hetzel" To: References: <199909090949.CAA89253@freefall.freebsd.org> Subject: bin/13649: Conflict Checking for PKG_INSTALL tools (4.0-CURRENT) Date: Wed, 15 Sep 1999 21:34:17 -0500 Organization: West Bend Internet MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The code in this PR is from the NetBSD pkg_install tools. All I did was merge the changes between the FreeBSD & NetBSD pkg_install tools that would allow our tools to perform port/package conflict checking. Why have Conflict Checking for ports/packages? Conflict checking allows a port maintainer to specify which packages/ports conflict with the port that is currently being installed. This can be based on: 1. port conflicts with an older version of itself ex. foo-<=3.0 2. port conflicts with another port 3. port conflicts with old dependancies. All the port maintainer needs to do is add the CONFLICTS variable to their ports Makefile and specify the packages that conflicts with this port/package. The CONFLICTS variable uses shell meta characters []*?<>,<=,>= ) to do pattern matching on conflicting ports. Also, pkg_info -e has been changed to use shell meta characters, this allows it to do pattern matching for installed packages. >pkg_info -e cvsup-* cvsup-mirror-1.0 cvsup-16.0 cvsup-bin-15.0 Scot To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message