On Thu, May 17, 2012 at 04:22:40PM +0200, John Marino wrote:
To revisit an old topic, I'd like to start fixing packages with the
possibility of missing directories.
An example (assuming php5 isn't already installed):
1) install lang/php5
2) install databases/php-sqlite
3) uninstall databases/php-sqlite
4) Notice that lib/php/20040412 directory is missing. This
directory is the content of lang/php5's OWN_DIRS variable.
Can we put a dummy file such as ".keep" in directories like these to
prevent them from getting removed by pkgsrc's garbage collector?
Maybe it's not elegant, but it will work.
As I said, use @pkgdir in lang/php5. That will work reliable to keep the
directory around.
Joerg