tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: PR 35340 (empty ancestors of OWN_DIRS get removed by pkg_delete)



Am Sat, May 14, 2022 at 09:40:03PM +0000 schrieb David Holland:
> There is a problem with the OWN_DIRS support, which is that it creates
> directories with mkdir -p and then removes them again afterwards with
> rmdir -p. This causes any now-empty ancestors of the directories in
> OWN_DIRS to disappear, regardless of whether pkgsrc created them,
> which isn't right and is occasionally problematic (in the original
> report, it lead to /var/tmp disappearing).

So does pkg_delete for other directories. I'm inclined to just ignore
this as "Don't do this" as any fix is likely going to end up hard-coding
a lot more to-be-preserved prefixes than it fixes real problems.

Joerg


Home | Main Index | Thread Index | Old Index