[PATCH] Replace libdepends/libprovides

Johannes Löthberg johannes at kyriasis.com
Tue Dec 14 12:39:41 UTC 2021


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.

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

-- 
Sincerely,
  Johannes Löthberg :: SA0DEM
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 1727 bytes
Desc: not available
URL: <https://lists.archlinux.org/pipermail/pacman-dev/attachments/20211214/34a7210e/attachment.sig>


More information about the pacman-dev mailing list