From owner-freebsd-ports@freebsd.org Mon Apr 26 19:13:28 2021 Return-Path: Delivered-To: freebsd-ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 92AC25ECF6F for ; Mon, 26 Apr 2021 19:13:28 +0000 (UTC) (envelope-from dewayne@heuristicsystems.com.au) Received: from heuristicsystems.com.au (hermes.heuristicsystems.com.au [203.41.22.115]) (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 (2560 bits) client-digest SHA256) (Client CN "hermes.heuristicsystems.com.au", Issuer "Heuristic Systems Type 4 Host CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FTZLG5PhLz4Tgf for ; Mon, 26 Apr 2021 19:13:25 +0000 (UTC) (envelope-from dewayne@heuristicsystems.com.au) Received: from [10.0.5.3] (noddy.hs [10.0.5.3]) (authenticated bits=0) by heuristicsystems.com.au (8.15.2/8.15.2) with ESMTPSA id 13QJAXYB086844 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 27 Apr 2021 05:10:35 +1000 (AEST) (envelope-from dewayne@heuristicsystems.com.au) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=heuristicsystems.com.au; s=hsa; t=1619464238; x=1620069039; bh=CC/fGGXtO+k5JavoQf5HMbRnLTnPIqaup/VWc6rf6PM=; h=Subject:To:Cc:From:Message-ID:Date; b=H/bL14iEZY6/5zNtK5kCCE6Ybt5AqJgfLDWZmRuKHevnazeOQHSo1wYjwMOr9Ysw0 9ytcSVvV8Au/+SpycqCsUMdwtv+wHNE/yGPS8F6fTA0snUrKhJkqVWdC8xTvSk5Don fm6/+0BIu11tz+uHbI+mrx5oARh2abbL7oS8yXfazNEzqXtTy40Ff X-Authentication-Warning: b3.hs: Host noddy.hs [10.0.5.3] claimed to be [10.0.5.3] Subject: Re: Changing daemon user, dir ownership and updating packages To: Stefan Bethke , FreeBSD Ports Cc: Adam Weinberger References: <5A7F1B5C-4382-450C-9674-C9F4866E632E@lassitu.de> From: Dewayne Geraghty Message-ID: Date: Tue, 27 Apr 2021 05:09:16 +1000 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <5A7F1B5C-4382-450C-9674-C9F4866E632E@lassitu.de> Content-Type: text/plain; charset=windows-1252 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4FTZLG5PhLz4Tgf X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=heuristicsystems.com.au header.s=hsa header.b=H/bL14iE; dmarc=none; spf=pass (mx1.freebsd.org: domain of dewayne@heuristicsystems.com.au designates 203.41.22.115 as permitted sender) smtp.mailfrom=dewayne@heuristicsystems.com.au X-Spamd-Result: default: False [-6.20 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[heuristicsystems.com.au:s=hsa]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; HAS_XAW(0.00)[]; DMARC_NA(0.00)[heuristicsystems.com.au]; DWL_DNSWL_MED(-2.00)[heuristicsystems.com.au:dkim]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; RCVD_IN_DNSWL_MED(-0.20)[203.41.22.115:from]; DKIM_TRACE(0.00)[heuristicsystems.com.au:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:1221, ipnet:203.40.0.0/13, country:AU]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-ports]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Apr 2021 19:13:28 -0000 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.