Subject: Re: CVS commit: pkgsrc/pkgtools/pbulk/files/pbulk/scripts
To: None <pkgsrc-changes@NetBSD.org>
From: Joerg Sonnenberger <joerg@britannica.bec.de>
List: pkgsrc-changes
Date: 09/23/2007 17:35:46
On Sat, Sep 22, 2007 at 02:13:33AM +0200, Roland Illig wrote:
>> (a) chmod before rm is *slow*. If you seriously believe that the removal
>> of flags is an issue, it should be done *after* the first rm -rf and
>> that run twice.
>
> Reverted. The reason I added this line was that some packages install 
> directories with very weird permissions (like 0723 or 0070), so the files 
> in it cannot be accessed.

I can understand that. That's why I asked for review before hand. It can
make a lot of sense for unprivileged operation and if you run the chmod
after the first rm -rf, it doesn't cost much. Another item in this
category is chflags, but luckily we don't have to worry about that :-)

> When starting pbulk for the first time, it is common (at least for me) that 
> I don't manage to get everything in mk.conf correct and complete for the 
> first time. Therefore I wanted to have the possibility of changing things 
> quickly. Another reason was the recent removal of the "not running as root" 
> warning, for which I wanted to update pkg_add and pkg_delete without 
> extracting bootstrap.tar.gz and packing it again.

Well, I still think consistently using --mk-fragment for mkbinarykit is
the better idea and let me finish the option to make it create a tarball
in the right place to make that even easier to use.

Joerg