Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Jun 2012 21:01:54 +0100
From:      Chris Rees <crees@FreeBSD.org>
To:        Florent Thoumie <flz@freebsd.org>
Cc:        freebsd-ports@freebsd.org, Andriy Gapon <avg@freebsd.org>
Subject:   Re: pkg_delete and +DEINSTALL
Message-ID:  <CADLo838ns%2BYyj-fPQ%2BVpEXDKuHff%2BN%2B80aEMK5vL4sSjX-fbKQ@mail.gmail.com>
In-Reply-To: <CAKGb7gxWYGbHE1yh1TemDC6eqfTeooVoniUm=B-gmbGM1SDLMQ@mail.gmail.com>
References:  <4FD4EDA7.40703@FreeBSD.org> <CADLo838AUgF-AXv06-cEROCDh-KNf93MSh-CQK3ffq7nMfiy8g@mail.gmail.com> <CAKGb7gxWYGbHE1yh1TemDC6eqfTeooVoniUm=B-gmbGM1SDLMQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 10 June 2012 20:46, Florent Thoumie <flz@freebsd.org> wrote:
> On Sun, Jun 10, 2012 at 8:10 PM, Chris Rees <crees@freebsd.org> wrote:
>> On 10 June 2012 19:55, Andriy Gapon <avg@freebsd.org> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADLo838ns%2BYyj-fPQ%2BVpEXDKuHff%2BN%2B80aEMK5vL4sSjX-fbKQ>