Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Jun 2007 13:47:14 +0200
From:      Jeremie Le Hen <jeremie@le-hen.org>
To:        Nikola Lecic <nlecic@EUnet.yu>
Cc:        Robert Huff <roberthuff@rcn.com>, Jeremie Le Hen <jeremie@le-hen.org>, freebsd-ports@freebsd.org
Subject:   Re: Keeping track of automatically installed dependency-only ports
Message-ID:  <20070616114714.GB56829@obiwan.tataz.chchile.org>
In-Reply-To: <200706150007.l5F07QC6016658@smtpclu-3.eunet.yu>
References:  <20070614070602.GD39533@obiwan.tataz.chchile.org> <200706140714.l5E7EK0U023767@smtpclu-1.eunet.yu> <20070614075418.GA8093@obiwan.tataz.chchile.org> <18033.12033.969102.280191@jerusalem.litteratus.org> <200706150007.l5F07QC6016658@smtpclu-3.eunet.yu>

next in thread | previous in thread | raw e-mail | index | archive | help
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 >



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070616114714.GB56829>