Re: Questions about /usr/local/lib/compat/pkg

From: <freebsd_at_ohreally.nl>
Date: Mon, 08 Nov 2021 15:03:56 UTC
Thank you, Stefan.
I am creating an issue at the portupgrade/pkgtools GitHub project as we 
speak. I will include all the information that Baptiste and you have 
given me.

Best,
   Rob


On 08/11/2021 15:58, Stefan Esser wrote:
> Am 08.11.21 um 11:04 schrieb freebsd@ohreally.nl:
>> On 08/11/2021 10:59, Baptiste Daroussin wrote:
>>> Are you sure you don't have a BACKUP_LIBRARIES env var which is setup ?
>>
>> Yes, I am sure.
>>
>>> Are you out of curiosity using portmaster?
>>
>> I always install from ports, and for upgrades I use portsnap/portupgrade.
>> Should I direct my bug report elsewhere?
>>
>> (Since the directory is called pkg, and the only line of documentation I could
>> find about this directory is in pkg.conf(5), I was sure pkg was the problematic
>> application.)
> 
> I do not know anything about portupgrade, but portmaster does offer to
> preserve shared libraries in the compat/pkg directory.
> 
> But they are always copied by portzmaster, and therefore no dangling
> symbolic link can be created that way.
> 
> And the backup is deleted again, if the upgrade installs a new library
> with the same name (i.e. if libA.so.5 has been copied to compat/pkg and
> the upgrade creates a new libA.so.5 in /usr/local/lib/libA.so.5, then
> the file in compat/pkg will be deleted - but if the upgrade brought a
> library named libA.so.6, the libA.so.5 file would persist and be available
> for ports that have not been re-compiled for libA.so.6).
> 
> Regards, STefan
> 

-- 
:wq