Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

alpine package, make ocaml build dependency #4479

Closed
abate opened this issue Dec 16, 2020 · 4 comments
Closed

alpine package, make ocaml build dependency #4479

abate opened this issue Dec 16, 2020 · 4 comments

Comments

@abate
Copy link
Contributor

abate commented Dec 16, 2020

the opam package on alpine has a runtime dependency on the ocaml package,
which I believe this should just be a build-dependency instead. Would it possible
to change the dependency type, therefore making the alpine images
using opam much smaller ?

in alpine lingo is a makedepends : https://wiki.alpinelinux.org/wiki/Creating_an_Alpine_package#depends_.26_makedepends

ref: https://pkgs.alpinelinux.org/package/v3.12/community/x86_64/opam

@rjbou
Copy link
Collaborator

rjbou commented Dec 16, 2020

ping @avsm

@abate
Copy link
Contributor Author

abate commented Dec 18, 2020

I think the fix is super easy :

< depends="ocaml curl tar unzip rsync patch bubblewrap bash"
< makedepends="ocaml-compiler-libs"
---
> depends="curl tar unzip rsync patch bubblewrap bash"
> makedepends="ocaml-compiler-libs ocaml"

Unless I missed something ...

@dra27
Copy link
Member

dra27 commented Jul 9, 2021

I expect the intention is that it means that opam init doesn't then have to build a compiler (other distros do this).

@avsm - what do you think?

@kit-ty-kate
Copy link
Member

This was fixed in Alpine 3.14 some years ago. In the future, for this kind of issue, please do open a ticket on https://gitlab.alpinelinux.org/alpine/aports/ instead

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants