From 767221ca069405fc24d87fde86909ff986aaedeb Mon Sep 17 00:00:00 2001 From: tydude001 Date: Wed, 14 Oct 2026 12:15:46 -0500 Subject: [PATCH 1/4] packaging: RPM requires library sonames, so openSUSE can install it DeckCraft's RPM requires Fedora package names: `libxkbcommon`, `(vulkan-loader or libglvnd-egl)`, `alsa-lib`. 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 --- packaging/linux/nfpm.yaml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/packaging/linux/nfpm.yaml b/packaging/linux/nfpm.yaml index 0d41fc7ec..0f1111b45 100644 --- a/packaging/linux/nfpm.yaml +++ b/packaging/linux/nfpm.yaml @@ -44,10 +44,17 @@ overrides: - mesa-vulkan-drivers - xdg-desktop-portal rpm: + # Library sonames rather than package names, so the same requirements resolve on Fedora/RHEL + # and openSUSE (which has no libxkbcommon, vulkan-loader or libglvnd-egl package). The glibc + # floor names libm because the binaries' GLIBC_2.35 symbols (hypot, hypotf) are libm's: RHEL 9's + # glibc 2.34 provides libc.so.6(GLIBC_2.35) through backports, but not this, so it refuses. depends: - - libxkbcommon - - alsa-lib - - (vulkan-loader or libglvnd-egl) + - libc.so.6()(64bit) + - libm.so.6(GLIBC_2.35)(64bit) + - libgcc_s.so.1()(64bit) + - libxkbcommon.so.0()(64bit) + - (libvulkan.so.1()(64bit) or libEGL.so.1()(64bit)) + - libasound.so.2()(64bit) recommends: - libwayland-client - libX11 From e779415cce19847197f9a27ac99c55f42d44abb3 Mon Sep 17 00:00:00 2001 From: tydude001 Date: Fri, 6 Nov 2026 12:43:50 -0600 Subject: [PATCH 2/4] packaging: name /usr/share's files one by one, so the RPM doesn't own /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. --- packaging/linux/nfpm.yaml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/packaging/linux/nfpm.yaml b/packaging/linux/nfpm.yaml index 0f1111b45..014b84dd5 100644 --- a/packaging/linux/nfpm.yaml +++ b/packaging/linux/nfpm.yaml @@ -71,8 +71,20 @@ contents: - src: ${STAGE}/usr/bin/deckcraft-cli dst: /usr/bin/deckcraft-cli file_info: { mode: 0755 } - - src: ${STAGE}/usr/share/ - dst: /usr/share/ + # Named one by one rather than as a tree of /usr/share: a tree would also own shared directories + # such as /usr/share/mime, which openSUSE's filesystem package owns with other modes, and RPM + # refuses to install a package that conflicts with it. + - src: ${STAGE}/usr/share/applications/ai.storyteller.deckcraft.desktop + dst: /usr/share/applications/ai.storyteller.deckcraft.desktop + - src: ${STAGE}/usr/share/mime/packages/ai.storyteller.deckcraft.xml + dst: /usr/share/mime/packages/ai.storyteller.deckcraft.xml + - src: ${STAGE}/usr/share/metainfo/ai.storyteller.deckcraft.metainfo.xml + dst: /usr/share/metainfo/ai.storyteller.deckcraft.metainfo.xml + - src: ${STAGE}/usr/share/icons/hicolor/ + dst: /usr/share/icons/hicolor/ + type: tree + - src: ${STAGE}/usr/share/doc/deckcraft/ + dst: /usr/share/doc/deckcraft/ type: tree scripts: From 8a9159a4011f8fb34b74d04163a4a9d3e8a3a5f3 Mon Sep 17 00:00:00 2001 From: tydude001 Date: Thu, 12 Nov 2026 14:51:54 -0600 Subject: [PATCH 3/4] packaging: RPM recommends the windowing libraries by soname, so they 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. --- packaging/linux/nfpm.yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/packaging/linux/nfpm.yaml b/packaging/linux/nfpm.yaml index 014b84dd5..6cf2aad45 100644 --- a/packaging/linux/nfpm.yaml +++ b/packaging/linux/nfpm.yaml @@ -55,12 +55,13 @@ overrides: - libxkbcommon.so.0()(64bit) - (libvulkan.so.1()(64bit) or libEGL.so.1()(64bit)) - libasound.so.2()(64bit) + # The windowing libraries by soname too, so the recommendations resolve on openSUSE as well. recommends: - - libwayland-client - - libX11 - - libXcursor - - libXi - - libXrandr + - libwayland-client.so.0()(64bit) + - libX11.so.6()(64bit) + - libXcursor.so.1()(64bit) + - libXi.so.6()(64bit) + - libXrandr.so.2()(64bit) - mesa-vulkan-drivers - xdg-desktop-portal From f41ae047009c4c59f8425d60045ff8351c00ce74 Mon Sep 17 00:00:00 2001 From: tydude001 <291262504+tydude001@users.noreply.github.com> Date: Wed, 18 Nov 2026 07:34:53 -0600 Subject: [PATCH 4/4] packaging: RPM recommends libX11-xcb and libxkbcommon-x11, so the GUI 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. --- packaging/linux/nfpm.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packaging/linux/nfpm.yaml b/packaging/linux/nfpm.yaml index 6cf2aad45..b60116aaf 100644 --- a/packaging/linux/nfpm.yaml +++ b/packaging/linux/nfpm.yaml @@ -55,13 +55,16 @@ overrides: - libxkbcommon.so.0()(64bit) - (libvulkan.so.1()(64bit) or libEGL.so.1()(64bit)) - libasound.so.2()(64bit) - # The windowing libraries by soname too, so the recommendations resolve on openSUSE as well. + # The windowing libraries the GUI loads at runtime, by soname too, so the recommendations resolve on + # openSUSE as well. Without libX11-xcb and libxkbcommon-x11 the GUI cannot start on X11. recommends: - libwayland-client.so.0()(64bit) - libX11.so.6()(64bit) - libXcursor.so.1()(64bit) - libXi.so.6()(64bit) - - libXrandr.so.2()(64bit) + - libX11-xcb.so.1()(64bit) + - libxkbcommon-x11.so.0()(64bit) + - libwayland-egl.so.1()(64bit) - mesa-vulkan-drivers - xdg-desktop-portal