-
Notifications
You must be signed in to change notification settings - Fork 13
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
AUR build fails #18
Comments
Thanks for the report! They fail for me as well. I will take a look at it. |
I have updated the AUR. It should work now. |
Thank you! The build doesn't fail any more, but the resulting binary doesn't run. It's also is 5,6M rather than the 26M one which can be downloaded here (maybe this is because of using shared objects). When I run
Build log:
|
The resulting binary indeed doesn't run when the build directory is removed. (It does run when it's still there.) Installing the global packages doesn't help either. Even if it would, the Megaparsec package is still at an older version. A solution would be statically build the binary, but I don't know how to do that with the Arch packages. |
I'm not a Haskell dev and I'm fairly new with Arch (just switch from Mac to Antergos some months ago), so I'm afraid I can't help you much. One possible solution I've seen other packages use is downloading the binary instead of compiling. Usually those packages have the suffix "-bin". Ex: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=visual-studio-code-bin Personally this would be better for me since it would avoid the build time, and it'd likely mean less complexity/breakage like this for you to maintain (if you do this instead of the current AUR). It may however be considered a bad praxis or the "wrong solution" or something, and possibly miss optimizations or compatibility for some cpu architectures. |
I found some info related to the static linking problem for Arch, but it seems very cumbersome: I created this basic PKGBUILD which just copies the binary from your github release to /usr/bin:
I could add it to aur.archlinux.org, but I'm not sure I would be a good maintainer. Is this something you would consider adding and maintaining? Perhaps the other arch users @ninrod and @noctuid from #5 has opinions on this? |
Thanks for the PKGBUILD! I have added it to the AUR under the name |
I have a similar problem:
I installed |
I tried building the AUR with yay and with
makepkg -si
, but it fails, and I'm getting this output in the build phase:ghc-pkg check
only lists missing html docs and the build log file is the same as the output.The text was updated successfully, but these errors were encountered: