Date: Thu, 7 Feb 2002 16:18:56 -0500 (EST) From: Alan Eldridge <ports@geeksrus.net> To: FreeBSD-gnats-submit@freebsd.org Cc: portmgr@freebsd.org Subject: ports/34710: Add CONFLICT= (like BROKEN=) to bsd.port.mk Message-ID: <200202072118.g17LIuZ49206@wwweasel.geeksrus.net>
next in thread | raw e-mail | index | archive | help
>Number: 34710 >Category: ports >Synopsis: Add CONFLICT= (like BROKEN=) to bsd.port.mk >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Feb 07 13:20:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Alan Eldridge >Release: FreeBSD 4.5-RELEASE i386 >Organization: Geeksrus.NET >Environment: System: FreeBSD wwweasel.geeksrus.net 4.5-RELEASE FreeBSD 4.5-RELEASE #0: Tue Feb 5 22:58:09 EST 2002 root@wwweasel.geeksrus.net:/usr/obj/usr/src/sys/WWWEASEL i386 >Description: Some ports can't be installed together without stomping on each other. CUPS and LPRng, and xpm and XFree86-4-*, are examples of this. I decided to submit this as I was cleaning up the conflicts regarding graphics/xpm. This patch adds a CONFLICT= variable that can be set in the makefile to disable the port build (like BROKEN, except with a more approprate message). Automagic conflict management would require something like the *_DEPS handling. This is a simple way to manually express port conflicts. >How-To-Repeat: >Fix: Index: Mk/bsd.port.mk =================================================================== RCS file: /home/alane/cvsroot/ports/Mk/bsd.port.mk,v retrieving revision 1.397 diff -u -3 -r1.397 bsd.port.mk --- Mk/bsd.port.mk 24 Jan 2002 01:15:03 -0000 1.397 +++ Mk/bsd.port.mk 7 Feb 2002 21:11:19 -0000 @@ -106,6 +106,7 @@ # ftp sites and CDROMs. # BROKEN_ELF - Port doesn't build on ELF machines. # BROKEN - Port is broken. +# CONFLICT - Port conflicts with another port. # # In addition to RESTRICTED or NO_CDROM, if only a subset of distfiles # or patchfiles have redistribution restrictions, set the following @@ -1844,6 +1845,8 @@ .endif .elif defined(FORBIDDEN) IGNORE= "is forbidden: ${FORBIDDEN}" +.elif defined(CONFLICT) +IGNORE= "conflicts with installed ports: ${CONFLICT}" .endif .if (defined(MANUAL_PACKAGE_BUILD) && defined(PACKAGE_BUILDING) && !defined(PARALLEL_PACKAGE_BUILD)) >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200202072118.g17LIuZ49206>