From owner-freebsd-ports@FreeBSD.ORG Sun Jun 10 20:02:27 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 66D52106566C; Sun, 10 Jun 2012 20:02:27 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 879028FC14; Sun, 10 Jun 2012 20:02:26 +0000 (UTC) Received: by bkvi18 with SMTP id i18so3735023bkv.13 for ; Sun, 10 Jun 2012 13:02:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=+4aWWPtiTJoE8/cEh5/ebpnU1rCLqMxk1mWk8Hs2CXU=; b=RK1Ax1SFZ7XOojXva0R82M3KJsnHwBFDy5BJpihIi1YKojDazeyVSVVFqiCDS4n353 8SnWoD3ImY8d/Gu3rEPseAdyc8yaW0bYyBtfn7uuNShXyJ2FHN9tfOr8Kc1JwwhoXLqV Mh2JjcNQbHxGl/YqyYjNgMWXOIYHKeBb2LDJXM5L42mpfht2tiSr2OVKiFHG9eUWqpih zoyLHqDediIhV2hIJooHpUVGVqFkh0RdhqQYY0EN08fp/gJgj5sEcBydsBr5Dkq31LSt C9PdPbkz6RfbPOsebuqRyyiiTVULZwyhgr686mtitzCPKy5zVGK1TUfgQRVxUtg+bitH G+wQ== Received: by 10.204.153.15 with SMTP id i15mr9351171bkw.74.1339358545238; Sun, 10 Jun 2012 13:02:25 -0700 (PDT) MIME-Version: 1.0 Sender: utisoft@gmail.com Received: by 10.204.171.138 with HTTP; Sun, 10 Jun 2012 13:01:54 -0700 (PDT) In-Reply-To: References: <4FD4EDA7.40703@FreeBSD.org> From: Chris Rees Date: Sun, 10 Jun 2012 21:01:54 +0100 X-Google-Sender-Auth: 1-dJnpmaN-aAnvoTNiMmqyYokzY Message-ID: To: Florent Thoumie Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-ports@freebsd.org, Andriy Gapon Subject: Re: pkg_delete and +DEINSTALL 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: Sun, 10 Jun 2012 20:02:27 -0000 On 10 June 2012 20:46, Florent Thoumie wrote: > On Sun, Jun 10, 2012 at 8:10 PM, Chris Rees wrote: >> On 10 June 2012 19:55, Andriy Gapon wrote: >>> >>> While pkgng is growing momentum I have a small suggestion for outgoing pkg_* tools. >>> It seems that pkg_delete performs something like exec(+DEINSTALL, ...). >>> I think that it would be better to do exec(/bin/sh, +DEINSTALL, ...). >>> Rationale: >>> - no need to set x bit on +DEINSTALL >>> - no need to allow exec on /var/db filesystem >>> The problem is discovered by actually using noexec mount option. >> >> I don't think this is a bad idea, so I've copied in flz, the de-facto >> pkg_install maintainer.... >> >> .... but don't forget that pkg_install is very close to death! > > Aye. I've just handed my src commit bit for safekeeping but if you're > willing to put in the work, the plan sounds good assuming all scripts > have been rewritten in shell (for those that weren't already). Good point-- I think I nuked the last remaining csh ones, but there might be a few... Be sure to grep the ports tree first! Chris