Skip to content

Accept openSUSE libdrm2 in desktop RPM runtime dependencies #2945

Closed

Description

@integry

Problem and requested result

The user explicitly selected the existing openSUSE Leap 15.6 x86_64 machine for installed first-user Linux release validation. The verified source3421220 preview RPM declares a hard Requires: libdrm, preventing that normal installation despite the installed equivalent library provider being libdrm2.

Concrete read-only evidence from this machine:

  • rpm -qp --requires ProPR-Desktop-0.9.0-linux-x64.rpm includes libdrm.
  • rpm -q libdrm libdrm2: libdrm is not installed; libdrm2-2.4.118-150600.1.4.x86_64 is installed.
  • rpm -q --provides libdrm2: provides libdrm.so.2()(64bit), libdrm2 and libkms1, but no libdrm package-name capability.
  • zypper --no-refresh info libdrm at-spi2-core: configured cached Leap15.6 metadata reports libdrm not found; at-spi2-core is available. Some repository metadata is expired, so this is a precise local observation, not a claim that every current mirror was refreshed.
  • A zypper dry run requires root here, and noninteractive sudo requires the user's password. Do not access that password, grant sudo rights, edit host repositories, or install on the user's host.
  • Other portable RPM dependencies already use alternatives, e.g. (libnotify or libnotify4), (libxcb or libxcb1), (mesa-libgbm or libgbm1), (nss or mozilla-nss).

Scope / acceptance

  1. Correct ProPR's RPM dependency generation to accept the openSUSE libdrm2 provider while preserving the Fedora/RHEL libdrm provider and the actual Electron runtime dependency. A rich alternative such as (libdrm or libdrm2) may fit the existing packaging approach; inspect the upstream maker/installer defaults before choosing the implementation.
  2. Verify actual generated RPM dependency metadata, not only a source-string assertion. Cover x64 and ARM64 generation, preserve all existing required libraries, and retain the chrome-sandbox ownership/mode and native packaging checks.
  3. Add a meaningful regression that shows a SUSE-style libdrm2-only provider can satisfy the corrected RPM dependency, and that libdrm still satisfies it for Fedora/RHEL. Prefer the normal RPM/libsolv/zypper solver in a disposable environment if feasible; document any unavailable integration proof honestly.
  4. Run focused packaging tests/type checks and existing relevant release guards. Keep the change small and independently reviewable.

Boundaries

Implement through ProPR; no bypass with --nodeps, ignored dependency failures, fake dependency packages, broad dependency removal, dependency-policy relaxation, host changes, permission/grant changes or credential copying. Do not publish images, desktop/npm releases, deploy or alter stable tags/feeds. Existing native Debian/Rocky tests of3421220 are running; do not cancel or restart them. Nightly PR2944 has a separate serial implementation route and should not be edited as part of this issue. A corrected final source and source-bound packages will be reviewed and validated before any later publication proposal.

Activity

  1. propr-dev commented on Oct 10, 2026

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using claude agent with claude-opus-5-5 model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: claude
    • Model: claude-opus-5-5
    • Branch: 2945/claude-opus-5-5-accept-opensuse-libdrm2-i-20261010-1701-cut
    • Base Branch: main
    • Worktree: issue-2945-20261010-1701-claude-opus-5-5-cut

    🔍 Track Task Execution

  2. propr-dev commented on Oct 10, 2026

    @propr-dev
    Contributor

    ⚠️ Post-processing encountered an error, but ProPR analysis was completed.

    AI Processing Completed

    Execution Details:

    Summary:
    The desktop RPM now requires (libdrm or libdrm2) instead of a bare libdrm. That lets the openSUSE libdrm2 package satisfy it, and Fedora/RHEL's libdrm still does. I built real RPMs for x64 and ARM64 and ran them through libsolv, the solver zypper uses. I did not run zypper itself or install anything on the openSUSE machine.

    The fix (apps/desktop/src/rpm-maker.ts). The libdrm requirement comes from electron-installer-redhat 3.4.0, which ProPR's RPM maker builds on. Its dependency list already uses "or" alternatives for gbm, notify, nss and xcb, but only has the Fedora name for DRM. ProPR passes its own requirements to that library as additions only, so they can't replace a default. Instead, ProPR's existing RPM maker class now swaps that one entry after the defaults are generated. No requirement is removed or loosened, and the custom spec with the chrome-sandbox 4755 fix is unchanged.

    Checked on real built packages. I extracted Debian's rpm, rpmbuild and libsolv-tools into /tmp, with no root and no host changes, then ran the normal npm run make:rpm for x64 and ARM64:

    • Only one line changed: compared with packages built from the unmodified code, each architecture differs only by libdrm → (libdrm or libdrm2). Every other requirement is still there.
    • Architecture and sandbox: the packages are x86_64 and aarch64, and chrome-sandbox is still 04755 root root in both.
    • Solver results, both architectures:
      • The original package fails on a system with only libdrm2, with nothing provides libdrm, the same failure you saw.
      • The fixed package installs on an openSUSE-style system that has libdrm2 (with the same provides as rpm -q --provides libdrm2 on Leap 15.6) and on a Fedora/RHEL-style system that has libdrm.
      • It still fails when no DRM provider is present, so the dependency is still enforced.

    Regression test (apps/desktop/src/rpm-maker.test.ts).

    • Always runs: takes electron-installer-redhat's actual list for the installed Electron 44.0.0, applies the change, and checks that only the DRM entry differs and that all nine runtime requirements are present.
    • Only where RPM tools are installed: the x64 and ARM64 tests build a real RPM through the maker, check its architecture, requirements and chrome-sandbox mode, and then run the three solver cases above. CI doesn't have these tools, so there they report as skipped with the missing tool names.

    All three tests fail if the change is turned off. Typecheck passes. The related release and packaging tests passed: 80 tests, 76 passed, 0 failed, 4 skipped.

    Not proven yet:

    This change isn't visible in the UI, so I made no previews.

    Detailed Logs:

    • Conversation: 103 messages
    • Session: e5855d43-5d46-49c1-984a-76f7de8890ef

    Log files stored at:

    • conversation: /tmp/claude-logs/issue-2945-2026-10-10T17-10-18-108Z-conversation.json
    • output: /tmp/claude-logs/issue-2945-2026-10-10T17-10-18-108Z-output.txt
    Latest Conversation Messages
    ASSISTANT: [content unavailable]
    
    ASSISTANT: The desktop RPM now requires `(libdrm or libdrm2)` instead of a bare `libdrm`. That lets the openSUSE `libdrm2` package satisfy it, and Fedora/RHEL's `libdrm` still does. I built real RPMs for x64 and...
    
    

    This processing report was generated automatically by ProPR for issue #2945.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions