From nobody Mon Apr 29 17:36:45 2024 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 4VSr9Y55ZZz5Jl68 for ; Mon, 29 Apr 2024 17:36:49 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VSr9Y4Rw2z4cbJ; Mon, 29 Apr 2024 17:36:49 +0000 (UTC) (envelope-from bapt@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1714412209; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=p3A+ZnHEZr5TXJH5ebmhRvVZnKRPk8cAOk5vFTZUruQ=; b=x/swO/tK2dsFyag6WqXi2yq8R6d92Dn0c8I0ZJBz/1buozdJisWxvFCOGbLwVHkYcNnb+K RqFr/JEqSJfIFIy/kP6cyf8QkaBVc9j/LRAvqDEoQISc2lVEkXrE8ZOdWj/wGUyYh6Dwf7 la6Z+4+4Y7DTNqCjdNtOTK1zKONlse+RHpH/W8uwyATjhm1jKWVe1WXng9DYlawy50OH9C AUkVFo1jJ+zeF0nfJFPogec9x/ONR0LWprhj+eo5wFqaZpCWa9HX4QIJCSgbOynieVESbr HhoRqKRa70UlTX4UNac+xsReOmFs3hV7qfL+/D5P173ge25VSlhO4cBOLfL/gg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1714412209; a=rsa-sha256; cv=none; b=pyqycLL2D1SiAJwTYz0wY6VQB7XQHGAlnhcQlehjDj357tZ+6JTcQCaVN37FShiwgh3D8m VbMCekdGSkOg+nDkoQStlfvHLgJleO1kNpmSMEYReWh/axcAZawHV31uyqi0zKZx1cw6zN eVwRW1249nTsF+U7YXRvuRO/MFliuGGR6eWBQrZvd13fHX1PJ0ec9jRH2nb8HnmZSaG9P+ ebl0/+ccbFMVrjFatAi/geVopU0GW/Y9MFn94WQJXiudT3Av031LqMkKGElpfnLN7sHhzJ FDuRu3g5tT8I76RAt/XGvUOxLxRAmrtdqQgQOGX0qlQ/dPc6hLWH5EqbA05e0g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1714412209; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=p3A+ZnHEZr5TXJH5ebmhRvVZnKRPk8cAOk5vFTZUruQ=; b=CdibtCYe764lafqLvZKR5SDkqsrTQqYQjpTbEo8BYKqslBo6TzJraw/r0vtG2So15JaRNK vL6ZfUekW2H4/e8J/ra8Uqc/x2ZeT/masiGocOVbrIBUCjwm1ZLoqYyWbiYN60YGmte7rG 6Z2suKV3RKiVaE1nqJ9UnxAANIYfKj8t1Z1dEqZnvOm6NwCH4z/ubYh29BkZYpL7DEUzxb c/9emMg+u4jls4nlqY6ZStdh1vhcqniZieoTSmwjN4UvNO/X/Skf6ooE2MOgDprUqvDW13 Gj/LNffk/LS41MaMZPBmI7/x85GfRs6nTUlAu2zfSDB4StTc1ixOgfawErnNLQ== Received: from aniel.nours.eu (nours.eu [176.31.115.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: bapt) by smtp.freebsd.org (Postfix) with ESMTPSA id 4VSr9Y3LPVzfjK; Mon, 29 Apr 2024 17:36:49 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from [IPv6:::1] (2a02-8428-078f-2200-6aa5-53e6-7257-305b.rev.sfr.net [IPv6:2a02:8428:78f:2200:6aa5:53e6:7257:305b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aniel.nours.eu (Postfix) with ESMTPSA id 7BD431E809D; Mon, 29 Apr 2024 19:36:45 +0200 (CEST) Date: Mon, 29 Apr 2024 19:36:45 +0200 From: Baptiste Daroussin To: Miroslav Lachman <000.fbsd@quip.cz> CC: ports@freebsd.org, Alexander Leidinger Subject: Re: pkg upgrade odity User-Agent: K-9 Mail for Android In-Reply-To: <42392cc8-db69-4316-840b-dae5beeea396@quip.cz> References: <6e8aea8cce83e0a82be430be1989980a@Leidinger.net> <42392cc8-db69-4316-840b-dae5beeea396@quip.cz> Message-ID: <3AEDC553-F5D8-448F-AAD8-3DE19973022B@FreeBSD.org> 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 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Le 29 avril 2024 19:33:35 GMT+02:00, Miroslav Lachman <000=2Efbsd@quip=2Ecz= > a =C3=A9crit=C2=A0: >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, >>>>=20 >>>> pkg wants to remove some package on upgrade=2E I do not understand wh= y=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=2E2k= B/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): >>>>=20 >>>> 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 >>>>=20 >>>> 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 >>>>=20 >>>> Number of packages to be removed: 3 >>>> Number of packages to be upgraded: 1 >>>>=20 >>>> The operation will free 55 MiB=2E >>>> 405 KiB to be downloaded=2E >>>>=20 >>>> Proceed with this action? [y/N]: n >>>> ---snip--- >>>>=20 >>>> 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=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): >>>>=20 >>>> 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 >>>>=20 >>>> Number of packages to be upgraded: 1 >>>>=20 >>>> 405 KiB to be downloaded=2E >>>>=20 >>>> Proceed with this action? [y/N]: >>>> ---snip--- >>>>=20 >>>> 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 > >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 u= pgrade 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=2E= 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 > Yes it is supposed to work with -r, all it needs is the db access=2E Bapt