From nobody Mon Apr 29 20:33:09 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 4VSxnk37dLz5Jv3y for ; Mon, 29 Apr 2024 21:50:02 +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 4VSxnk12SVz4l03; Mon, 29 Apr 2024 21:50:02 +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 D517FD78A0; Mon, 29 Apr 2024 22:33:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quip.cz; s=private; t=1714422791; bh=3n+G8HiMQgI9ysNai+PdlhIXmneWpgkigrqacuLRyGI=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=IoXDERRcSeZDue9dh8Dd0fBooHd1ZeBl9fNkjCajo9YZop2nvISO6GUnm92dtJE+B 4HLB6tEybXb/lTXcGWOz1nohQX9naIpVojB0ug5tKT7Wt+RJb28zqvBpIWI0KMFLzG X/hSHWu7fwO6Nr46dacL6M664JNuEAhL0PeLgQXo= 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 394E2D7887; Mon, 29 Apr 2024 22:33:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quip.cz; s=private; t=1714422790; bh=3n+G8HiMQgI9ysNai+PdlhIXmneWpgkigrqacuLRyGI=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=noBFiw6xdbK3ZwkGaC4ldUjuNC6HJdQIlLP9Tskpnki3xgdfn+UQyfgUix/1QREvV q1Q7s3SXeR85/s3CRRXOT6l5/WU2IgcEmLiB4j/Z3Z+FmwQGIR1H7ktF5ymH+0hD6g V7BR8Sbw27V9K13YeWf6agpZA6htncCyCOCKyKps= Message-ID: <1c50381c-ba8e-4a72-a621-e9b8e3d4ed37@quip.cz> Date: Mon, 29 Apr 2024 22:33:09 +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> <42392cc8-db69-4316-840b-dae5beeea396@quip.cz> <3AEDC553-F5D8-448F-AAD8-3DE19973022B@FreeBSD.org> Content-Language: cs-Cestina From: Miroslav Lachman <000.fbsd@quip.cz> In-Reply-To: <3AEDC553-F5D8-448F-AAD8-3DE19973022B@FreeBSD.org> 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: 4VSxnk12SVz4l03 On 29/04/2024 19:36, Baptiste Daroussin wrote: > Le 29 avril 2024 19:33:35 GMT+02:00, Miroslav Lachman <000.fbsd@quip.cz> a écrit : >> On 29/04/2024 17:21, Baptiste Daroussin wrote: >>>> 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. >>>> >>>> >>> >>> 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 >> > > Yes it is supposed to work with -r, all it needs is the db access. My notes from 2024-04-23: # pkg -r /tmp/be_mount.bN62 check -Ba Checking all packages: (0ad-0.0.26_23) /usr/local/bin/ActorEditor - required shared library ../../../binaries/system/libAtlasUI.so not found Checking all packages... pkg: fstat() failed for(/usr/local/lib/libappstream.so.1.0.1): No such file or directory pkg: fstat() failed for(/usr/local/share/licenses/AppStream-1.0.1/GPLv2+): No such file or directory pkg: fstat() failed for(/usr/local/share/licenses/AppStream-1.0.1/LGPL21+): No such file or directory pkg: fstat() failed for(/usr/local/share/licenses/AppStream-1.0.1/LICENSE): No such file or directory pkg: fstat() failed for(/usr/local/share/licenses/AppStream-1.0.1/catalog.mk): No such file or directory pkg: fstat() failed for(/usr/local/share/man/man1/appstreamcli.1.gz): No such file or directory Checking all packages... pkg: fstat() failed for(/usr/local/lib/libAppStreamQt5.so.1.0.1): No such file or directory pkg: fstat() failed for(/usr/local/share/licenses/AppStreamQt5-1.0.1/GPLv2+): No such file or directory pkg: fstat() failed for(/usr/local/share/licenses/AppStreamQt5-1.0.1/LGPL21+): No such file or directory pkg: fstat() failed for(/usr/local/share/licenses/AppStreamQt5-1.0.1/LICENSE): No such file or directory pkg: fstat() failed for(/usr/local/share/licenses/AppStreamQt5-1.0.1/catalog.mk): No such file or directory Checking all packages... pkg: fstat() failed for(/usr/local/lib/ImageMagick-7.1.1/config-Q16HDRI/configure.xml): No such file or directory pkg: fstat() failed for(/usr/local/lib/ImageMagick-7.1.1/modules-Q16HDRI/coders/aai.la): No such file or directory .. .. this list was really long and all files were there (in a BE) but it seems like if pkg check does not see them. I didn't try it at 2024-04-23, but from my memory I thinkg pkg -c works, but pkg -r doesn't. Kind regards Miroslav Lachman