Skip to contentSkip to conversation

package/network-manager: NM needs isc-dhcpc or dhcpcd

PATCH New Nathaniel Roach 3 participants 3 messages Nov 26, 2014

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 package/network-manager: NM needs isc-dhcpc or dhcpcd

NM only currently supports isc-dhcpc, dhcpcd and dhclient as clients because NM communicates with the client through DBus, and support for clients needs to be written in. (as per files in src/dhcp-manager)

Buildroot's default, udhcpc is not supported, and dhclient is not in buildroot.

Add the dependencies to Config.in, favoring dhcpcd as default due to size.

----
Changes v2 -> v3:
Both as noted by Baruch
- The clients aren't a build time dependency, so we don't need to build them first.
- Reworded the commit message to clarify NM's requirements.

Changes v1 -> v2:
- Switched to "select" from "depends on" (As recommended by Baruch). Uses DHCPCD as default as it's the lighter option.
- Because of the above, the edit to "NM needs ..." is no longer needed.

---
 package/network-manager/Config.in | 1 +
 1 file changed, 1 insertion(+)
package/network-manager/Config.in +1 -0
index 0ed6ca5..a3e6e33 100644
@@ -8,6 +8,7 @@ config BR2_PACKAGE_NETWORK_MANAGER
 	depends on BR2_USE_MMU # dbus
 	depends on BR2_PACKAGE_HAS_UDEV
 	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_7
+	select BR2_PACKAGE_DHCPCD if !BR2_PACKAGE_DHCP_CLIENT
 	select BR2_PACKAGE_DBUS
 	select BR2_PACKAGE_DBUS_GLIB
 	select BR2_PACKAGE_GNUTLS
Signature · 1 line
2.1.3
#1 lore raw

PATCH v3 1/1 package/network-manager: NM needs isc-dhcpc or dhcpcd

Quoted 10 lines · Nathaniel Roach

NM only currently supports isc-dhcpc, dhcpcd and dhclient as clients because NM communicates with the client through DBus, and support for clients needs to be written in. (as per files in src/dhcp-manager)

Buildroot's default, udhcpc is not supported, and dhclient is not in buildroot.

Add the dependencies to Config.in, favoring dhcpcd as default due to size.

Just to clarify, dhclient IS the isc dhcp dhcp client. There's no such thing as a separate dhclient package. Regards.

#2 lore raw

PATCH v3 1/1 package/network-manager: NM needs isc-dhcpc or dhcpcd

In reply to Nathaniel Roach
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Nathaniel" == Nathaniel Roach <[email protected]> writes:

NM only currently supports isc-dhcpc, dhcpcd and dhclient as clients because NM communicates with the client through DBus, and support for clients needs to be written in. (as per files in src/dhcp-manager)

Quoted 5 lines

Buildroot's default, udhcpc is not supported, and dhclient is not in buildroot.

Add the dependencies to Config.in, favoring dhcpcd as default due to size.

Committed with the description tweaked to not refer to dhclient as suggested by Gustavoz, thanks.

Signature · 1 line
Bye, Peter Korsgaard