From nobody Wed Mar 06 18:12:22 2024 X-Original-To: freebsd-pkgbase@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 4TqgWW25kxz5D33D for ; Wed, 6 Mar 2024 18:12:23 +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 4TqgWW1ZPsz4vt3; Wed, 6 Mar 2024 18:12:23 +0000 (UTC) (envelope-from bapt@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709748743; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=q2wINE3jm4FKq5A7ZR2PSlEW5jGHEQogSCtZupSl4pQ=; b=Nl1ffkJUYfrQp9u1mbCmFmM3aCsVuZc5mGunx/g6NKvyGwfw3KkrUQ8intuysp0uyIg2yA qqSOC1VKSRO3Xp+7Z2rGCQboHH74IsOR5Vd+iYj0unwxtb1vvJqtmXD7n1jdUQVgiyywNo +lUUW5R6M4sXovFPF6O9fwp1Sn6UiMPt9hzVlhlYpl6QLSstteTI+YB1LUOaDB4C06/ksC CDSM6c1FkriGKUUJ/FwJfm7n+8MNqCQQFIyMcKy3A67VKkBtLjG0T0l5qZ0Wx+XmqZ/eBG lGDSQgB5WnJyiN37sT06e8/e8YPRtJH+Sh0mrKaM3TTamJlOkwxsNHihN7pIVg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1709748743; a=rsa-sha256; cv=none; b=xgR4vIdD2QN/WhQYFLoAO26KdsWude9xn2luSOIZG2Gi9LOOZBnv7Te7gKqhuVPjp7HKY/ yufW/MiL2W8oi7FzV12fdKJXnVrfABm1a21oYXCeJ0jVLvv5c6f05ZWJzQbef1/fIXrrQr soOj0VRNdCFDx3v712yPzvxlIeIOuB/cPV0hLmlJNjebfPwUVZIlsmAW7RGadD7/7LGiiP 1sR/L9EKUwLCZpDPRBbCImB/eSRq3acXHIalgk40xIRo2VUBDiCSLoX9ojXOulELkazu9p DKsnKE1I6Z1TP7phEWn0b2qiZQJdb3VSPwz8vs2i9ksZJlbQwRnVaTcWYfYKsA== 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=1709748743; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=q2wINE3jm4FKq5A7ZR2PSlEW5jGHEQogSCtZupSl4pQ=; b=AVRefRg7wdhhsJrSPENX1PkAvPofm8gPTvdyt8MEOlPishl9ZnIhjVDc9QTmjEMk4JZMMa v6fSZcjlTMegaine1dD3GwHjzwI9KtAyU42TMuYV6DJVQJCvpCmQ1nc1w83/aUx/CJBeM4 aTcgqkfx/RHJgFKhj5tzDvxOpaY8A5FIwNp6pQrSPl9WC5D/UOG+uGJXFcQpE/1BNnaRNQ SYtHlr7x3aq7k9FOohNpXpKjj8u8wcm52bLNXcFzgsx+zAqSRUVSOcfmC2XcEAADkOPlFD 2tunHVYhktpjZ6wRL8Oo92mihJ9kZ+GqbUan09SHhZ7dsr0KXdpl9p9MvzCZng== 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 4TqgWW0ZYDzSqx; Wed, 6 Mar 2024 18:12:23 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from [127.0.0.1] (42.177.66.37.rev.sfr.net [37.66.177.42]) (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 1EE35127FB7; Wed, 6 Mar 2024 19:12:21 +0100 (CET) Date: Wed, 06 Mar 2024 19:12:22 +0100 From: Baptiste Daroussin To: Mark Millard , FreeBSD-pkgbase@freebsd.org Subject: Re: pkgbase and config file merges User-Agent: K-9 Mail for Android In-Reply-To: References: Message-ID: List-Id: Packaging the FreeBSD base system List-Archive: https://lists.freebsd.org/archives/freebsd-pkgbase List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-pkgbase@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Le 6 mars 2024 19:07:51 GMT+01:00, Mark Millard a =C3= =A9crit=C2=A0: >Baptiste Daroussin wrote on >Date: Wed, 06 Mar 2024 17:24:18 UTC : > >> On Wed, Mar 06, 2024 at 08:59:36AM -0800, Roger Marquis wrote: >> > Automatically overwriting files like passwd is clearly a problem=2E >> > Preferred solution would be a list, say [never_overwrite] and/or [ask >> > before overwriting] and/or [write diff to /var/db/pkgbase/=2E=2E=2E] = in >> > /etc/defaults/pkgbase specifying existing files that should never be >> > modified without at least a dialog=2E >> >=20 >> > This plus the cleanup of pkgsave files which should only be written t= o >> > /var/db/pkgbase/pkgsave/`date +%G%m%d%H%M` should address the blocker= s >> > to more widespread adoption of packagebase and, ideally, make it >> > mandatory or at least the default option in the next version of FreeB= SD=2E >> >=20 >> this can only happen in the bootstrap phase and not otherwise, in norma= l usage >> there is always a 3 way merge happening and if the 3 way merge fails th= ere the >> original is preserved and a file=2Epkgnew is created with the new conte= nt=2E >>=20 >> pkg should always be and remain unattended, once it enter a transaction= so there >> is no plan to make it interactive=2E >>=20 >> I don't understand what you are asking for about the =2Epkgsave files c= leanup=2E > >I've been using find to check for *=2Epkgsave files to know to deal with >them if they occur=2E > >Checking now with find, I did not find any *=2Epkgnew files=2E I had not >been aware to look for those=2E > >But I've discovered =2Epkgtemp=2E* as a naming convention and for >it I find: > ># find -x / -name =2Epkgtemp=2E\* -print | wc -l > 80 > >So it looks like I've more checking and cleanup to do in general for >my PkgBase experiments=2E > > >=3D=3D=3D >Mark Millard >marklmi at yahoo=2Ecom > =2Epkgtemp=2E Should never occur except if pkg crashes =2Epkgsave once you have boostrapped you should not have any=2E Best regards Bapt