-
-
Notifications
You must be signed in to change notification settings - Fork 361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do I effectively build nut without any support or links to systemd? #2754
Comments
Can you please post the summary NUT The reference to |
@jimklimov Here is the configure summary. It is before make is run:
However, I know have verified that systemd is detected when the build is run in github workflow. When I run everything the same but on a native artix linux machine systemd remains undetected(how it should be). I am running the workflow on the standard ubuntu-latest github runner but inside an artix linux docker container that is started on the github runner. My guess is that for whatever reason something about systemd leaks over to the docker container which causes systemd to be detected. Honestly a configure option to disable systemd detection whatsoever would be probably the easiest solution. |
I compared the summary on github workflow with the one on my native machine and they are exactly the same. |
So as far as NUT build goes,
I do not disagree that a single option to perhaps skip others could be useful though. FWIW, most of them are about generation and delivery of resource files like unit definitions; only the Note that at least systemd tools were found. |
I took your package from GH at https://github.com/PatVax/artix-pkgbuilds/releases/download/nut-2.8.2-2/nut-2.8.2-2-x86_64.pkg.tar.zst and
Never mind |
This is how it looks at my side. $ sudo pacman -U https://github.com/PatVax/artix-pkgbuilds/releases/download/nut-2.8.2-2/nut-2.8.2-2-x86_64.pkg.tar.zst
loading packages...
warning: nut-2.8.2-2 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...
Packages (1) nut-2.8.2-2
Total Installed Size: 8.26 MiB
Net Upgrade Size: 0.38 MiB
:: Proceed with installation? [Y/n] Y
(1/1) checking keys in keyring [########################################################################################################] 100%
(1/1) checking package integrity [########################################################################################################] 100%
(1/1) loading package files [########################################################################################################] 100%
(1/1) checking for file conflicts [########################################################################################################] 100%
(1/1) checking available disk space [########################################################################################################] 100%
:: Processing package changes...
(1/1) reinstalling nut [########################################################################################################] 100%
:: Running post-transaction hooks...
(1/3) Creating system user accounts...
/usr/lib/sysusers.d/util-linux.conf:1: Unknown modifier 'u!'.
(2/3) Creating temporary files...
/usr/lib/tmpfiles.d/nut.conf:1: Duplicate line for path "/run/nut", ignoring.
/usr/lib/tmpfiles.d/nut.conf:2: Duplicate line for path "/var/lib/nut", ignoring.
(3/3) Reloading device manager configuration...
$ ldd /usr/lib/nut/usbhid-ups
linux-vdso.so.1 (0x000078608478d000)
libsystemd.so.0 => not found
libusb-1.0.so.0 => /usr/lib/libusb-1.0.so.0 (0x0000786084719000)
libm.so.6 => /usr/lib/libm.so.6 (0x0000786084629000)
libc.so.6 => /usr/lib/libc.so.6 (0x000078608443b000)
libudev.so.1 => /usr/lib/libudev.so.1 (0x00007860843f4000)
/lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x000078608478f000)
libcap.so.2 => /usr/lib/libcap.so.2 (0x00007860843e6000)
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007860843b9000)
$ sudo pacman -U artix-pkgbuilds/nut-2.8.2-2-x86_64.pkg.tar.zst
loading packages...
warning: nut-2.8.2-2 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...
Packages (1) nut-2.8.2-2
Total Installed Size: 7.88 MiB
Net Upgrade Size: -0.38 MiB
:: Proceed with installation? [Y/n] Y
(1/1) checking keys in keyring [########################################################################################################] 100%
(1/1) checking package integrity [########################################################################################################] 100%
(1/1) loading package files [########################################################################################################] 100%
(1/1) checking for file conflicts [########################################################################################################] 100%
(1/1) checking available disk space [########################################################################################################] 100%
:: Processing package changes...
(1/1) reinstalling nut [########################################################################################################] 100%
:: Running post-transaction hooks...
(1/3) Creating system user accounts...
/usr/lib/sysusers.d/util-linux.conf:1: Unknown modifier 'u!'.
(2/3) Creating temporary files...
(3/3) Reloading device manager configuration...
$ ldd /usr/lib/nut/usbhid-ups
linux-vdso.so.1 (0x00007b5742353000)
libusb-1.0.so.0 => /usr/lib/libusb-1.0.so.0 (0x00007b57422e1000)
libm.so.6 => /usr/lib/libm.so.6 (0x00007b57421f1000)
libc.so.6 => /usr/lib/libc.so.6 (0x00007b5742003000)
libudev.so.1 => /usr/lib/libudev.so.1 (0x00007b5741fbc000)
/lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x00007b5742355000)
libcap.so.2 => /usr/lib/libcap.so.2 (0x00007b5741fb0000)
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007b5741f83000) If I extract the package manually with tar there is no systemd link. Strange $ wget https://github.com/PatVax/artix-pkgbuilds/releases/download/nut-2.8.2-2/nut-2.8.2-2-x86_64.pkg.tar.zst
$ tar -xf nut-2.8.2-2-x86_64.pkg.tar.zst
$ ldd usr/lib/nut/usbhid-ups
linux-vdso.so.1 (0x000076c5bd3ae000)
libusb-1.0.so.0 => /usr/lib/libusb-1.0.so.0 (0x000076c5bd33c000)
libm.so.6 => /usr/lib/libm.so.6 (0x000076c5bd24c000)
libc.so.6 => /usr/lib/libc.so.6 (0x000076c5bd05e000)
libudev.so.1 => /usr/lib/libudev.so.1 (0x000076c5bd017000)
/lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x000076c5bd3b0000)
libcap.so.2 => /usr/lib/libcap.so.2 (0x000076c5bd00b000)
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x000076c5bcfdc000) |
I am on artix linux(systemd free distro). I am trying to make nut build on that system without any connection to systemd(since there is nothing from systemd in this distro).
And yet
sudo upsdrvctl -F start
prints this error/usr/lib/nut/usbhid-ups: error while loading shared libraries: libsystemd.so.0: cannot open shared object file: No such file or directory
.I am currently trying to run configure with the following arguments:
This is my github repo were I am trying to make nut work without systemd
So is there some argument I can pass to configure so that existence of systemd on the build system isn't even checked?
The text was updated successfully, but these errors were encountered: