While looking at some code over on github, I noticed that for the past two years there has been this build option: -D config_wifi_backend_default=iwd
.
Using this allows building without wpa-supplicant as a build dependency and without installing that override file into /usr/lib/NetworkManager/conf.d/30-wifi-backend.conf
Search Criteria
Package Details: nm-iwd-cloud-setup 1.50.0-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/networkmanager-iwd.git (read-only, click to copy) |
---|---|
Package Base: | networkmanager-iwd |
Description: | Automatically configure NetworkManager with iwd backend in cloud |
Upstream URL: | https://networkmanager.dev/ |
Licenses: | LGPL-2.1-or-later |
Conflicts: | nm-cloud-setup |
Provides: | nm-cloud-setup |
Submitter: | digitalone |
Maintainer: | buzo |
Last Packager: | buzo |
Votes: | 34 |
Popularity: | 0.54 |
First Submitted: | 2019-08-10 10:04 (UTC) |
Last Updated: | 2024-10-10 13:06 (UTC) |
Dependencies (43)
- bash (bash-devel-static-gitAUR, bash-devel-gitAUR, busybox-coreutilsAUR, bash-gitAUR)
- curl (curl-quiche-gitAUR, curl-http3-ngtcp2AUR, curl-gitAUR, curl-c-aresAUR)
- gcc-libs (gcc-libs-gitAUR, gccrs-libs-gitAUR, gcc11-libsAUR, gcc-libs-snapshotAUR)
- glib2 (glib2-gitAUR, glib2-selinuxAUR, glib2-patched-thumbnailerAUR)
- glibc (glibc-gitAUR, glibc-linux4AUR, glibc-eacAUR, glibc-eac-binAUR, glibc-eac-rocoAUR)
- libnm (libnm-gitAUR, libnm-iwdAUR)
- networkmanager-iwdAUR
- audit (make)
- bash (bash-devel-static-gitAUR, bash-devel-gitAUR, busybox-coreutilsAUR, bash-gitAUR) (make)
- curl (curl-quiche-gitAUR, curl-http3-ngtcp2AUR, curl-gitAUR, curl-c-aresAUR) (make)
- dnsmasq (pi-hole-ftlAUR, dnsmasq-gitAUR) (make)
- gcc-libs (gcc-libs-gitAUR, gccrs-libs-gitAUR, gcc11-libsAUR, gcc-libs-snapshotAUR) (make)
- git (git-gitAUR, git-glAUR) (make)
- glib2-devel (make)
- glibc (glibc-gitAUR, glibc-linux4AUR, glibc-eacAUR, glibc-eac-binAUR, glibc-eac-rocoAUR) (make)
- gobject-introspection (gobject-introspection-gitAUR) (make)
- gtk-doc (make)
- iproute2 (iproute2-gitAUR, busybox-coreutilsAUR, iproute2-selinuxAUR) (make)
- iwd (iwd-gitAUR) (make)
- jansson (jansson-gitAUR) (make)
- libmm-glib (libmm-glib-gitAUR) (make)
- libndp (make)
- libnewt (make)
- libpsl (libpsl-gitAUR) (make)
- libteam (make)
- meson (meson-gitAUR) (make)
- modemmanager (modemmanager-gitAUR) (make)
- nftables (nftables-fullconeAUR, nftables-gitAUR) (make)
- nspr (nspr-hgAUR) (make)
- nss (nss-hgAUR) (make)
- openresolv (openresolv-gitAUR, systemd-chromiumos-resolvconfAUR, systemd-resolvconf-selinuxAUR, sysupdated-systemd-resolvconf-gitAUR, systemd-resolvconf-fmlAUR, systemd-resolvconf-gitAUR, systemd-resolvconf) (make)
- pacrunner (make)
- perl-yaml (make)
- polkit (polkit-gitAUR, polkit-consolekitAUR) (make)
- ppp (ppp-gitAUR) (make)
- python-gobject (python-gobject-gitAUR) (make)
- readline (readline-gitAUR) (make)
- systemd (systemd-chromiumosAUR, systemd-selinuxAUR, sysupdated-systemd-gitAUR, systemd-fmlAUR, systemd-gitAUR) (make)
- systemd-libs (systemd-chromiumos-libsAUR, systemd-libs-selinuxAUR, sysupdated-systemd-libs-gitAUR, systemd-libs-fmlAUR, systemd-libs-gitAUR) (make)
- vala (vala-gitAUR) (make)
- wpa_supplicant (networkmanager-iwd-overlayAUR, wpa_supplicant-wepAUR, wpa_supplicant-gitAUR) (make)
- libx11 (libx11-gitAUR) (check)
- python-dbus (check)
Required by (1)
- networkmanager-support (requires nm-cloud-setup)
Sources (2)
Taijian commented on 2024-10-09 00:00 (UTC)
JoeyCorleone commented on 2024-06-22 07:03 (UTC)
Yes, confirmed. As per this comment by heftig:
Thanks to Fabian, as of 2.80.3-1, the development utilities requiring additional dependencies (python, python-packaging, libelf) have been split from glib2 into glib2-devel with proper depends. You may need to add glib2-devel to the makedepends of your packages to get them to build again. At the same time, consider removing python or python-packaging from the makedepends if they were only added to run gdbus-codegen, glib-genmarshal or glib-mkenums.
Taijian commented on 2024-06-21 09:48 (UTC) (edited on 2024-06-21 09:49 (UTC) by Taijian)
Well, in this case glib2-devel
should probably be added to makedepends
instead of glib2
?
dumbnerd commented on 2024-06-21 09:20 (UTC) (edited on 2024-06-21 09:21 (UTC) by dumbnerd)
If anyone else encounters this error during the build:
ERROR: Dependency 'gio-2.0' tool variable 'gdbus_codegen' contains erroneous value: '/usr/bin/gdbus-codegen'
Make sure you have the glib2-devel package installed.
JoeyCorleone commented on 2024-06-19 14:05 (UTC)
Build-time dependency gio-2.0 found: YES 2.80.3
Program /usr/bin/gdbus-codegen found: NO
NetworkManager/introspection/meson.build:66:14: ERROR: Dependency 'gio-2.0' tool variable 'gdbus_codegen' contains erroneous value: '/usr/bin/gdbus-codegen'
This is a distributor issue -- please report it to your gio-2.0 provider.
Anybody else getting this when trying to build?
buzo commented on 2021-12-15 16:24 (UTC)
Thanks Tomodoro for that research, and sorry for the delay. Turns out that the default location for polkit_agent_helper_1
is already the correct one, so I have omitted it completely.
saubakirov: I have no clue what these error messages mean – I hope this update fixes the build for you, too.
saubakirov commented on 2021-11-22 10:08 (UTC) (edited on 2021-11-22 10:08 (UTC) by saubakirov)
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
<deleted-account> commented on 2021-11-14 04:06 (UTC)
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.
WaterInMyLungs commented on 2021-11-14 00:14 (UTC)
receiving the same error as TornaxO7, can't find fix
TornaxO7 commented on 2021-10-25 09:50 (UTC)
I'm getting an error when I try to install it:
- exec meson setup --prefix /usr --libexecdir lib --sbindir bin --buildtype plain --auto-features enabled --wrap-mode nodownload -D b_lto=true -D b_pie=true NetworkManager build -D dbus_conf_dir=/usr/share/dbus-1/system.d -D dist_version=1.32.12-1 -D session_tracking_consolekit=false -D suspend_resume=systemd -D modify_system=true -D polkit_agent=true -D selinux=false -D iwd=true -D pppd_plugin_dir=/usr/lib/pppd/2.4.9 -D teamdctl=true -D nm_cloud_setup=true -D bluez5_dun=true -D ebpf=true -D config_plugins_default=keyfile -D netconfig=no -D config_dns_rc_manager_default=symlink -D vapi=true -D docs=true -D more_asserts=no -D more_logging=false -D qt=false The Meson build system Version: 0.60.0 Source dir: /home/tornax/.cache/yay/networkmanager-iwd/src/NetworkManager Build dir: /home/tornax/.cache/yay/networkmanager-iwd/src/build Build type: native build
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?
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.