"There are several known good "workarounds" including %pretrans with lua."
Are there really, though?
I seem to keeping bumping up against this problem lately, and I'm not sure I've *ever* seen a single known good snippet for converting a directory to a symlink. There are snippets that appear to achieve the opposite OK, as removing a symlink is relatively trivial, but I haven't seen a single pure lua snippet which looks like it successfully removes a populated directory.
This is a major problem for webapp unbundling, as given how idiotic webapps are, we're often going to have to use symlinks to unbundle stuff. I have at least two and I think three cases where I really need to turn a directory (bundled copy of some library or other) into a symlink (to the systemwide copy of same library) and I just don't know how to do it. This is kind of a major problem.
"There are several known good "workarounds" including %pretrans with lua."
Are there really, though?
I seem to keeping bumping up against this problem lately, and I'm not sure I've *ever* seen a single known good snippet for converting a directory to a symlink. There are snippets that appear to achieve the opposite OK, as removing a symlink is relatively trivial, but I haven't seen a single pure lua snippet which looks like it successfully removes a populated directory.
This is a major problem for webapp unbundling, as given how idiotic webapps are, we're often going to have to use symlinks to unbundle stuff. I have at least two and I think three cases where I really need to turn a directory (bundled copy of some library or other) into a symlink (to the systemwide copy of same library) and I just don't know how to do it. This is kind of a major problem.