4 X-Original-To: ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VSr5z58Gkz5JkqK for ; Mon, 29 Apr 2024 17:33:43 +0000 (UTC) (envelope-from SRS0=XQGu=MC=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4VSr5z2DnQz4bmJ; Mon, 29 Apr 2024 17:33:43 +0000 (UTC) (envelope-from SRS0=XQGu=MC=quip.cz=000.fbsd@elsa.codelab.cz) Authentication-Results: mx1.freebsd.org; none Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 8EDF8D78C0; Mon, 29 Apr 2024 19:33:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quip.cz; s=private; t=1714412016; bh=V9qihvTygiYfyjjyUPiMSzqr7xA+SLpO9+lBBUaWUYE=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=6AyEO16BExPJ2kBKih42M5N1vPftH8O/gxGcyKo4DMzC0GzUY101vydKWAW1/wAbR EgbmrO/AOTiswOwsflxeXPt1MecyXlNqADdyNNkl5IRImPP9aYKHyPuXLUSTLzaJSS A5XdWUjxOleKgYX9bmKGmTIsC9cazMOS7UQdXs44= Received: from [192.168.145.49] (ip-89-177-27-225.bb.vodafone.cz [89.177.27.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 7CD06D7887; Mon, 29 Apr 2024 19:33:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quip.cz; s=private; t=1714412015; bh=V9qihvTygiYfyjjyUPiMSzqr7xA+SLpO9+lBBUaWUYE=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=svvdhLQqcBe2SvT6ZgbTFQVG3MWSBVK+ASmX8KhWDGUOvCjCumCNyAAonIgI8yu+/ uxp6YJIbvLOvreYPSJypGxfDFlkDPnucatNRJOyY2zdJQUIWoNaUw1v8HPL0T2xTXN zqtF+kZ1lhRoKKzEp3IyECvSQuy02SkDc2w7bfEY= Message-ID: <42392cc8-db69-4316-840b-dae5beeea396@quip.cz> Date: Mon, 29 Apr 2024 19:33:35 +0200 List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports@freebsd.org Sender: owner-freebsd-ports@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: pkg upgrade odity To: Baptiste Daroussin Cc: ports@freebsd.org, Alexander Leidinger References: <6e8aea8cce83e0a82be430be1989980a@Leidinger.net> Content-Language: cs-Cestina From: Miroslav Lachman <000.fbsd@quip.cz> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:42000, ipnet:94.124.104.0/21, country:CZ] X-Rspamd-Queue-Id: 4VSr5z2DnQz4bmJ On 29/04/2024 17:21, Baptiste Daroussin wrote: > 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 Speaking of pkg check, should it work with a changed root directory (pkg -r /some/path check) or chroot (pkg -c /some/path check)? I'm doing a pkg upgrade of a desktop in a cloned BE and if I run pkg check after pkg upgrade (with -c), pkg check prints an error for hundreds or thousands of files. So it seems I cannot check before the reboot to newly updated BE (I know I can run it as jail but it more work than pkg -c) Kind regards Miroslav Lachman