[PATCH] Replace libdepends/libprovides

Allan McRae allan at archlinux.org
Tue Dec 14 13:31:59 UTC 2021


On 14/12/21 22:39, Johannes Löthberg wrote:
> Excerpts from Allan McRae's message of December 14, 2021 13:10:
>> On 14/12/21 21:51, Jan Alexander Steffens (heftig) wrote:
>>> On Sun, Dec 12, 2021 at 11:54 AM Allan McRae <allan at archlinux.org 
>>> <mailto:allan at archlinux.org>> wrote:
>>>
>>>     This patch series replaces the old libdepends/libprovides system 
>>> into
>>>     something akin to that used by APK.  In short, makepkg.conf will 
>>> have
>>>     a variable like:
>>>
>>>     LIB_DIRS=('lib:usr/lib' 'lib32:usr/lib32')
>>>
>>>
>>> What about packages that install libraries into non-standard dirs and 
>>> then configure ld.so to look?
>>>
>>> On my system I currently have:
>>>
>>> /usr/lib/libfakeroot
>>> /usr/lib/opencollada
>>> /usr/lib/openmpi
>>> /usr/lib/perf
>>>
>>> Can this somehow be covered? I guess ignoring it wouldn't leave us 
>>> any worse off.
>>
>> Sure.  E.g. the fakeroot PKGBUILD can add:
>>
>> LIB_DIRS+=('lib:usr/lib/libfakeroot')
>>
>> and lib:libfakeroot-0.so will be added as a provide.
>>
> 
> With the currently proposed patch it should already be added even 
> without touching LIB_DIRS, since the `find` command used doesn't limit 
> the depth.  And adding it to LIB_DIRS would cause it to be added to 
> provides= twice, unless the list is filtered later on in makepkg.

Good point!  It will not be added twice, as the list of sonames is run 
through a "sort -u" before finally adding them to depends.

> They just won't be added to depends= automatically unless added to 
> LIB_DIRS.

Correct.

Allan




More information about the pacman-dev mailing list