[pacman-dev] makepkg: removing empty directories?
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 udv / greetings, VMiklos -- Developer of Frugalware Linux, to make things frugal - http://frugalware.org
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
On Mon, Feb 20, 2006 at 10:38:41AM -0800, Judd Vinet <jvinet@zeroflux.org> wrote:
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.
$ grep -c noemptydirs makepkg 0 okay, maybe then the only problem is that the "empty dir removal" hunk already synced, but the options=('noemptydirs') one isn't udv / greetings, VMiklos -- Developer of Frugalware Linux, to make things frugal - http://frugalware.org
participants (2)
-
Judd Vinet
-
VMiklos