Package: hyprland
Version: 0.53.3+ds-4
Followup-For: Bug #1104919
X-Debbugs-Cc: [email protected]

Dear Maintainer,

I can confirm this bug on hyprland 0.53.3+ds-4 (Debian Sid) and have identified
the root cause and a workaround.

The root cause is twofold:

1. The `hyprpm add` command fails with "Headers outdated" because
   /var/cache/hyprpm/$USER/state.toml is never created by the package.
   This file must contain the abiHash from `hyprctl -j version`, which
   hyprpm uses to validate that the compiled headers match the running
   Hyprland version.

2. Missing build dependencies in hyprland-dev: libgles2-mesa-dev and
   libpango1.0-dev are required to compile plugins but are not listed
   as dependencies.

Workaround:

  # Install missing build dependencies
  sudo apt install hyprland-dev libgles2-mesa-dev libpango1.0-dev

  # Create the hyprpm state store with the correct abiHash
  sudo mkdir -p /var/cache/hyprpm/$USER
  ABI=$(hyprctl -j version | python3 -c "import sys,json; 
print(json.load(sys.stdin)['abiHash'])")
  sudo tee /var/cache/hyprpm/$USER/state.toml << EOF
  [state]
  hash = "$ABI"
  dont_warn_install = false
  EOF
  sudo chown $USER:$USER /var/cache/hyprpm/$USER/state.toml

After these steps, hyprpm add works correctly.

The suggested fix for the package would be to create state.toml via a
post-install script (or similar mechanism), and to add libgles2-mesa-dev
and libpango1.0-dev as dependencies of hyprland-dev.


-- System Information:
Debian Release: forky/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.18.13+deb14-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages hyprland depends on:
ii  binutils                            2.46-2
ii  libaquamarine9                      0.10.0-2
ii  libc6                               2.42-13
ii  libcairo2                           1.18.4-3
ii  libdrm2                             2.4.131-1
ii  libegl1                             1.7.0-3
ii  libgbm1                             26.0.1-2
ii  libgcc-s1                           15.2.0-14
ii  libgl1-mesa-dri                     26.0.1-2
ii  libgles2                            1.7.0-3
ii  libglib2.0-0t64                     2.87.2-3
ii  libhyprcursor0                      0.1.13-0.1
ii  libhyprgraphics4                    0.5.0-2
ii  libhyprlang2                        0.6.8-2
ii  libhyprutils10                      0.11.0-3
ii  libhyprwire3                        0.3.0-3
ii  libinput10                          1.31.0-1
ii  libmuparser2v5                      2.3.4-2
ii  libpango-1.0-0                      1.57.0-1
ii  libpangocairo-1.0-0                 1.57.0-1
ii  libpixman-1-0                       0.46.4-1+b1
ii  libre2-11 [libre2-11-absl20240722]  20250805-1+b2
ii  libstdc++6                          15.2.0-14
ii  libtomlplusplus3t64                 3.4.0+ds-0.2+b2
ii  libudis86-0                         0+20221013-1.1
ii  libuuid1                            2.41.3-4
ii  libwayland-server0                  1.24.0-2+b2
ii  libxcb-composite0                   1.17.0-2+b2
ii  libxcb-errors0                      1.0.1-4+b1
ii  libxcb-icccm4                       0.4.2-1+b1
ii  libxcb-render0                      1.17.0-2+b2
ii  libxcb-res0                         1.17.0-2+b2
ii  libxcb-xfixes0                      1.17.0-2+b2
ii  libxcb1                             1.17.0-2+b2
ii  libxcursor1                         1:1.2.3-1+b1
ii  libxkbcommon0                       1.13.1-1
ii  polkitd                             127-2

Versions of packages hyprland recommends:
ii  xdg-desktop-portal-hyprland  1.3.11-1+b1
ii  xwayland                     2:24.1.9-1

hyprland suggests no packages.

-- no debconf information

Reply via email to