Add Crystal Packaging Guidelines #1568
No reviewers
Labels
No labels
announce
bootstrap
Closed As
accepted
Closed As
duplicate
Closed As
exceptionexpired
Closed As
fixed
Closed As
invalid
Closed As
nothingtodo
Closed As
permanentexception
Closed As
rejected
Closed As
temporaryexception
Closed As
wontfix
cmake
committee
draftneeded
hasdraft
meeting
meson
needinfo
Priority
In Committee
Priority
Needs Review
Priority
Waiting For Reporter
rust
writeup
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
packaging/guidelines!1568
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "renich/guidelines:crystal-guidelines"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
In conjunction with System-Wide Change Proposal Changes/CrystalLanguage and FPC Ticket #1567, this PR introduces the official Fedora Packaging Guidelines for the Crystal programming language.
Key Packaging Architecture Highlights
crystal-lang, producing the nativecrystalbinary package (%package -n crystal).crystal-<shard>(crystal-kemal,crystal-radix) without prefix deduplication to prevent namespace collisions between distinct upstream projects.%package -n <name>, e.g.ameba,flaw).%{_datadir}/crystal/shards/<name>-<version>.%crystal_setupinspectsshard.lockand symlinks required dependencies from%{_datadir}/crystal/shards/into local./lib/<name>.CRYSTAL_PATH="lib:%{crystal_shards_dir}:%{_datadir}/crystal/src"./usr/lib/rpm/fileattrs/crystalshard.attr) emitsProvides: crystal-shard(<name>) = <version>.%crystal_build,%crystal_install,%crystal_install_lib,%crystal_check, and%crystal_files.References
Hi @gotmax23,
I have updated the Crystal packaging guidelines draft to formally incorporate the dual-track packaging model, directly mirroring the vendoring policy established for Go applications:
Shared Shard Libraries: Packaged as unbundled, individual RPMs under
%{_datadir}/crystal/shards/<name>-<version>with parallel minor-version coexistence.Vendored Dependencies for Applications: For standalone leaf applications where unbundling is disproportionately burdensome or impractical, vendored source tarballs (
Source1: %{name}-%{version}-vendor.tar.xz) are permitted, provided they:%prep.Provides: bundled(crystal-shard(<name>)) = <version>.License:tag with SPDX expressions.Architecture Tags for Noarch Libraries: Clarified the requirement for
ExclusiveArch: %{crystal_arches} noarchon pure library packages declaringBuildArch: noarch.We have also validated this entire model in Fedora Copr (
renich/crystal), successfully building out the entire dependency tree (fromcrystal-dband database drivers throughcrystal-kemaland compiled applications likecryload) cleanly in offline mock roots on bothx86_64andaarch64.- Add Vendored Dependencies for Applications section aligning with Golang/Rust guidelines - Clarify ExclusiveArch: %{crystal_arches} noarch requirement for BuildArch: noarch pure library packages - Align compatibility package naming and cr2rpm repository URL - Update crystal-kemal example spec Co-authored-by: Gemini <renich+gemini@woralelandia.com>Hello Packaging Committee,
Sharing a quick status update on the Crystal Language integration for Fedora 46:
Changes/CrystalLanguage) with a +5, 0, -0 vote in FESCo Ticket #3690. During voting, FESCo members noted the importance of having both the unbundled Shard-as-RPM path for reusable libraries and the vendoring escape hatch for standalone applications, both of which are codified in PR #1568.0 errors, 0 warningsinrpmlint):crystal-rpm-macros: RHBZ #2560262crystal-lang: RHBZ #2560263shards: RHBZ #2560264cr2rpm: RHBZ #2560265vim-crystal: RHBZ #2560266x86_64andaarch64in renich/crystal Copr.Could we please schedule PR #1568 for final committee review and merge? Thank you!
Note: Posted by Gemini, AI pair programmer collaborating with Rénich Bon Ćirić.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.