Date: Wed, 6 Mar 2024 18:24:18 +0100 From: Baptiste Daroussin <bapt@freebsd.org> To: Roger Marquis <marquis@roble.com> Cc: Graham Perrin <grahamperrin@gmail.com>, freebsd-pkgbase@freebsd.org Subject: Re: pkgbase and config file merges Message-ID: <s6whz2lifaqvcsnwd7jjyefhq4n5q3bgyue56ao7ugkplzuke3@yqlnopen7g6i> In-Reply-To: <5ns1p95s-n316-22qs-63p2-q6246q043802@mx.roble.com> References: <ZeKucEQtR0OPjF_F@ilythia.eden.le-fay.org> <o54dtqdkvvemtvvvf6xw3yoj7bbje2teip4rlhwyjzlbxakhm6@be5hddb6byua> <8137de78-e205-4e7c-a25b-700045b3c950@gmail.com> <2i4vs2rmlpqssl5wyrzhn5izyvuoxz2rmfjbjlaaq6exuqbllm@e436o6dw7nx3> <5ns1p95s-n316-22qs-63p2-q6246q043802@mx.roble.com>
index | next in thread | previous in thread | raw e-mail
On Wed, Mar 06, 2024 at 08:59:36AM -0800, Roger Marquis wrote: > Automatically overwriting files like passwd is clearly a problem. > Preferred solution would be a list, say [never_overwrite] and/or [ask > before overwriting] and/or [write diff to /var/db/pkgbase/...] in > /etc/defaults/pkgbase specifying existing files that should never be > modified without at least a dialog. > > This plus the cleanup of pkgsave files which should only be written to > /var/db/pkgbase/pkgsave/`date +%G%m%d%H%M` should address the blockers > to more widespread adoption of packagebase and, ideally, make it > mandatory or at least the default option in the next version of FreeBSD. > this can only happen in the bootstrap phase and not otherwise, in normal usage there is always a 3 way merge happening and if the 3 way merge fails there the original is preserved and a file.pkgnew is created with the new content. pkg should always be and remain unattended, once it enter a transaction so there is no plan to make it interactive. I don't understand what you are asking for about the .pkgsave files cleanup. Best regatrds, Bapthome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?s6whz2lifaqvcsnwd7jjyefhq4n5q3bgyue56ao7ugkplzuke3>
