Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Jan 2009 22:24:15 +0100
From:      Rene Ladan <r.c.ladan@gmail.com>
To:        Stephen Montgomery-Smith <stephen@math.missouri.edu>
Cc:        freebsd-ports@freebsd.org, Luke Dean <LukeD@pobox.com>
Subject:   Re: Tricking pkg_version
Message-ID:  <49739DFF.5040500@gmail.com>
In-Reply-To: <49739B00.5060909@math.missouri.edu>
References:  <alpine.BSF.2.00.0901181229570.22102@border.lukas.is-a-geek.org> <49739B00.5060909@math.missouri.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
Stephen Montgomery-Smith schreef:
> Luke Dean wrote:
>>
>> I installed phpbb-3.02 from ports (i.e. "make install").
>> I then used phpbb's built-in upgrade system to upgrade it to version 
>> 3.04.
>> This of course did not bump the version number in the ports/packages
>> database.
>> I frequently use csup + pkg_version -L to spot ports that are out of 
>> date,
>> and this one will probably show up forever now.
>>
>> I don't wish to recompile anything because I've made a lot of custom
>> changes to the php code and I don't want to go through the pain of
>> remerging all that stuff again.
>>
>> Is there a way that I can tell pkg_version that I think I'm already
>> running version 3.04?
>> I'd like to continue to pretend that this package is still managed by the
>> ports/package system even though I've modified it.  I realize that 
>> this is
>> not sane, but it will help me spot new versions when they become 
>> available
>> and I just like having all my software listed in one place like this.
>>
>> I've briefly poked around in /var/db/pkg/phpbb-3.0.2, but those files 
>> with
>> all their checksums just scream "don't touch!" to me.
>>
>> I'm not using any ports/package management tools except for "make" and
>> "pkg_*", so aside from whatever database pkg_info uses, there are no 
>> other
>> databases to worry about.
> 
> You could try:
> 
> cd /var/db/pkg
> mv phpbb-3.0.2 phpbb-3.0.4
> 
> I think it is likely to work.  And if it doesn't, the damage is easily 
> repaired.
This should indeed work, but don't forget to update +CONTENTS as well.
(the @name tag).  The outdated @pkgdep tags in dependent packages
shouldn't hurt.

Rene
-- 
http://www.rene-ladan.nl/

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



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