From nobody Mon Nov 8 09:59:19 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 1EA161848009 for ; Mon, 8 Nov 2021 09:59:22 +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 4HnmmV0VwZz3Npg; Mon, 8 Nov 2021 09:59:22 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from aniel.nours.eu (nours.eu [176.31.115.77]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: bapt) by smtp.freebsd.org (Postfix) with ESMTPSA id CD45785C4; Mon, 8 Nov 2021 09:59:21 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: by aniel.nours.eu (Postfix, from userid 1001) id 27F869BFA9; Mon, 8 Nov 2021 10:59:19 +0100 (CET) Date: Mon, 8 Nov 2021 10:59:19 +0100 From: Baptiste Daroussin To: freebsd@ohreally.nl Cc: freebsd-pkg@FreeBSD.org Subject: Re: Questions about /usr/local/lib/compat/pkg Message-ID: <20211108095919.wfqj3kr2m6du5xsr@aniel.nours.eu> References: <15967907-03dc-a2ab-df86-6097d8d808f6@ohreally.nl> <20211108075438.jtqkak6n22n5rlg7@aniel.nours.eu> <9df3553b-b2c3-6b35-f06c-f123b981a613@ohreally.nl> 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9df3553b-b2c3-6b35-f06c-f123b981a613@ohreally.nl> X-ThisMailContainsUnwantedMimeParts: N On Mon, Nov 08, 2021 at 09:52:33AM +0100, freebsd@ohreally.nl wrote: > Hi Baptiste, > > Thank you for that; that's quite helpful. > > > /usr/local/lib/compat/pkg is mecanism to save old libraries, during upgrade, > > ensure programs still linked to those old libs continues to run > > Okay. > So just to be sure: after I have killed or restarted any programs that may > be using these libraries, I can empty this directory? > > > What does pkg -vv shows you ? > > > pkg -vv | grep BACKUP > BACKUP_LIBRARIES = false; > BACKUP_LIBRARY_PATH = "/usr/local/lib/compat/pkg"; > > So I guess I found a bug. > I'll create an issue at GitHub. > > Thanks much! > > Rob > It is weird I cannot reproduce locally for now. and I double check the code, I see no obvious mistake and on none of my freebsd setup /usr/local/lib/compat/pkg gets populated, beside the one where I explicitly set BACKUP_LIBRARIES to true! Are you sure you don't have a BACKUP_LIBRARIES env var which is setup ? Are you out of curiosity using portmaster? Best regards, Bapt