Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Aug 2006 15:44:55 +0200
From:      Rene Ladan <r.c.ladan@gmail.com>
To:        Randy Pratt <bsd-unix@earthlink.net>
Cc:        "\[LoN\]Kamikaze" <LoN_Kamikaze@gmx.de>, freebsd-ports@freebsd.org, Kiffin Gish <kiffin.gish@planet.nl>
Subject:   Re: Skipping certain ports, no upgrade of installed packages ...
Message-ID:  <44DF2CD7.7080302@gmail.com>
In-Reply-To: <20060813091219.a2d5377e.bsd-unix@earthlink.net>
References:  <1155466969.52536.15.camel@localhost>	<44DF0843.8010303@gmx.de>	<1155467479.52536.20.camel@localhost>	<44DF0DFF.9000105@gmail.com> <20060813091219.a2d5377e.bsd-unix@earthlink.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Randy Pratt schreef:
> On Sun, 13 Aug 2006 13:33:19 +0200
> Rene Ladan <r.c.ladan@gmail.com> wrote:
> 
>> Kiffin Gish schreef:
>>> On Sun, 2006-08-13 at 13:08 +0200, [LoN]Kamikaze wrote:
>>>> Kiffin Gish wrote:
>>>>> How can prevent a given package from being reinstalled during the next
>>>>> portupgrade when I want to delete permanently?
>>>>>
>>>>> An example is the Galeon browser. Since it also appears in the
>>>>> gnome2-fifth-toe makefile t will automatically be rebuilt.
>>>>>
>>>>> 2nd question: how can I just keep a given version without having it
>>>>> upgraded?
>>>>>
>>>>> Thanks alot in advance.
>>>>>
>>>> .if ${.CURDIR:M/usr/ports/category/port}
>>>> IGNORE=	not wanted
>>>> .endif
>>>>
>>>> This will keep the ports system from building them. But you will have to
>>>> edit dependant ports Makefiles. I'm doing that for arts and have to edit
>>>> the kdelibs Makefile every time kdelibs gets updated.
>>> The only problem with that approach is that every time I run cvsup the
>>> modified makefiles are overwritten.
>>>
>>> Can also just delete the dependencies line containing galeon for
>>> example, but overwritten by next cvsup.
>>>
>> You can also try portsnap, which only overwrites ports which have been
>> changed by a commit.
> 
> I'm not sure that is true for portsnap under all conditions.  From
> the portsnap man page:
> 
>   extract   Extract a ports tree, replacing existing files and
>             directories.  NOTE: This will remove anything occupying
>             the location where files or directories are being
>             extracted; in particular, any changes made locally to
>             ports tree (for example, adding new patches) will be
>             silently obliterated.
> 
Running `portsnap extract` will overwrite the ports tree.  But `portsnap
update` will only overwrite ports to which a commit has been made.

> The conventional tool, portupgrade, uses /usr/local/etc/pkgtools.conf
> to HOLD a package (not upgrade).  The pkgtools.conf.sample file is
> well annotated and has many other available options.
> 
> Take a look at that and see if it will do the job.
>
HOLD_PKGS = ['openoffice*', 'other-port', ]

Note the trailing comma, it is required.

> HTH,
> 
> Randy
> 
> 

Regards,
Rene
-- 
GPG fingerprint = E738 5471 D185 7013 0EE0  4FC8 3C1D 6F83 12E1 84F6
(subkeys.pgp.net)

"It won't fit on the line."
		-- me, 2001




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