pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: How to prevent locally compiled packages from upgrading



another approach I've used for a similar problem...

Several releases ago, I fixed a Darwin/macOS package well enough to build and install it, but the patching was messy and not suitable for a maintainer request. I'm still using that fixup package because the build is still broken in the current release.

Since I installed it with the old tag in the LOCALBASE, I can still reference the bin file directly, and it still links the right libs, even though my current PATH points to the LOCALBASE of the current release, I'm only using one package in from the old install.

In your case you could bootstrap with LOCALBASE=/opt/pkg and make another bootstrap with LOCALBASE=/opt/2025Q1-radio just for the bootstrap and your fixup. Then build for and packin update /opt/pkg without disturbing the /opt/2025Q1-radio install.

I just wrote a guide that explains this for a very similar circumstance
https://github.com/georgalis/pub/blob/main/boot/pkgsrc_guide.md

Regards,
-George


On Mon, May 19, 2025 at 1:13 AM Ramiro Aceves <ea1abz%gmail.com@localhost> wrote:


El 19/5/25 a las 8:57, Ramiro Aceves escribió:
> Hi John, thanks for answering:
>
> El 18/5/25 a las 21:20, Jonathan Perkin escribió:
>> * On 2025-05-18 at 14:53 BST, Ramiro Aceves wrote:
>>
>>> netbsd-x260# make install
>>>
>>> netbsd-x260# pkg_info -B gnuradio-core|grep PKGPATH
>>> PKGPATH=ham/gnuradio-core
>>
>> It's likely that "install" did not actually install that package, and
>> you are still querying the older package.  If you already have one
>> installed then it will not update it by default.
>>
>>    $ cd pkgsrc; mkdir local
>>    $ ln -s ../pkgtools/digest local/digest
>>    $ cd local/digest
>>    $ bmake stage-package-create
>>    $ pkg_info -Q PKGPATH $(bmake -v STAGE_PKGFILE)
>>    local/digest
>>
>
> On my RPi4, I am at work and have the amd64 machine off:
>
> $ cd pkgsrc; mkdir local
> $ ln -s ../pkgtools/digest local/digest
> $ cd local/digest
> $ bmake stage-package-create
>
> netbsd-raspa4# pkg_info -Q PKGPATH $(make -v STAGE_PKGFILE)
> pkgtools/digest
>
> It does not output local/digest, pkgtools/digest instead.
>
> Regards.
>

Hello again, I think that as Adr suggested, it is better not to tweak
too mach and it is more practical to do upgrades using pkg_add during
the life of 2025Q1 till gnuradio/gr-osmosdr appear fixed in 2025Q2, to
mantain using locally modified packages.

Regards.
Ramiro.


>



--
George Georgalis, (415) 894-2710, http://www.galis.org/



Home | Main Index | Thread Index | Old Index