Subject: pkg/37087: pkg_delete should remove empty directories automatically
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <rillig@NetBSD.org>
List: pkgsrc-bugs
Date: 10/09/2007 10:35:00
>Number: 37087
>Category: pkg
>Synopsis: pkg_delete should remove empty directories automatically
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Tue Oct 09 10:35:00 +0000 2007
>Originator: Roland Illig
>Release: N/A
>Organization:
>Environment:
N/A
>Description:
When removing a package, pkg_delete should remember all directories where files have been removed, and at the end try to remove these directories if they are empty.
This would make many @dirrm lines in PLIST files superfluous. It would also make the *-dirs packages needless, as far as I have understood the concept behind them.
Packages that need an empty directory under $PREFIX then need a way to explicitly specify this. I expect the number of these packages to be fairly small.
>How-To-Repeat:
grep -r ^@dirrm $pkgsrcdir
>Fix: