From owner-freebsd-ports@FreeBSD.ORG Sun May 3 20:08:54 2015 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BAE65F14 for ; Sun, 3 May 2015 20:08:54 +0000 (UTC) Received: from be-well.ilk.org (be-well.ilk.org [23.30.133.173]) by mx1.freebsd.org (Postfix) with ESMTP id 9615D145E for ; Sun, 3 May 2015 20:08:54 +0000 (UTC) Received: from lowell-desk.lan (lowell-desk.lan [172.30.250.41]) by be-well.ilk.org (Postfix) with ESMTP id D393B33C1D; Sun, 3 May 2015 16:08:48 -0400 (EDT) Received: by lowell-desk.lan (Postfix, from userid 1147) id 8C4AB39822; Sun, 3 May 2015 16:08:47 -0400 (EDT) From: Lowell Gilbert To: Roger Marquis Cc: freebsd-ports@freebsd.org Subject: Re: Broken _DEPENDS logic References: <20150503043317.73FD0DAD@hub.freebsd.org> Date: Sun, 03 May 2015 16:08:46 -0400 In-Reply-To: <20150503043317.73FD0DAD@hub.freebsd.org> (Roger Marquis's message of "Sat, 2 May 2015 21:33:13 -0700 (PDT)") Message-ID: <44a8xlqv8x.fsf@lowell-desk.lan> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 May 2015 20:08:54 -0000 Roger Marquis writes: > Found why mailman is trying (and failing) to reinstall postfix and it > appears to be a bug in other ports as well. > > # cd /usr/ports/mail && grep '_DEPENDS+=.*postfix' */Makefile > dk-milter/Makefile:RUN_DEPENDS+= ${LOCALBASE}/libexec/postfix/smtpd:${PORTSDIR}/mail/postfix-current > dk-milter/Makefile:RUN_DEPENDS+= ${LOCALBASE}/libexec/postfix/smtpd:${PORTSDIR}/mail/postfix > drac/Makefile:RUN_DEPENDS+= postfix:${PORTSDIR}/mail/postfix > enma/Makefile:RUN_DEPENDS+= ${LOCALBASE}/libexec/postfix/smtpd:${PORTSDIR}/mail/postfix-current > enma/Makefile:RUN_DEPENDS+= ${LOCALBASE}/libexec/postfix/smtpd:${PORTSDIR}/mail/postfix > mailman/Makefile:BUILD_DEPENDS+= /usr/sbin/postconf:${PORTSDIR}/mail/postfix > mailman/Makefile:RUN_DEPENDS+= /usr/sbin/postconf:${PORTSDIR}/mail/postfix > > Shouldn't these ports be querying the pkg db rather than checking for a > particular file, particularly when the file is incorrectly specified? Have you read the Porters' Handbook? But, generally, the answer to your question is "no," becuase it is often the case that more than one port can serve as a dependency for another port. Your suggestion amounts to saying that only one port can satisfy a dependency for another port, which is not the case.