From owner-freebsd-ports@FreeBSD.ORG Tue Oct 12 16:22:30 2010 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 3693A1065673 for ; Tue, 12 Oct 2010 16:22:30 +0000 (UTC) (envelope-from jhelfman@e-e.com) Received: from mail.experts-exchange.com (mail.experts-exchange.com [72.29.183.251]) by mx1.freebsd.org (Postfix) with ESMTP id 0D0C68FC28 for ; Tue, 12 Oct 2010 16:22:29 +0000 (UTC) Received: from mail.experts-exchange.com (localhost [127.0.0.1]) by mail.experts-exchange.com (Postfix) with ESMTP id 9B36CF2F460; Tue, 12 Oct 2010 09:22:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=e-e.com; h= user-agent:in-reply-to:content-disposition:content-type :content-type:mime-version:references:message-id:subject:subject :from:from:date:date:received:received:received; s=ee; t= 1286900549; x=1288714949; bh=ufT498XWut3ateYSi0ZDi2dp67bBvkqVEs0 p8toAUlA=; b=omv20aCouXEXs9Sr272hDdlFQTSWns23/7TocNw6p7cnk83GwG6 qO14uE7fhGdGga0IbH+tAtNP4xFhWN8iezkHHnZhpmzBtMHJWrubbw7klJ6kV9e4 u1l/uJIDntqKl52CjLw3rT87ZcLKNYkUgMLyEvAYnXGoRELeVB+J05dk= X-Virus-Scanned: amavisd-new at experts-exchange.com Received: from mail.experts-exchange.com ([127.0.0.1]) by mail.experts-exchange.com (mail.experts-exchange.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id a4mcb8YvMKPz; Tue, 12 Oct 2010 09:22:29 -0700 (PDT) Received: from eggman.experts-exchange.com (unknown [192.168.103.122]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jhelfman) by mail.experts-exchange.com (Postfix) with ESMTPSA id 40B0BF2F793; Tue, 12 Oct 2010 09:22:28 -0700 (PDT) Received: by eggman.experts-exchange.com (sSMTP sendmail emulation); Tue, 12 Oct 2010 09:19:39 -0700 Date: Tue, 12 Oct 2010 09:19:38 -0700 From: Jason To: David DEMELIER Message-ID: <20101012161938.GA29029@eggman.experts-exchange.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD 7.3-RELEASE-p2 X-Living-The-Dream: I love the SLO Life! User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-ports , Florent Thoumie Subject: Re: Users needed or not by ports 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, 12 Oct 2010 16:22:30 -0000 On Tue, Oct 12, 2010 at 05:56:34PM +0200, David DEMELIER thus spake: >2010/10/12 Florent Thoumie : >> On Mon, Oct 11, 2010 at 5:01 PM, David DEMELIER >> wrote: >>> Hello, >>> >>> Before writing a patch for the ports framework, I just want to be sure >>> that FreeBSD ports shouldn't use a same user added by ports. For >>> example pulseaudio adds some users to the system (pulse, >>> pulse-whatever) and should these users be needed from others ports ? >>> >>> My plan is : >>> >>> 1. Register users added and needed by ports in files like +USERS +GROUPS, >>> 2. When make deinstall or pkg_delete port_name check if the user is >>> still needed by other port (if this is possible) >>> 3. Print a message like "The following users and group are not needed >>> anymore by the system : xxx yyy" >>> >>> pkgsrc already use something like this, so a port should be really >>> easy to be done. >> >> This has already been discussed (including in a thread that you started [1]). >> >> This needs support in both ports and pkg_install. >> >> [1] http://www.mail-archive.com/freebsd-ports@freebsd.org/msg27486.html >> >> -- >> Florent Thoumie >> flz@FreeBSD.org >> FreeBSD Committer >> > >Yes, for pkg_install I think I will talk to bapt because he's working >on pkgng so maybe he has a great idea and a better knowledge in C, for >the moment I made some changes in ports/Mk directory but not finished. >I still need to know if a multiple ports could use a same user that >has been added by one of them. > >I don't find any good example for this issue. > I had brought this up on #bsdports, and it was mentioned that this was in HEAD before, but no longer present is the ability to sign packages. I mentioned this because you can change the +CONTENTS file and it will be represented and read with no issue by subsequent queries of pkg_info. I would think that if you could edit the +CONTENTS file, or any file for that manner within pkgdb, this could pose potential security and/or stability issues. -jgh