You are not logged in.

#1 2017-10-03 10:02:05

bartus
Member
Registered: 2013-05-13
Posts: 50

[Solved] Pacman create symlinks not present in package

I wish to create an additional Embree package that could reside alongside main repository one.
The main repo package provides those libs/symlinks

embree /usr/lib/libembree.so
embree /usr/lib/libembree.so.2
embree /usr/lib/libembree.so.2.17.0

and here is my embree-bvh_build-git PKGBUILD  and patch that rosolve conflicts.
My package provides single lib (plus headers and cmake script)

embree-bvh_build-git /usr/lib/libembree.so.2.8.0

Problem ocures when I try to install first my embree-bvh_build-git and than official embree packages from the arch repository.
Pacman complains about /usr/lib/libembree.so.2 existing in current tree and aboard the installation. This symlink is reported to not belong to any package pacman -Qo /usr/lib/libembree.so.2 and gets created at install time for my embree-bvh_build-git package.
Reversed order of installation, embree>embree-bvh_build-git doesn't have this problem.

I assume that Pacman creates this symlink automatically, is this intended behavior, is there a way to control this behavior creation by package scripting?

Last edited by bartus (2017-10-03 14:44:58)

Offline

#2 2017-10-03 14:14:02

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,561

Re: [Solved] Pacman create symlinks not present in package

Pacman isn't creating the symlink, ldconfig is. If it doesn't find a symlink matching the soname, it creates it.

Offline

#3 2017-10-03 14:43:52

bartus
Member
Registered: 2013-05-13
Posts: 50

Re: [Solved] Pacman create symlinks not present in package

Thank for the tip, first time I heard about soname. Already include it in my patch witch cmake target property SOVERSION smile Now everything works as expected.
Again, thanks for pointing me in the right direction!

Last edited by bartus (2017-10-03 14:44:43)

Offline

Board footer

Powered by FluxBB