[pacman-dev] makepkg: removing empty directories?

Judd Vinet jvinet at zeroflux.org
Mon Feb 20 13:38:41 EST 2006


On Mon, Feb 20, 2006 at 10:29:24AM +0100, VMiklos wrote:
> from makepkg:
> 1.12         (aurelien 16-Feb-06): # remove empty directories
> 1.12         (aurelien 16-Feb-06): if [ "`check_option NOEMPTYDIRS`" ]; then
> 1.12         (aurelien 16-Feb-06):      msg "Removing empty directories..."
> 1.12         (aurelien 16-Feb-06):      find pkg -mindepth 1 -type d -empty -exec rmdir {} \;
> 1.12         (aurelien 16-Feb-06): fi
> 
> cmiiw, but openssh creates an empty /var/empty directory and it _does_
> need it. any idea how to solve this problem? for now, i haven't merged
> this hunk to our tree

Should be fine, shouldn't it?  By the looks of that code block, makepkg
only removes empty dirs if options=('noemptydirs') is set.  Just don't
set that in openssh's PKGBUILD, and /var/empty should be left alone.


- J





More information about the pacman-dev mailing list