From owner-freebsd-ports@FreeBSD.ORG Tue Jun 5 10:27:30 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4B8201065670 for ; Tue, 5 Jun 2012 10:27:30 +0000 (UTC) (envelope-from arnaud.houdelette@tzim.net) Received: from orlith.tzim.net (orlith.tzim.net [IPv6:2001:41d0:2:1d32::1]) by mx1.freebsd.org (Postfix) with ESMTP id 055FC8FC18 for ; Tue, 5 Jun 2012 10:27:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tzim.net; s=A; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:References:Subject:To:MIME-Version:From:Date:Message-ID; bh=fa/fA6+MLPKOfzbAfCyjevjAtaL7Wkp1zeLRma1VNds=; b=b3qPmnzt9sejYniSz7w4/2X9y/IdqIszMwA7A93xebZ90iDD6Xe6iXsjZki1AZMQMU4xSuEVsDBgTB84J7TALfKwZFAVE+COdCsX7zzrxtOLObmgE2Fj1QZEJusCurlE; Received: from [194.199.107.7] (helo=[10.60.11.82]) by orlith.tzim.net with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.77 (FreeBSD)) (envelope-from ) id 1Sbqz3-000Ocs-84 for freebsd-ports@freebsd.org; Tue, 05 Jun 2012 12:27:29 +0200 Message-ID: <4FCDDF10.6090101@tzim.net> Date: Tue, 05 Jun 2012 12:27:28 +0200 From: Arnaud Houdelette User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.3) Gecko/20120329 Icedove/10.0.3 MIME-Version: 1.0 To: freebsd-ports@freebsd.org References: <4FCDCCFB.9080701@tzim.net> <20120605100021.GR73254@ithaqua.etoilebsd.net> In-Reply-To: <20120605100021.GR73254@ithaqua.etoilebsd.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Authenticated-User: tzim@tzim.net Subject: Re: PKGNG upgrade / reinstall overides directory permissions X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jun 2012 10:27:30 -0000 Le 05/06/2012 12:00, Baptiste Daroussin a écrit : > On Tue, Jun 05, 2012 at 11:10:19AM +0200, Arnaud Houdelette wrote: >> Hello. >> >> I'm currently testing pkgng and poudriere as a replacement for old pkg >> and pkg_jail. >> >> When upgrading/reinstalling a port, pkg install / pkg upgrade resets the >> permissions of the directories created by the ports which already exist. >> >> Old pkg_add did not have this behavior. >> >> For example, >> - install lighttpd >> - chmod 750 /var/log/lighttpd >> - pkg install -f lighttpd >> >> => /var/log/lighttpd mode is reset to 700. >> >> Is this behavior correct ? Is there some option to avoid this ? >> >> Arnaud > This is expected and there is no way to avoid this but fixing the ports itself > so that it create a 750 package. > > The package should be consistent and the permission should be set at the > package creation > time. > > Of course my view here might be wrong and I'm all open for aguments against that > :D > > regards, > Bapt I think it's understandable at install time, but not at reinstall / upgrade time. It complicates binary upgrade process, which is what I thougth pkgng was intended to make easier. User should not be forced to reapply permissions after each upgrade, even more if said user is not responsible of package creation (i.e. use of freebsd.org repo). Moreover, this is not consistant with make install behavior, which does not overides permisions if directory already exists. Maybe make an option of this ?