Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 May 2024 06:05:49 +0900
From:      Tatsuki Makino <tatsuki_makino@hotmail.com>
To:        Baptiste Daroussin <bapt@FreeBSD.org>, Alexander Leidinger <Alexander@Leidinger.net>
Cc:        ports@freebsd.org
Subject:   Re: pkg upgrade odity
Message-ID:  <SI2PR01MB50366AD623020D2D0D5E738DFA1A2@SI2PR01MB5036.apcprd01.prod.exchangelabs.com>
In-Reply-To: <5D2405B5-DE58-4CBB-84D7-86B41CB7AB5D@FreeBSD.org>
References:  <6e8aea8cce83e0a82be430be1989980a@Leidinger.net> <f64b7244-5cb1-450d-8aad-525f8673410a@quip.cz> <zypr5fta76iochorlmqbikm5ygdzpk5vqq66yta5ulprgbtjwe@fmhgiee2ugte> <8fd2687ae88582ccc74ba6309056dbce@Leidinger.net> <5D2405B5-DE58-4CBB-84D7-86B41CB7AB5D@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Baptiste Daroussin wrote on 2024/05/01 05:21:
> Le 30 avril 2024 13:18:41 GMT+02:00, Alexander Leidinger <Alexander@Leidinger.net> a écrit :
>> In my case it complains about missing shared libs for exactly those ports which it wants to deinstall, but they are present in the system...
>> ---snip---
>> # pkg check -da
>> Checking all packages: 100%
>> mosh is missing a required shared library: libabsl_time_zone.so.2301.0.0
(omit)
>> netdata is missing a required shared library: libabsl_time_zone.so.2301.0.0
(omit)
>> protobuf is missing a required shared library: libabsl_time_zone.so.2301.0.0
(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 building, is it your case?

In this case, the libraries usually have relative rpath.
For example, $ORIGIN and ../ are included, but do not start with /.
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 % -print -exec readelf -d {} \; | grep -e ^/ -e RUNPATH

This causes problems with the base library, which is Bugzilla 261550.
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.

Regards.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?SI2PR01MB50366AD623020D2D0D5E738DFA1A2>