Skip to content

Make optional RPM dependencies weak (Recommends) - #45

Merged
carlhoerberg merged 1 commit into
mainfrom
rpm-weak-deps
Sep 24, 2026
Merged

carlhoerberg merged 1 commit into
mainfrom
rpm-weak-deps

Conversation

@carlhoerberg

Copy link
Copy Markdown
Contributor

Only gcc, pkgconfig, gc-devel and pcre2-devel are needed to compile a basic Crystal program. The rest are only needed by parts of the stdlib or by shards, so this moves them to Recommends::

  • openssl-devel, zlib-devel, libyaml-devel, libxml2-devel, gmp-devel
  • git, make

dnf installs weak dependencies by default, so nothing changes for most users. Minimal installs can skip them with --setopt=install_weak_deps=False.

libffi-devel is intentionally left out. Only the interpreter uses libffi, and rpmbuild's automatic dependency detection already requires the runtime libffi.so.8.

🤖 Generated with Claude Code

Only gcc, pkgconfig, gc-devel and pcre2-devel are needed to compile
a basic Crystal program. The rest (openssl, zlib, yaml, xml2, gmp,
git, make) are only needed by parts of the stdlib or by shards, so
they're now Recommends. dnf still installs them by default, but users
can opt out with install_weak_deps=False.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@carlhoerberg
carlhoerberg requested a review from a team as a code owner September 24, 2026 10:08
@carlhoerberg
carlhoerberg merged commit 6f1f7e8 into main Sep 24, 2026
14 checks passed
@carlhoerberg
carlhoerberg deleted the rpm-weak-deps branch September 24, 2026 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants