From nobody Mon Nov 8 15:03:56 2021 X-Original-To: freebsd-pkg@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 278731834DCF for ; Mon, 8 Nov 2021 15:03:45 +0000 (UTC) (envelope-from freebsd@ohreally.nl) Received: from rambler.ohreally.nl (rambler.ohreally.nl [51.15.8.63]) (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) by mx1.freebsd.org (Postfix) with ESMTPS id 4HnvWh6qBgz4sw3; Mon, 8 Nov 2021 15:03:44 +0000 (UTC) (envelope-from freebsd@ohreally.nl) Received: from authenticated-user by rambler.ohreally.nl (Postfix) with ESMTPSA id 064641DB270B; Mon, 8 Nov 2021 16:03:42 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ohreally.nl; s=dkim; t=1636383823; r=y; bh=P00NRUeHxgExV63++JigLZL7MqRY+fk/A+9uQ+N4R/s=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=msd2KFuGeNomz6I7bG31WEsNEOVNL1ZOjxue10qTwURY4+0nsatYav8HSTgczrFaJ UU/t6uuiI6sJURxpoQ0XkAf1uJuLm3lU+cFbBVUdyWjaeVbHhPCkb6WzHgr71RBbdp DltIp2U3k3vLH9vGEHj3yfd0xa5foC5jIpsOO7DU= Message-ID: <668211f6-e7db-8875-1c1e-214ed2d4388c@ohreally.nl> Date: Mon, 8 Nov 2021 16:03:56 +0100 List-Id: Binary package management and package tools discussion List-Archive: https://lists.freebsd.org/archives/freebsd-pkg List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-pkg@freebsd.org MIME-Version: 1.0 Subject: Re: Questions about /usr/local/lib/compat/pkg Content-Language: nl To: Stefan Esser Cc: freebsd-pkg@FreeBSD.org References: <15967907-03dc-a2ab-df86-6097d8d808f6@ohreally.nl> <20211108075438.jtqkak6n22n5rlg7@aniel.nours.eu> <9df3553b-b2c3-6b35-f06c-f123b981a613@ohreally.nl> <20211108095919.wfqj3kr2m6du5xsr@aniel.nours.eu> <9ea022cc-0886-6bfe-4f5c-993b2a683e3e@ohreally.nl> <4d28dae0-043f-dffd-ce79-644ee6e226e0@freebsd.org> From: freebsd@ohreally.nl In-Reply-To: <4d28dae0-043f-dffd-ce79-644ee6e226e0@freebsd.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.104.0 at rambler.ohreally.nl X-Virus-Status: Clean X-Rspamd-Queue-Id: 4HnvWh6qBgz4sw3 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N Thank you, Stefan. I am creating an issue at the portupgrade/pkgtools GitHub project as we speak. I will include all the information that Baptiste and you have given me. Best, Rob On 08/11/2021 15:58, Stefan Esser wrote: > Am 08.11.21 um 11:04 schrieb freebsd@ohreally.nl: >> On 08/11/2021 10:59, Baptiste Daroussin wrote: >>> Are you sure you don't have a BACKUP_LIBRARIES env var which is setup ? >> >> Yes, I am sure. >> >>> Are you out of curiosity using portmaster? >> >> I always install from ports, and for upgrades I use portsnap/portupgrade. >> Should I direct my bug report elsewhere? >> >> (Since the directory is called pkg, and the only line of documentation I could >> find about this directory is in pkg.conf(5), I was sure pkg was the problematic >> application.) > > I do not know anything about portupgrade, but portmaster does offer to > preserve shared libraries in the compat/pkg directory. > > But they are always copied by portzmaster, and therefore no dangling > symbolic link can be created that way. > > And the backup is deleted again, if the upgrade installs a new library > with the same name (i.e. if libA.so.5 has been copied to compat/pkg and > the upgrade creates a new libA.so.5 in /usr/local/lib/libA.so.5, then > the file in compat/pkg will be deleted - but if the upgrade brought a > library named libA.so.6, the libA.so.5 file would persist and be available > for ports that have not been re-compiled for libA.so.6). > > Regards, STefan > -- :wq