openwrt/package
Tony Ambardar 73d8a6ab76 base-files: fix UCI config parsing and callback handling
There are several long-standing issues present in the UCI shell API as
documented in https://wiki.openwrt.org/doc/devel/config-scripting. They
relate both to high-level, user-defined callback functions used to
process UCI config files, and also to low-level functions used within
scripts generally.

The related problems have been encountered now and in the past, e.g.
https://forum.openwrt.org/viewtopic.php?id=54295, and include:

a) UCI parsing option() function and user-defined option_cb() callbacks
being erroneously called during processing of "list" config file entries;

b) normal usage of the low-level config_set() unexpectedy calling any
defined option_cb() if present; and

c) handling of the list_cb() not respecting the NO_CALLBACK variable.

Root causes include a function stack "inversion", where the low-level
config_set() function incorrectly calls the high-level option() function,
intended only for processing the "option" keyword of UCI config files.

This change addresses the inversion and other issues, making the option
handling code more consistent and smaller, and simplifying developers'
usage of UCI callbacks.

Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com> [PKG_RELEASE increase]
2018-06-06 15:00:08 +02:00
..
base-files base-files: fix UCI config parsing and callback handling 2018-06-06 15:00:08 +02:00
boot oxnas: bring in new oxnas target 2018-06-01 15:45:06 +02:00
devel perf: restrict libunwind dependency to archs that actually support libunwind 2018-02-25 17:03:42 +01:00
firmware ath10k-firmware: Fix two more typos 2018-05-30 06:33:19 +02:00
kernel kernel: modules: package module for Exar 8250 UARTs 2018-06-05 15:27:36 +02:00
libs nettle: bump to 3.4 2018-06-01 08:39:59 +02:00
network hostapd: properly build hostapd-only SSL variants 2018-06-05 15:33:35 +02:00
system mtd: mark as nonshared to fix FS#484 2018-06-01 08:29:11 +02:00
utils mbedtls: update to version 2.9.0 2018-05-22 20:47:20 +02:00
Makefile imagebuilder: reuse rootfs preparation from rootfs.mk 2018-03-07 09:59:08 +01:00