Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Sep 2010 04:05:29 GMT
From:      Rob Farmer <rfarmer@predatorlabs.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/150265: [patch] disable bogus port conflicts in make release
Message-ID:  <201009040405.o8445TRX075695@www.freebsd.org>
Resent-Message-ID: <201009040410.o844A2Q7092451@freefall.freebsd.org>

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

>Number:         150265
>Category:       misc
>Synopsis:       [patch] disable bogus port conflicts in make release
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Sep 04 04:10:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Rob Farmer
>Release:        9.0-CURRENT
>Organization:
>Environment:
FreeBSD amethyst.predatorlabs.net 9.0-CURRENT FreeBSD 9.0-CURRENT #0 r212171M: Fri Sep  3 01:52:23 PDT 2010 rfarmer@amethyst.predatorlabs.net:/usr/obj/usr/src/sys/AMETHYST  i386
>Description:
When make release fetches distfiles for the documentation ports before entering the chroot, the checksum-recursive command can fail if there are conflicting ports installed on the build system. For example:

===>  ghostscript8-nox11-8.71_5 conflicts with installed package(s):
      ghostscript8-8.71_5

      They install files into the same place.
      Please remove them first with pkg_delete(1).
*** Error code 1

This isn't really a problem though, because the make release ports will be built in the chroot and won't conflict with what's in /usr/local
>How-To-Repeat:
install print/ghostscript8 (make sure WITHOUT_X11 is not set)
run make release
>Fix:
Add -DDISABLE_CONFLICTS to checksum-recursive commands

Patch attached with submission follows:

Index: release/Makefile
===================================================================
--- release/Makefile	(revision 212191)
+++ release/Makefile	(working copy)
@@ -620,12 +620,14 @@
 	@for i in ${MAKEINDEXPORTS}; do \
 		cd ${CHROOTDIR}/usr/ports/$$i && \
 			make PORTSDIR=${CHROOTDIR}/usr/ports BATCH=yes \
+			-DDISABLE_CONFLICTS \
 			checksum-recursive ; \
 	done
 	@for i in ${DOCPORTS}; do \
 		cd ${CHROOTDIR}/usr/ports/$$i && \
 			make PORTSDIR=${CHROOTDIR}/usr/ports BATCH=yes \
 			WITHOUT_X11=yes JADETEX=no WITHOUT_PYTHON=yes \
+			-DDISABLE_CONFLICTS \
 			checksum-recursive ; \
 	done
 


>Release-Note:
>Audit-Trail:
>Unformatted:



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