Date: Sun, 03 May 2015 16:08:46 -0400 From: Lowell Gilbert <freebsd-ports-local@be-well.ilk.org> To: Roger Marquis <marquis@roble.com> Cc: freebsd-ports@freebsd.org Subject: Re: Broken _DEPENDS logic Message-ID: <44a8xlqv8x.fsf@lowell-desk.lan> In-Reply-To: <20150503043317.73FD0DAD@hub.freebsd.org> (Roger Marquis's message of "Sat, 2 May 2015 21:33:13 -0700 (PDT)") References: <20150503043317.73FD0DAD@hub.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Roger Marquis <marquis@roble.com> 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44a8xlqv8x.fsf>