Repository navigation
Conversation
CadCraft's RPM requires Fedora package names: `libxkbcommon`, `(vulkan-loader or libglvnd-egl)`. openSUSE has no `libxkbcommon`, `vulkan-loader` or `libglvnd-egl` package, so zypper refuses it with `nothing provides 'libxkbcommon'` (exit 4, which the ArtCraft Launcher shows as "error 4"; storytold/craft-launcher#341). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
FredApps
left a comment
There was a problem hiding this comment.
ReviewerA — source-read COMMENT (not an approval)
I read the diff: packaging: the RPM requires library sonames, so openSUSE can install it. In nfpm.yaml the package-name requirements libxkbcommon and (vulkan-loader or libglvnd-egl) are replaced with sonames, and a glibc floor expressed as libc.so.6()(64bit) and libm.so.6(GLIBC_2.35)(64bit), with a comment that explains why libm (the binaries' GLIBC_2.35 symbols hypot and hypotf are libm's, and RHEL 9's glibc 2.34 provides libc.so.6(GLIBC_2.35) through backports but not this one, so it refuses). Depending on sonames is how RPM packaging is meant to work across distributions with different package names, and the comment records the reasoning. Please also list the sonames for the libraries the old line covered (the diff I fetched shows the removals; the new soname lines for libxkbcommon.so.0, libvulkan.so.1 and libEGL.so.1 are below the cut). The change needs a test install on openSUSE and on Fedora, which I could not do. I have not run it, and no exact-head CI result exists for this head. Nothing was run.
I ran nothing and have no exact-head CI result for this PR, so this is not an approval. Where a diff was long I read its code hunks rather than every generated or documentation line.
Status: waiting_author.
austin62jake
left a comment
There was a problem hiding this comment.
Approving. I merged it onto current main with ten other small PRs (#1273, #1266, #1265, #1263, #1254, #1247, #1233, #1196, #1114, #1445, #1591). The whole suite passes (3170 tests), and so do fmt and the web build. Clippy stops only on #1254's test. (this one is packaging only, so the suite isn't its test)
Requiring library sonames rather than distribution package names lets the same RPM resolve on Fedora/RHEL and openSUSE. Pinning libm.so.6(GLIBC_2.35) for the hypot symbols, with the reason in a comment, explains the floor clearly.
|
Thanks. The sonames you couldn't see are there, on two lines: |
… /usr/share/mime A tree of /usr/share made the RPM own /usr/share/mime and /usr/share/mime/packages at 0755, which openSUSE's filesystem package owns at 0555: rpm -U refuses the package, and zypper installs it but leaves the directory at 0755. This is the layout WordCraft took in storytold/wordcraft#5369. The man pages and completions are named too. package.sh leaves them out of a cross build without EMULATOR, and nfpm refuses an entry whose file is missing, so they sit between cli-docs markers that package.sh deletes when they weren't staged.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
I've added a commit that names The man pages and completions are named too. Checked against 0.17.1: I packaged its released files again with this branch's @austin62jake, these two commits came after your approval. |
…resolve on openSUSE The recommendations named Fedora's packages (libwayland-client, libX11, libXcursor, libXi, libXrandr), which openSUSE calls libwayland-client0, libX11-6 and so on, so zypper skipped all five. As sonames, like the requirements above them, they resolve on both: with recommendations on, as on a desktop install, Tumbleweed and Leap 15.6 now select all five for the package itself, and Fedora 44 installs the same five as before.
|
CodeRabbit flagged this on gridcraft#1323, and it applies here too: openSUSE has no packages named Checked against 0.17.1, packaged again with this branch's #1853 adds |
… starts on X11
The GUI opens libX11-xcb.so.1 and libxkbcommon-x11.so.0 at runtime on X11, and its binary also
names libwayland-egl.so.1, but nothing in the RPM asked for them. Fresh Fedora 44, Leap 15.6 and
Tumbleweed installs, with recommendations on, left libxkbcommon-x11 out. Started on X11 (Xvfb) in
Fedora 44 and Leap 15.6, GridCraft then panicked ("Library libxkbcommon-x11.so could not be
loaded"). With only libX11-xcb missing, winit fails to create its event loop
("libX11-xcb.so.1: cannot open shared object file"). All three are now recommended by soname.
libXrandr is dropped: no binary names it.
|
One more commit ( CadCraft 0.20.1's GUI binary names those three libraries, but nothing in the RPM asked for them. Installed on fresh #1853 adds No binary in the release names |
|
I checked the RPM follow-up at 74f8749. The three window-system sonames are added under Recommends, and the unused Xrandr recommendation is removed. The hard soname requirements and the glibc floor are unchanged. This preserves the earlier change to use dependencies that the distribution can resolve. GitHub currently shows a passing CodeRabbit check, without a package-install job for this head. I did not repeat the author’s distribution install or launch checks on the updated RPM. |
|
The CI, Packaging lint and SonarCloud runs on |
What and why
CadCraft's RPM requires Fedora package names:
libxkbcommon,(vulkan-loader or libglvnd-egl).openSUSE has no
libxkbcommon,vulkan-loaderorlibglvnd-eglpackage, so zypper refuses it withnothing provides 'libxkbcommon'(exit 4, which the ArtCraft Launcher shows as "error 4";storytold/craft-launcher#341).
This requires the libraries' sonames instead, as PhotoCraft and VectorCraft already do, so the same RPM
resolves on Fedora/RHEL and openSUSE. It also declares the binaries' glibc floor, matching the deb's
libc6 (>= 2.35). The floor names libm, not libc: thebinaries' only GLIBC_2.35 symbols are
hypotandhypotffrom libm, and RHEL 9's current glibc(
2.34-283.el9_8) provideslibc.so.6(GLIBC_2.35)through backports but not libm's.How it was tested
CadCraft 0.6.2's released x86_64 binaries, repackaged with nfpm 2.47.0 and this branch's
nfpm.yaml, theninstalled with the distro's own package manager in a fresh x86_64 container and run with
cadcraft-cli --version.The released RPM is the same test on the release's own package.
nothing provides 'libxkbcommon'nothing provides 'libxkbcommon'cadcraft-cli:libm.so.6: version `GLIBC_2.35' not foundnothing provides libm.so.6(GLIBC_2.35)(64bit)The aarch64 RPMs get the same requires. I checked that side on FilmCraft only: its 0.7.2 arm64 binaries need
GLIBC_2.35 for the same two libm symbols, and its branch RPM installs and runs on arm64 Fedora 44,
Tumbleweed and Leap 15.6 (qemu-user).
cargo xtask cipasses. This tests installation and the CLI, not the GUI. The same results for everyCrafting App: storytold/craft-launcher#341 (comment)
Summary by CodeRabbit
libmrequirement and runtime windowing libraries.