aurutils / aurutils

Helper tools for the AUR.
ISC License
943 stars 89 forks source link

Dependency failed on package which requires systemd-libs #821

Closed rkunschke closed 3 years ago

rkunschke commented 3 years ago

I tryed to build joycond-git and got this error: -- Package 'libudev', required by 'virtual:world', not found I think there is the systemd-libs package missing which is a part of base-devel in arch. Is this problem related to aurutils? When i build it by hand everything works

AladW commented 3 years ago

Do you use Artix? When yes, I can't help you with that.

rkunschke commented 3 years ago

No i am on standard arch. It just looks like the libudev is missing in the build environment for some reason.

AladW commented 3 years ago

Then where is that "virtual:world" thing coming from?

Morganamilo commented 3 years ago

That's pkgconf output.

morganamilo@Octavia ~ % pkgconf --libs nonexist
Package nonexist was not found in the pkg-config search path.
Perhaps you should add the directory containing `nonexist.pc'
to the PKG_CONFIG_PATH environment variable
Package 'nonexist', required by 'virtual:world', not found

Ideally you send the full output and not just one line.

rkunschke commented 3 years ago

thats the output i get ... -- Checking for module 'libevdev' -- Found libevdev, version 1.11.0 -- Checking for module 'libudev' -- Package 'libudev', required by 'virtual:world', not found CMake Error at /usr/share/cmake-3.20/Modules/FindPkgConfig.cmake:556 (message): A required package was not found Call Stack (most recent call first): /usr/share/cmake-3.20/Modules/FindPkgConfig.cmake:778 (_pkg_check_modules_internal) CMakeLists.txt:11 (pkg_check_modules)

-- Configuring incomplete, errors occurred! See also "/build/joycond-git/src/joycond/CMakeFiles/CMakeOutput.log". ==> ERROR: A failure occurred in build(). Aborting... ...

tinywrkb commented 3 years ago

@rkunschke that's a packaging issue, the package maintainer is at fault here, not aurutils.
You need to add systemd-libs or libudev.so to the depends array, and also add systemd to the makedepends array for the pkgconfig file (seems like a packaging mistake by systemd's maintainer).

AladW commented 3 years ago

Closing as a PKGBUILD issue.