package/network-manager: NM needs ISC-DHCPC or DHCPCD
PATCH 1/1 package/network-manager: NM needs ISC-DHCPC or DHCPCD
As NM communicates with the dhcp client through DBus, it doesn't support any old client.
Add the dependencies to Config.in, and ensure that they are built beforehand.
---
Two things I'm a little wary of:
- The new "you need to enable x,y,z..." line is /huge/, is there a nice way around this?
- This adds unecessary things to static-ip configured systems, but then again they are using NM for that (instead of ifup/down) so maybe this is a non issue?
--- package/network-manager/Config.in | 6 ++++-- package/network-manager/network-manager.mk | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-)
package/network-manager/Config.in +4 -2
@@ -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 + depends on BR2_PACKAGE_DHCP_CLIENT || BR2_PACKAGE_DHCPCD select BR2_PACKAGE_DBUS select BR2_PACKAGE_DBUS_GLIB select BR2_PACKAGE_GNUTLS
@@ -52,9 +53,10 @@ config BR2_PACKAGE_NETWORK_MANAGER_PPPD This option enables support for PPPD daemon endif -comment "NetworkManager needs udev /dev management and a toolchain w/ IPv6, largefile, wchar, threads, headers >= 3.7" +comment "NetworkManager needs udev /dev management and a toolchain w/ IPv6, largefile, wchar, threads, headers >= 3.7 and ISC DHCP client or DHCPCD" depends on !BR2_avr32 depends on BR2_USE_MMU depends on !BR2_INET_IPV6 || !BR2_LARGEFILE || !BR2_USE_WCHAR || \ !BR2_TOOLCHAIN_HAS_THREADS || \ - !BR2_PACKAGE_HAS_UDEV || !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_7 + !BR2_PACKAGE_HAS_UDEV || !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_7 || \ + !(BR2_PACKAGE_DHCP_CLIENT || BR2_PACKAGE_DHCPCD)
package/network-manager/network-manager.mk +2 -0
@@ -57,10 +57,12 @@ endif ifeq ($(BR2_PACKAGE_DHCP_CLIENT),y) NETWORK_MANAGER_CONF_OPTS += --with-dhclient=/usr/sbin/dhclient +NETWORK_MANAGER_DEPENDENCIES += dhcp endif ifeq ($(BR2_PACKAGE_DHCPCD),y) NETWORK_MANAGER_CONF_OPTS += --with-dhcpcd=/usr/sbin/dhcpcd +NETWORK_MANAGER_DEPENDENCIES += dhcpcd endif # uClibc by default doesn't have backtrace support, so don't use it
Signature · 1 line
2.1.3
PATCH 1/1 package/network-manager: NM needs ISC-DHCPC or DHCPCD
Hi Nathaniel,
Quoted 24 lines · Nathaniel Roach
As NM communicates with the dhcp client through DBus, it doesn't support any old client.
Add the dependencies to Config.in, and ensure that they are built beforehand.
---
Two things I'm a little wary of:
- The new "you need to enable x,y,z..." line is /huge/, is there a nice way around this?
- This adds unecessary things to static-ip configured systems, but then again they are using NM for that (instead of ifup/down) so maybe this is a non issue?Signed-off-by Nathaniel Roach <[email protected]>--- package/network-manager/Config.in | 6 ++++-- package/network-manager/network-manager.mk | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-)package/network-manager/Config.in +0
-0
package/network-manager/Config.in config BR2_PACKAGE_NETWORK_MANAGER · line 11
Quoted 4 lines
package/network-manager/Config.in +1
-0@@ -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 + depends on BR2_PACKAGE_DHCP_CLIENT || BR2_PACKAGE_DHCPCD
We usually use 'select' for this kind of dependencies. Something like (untested):
select BR2_PACKAGE_DHCPCD if !BR2_PACKAGE_DHCP_CLIENT
baruch
Signature · 3 lines
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -PATCH 1/1 package/network-manager: NM needs ISC-DHCPC or DHCPCD
Hi Baruch,
Quoted 9 lines · Baruch Siach
Hi Nathaniel,
package/network-manager/Config.in config BR2_PACKAGE_NETWORK_MANAGER · line 11
Quoted 2 lines · Nathaniel Roach
package/network-manager/Config.in +1
-0depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_7 + depends on BR2_PACKAGE_DHCP_CLIENT || BR2_PACKAGE_DHCPCDWe usually use 'select' for this kind of dependencies. Something like (untested):
Quoted 4 lines
select
BR2_PACKAGE_DHCPCDif !BR2_PACKAGE_DHCP_CLIENTbaruch
Ah, okay. I was wondering about that, thanks.
I'll leave this version up for now as my other questions are still valid. Furthermore, is there a preference as to DHCPCD vs ISC?
Thanks, Nathaniel.
PATCH 1/1 package/network-manager: NM needs ISC-DHCPC or DHCPCD
Hi Nathaniel,
Quoted 8 lines · Nathaniel Roach
Quoted 7 lines · Baruch Siach
package/network-manager/Config.in config BR2_PACKAGE_NETWORK_MANAGER · line 11
Quoted 2 lines · Nathaniel Roach
package/network-manager/Config.in +1
-0depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_7 + depends on BR2_PACKAGE_DHCP_CLIENT || BR2_PACKAGE_DHCPCDWe usually use 'select' for this kind of dependencies. Something like (untested):
Quoted 6 lines
Quoted 1 line
select
BR2_PACKAGE_DHCPCDif !BR2_PACKAGE_DHCP_CLIENTAh, okay. I was wondering about that, thanks.
I'll leave this version up for now as my other questions are still valid. Furthermore, is there a preference as to DHCPCD vs ISC?
I think we should default to the more lightweight one. I guess it's dhcpcd in this case.
baruch
Signature · 3 lines
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -PATCH 1/1 package/network-manager: NM needs ISC-DHCPC or DHCPCD
Hi Baruch,
On 26/11/14 14:57, Baruch Siach wrote:> Hi Nathaniel,
Quoted 10 lines · Nathaniel Roach
Quoted 8 lines · Baruch Siach
Quoted 7 lines · Nathaniel Roach
package/network-manager/Config.in config BR2_PACKAGE_NETWORK_MANAGER · line 11
Quoted 2 lines
package/network-manager/Config.in +1
-0depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_7 + depends on BR2_PACKAGE_DHCP_CLIENT || BR2_PACKAGE_DHCPCDWe usually use 'select' for this kind of dependencies. Something like (untested):
Quoted 8 lines
Quoted 6 lines
Quoted 1 line
select
BR2_PACKAGE_DHCPCDif !BR2_PACKAGE_DHCP_CLIENTAh, okay. I was wondering about that, thanks.
I'll leave this version up for now as my other questions are still valid. Furthermore, is there a preference as to DHCPCD vs ISC?
I think we should default to the more lightweight one. I guess it's
dhcpcd in
Quoted 4 lines
this case.
baruch
Cheers. The line you wrote worked exactly as is, and as I've just realised that my first question is no longer valid, I'll update the patch.
Nathaniel.
PATCH 1/1 package/network-manager: NM needs ISC-DHCPC or DHCPCD
In reply to Baruch SiachQuoted 5 lines · Baruch Siach
Quoted 5 lines
Quoted 4 lines
We usually use 'select' for this kind of dependencies. Something like (untested):
select
BR2_PACKAGE_DHCPCDif !BR2_PACKAGE_DHCP_CLIENT
Quoted 7 lines
Quoted 4 lines
Ah, okay. I was wondering about that, thanks.
I'll leave this version up for now as my other questions are still valid. Furthermore, is there a preference as to DHCPCD vs ISC?
I think we should default to the more lightweight one. I guess it's dhcpcd in this case.
+1, the ISC DHCP 4.1.x series even though ESV (extended support) will EOL (end-of-life) by december, and even though i don't know which one will be the new ESV (likely 4.3.x) 4.2.x+ bundles bind libraries, so ouch for bloat.
Regards.