change in how dependencies are recorded
Matthew Seaman
matthew at FreeBSD.org
Wed Feb 18 17:32:02 UTC 2015
On 2015/02/18 17:15, Vick Khera wrote:
> I traced it down to the following RUN_DEPENDS:
>
> emacs>=23.3:${PORTSDIR}/editors/emacs-nox11 \
>
> This was confusing the dependency registration of the port; that is, "make
> depends" would notice it needed emacs, then install it. However, when "make
> install" would run, the resulting package did not register the dependency
> for emacs. The fix was to remove the ">=23.3" version check. My suspicion
> is that it has something to do with emacs-nox11 being a slave port.
This is because a RUN_DEPENDS like
emacs>=23.3:${PORTSDIR}....
means 'check for a package called "emacs" and make sure its version is
at least 23.3'
whereas a RUN_DEPENDS like
emacs:${PORTSDIR}...
means 'check for the presence of an executable named emacs on $PATH'
which works because either the emacs or emacs-nox11 packages will
provide an emacs binary, but obviously doesn't allow for checking the
version numbers.
So
emacs>=23.3:${PORTSDIR}/editors/emacs-nox11
is non-sensical, and should probably be rewritten as
emacs-nox11>=23.3:${PORTSDIR}/editors/emacs-nox11
Cheers,
Matthew
More information about the freebsd-ports-bugs
mailing list