ffulm / firmware

The Firmware for the Freifunk Ulm Community
http://www.freifunk-ulm.de/
Other
11 stars 14 forks source link

defaults in .config are ignored #4

Closed saraedum closed 9 years ago

saraedum commented 9 years ago

The defaults set in .config are ignored when changing the Target System through make menuconfig. In other words, if you do the following:

cp firmware/.config .
make defconfig
make menuconfig (change Target System)

then dnsmasq is again selected.

saraedum commented 9 years ago

(This is not a bug in the firmware, but in the README.)

mwarning commented 9 years ago

Yes, this is a sneaky problem. Any idea how to fix this? Maybe we should create a patch.

mwarning commented 9 years ago

Maybe something like this helps:

From 29a8abe25759e235e02ab70f2fba1693f65b7fb8 Mon Sep 17 00:00:00 2001
From: Moritz Warning <moritzwarning@web.de>
Date: Tue, 27 Jan 2015 02:29:24 +0100
Subject: [PATCH 1/1] dnsmasq: make dhcpv6 support the default

---
 package/network/services/dnsmasq/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/package/network/services/dnsmasq/Makefile b/package/network/services/dnsmasq/Makefile
index 17af3c5..bc195eb 100644
--- a/package/network/services/dnsmasq/Makefile
+++ b/package/network/services/dnsmasq/Makefile
@@ -34,7 +34,8 @@ endef

 define Package/dnsmasq
 $(call Package/dnsmasq/Default)
-  VARIANT:=nodhcpv6
+  DEPENDS:=@IPV6 +kmod-ipv6
+  VARIANT:=dhcpv6
 endef

 define Package/dnsmasq-dhcpv6
-- 
2.1.4
mwarning commented 9 years ago

Let's see if someone knows the answer: https://forum.openwrt.org/viewtopic.php?pid=263159

mwarning commented 9 years ago

ok, I've made a branch with fix. Needs to be tested: https://github.com/ffulm/firmware/tree/dnsmasq

mwarning commented 9 years ago

I have submitted a patch that has a different approach: https://dev.openwrt.org/ticket/18850 It also needs to be tested.

mwarning commented 9 years ago

Fixed in 5182decfbeccd390b69c494a75748bb2036090b8 for now.