-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Package single-file composer.phar for Guix #11051
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Why would you need to patch the shebang exactly? Sorry I am not very familiar with guix. Is it because you need to directly reference a php which is not in the PATH? Anyway you could update the signature, we do it as well when compiling the phar, see https://github.com/Seldaek/phar-utils/blob/main/src/Timestamps.php#L103-L130 Or you could create a proxy file like:
On php 8+ this works fine without outputting the phar file's shebang. |
@trev-dev i would guess it's also possible to remove 'patch-shebang phase and add php as propagated-inputs if you are not packaging composer properly anyway |
@vladgorenkin I think this is probably the way to as the original shebang points to /usr/bin/env php, this works in Guix. |
For anyone who cares about this, I tried deleting the shebang patches and surrendered when I realized that the https://git.sr.ht/~trevdev/guix-channel/tree/main/item/trevdev/packages/php.scm |
Maybe related to #9830
I was able to package composer in a cheesy way by using guix's
copy-build-system
. All this does is patch the shebangs and move it into the profile's /bin directory where it can be found on path.Turns out one cannot "just simply patch a shebang" because it causes the resulting composer executible to fail some Sha512 checksum. Fair enough!
Any suggestions for how to properly update the hash? Let me know if I'm off base here.
The text was updated successfully, but these errors were encountered: