Keeping track of automatically installed dependency-only ports
Jeremie Le Hen
jeremie at le-hen.org
Sat Jun 16 11:47:33 UTC 2007
On Fri, Jun 15, 2007 at 02:07:26AM +0200, Nikola Lecic wrote:
> I'd say it's actually very simple, and that could sometimes be
> convenient. For example, pkgtools.conf offers the HOLD_PKGS array and
> possibility to manually put +IGNOREME in the package directory.
>
> In this case, it would be sufficient to add something like
> +NEVERDEINSTALL to the directory or NEVER_DEINSTALL array to the
> pkgtools.conf, while portinstall could (optionally) mark with
> +NEVERDEINSTALL file all ports that are manually (= as an argument)
> passed to it.
>
> Those pakages would behave normally (they would be normally upgraded,
> etc.), they would just always be (silently) included in -x list of
> pkg_deinstall. I don't think it has much to do with the execution speed.
>
> Of course, if something like that doesn't already exist.
The patch to ports/Mk/bsd.ports.mk is straightforward:
% @@ -5849,6 +5849,9 @@ fake-pkg:
% ${CAT} /tmp/${PKGNAME}-required-by >> ${PKG_DBDIR}/${PKGNAME}/+REQUIRED_BY; \
% ${RM} -f /tmp/${PKGNAME}-required-by; \
% fi
% +.if !defined(INSTALLS_DEPENDS)
% + ${TOUCH} ${PKG_DBDIR}/${PKGNAME}/+NEVERDEINSTALL
% +.endif
% .else
% @${DO_NADA}
% .endif
I've had a look at pkgtools, but I don't know Ruby. I think this
modification is pretty easy for portupgrade's developpers.
Best regards,
--
Jeremie Le Hen
< jeremie at le-hen dot org >< ttz at chchile dot org >
More information about the freebsd-ports
mailing list