Date: Tue, 30 Apr 2024 22:21:59 +0200 From: Baptiste Daroussin <bapt@FreeBSD.org> To: Alexander Leidinger <Alexander@Leidinger.net> Cc: Miroslav Lachman <000.fbsd@quip.cz>, ports@freebsd.org Subject: Re: pkg upgrade odity Message-ID: <5D2405B5-DE58-4CBB-84D7-86B41CB7AB5D@FreeBSD.org> In-Reply-To: <8fd2687ae88582ccc74ba6309056dbce@Leidinger.net> References: <6e8aea8cce83e0a82be430be1989980a@Leidinger.net> <f64b7244-5cb1-450d-8aad-525f8673410a@quip.cz> <zypr5fta76iochorlmqbikm5ygdzpk5vqq66yta5ulprgbtjwe@fmhgiee2ugte> <8fd2687ae88582ccc74ba6309056dbce@Leidinger.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Le 30 avril 2024 13:18:41 GMT+02:00, Alexander Leidinger <Alexander@Leiding= er=2Enet> a =C3=A9crit=C2=A0: >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=2E I do not understand w= hy=2E=2E=2E >>> > ---snip--- >>> > # pkg upgrade >>> > Updating FreeBSD repository catalogue=2E=2E=2E >>> > Fetching meta=2Econf: 100%=C2=A0=C2=A0=C2=A0 178 B=C2=A0=C2=A0 0=2E2= kB/s=C2=A0=C2=A0=C2=A0 00:01 >>> > Fetching data=2Epkg: 100%=C2=A0 130 KiB 133=2E5kB/s=C2=A0=C2=A0=C2= =A0 00:01 >>> > Processing entries: 100% >>> > FreeBSD repository update completed=2E 467 packages processed=2E >>> > All repositories are up to date=2E >>> > 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: >>> > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 mosh: 1=2E4=2E0_2 >>> > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 netdata: 1=2E43=2E2_1 >>> > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 protobuf: 24=2E4,1 >>> > >>> > Installed packages to be UPGRADED: >>> > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 rsync: 3=2E2=2E7_1 -> 3= =2E3=2E0 >>> > >>> > Number of packages to be removed: 3 >>> > Number of packages to be upgraded: 1 >>> > >>> > The operation will free 55 MiB=2E >>> > 405 KiB to be downloaded=2E >>> > >>> > Proceed with this action? [y/N]: n >>> > ---snip--- >>> > >>> > If I do this instead, it is doing what I expect the former command t= o do: >>> > ---snip--- >>> > # pkg upgrade mosh netdata protobuf rsync >>> > Updating FreeBSD repository catalogue=2E=2E=2E >>> > FreeBSD repository is up to date=2E >>> > All repositories are up to date=2E >>> > The following 1 package(s) will be affected (of 0 checked): >>> > >>> > Installed packages to be UPGRADED: >>> > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 rsync: 3=2E2=2E7_1 -> 3= =2E3=2E0 >>> > >>> > Number of packages to be upgraded: 1 >>> > >>> > 405 KiB to be downloaded=2E >>> > >>> > Proceed with this action? [y/N]: >>> > ---snip--- >>> > >>> > Any ideas why it wants to remove those packages in the first case? >>>=20 >>>=20 >>> I see similar behavior from time to time=2E Last time (a few days ago)= pkg >>> wanted to uninstall about 30 packages when I tried to install Signal D= esktop >>> (I tried to install another package without any dependencies, but pkg >>> behaves the same)=2E I didn't have time to solve it, I just left it al= one=2E The >>> second day (after reboot) everything worked normally and pkg installed= only >>> Signal Desktop, no other dependencies/libraries were affected=2E >>>=20 >>> And similarly, pkg during 'pkg upgrade' installed several packages, wh= ich >>> after completing 'pkg upgrade' again uninstalled by command 'pkg autor= emove' >>> (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=2E >>>=20 >>>=20 >>> Kind regards >>> Miroslav Lachman >>>=20 >>>=20 >>=20 >> 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=2E=2E=2E >---snip--- > # pkg check -da >Checking all packages: 100% >mosh is missing a required shared library: libabsl_time_zone=2Eso=2E2301= =2E0=2E0 >mosh is missing a required shared library: libabsl_time=2Eso=2E2301=2E0= =2E0 >mosh is missing a required shared library: libabsl_throw_delegate=2Eso=2E= 2301=2E0=2E0 >mosh is missing a required shared library: libabsl_synchronization=2Eso= =2E2301=2E0=2E0 >mosh is missing a required shared library: libabsl_symbolize=2Eso=2E2301= =2E0=2E0 >mosh is missing a required shared library: libabsl_strings_internal=2Eso= =2E2301=2E0=2E0 >mosh is missing a required shared library: libabsl_strings=2Eso=2E2301=2E= 0=2E0 >mosh is missing a required shared library: libabsl_strerror=2Eso=2E2301= =2E0=2E0 >mosh is missing a required shared library: libabsl_str_format_internal=2E= so=2E2301=2E0=2E0 >mosh is missing a required shared library: libabsl_statusor=2Eso=2E2301= =2E0=2E0 >mosh is missing a required shared library: libabsl_status=2Eso=2E2301=2E0= =2E0 >mosh is missing a required shared library: libabsl_stacktrace=2Eso=2E2301= =2E0=2E0 >mosh is missing a required shared library: libabsl_spinlock_wait=2Eso=2E2= 301=2E0=2E0 >mosh is missing a required shared library: libabsl_raw_logging_internal= =2Eso=2E2301=2E0=2E0 >mosh is missing a required shared library: libabsl_raw_hash_set=2Eso=2E23= 01=2E0=2E0 >netdata is missing a required shared library: libabsl_time_zone=2Eso=2E23= 01=2E0=2E0 >netdata is missing a required shared library: libabsl_time=2Eso=2E2301=2E= 0=2E0 >netdata is missing a required shared library: libabsl_throw_delegate=2Eso= =2E2301=2E0=2E0 >netdata is missing a required shared library: libabsl_synchronization=2Es= o=2E2301=2E0=2E0 >netdata is missing a required shared library: libabsl_symbolize=2Eso=2E23= 01=2E0=2E0 >netdata is missing a required shared library: libabsl_strings_internal=2E= so=2E2301=2E0=2E0 >netdata is missing a required shared library: libabsl_strings=2Eso=2E2301= =2E0=2E0 >netdata is missing a required shared library: libabsl_strerror=2Eso=2E230= 1=2E0=2E0 >netdata is missing a required shared library: libabsl_str_format_internal= =2Eso=2E2301=2E0=2E0 >netdata is missing a required shared library: libabsl_statusor=2Eso=2E230= 1=2E0=2E0 >netdata is missing a required shared library: libabsl_status=2Eso=2E2301= =2E0=2E0 >netdata is missing a required shared library: libabsl_stacktrace=2Eso=2E2= 301=2E0=2E0 >netdata is missing a required shared library: libabsl_spinlock_wait=2Eso= =2E2301=2E0=2E0 >netdata is missing a required shared library: libabsl_raw_logging_interna= l=2Eso=2E2301=2E0=2E0 >netdata is missing a required shared library: libabsl_raw_hash_set=2Eso= =2E2301=2E0=2E0 >protobuf is missing a required shared library: libabsl_time_zone=2Eso=2E2= 301=2E0=2E0 >protobuf is missing a required shared library: libabsl_time=2Eso=2E2301= =2E0=2E0 >protobuf is missing a required shared library: libabsl_throw_delegate=2Es= o=2E2301=2E0=2E0 >protobuf is missing a required shared library: libabsl_synchronization=2E= so=2E2301=2E0=2E0 >protobuf is missing a required shared library: libabsl_symbolize=2Eso=2E2= 301=2E0=2E0 >protobuf is missing a required shared library: libabsl_strings_internal= =2Eso=2E2301=2E0=2E0 >protobuf is missing a required shared library: libabsl_strings=2Eso=2E230= 1=2E0=2E0 >protobuf is missing a required shared library: libabsl_strerror=2Eso=2E23= 01=2E0=2E0 >protobuf is missing a required shared library: libabsl_str_format_interna= l=2Eso=2E2301=2E0=2E0 >protobuf is missing a required shared library: libabsl_statusor=2Eso=2E23= 01=2E0=2E0 >protobuf is missing a required shared library: libabsl_status=2Eso=2E2301= =2E0=2E0 >protobuf is missing a required shared library: libabsl_stacktrace=2Eso=2E= 2301=2E0=2E0 >protobuf is missing a required shared library: libabsl_spinlock_wait=2Eso= =2E2301=2E0=2E0 >protobuf is missing a required shared library: libabsl_raw_logging_intern= al=2Eso=2E2301=2E0=2E0 >protobuf is missing a required shared library: libabsl_raw_hash_set=2Eso= =2E2301=2E0=2E0 > ># locate libabsl_time=2Eso=2E2301=2E0=2E0 >/usr/local/lib/libabsl_time=2Eso=2E2301=2E0=2E0 > ># ll /usr/local/lib/libabsl_time=2Eso=2E2301=2E0=2E0 >-rwxr-xr-x 1 root wheel 68K 22 Dez=2E 19:38 /usr/local/lib/libabsl_tim= e=2Eso=2E2301 > ># pkg which /usr/local/lib/libabsl_time_zone=2Eso=2E2301=2E0=2E0 >/usr/local/lib/libabsl_time_zone=2Eso=2E2301=2E0=2E0 was installed by pac= kage abseil-20230125=2E3 > ># pkg show abseil | head >abseil-20230125=2E3 >Name : abseil >Version : 20230125=2E3 >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=2Eorg >---snip--- > >Does this sound like "pkg check -B" would help here? > >Bye, >Alexander=2E > 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 buildi= ng, is it your case? Best regards, Bapt
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5D2405B5-DE58-4CBB-84D7-86B41CB7AB5D>