Closed renich closed 3 years ago
This has always been the case for rpm packages since there are no "recommended dependencies" as in deb packages.
gc-devel is not needed because a libgc.a is already available in the embedded lib directory.
The other packages are not mandatory for every crystal program, hence they are not dependencies. It could be better to have them for a nicer experiencie, but then if instead of openssl you prefer libressl, how that dependency should be expressed in rpm?
For the record, these are expressed at https://github.com/crystal-lang/distribution-scripts/blob/37e0f6c569547190e12e0580cbbdf19ee622eb37/bintray/Makefile#L220-L221
Man, all of the system info are absolutely not needed here :astonished:
OK, well, we have weak and very weak deps: https://rpm.org/user_doc/dependencies.html#weak-dependencies
In any case, it's better to include them. They don't take a lot of space and you definitely want the crystal experience to be complete, IMHO.
Thank you for the gc-devel suggestion, btw.
Man, all of the system info are absolutely not needed here 😲
@renich You can edit your post to add a spoiler
My system's info:
<details>
foo
@oprypin done.
The new packages at OBS (https://build.opensuse.org/package/show/devel:languages:crystal/crystal) include package recommendations. It seems that support for optional dependencies may not be as widely supported on RPM-based distributions as with deb.
But many recent distro releases seem to support it. I checked with Fedora 33:
$ dnf repoquery --arch x86_64 crystal --recommends
Last metadata expiration check: 0:01:06 ago on Fri May 7 12:03:08 2021.
libgmp-devel
libssl-devel
libxml2-devel
libyaml-devel
libz-devel
It seems that the official RPM is missing a ton of dependencies, at least in Fedora 33.
Check these out: https://download.copr.fedorainfracloud.org/results/zawertun/crystal/fedora-33-x86_64/01906375-crystal/crystal.spec
The dependencies are far more that what gets installed when I use the crystal repo.
AFAICS, you're missing:
gc-devel gpm-devel libxml2-devel libyaml-devel openssl-devel xz-devel
My test was trying to build amber framework with the installed crystal version. I've installed v0.35.1 (because 0.36.0 breaks amber).
My system's info: