pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/51152 (pkg_alternatives via shebang won't continue and will use previous shell)
Synopsis: pkg_alternatives via shebang won't continue and will use previous shell
Responsible-Changed-From-To: jmmv->pkg-manager
Responsible-Changed-By: jmmv%NetBSD.org@localhost
Responsible-Changed-When: Sun, 03 Jul 2016 02:41:13 +0000
Responsible-Changed-Why:
Sorry. I won't be rewriting pkg_alternatives so I cannot keep this bug.
State-Changed-From-To: open->analyzed
State-Changed-By: jmmv%NetBSD.org@localhost
State-Changed-When: Sun, 03 Jul 2016 02:41:13 +0000
State-Changed-Why:
Yup... This was years ago, so if I had to guess as to why this problem
exists, it's probably because I did not know that shell scripts could
not act as full-blown interpreters back then.
Rewritting the wrapper in C is a good answer and should be relatively
straightforward; it's a pretty rudimentary program.
The reason this is not simply a symlink is because the wrapper allows
users (not just root) to customize their preferred alternatives via
configuration files, and those are processed when the wrappers are
invoked. (This is different to, say, Debian's alternatives system,
which is only configurable by root system-wide and thus a symlink
suffices. Now, whether what pkg_alternatives does is a good idea or
not, I won't go into.)
Unfortunately, I have no time to work on this, so I cannot keep this
bug. I'm going to mark it as analyzed as the problem is understood
though.
Home |
Main Index |
Thread Index |
Old Index