Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Apr 2024 13:18:41 +0200
From:      Alexander Leidinger <Alexander@Leidinger.net>
To:        Baptiste Daroussin <bapt@freebsd.org>
Cc:        Miroslav Lachman <000.fbsd@quip.cz>, ports@freebsd.org
Subject:   Re: pkg upgrade odity
Message-ID:  <8fd2687ae88582ccc74ba6309056dbce@Leidinger.net>
In-Reply-To: <zypr5fta76iochorlmqbikm5ygdzpk5vqq66yta5ulprgbtjwe@fmhgiee2ugte>
References:  <6e8aea8cce83e0a82be430be1989980a@Leidinger.net> <f64b7244-5cb1-450d-8aad-525f8673410a@quip.cz> <zypr5fta76iochorlmqbikm5ygdzpk5vqq66yta5ulprgbtjwe@fmhgiee2ugte>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)

--=_a6ec4377daf338fa5f502f288adc0017
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=UTF-8;
 format=flowed

Am 2024-04-29 17:21, schrieb Baptiste Daroussin:
> On Mon 29 Apr 16:41, Miroslav Lachman wrote:
>> On 29/04/2024 12:49, Alexander Leidinger wrote:
>> > Hi,
>> >
>> > pkg wants to remove some package on upgrade. I do not understand why...
>> > ---snip---
>> > # pkg upgrade
>> > Updating FreeBSD repository catalogue...
>> > Fetching meta.conf: 100%    178 B   0.2kB/s    00:01
>> > Fetching data.pkg: 100%  130 KiB 133.5kB/s    00:01
>> > Processing entries: 100%
>> > FreeBSD repository update completed. 467 packages processed.
>> > All repositories are up to date.
>> > Checking for upgrades (1 candidates): 100%
>> > Processing candidates (1 candidates): 100%
>> > The following 4 package(s) will be affected (of 0 checked):
>> >
>> > Installed packages to be REMOVED:
>> >          mosh: 1.4.0_2
>> >          netdata: 1.43.2_1
>> >          protobuf: 24.4,1
>> >
>> > Installed packages to be UPGRADED:
>> >          rsync: 3.2.7_1 -> 3.3.0
>> >
>> > Number of packages to be removed: 3
>> > Number of packages to be upgraded: 1
>> >
>> > The operation will free 55 MiB.
>> > 405 KiB to be downloaded.
>> >
>> > Proceed with this action? [y/N]: n
>> > ---snip---
>> >
>> > If I do this instead, it is doing what I expect the former command to do:
>> > ---snip---
>> > # pkg upgrade mosh netdata protobuf rsync
>> > Updating FreeBSD repository catalogue...
>> > FreeBSD repository is up to date.
>> > All repositories are up to date.
>> > The following 1 package(s) will be affected (of 0 checked):
>> >
>> > Installed packages to be UPGRADED:
>> >          rsync: 3.2.7_1 -> 3.3.0
>> >
>> > Number of packages to be upgraded: 1
>> >
>> > 405 KiB to be downloaded.
>> >
>> > Proceed with this action? [y/N]:
>> > ---snip---
>> >
>> > Any ideas why it wants to remove those packages in the first case?
>> 
>> 
>> I see similar behavior from time to time. Last time (a few days ago) 
>> pkg
>> wanted to uninstall about 30 packages when I tried to install Signal 
>> Desktop
>> (I tried to install another package without any dependencies, but pkg
>> behaves the same). I didn't have time to solve it, I just left it 
>> alone. The
>> second day (after reboot) everything worked normally and pkg installed 
>> only
>> Signal Desktop, no other dependencies/libraries were affected.
>> 
>> And similarly, pkg during 'pkg upgrade' installed several packages, 
>> which
>> after completing 'pkg upgrade' again uninstalled by command 'pkg 
>> autoremove'
>> (I remember mate-desktop, which I don't use at all, I use KDE Plasma) 
>> It was
>> right before I tried to install Signal Desktop.
>> 
>> 
>> Kind regards
>> Miroslav Lachman
>> 
>> 
> 
> This is usually due to shlibs_provided and shlibs_required,, pkg check 
> -d should
> be able to highlight some of the issues

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
mosh is missing a required shared library: libabsl_time.so.2301.0.0
mosh is missing a required shared library: 
libabsl_throw_delegate.so.2301.0.0
mosh is missing a required shared library: 
libabsl_synchronization.so.2301.0.0
mosh is missing a required shared library: libabsl_symbolize.so.2301.0.0
mosh is missing a required shared library: 
libabsl_strings_internal.so.2301.0.0
mosh is missing a required shared library: libabsl_strings.so.2301.0.0
mosh is missing a required shared library: libabsl_strerror.so.2301.0.0
mosh is missing a required shared library: 
libabsl_str_format_internal.so.2301.0.0
mosh is missing a required shared library: libabsl_statusor.so.2301.0.0
mosh is missing a required shared library: libabsl_status.so.2301.0.0
mosh is missing a required shared library: 
libabsl_stacktrace.so.2301.0.0
mosh is missing a required shared library: 
libabsl_spinlock_wait.so.2301.0.0
mosh is missing a required shared library: 
libabsl_raw_logging_internal.so.2301.0.0
mosh is missing a required shared library: 
libabsl_raw_hash_set.so.2301.0.0
netdata is missing a required shared library: 
libabsl_time_zone.so.2301.0.0
netdata is missing a required shared library: libabsl_time.so.2301.0.0
netdata is missing a required shared library: 
libabsl_throw_delegate.so.2301.0.0
netdata is missing a required shared library: 
libabsl_synchronization.so.2301.0.0
netdata is missing a required shared library: 
libabsl_symbolize.so.2301.0.0
netdata is missing a required shared library: 
libabsl_strings_internal.so.2301.0.0
netdata is missing a required shared library: 
libabsl_strings.so.2301.0.0
netdata is missing a required shared library: 
libabsl_strerror.so.2301.0.0
netdata is missing a required shared library: 
libabsl_str_format_internal.so.2301.0.0
netdata is missing a required shared library: 
libabsl_statusor.so.2301.0.0
netdata is missing a required shared library: libabsl_status.so.2301.0.0
netdata is missing a required shared library: 
libabsl_stacktrace.so.2301.0.0
netdata is missing a required shared library: 
libabsl_spinlock_wait.so.2301.0.0
netdata is missing a required shared library: 
libabsl_raw_logging_internal.so.2301.0.0
netdata is missing a required shared library: 
libabsl_raw_hash_set.so.2301.0.0
protobuf is missing a required shared library: 
libabsl_time_zone.so.2301.0.0
protobuf is missing a required shared library: libabsl_time.so.2301.0.0
protobuf is missing a required shared library: 
libabsl_throw_delegate.so.2301.0.0
protobuf is missing a required shared library: 
libabsl_synchronization.so.2301.0.0
protobuf is missing a required shared library: 
libabsl_symbolize.so.2301.0.0
protobuf is missing a required shared library: 
libabsl_strings_internal.so.2301.0.0
protobuf is missing a required shared library: 
libabsl_strings.so.2301.0.0
protobuf is missing a required shared library: 
libabsl_strerror.so.2301.0.0
protobuf is missing a required shared library: 
libabsl_str_format_internal.so.2301.0.0
protobuf is missing a required shared library: 
libabsl_statusor.so.2301.0.0
protobuf is missing a required shared library: 
libabsl_status.so.2301.0.0
protobuf is missing a required shared library: 
libabsl_stacktrace.so.2301.0.0
protobuf is missing a required shared library: 
libabsl_spinlock_wait.so.2301.0.0
protobuf is missing a required shared library: 
libabsl_raw_logging_internal.so.2301.0.0
protobuf is missing a required shared library: 
libabsl_raw_hash_set.so.2301.0.0

# locate libabsl_time.so.2301.0.0
/usr/local/lib/libabsl_time.so.2301.0.0

# ll /usr/local/lib/libabsl_time.so.2301.0.0
-rwxr-xr-x  1 root wheel   68K 22 Dez. 19:38 
/usr/local/lib/libabsl_time.so.2301

# pkg which /usr/local/lib/libabsl_time_zone.so.2301.0.0
/usr/local/lib/libabsl_time_zone.so.2301.0.0 was installed by package 
abseil-20230125.3

# pkg show abseil | head
abseil-20230125.3
Name           : abseil
Version        : 20230125.3
Installed on   : Tue Dec 26 23:37:59 2023 UTC
Origin         : devel/abseil
Architecture   : FreeBSD:15:amd64
Prefix         : /usr/local
Categories     : devel
Licenses       : APACHE20
Maintainer     : danfe@FreeBSD.org
---snip---

Does this sound like "pkg check -B" would help here?

Bye,
Alexander.

-- 
http://www.Leidinger.net Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF
http://www.FreeBSD.org    netchild@FreeBSD.org  : PGP 0x8F31830F9F2772BF

--=_a6ec4377daf338fa5f502f288adc0017
Content-Type: application/pgp-signature;
 name=signature.asc
Content-Disposition: attachment;
 filename=signature.asc;
 size=833
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEER9UlYXp1PSd08nWXEg2wmwP42IYFAmYw06IACgkQEg2wmwP4
2IZP5RAAm93bDfuhnv+qBEDRyyI/oxWP2/G2ymN/9qnYhEDvO/F9eDxzS02RG6yC
sGAT0ST343J3B/Mz71zLyVi6E5tHkJSffUs6IGHzbhxIqjSbubyQv763yJXoa4NZ
uy9wo1aV8Hf8nBUyKzDu+CF5hoHI+vn15FydOyCyzhFqx72vs4Xqsf3anFv9dw3p
gkMNhPyq4O20OIBWq38eQdZiSx1lJhIb+QYojn4zvJtM1Z0wcGigfygZ1BFKDeEf
G8jW+DBdUetV1uyo1fbGkiwxYsIdLX+SYIuLbGf+mIy9HkYt2Ct9vUS2LmPWOdDV
PZ5Dq+TbbErcJVN4NyO6ZTXv5Vb1mGJT4A4VPBUcUIvEE3xGGE5gAVfi1os2UqWC
bQk7JHmL29+N27th7R46/YnN2cFzUYlgZaxhXfJYTrtqZ/N2kD/vqbuYZF0IJsFR
MxAt2cv6bjlR+EZkkdJInVraQU0gNMDudyI9nSZpDItYGNONnLDLVwf39i9r+mVR
kPUgQlDYqXi7W5ZGkTrrgqZw3pMxRBjr2D3IRp0psouHytVlqF6exM7f8AFE+8z/
lab5xoS9uJoEOfl5dtzbdON9G0ppemxzvit1AG08gYzNki/MkxwhoqpXk5En/pqV
hjJxq6xrXPVcqH5cAUQvlBrmLisDkLJxtZKH8IQUxBVuxw0Bl7U=
=gHU+
-----END PGP SIGNATURE-----

--=_a6ec4377daf338fa5f502f288adc0017--



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