Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Apr 2024 23:15:44 +0200
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        Tatsuki Makino <tatsuki_makino@hotmail.com>, Alexander Leidinger <Alexander@Leidinger.net>
Cc:        ports@freebsd.org
Subject:   Re: pkg upgrade odity
Message-ID:  <E72D5DE2-9EC5-428A-9145-0B4398DD9DCF@FreeBSD.org>
In-Reply-To: <SI2PR01MB50366AD623020D2D0D5E738DFA1A2@SI2PR01MB5036.apcprd01.prod.exchangelabs.com>
References:  <6e8aea8cce83e0a82be430be1989980a@Leidinger.net> <f64b7244-5cb1-450d-8aad-525f8673410a@quip.cz> <zypr5fta76iochorlmqbikm5ygdzpk5vqq66yta5ulprgbtjwe@fmhgiee2ugte> <8fd2687ae88582ccc74ba6309056dbce@Leidinger.net> <5D2405B5-DE58-4CBB-84D7-86B41CB7AB5D@FreeBSD.org> <SI2PR01MB50366AD623020D2D0D5E738DFA1A2@SI2PR01MB5036.apcprd01.prod.exchangelabs.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Le 30 avril 2024 23:05:49 GMT+02:00, Tatsuki Makino <tatsuki_makino@hotmail=
=2Ecom> a =C3=A9crit=C2=A0:
>Baptiste Daroussin wrote on 2024/05/01 05:21:
>> Le 30 avril 2024 13:18:41 GMT+02:00, Alexander Leidinger <Alexander@Lei=
dinger=2Enet> a =C3=A9crit=C2=A0:
>>> In my case it complains about missing shared libs for exactly those po=
rts which it wants to deinstall, but they are present in the system=2E=2E=
=2E
>>> ---snip---
>>> # pkg check -da
>>> Checking all packages: 100%
>>> mosh is missing a required shared library: libabsl_time_zone=2Eso=2E23=
01=2E0=2E0
>(omit)
>>> netdata is missing a required shared library: libabsl_time_zone=2Eso=
=2E2301=2E0=2E0
>(omit)
>>> protobuf is missing a required shared library: libabsl_time_zone=2Eso=
=2E2301=2E0=2E0
>(omit)
>>
>> Not at all! I need the output of pkg info -R --raw-format ucl abseil
>> This is a real issue on your system, which usually comes from local bui=
lding, is it your case?
>
>In this case, the libraries usually have relative rpath=2E
>For example, $ORIGIN and =2E=2E/ are included, but do not start with /=2E
>To find the library that is causing the problem, we can use the following=
 command
>
>pkg info -b -q protobuf | xargs -J % -n 1 find /usr/local/lib/ -name % -p=
rint -exec readelf -d {} \; | grep -e ^/ -e RUNPATH
>
>This causes problems with the base library, which is Bugzilla 261550=2E
>This time it seems that the library cannot be found because the file was =
placed in a different location than the library path of the ldconfig=2E
>
>Regards=2E
>

pkg is not supposed to play with such case, provides/requires are only the=
re for libraries on the regular path from ldconfig! Not to deal with runpat=
h it would be fragile=2E For them we have bundle_libs=3Dyes in ports to be =
set by the maintainer so they are not exposed=2E

Best regards,
Bapt




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E72D5DE2-9EC5-428A-9145-0B4398DD9DCF>