actionless / pikaur

AUR helper with minimal dependencies. Review PKGBUILDs all in once, next build them all without user interaction.
GNU General Public License v3.0
860 stars 87 forks source link

systemd version check error #807

Closed siroccal closed 3 months ago

siroccal commented 3 months ago
Version:
$ pikaur -Vq
Pikaur v1.21.r15.ga05b1b9
Pacman v6.1.0 - libalpm v14.0.0 - pyalpm v0.10.6
Problem:

Executing pikaur (with any argument) as root (or with sudo) gives a systemd error.

$ sudo pikaur
  File "/usr/lib/python3.12/site-packages/pikaur/main.py", line 426, in main
    check_runtime_deps()
  File "/usr/lib/python3.12/site-packages/pikaur/core.py", line 358, in check_runtime_deps
    if UsingDynamicUsers()() and not check_systemd_dynamic_users_version():
                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/pikaur/core.py", line 348, in check_systemd_dynamic_users_version
    version = int(first_line.split(maxsplit=2)[1])
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

ValueError: invalid literal for int() with base 10: '256~rc4'

Running pikaur as a normal user works normally for packages in the repos, but doesn't work for AUR packages as they get stuck on getting sources. For example:

:: Downloading the latest sources for a devel package vkd3d-git...
=> sudo --user=#1000 --preserve-env=EDITOR -- makepkg --nobuild --nocheck --nodeps