hpkgs icon indicating copy to clipboard operation
hpkgs copied to clipboard

Consider `link-/usr/bin/env`

Open sogaiu opened this issue 5 years ago • 4 comments

Although it wouldn't eliminate all shebang patching, a link-/usr/bin/env would make some of the builds cleaner and reduce some shebang patching.

What are some downsides?

sogaiu avatar May 29 '20 10:05 sogaiu

Hmm, not too many, big core can slow down builds maybe. I wonder if there is a practical upper bound on the amount of setup some packages will require users to do :P. I guess if its grows to big, you must bundle more of the setup into combined functions.

andrewchambers avatar May 29 '20 10:05 andrewchambers

On a somewhat related note, I didn't notice until today that there appears to be a /usr/bin directory in the build environment.

Is that something I can rely on?

sogaiu avatar May 31 '20 02:05 sogaiu

it is a symlink to /bin, I think you can rely on it.

andrewchambers avatar May 31 '20 02:05 andrewchambers

Thanks.

sogaiu avatar May 31 '20 03:05 sogaiu