From owner-freebsd-pkg@FreeBSD.ORG Sun May 3 19:27:38 2015 Return-Path: Delivered-To: freebsd-pkg@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 129FACB8; Sun, 3 May 2015 19:27:38 +0000 (UTC) Received: from mx5.roble.com (mx5.roble.com [206.40.34.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx5.roble.com", Issuer "mx5.roble.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 04AE21F28; Sun, 3 May 2015 19:27:37 +0000 (UTC) Date: Sun, 3 May 2015 12:27:36 -0700 (PDT) From: Roger Marquis To: freebsd-ports@freebsd.org cc: freebsd-pkg@freebsd.org Subject: Re: Broken _DEPENDS logic In-Reply-To: References: User-Agent: Alpine 2.11 (BSF 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 May 2015 19:27:38 -0000 Short of editing mail/mailman/Makefile and building the port is there a way force 'pkg install' to just install a package and ignore its dependencies? The man page doesn't indicate any such logic (a difference from other package managers). Roger > 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? > > Roger >