Artix Linux Forum

Artix Linux => Package management => AUR Packages => Topic started by: crinum_ornatum on 10 July 2018, 20:58:23

Title: CMake / libsystemd
Post by: crinum_ornatum on 10 July 2018, 20:58:23
Hai all,
 Does cmake  detect libeudev as libsystemd? I want to build an AUR pkg that requires libsystemd. But cmake's initial check stops, saying no libsystemd installed.
Thanks.
Title: Re: CMake / libsystemd
Post by: SGOrava on 10 July 2018, 21:33:59
Hello,
AUR is a big world, can you name the package which you want to build ?

Udev should be recognized with pkgconfig when you search for module udev.
It works for systemd version and also for eudev.

When using cmake you can also create your own search modules,
so anything is possible.

If you want help, post link to the AUR package which you want to build,
so we (forum readers) can check it.
Title: Re: CMake / libsystemd
Post by: crinum_ornatum on 11 July 2018, 02:03:11
Hai,
Drat, forgot to link it :-[ : https://aur.archlinux.org/packages/anbox-git/
https://pastebin.com/amdgjkxc this is one log referenced in the cmake output.
https://pastebin.com/ky5iijTd and the other error log referred to.

Thanks
Title: Re: CMake / libsystemd
Post by: SGOrava on 11 July 2018, 15:44:31
Hello,
said program is searching for libsystemd.
https://github.com/anbox/anbox/blob/master/CMakeLists.txt#L71

As Artix does not support systemd, there is not an easy way to build said program.
Try to ask the program developers for help "How to build this without systemd"
Or investigate it and purge systemd from it
According to what i found they are using systemd for dbus support.
Title: Re: CMake / libsystemd
Post by: artoo on 12 July 2018, 09:47:18
The program's cmake probably needs to be patched to look for libudev instead.
Arch's libsystemd has libudev bundled with it, and usually, its the libudev functions other programs require for device management.
Title: Re: CMake / libsystemd
Post by: fungalnet on 12 July 2018, 11:22:55
Did you mean libeudev or actually libudev which should be a link to libeudev?
libsystemd-dummy doesn't provide this function in it, does it?
Title: Re: CMake / libsystemd
Post by: konimex on 13 July 2018, 07:47:37
I think their dependencies on systemd is deeper than just udev. Looking at a Gentoo ebuild and their AUR PKGBUILD, it seems their network stack also depends on systemd.
Title: Re: CMake / libsystemd
Post by: crinum_ornatum on 15 July 2018, 12:38:08
Busy with work. Thank you everyone for looking into this topic. :)
Title: Re: CMake / libsystemd
Post by: mrbrklyn on 31 July 2018, 06:01:12
Hai,
Drat, forgot to link it :-[ : https://aur.archlinux.org/packages/anbox-git/
https://pastebin.com/amdgjkxc this is one log referenced in the cmake output.
https://pastebin.com/ky5iijTd and the other error log referred to.

Thanks


android might be dependent on systemd
Title: Re: CMake / libsystemd
Post by: alium on 31 July 2018, 22:51:59
try to install and use libsystemd-dummy
Title: Re: CMake / libsystemd
Post by: SGOrava on 31 July 2018, 23:51:54
try to install and use libsystemd-dummy
that will not work when you want to compile this SW.
It is searching for systemd via pkgconfig.
Configuration / search module for pkgconfig is provided by systemd but not systemd-dummy.
This SW also needs systemd specific headers which are not provided by systemd-dummy.
It is not called dummy for no reason :D