Package not updating, I'm getting this error
Cloning networkmanager-iwd build files...
Generating libnm-iwd information...
Failed to prepare transaction:
Failed to generate libnm-iwd information
Git Clone URL: | https://aur.archlinux.org/networkmanager-iwd.git (read-only, click to copy) |
---|---|
Package Base: | networkmanager-iwd |
Description: | NetworkManager client library with iwd backend |
Upstream URL: | https://networkmanager.dev/ |
Licenses: | LGPL-2.1-or-later |
Conflicts: | libnm |
Provides: | libnm, libnm.so |
Submitter: | digitalone |
Maintainer: | buzo |
Last Packager: | buzo |
Votes: | 34 |
Popularity: | 0.23 |
First Submitted: | 2019-08-10 10:04 (UTC) |
Last Updated: | 2024-12-25 21:02 (UTC) |
Package not updating, I'm getting this error
Cloning networkmanager-iwd build files...
Generating libnm-iwd information...
Failed to prepare transaction:
Failed to generate libnm-iwd information
The source code replaced the build option polkit_agent
with polkit_agent_helper_1_path
on this commit with the description "Path name to the polkit-agent-helper-1 binary from polkit", then renamed it to polkit_agent_helper_1
on this other commit.
I searched on the polkit package the path to the file polkit-agent-helper-1
and I got /usr/lib/polkit-1/
.
I replaced the line
-D polkit_agent=true
with the line
-D polkit_agent_helper_1=/usr/lib/polkit-1/
on the PKGBUILD and I was able to compile successfully.
receiving the same error as TornaxO7, can't find fix
I'm getting an error when I try to install it:
NetworkManager/meson.build:3:0: ERROR: Unknown options: "polkit_agent"
A full log can be found at /home/tornax/.cache/yay/networkmanager-iwd/src/build/meson-logs/meson-log.txt ==> ERROR: A failure occurred in build(). Aborting... -> error making: networkmanager-iwd (libnm-iwd networkmanager-iwd)
How can I fix this?
pyxel: Works for me, so wouldn't it be sufficient to add that to your /etc/makepkg.conf?
link time optimizations are causing this to fail to build on my system, is it possible -D b_lto=false
could be added to the PKGBUILD?
maksverver: Thanks for the detailed clarification.
The mainline networkmanager package switched to provides=(libnm.so)
and its dependants have been updated too, so it makes sense for networkmanager-iwd to do the same.
Using the name of the provided library (rather than the name of a compatible package) seems compatible with the packaging guidelines described here: https://wiki.archlinux.org/title/PKGBUILD#provides
There is no rationale provided there, but I suspect the goal is to decouple library dependencies from package dependencies:
The conclusion is that if your system is up-to-date, the official packages should already work, and for any custom PKGBUILDs or AUR packages, you should update the dependency on libnm to either libnm.so (if mainline will work) or libnm-iwd (if required).
If you change all instances of 'provides=(libnm.so)' and 'provides = libnm.so' to 'provides=(libnm)' and 'provides = libnm' respectively in both the PKGBUILD and the .SRCINFO files, then it will properly build and install, or at least that worked for me. Will report back more if I run into problems.
Not sure why the changes in 48622efab81d got backed out... Any ideas?
buzo: Echoing what cubethethird said, libnm-iwd dependencies are broken again. This happened before and you fixed it in 48622efab81d. Why does this keep happening? Thanks
Pinned Comments
digitalone commented on 2019-08-10 10:37 (UTC) (edited on 2019-08-15 09:14 (UTC) by digitalone)
This is a modified package configured to get NetworkManager working exclusively with iwd. Main difference with upstream version is that iwd is required and wpa_supplicant is not needed (so you can uninstall it); iwd seems more reliable on certain wireless cards, so someone could prefer it in place of wpa_supplicant.
It's recommended to enable systemd iwd.service at boot:
systemctl enable iwd.service
Tested with Plasma NM system tray applet (plasma-nm), it's working.
Note that wpa_supplicant is still needed to build the package, but you can uninstall it after the building stage.