Date: Tue, 27 Apr 2021 10:23:58 +0300 From: Gleb Popov <arrowd@freebsd.org> To: Dewayne Geraghty <dewayne@heuristicsystems.com.au> Cc: FreeBSD Ports <freebsd-ports@freebsd.org> Subject: Re: Changing daemon user, dir ownership and updating packages Message-ID: <CALH631=qC2ni-9940NxufKUyBf6Tu4qKrq%2BCyqWvYrOXmxMt3g@mail.gmail.com> In-Reply-To: <a0570250-0791-18aa-98b0-55aea67ef8d8@heuristicsystems.com.au> References: <FED3AEBB-69FF-4241-81F1-0F2580123946@lassitu.de> <5A7F1B5C-4382-450C-9674-C9F4866E632E@lassitu.de> <a0570250-0791-18aa-98b0-55aea67ef8d8@heuristicsystems.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Apr 26, 2021 at 10:13 PM Dewayne Geraghty < dewayne@heuristicsystems.com.au> wrote: > On 26/04/2021 6:03 pm, Stefan Bethke wrote: > > But that still leaves pkg updating the ownership/mode of existing > directories as a surprise on updating a package. I think the "right" thing > here would be a kind of three-way merge between changes an updated package > brings in vs. changes the user has made on their system. > > Sometimes the right thing isn't easy ;) > > There are some cases where I explicitly assign ownership and more > restrictive modes to installed ports. Would "pkg add -I" prevent file > ownership/mode changes or just prevent the execution of installation > scripts... (hint for a flag to prevent file mode/ownership changes on > existing systems) > > I suspect Gleb's paradigm of a separate file to explicitly control file > attributes (after upgrades) is reasonable, but this is problematic and > negates the value of a packaging system. > It only shifts the task of organizing runtime files/dirs to the software upstream, which is a right thing, IMO. The same way we use automatic pkg-plist generation for Python easyinstall-based ports. That tmpfiles.d thing seems to be an established way to do that sort of stuff in the Linux world, so I believe we should get on the train too.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALH631=qC2ni-9940NxufKUyBf6Tu4qKrq%2BCyqWvYrOXmxMt3g>