Commit Graph

10486 Commits

Author SHA1 Message Date
Michael Heimpold 98edb6e210 php7: fix load order of mysqli extension
This problem was reported by Teun Lubberhuizen, thanks!

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2018-07-21 23:42:15 +02:00
Michael Heimpold cdf150d0ca php7: update to 7.2.7
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2018-07-21 23:42:08 +02:00
Rafał Miłecki 81332c4765 php7: add package dependency on zoneinfo-core
Having "select PACKAGE_zoneinfo-core" wasn't enough for builds without
php7-cli=y or php7-cgi=y. It didn't result in installing zoneinfo-core
when using "opkg install" (during runtime or when building images with
CONFIG_TARGET_PER_DEVICE_ROOTFS).

Missing zoneinfo results in PHP fatal errors, e.g.:
Fatal error: DateTime::createFromFormat(): Timezone database is corrupt - this should *never* happen!

For years users were told to manually install zoneinfo-core package.
This problem was hidden for some time (including 17.01 release) due to
disabled support for CONFIG_PHP7_SYSTEMTZDATA. It's now back as support
for --with-system-tzdata was enabled again.

The proper solution is to simply make php7 package depend on
zoneinfo-core when PHP7_SYSTEMTZDATA is used.

Fixes: 84e5012e88 ("php7: re-enable system timezone data usage")
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
2018-07-21 23:41:56 +02:00
Sebastian Kemper b65a759e80 php7: use mysqlnd
This is in anticipation of the MariaDB upgrade from mariadb 10.1.x to
10.2.x. With the latter the PHP MySQL plugins fail to compile, e.g.:

In file included from /home/equeiroz/src/openwrt-asus/build_dir/target-mipsel_74kc_musl/php-7.2.6/ext/mysqli/php_mysqli_structs.h:63:0,
                 from /home/equeiroz/src/openwrt-asus/build_dir/target-mipsel_74kc_musl/php-7.2.6/ext/mysqli/mysqli.c:34:
/home/equeiroz/src/openwrt-asus/staging_dir/target-mipsel_74kc_musl/usr/include/mysql/my_global.h:3:2: warning: #warning This file should not be included by clients, include only <mysql.h> [-Wcpp]
 #warning This file should not be included by clients, include only <mysql.h>
  ^~~~~~~
In file included from /home/equeiroz/src/openwrt-asus/build_dir/target-mipsel_74kc_musl/php-7.2.6/ext/mysqli/php_mysqli_structs.h:79:0,
                 from /home/equeiroz/src/openwrt-asus/build_dir/target-mipsel_74kc_musl/php-7.2.6/ext/mysqli/mysqli.c:34:
/home/equeiroz/src/openwrt-asus/staging_dir/target-mipsel_74kc_musl/usr/include/mysql/my_sys.h:3:2: warning: #warning This file should not be included by clients, include only <mysql.h> [-Wcpp]
 #warning This file should not be included by clients, include only <mysql.h>
  ^~~~~~~
In file included from /home/equeiroz/src/openwrt-asus/build_dir/target-mipsel_74kc_musl/php-7.2.6/ext/mysqli/mysqli.c:34:0:
/home/equeiroz/src/openwrt-asus/build_dir/target-mipsel_74kc_musl/php-7.2.6/ext/mysqli/php_mysqli_structs.h:82:10: fatal error: my_list.h: No such file or directory
 #include <my_list.h>

Upstream seems unlikely to fix this, see
https://bugs.php.net/bug.php?id=75612. In the bug report it is suggested
to not use libmysqlclient/libmariadbclient and instead utilize mysqlnd
(MySQL Native Driver) provided by PHP. This is the default anyway.

So add the mysqlnd module and remove the libmariadbclient depends.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-07-21 23:41:47 +02:00
Michael Heimpold 7e33126dc0 php7: update to 7.2.6
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2018-07-21 23:41:32 +02:00
Michael Heimpold ac5ee1ffb1 php7: replace libmysqlclient dependencies with libmariadbclient
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2018-07-21 23:41:22 +02:00
Hannu Nyman fd57c8cfeb irqbalance: fix AARCH64 compilation
AARCH64 compilation fails due to upstream bug in 1.2.0
that has been later fixed. Backport the fix commit.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit 0cb6e15f01)
2018-07-19 21:40:14 +03:00
Stan Grishin 45f6a81fb2 simple-adblock: better download processing, luci-app integration, lists optimization, firewall integration
Signed-off-by: Stan Grishin <stangri@melmac.net>
(cherry picked from commit ac34bf910e)
2018-07-17 22:08:00 +03:00
Hannu Nyman d3b43be6c9 Merge pull request #6509 from jefferyto/slide-switch-0.9.2-openwrt-18.06
[openwrt-18.06] slide-switch: update to latest version
2018-07-17 21:49:25 +03:00
Jeffery To 1fb64b107d slide-switch: update to latest version
This also changes PKG_SOURCE to use .tar.xz, and changes the copyright
line. (I believe this is more accurate, as I haven't done a copyright
assignment.)

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2018-07-18 02:14:04 +08:00
Eneas U de Queiroz 787a5f9c55 gcc: enable compilation with gcc 7.x
Defining _GLIBCXX_INCLUDE_NEXT_C_HEADERS instructs gcc 7.x libstdc++ to
include the system's stdlib.h and math.h, and not their own.

Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>

(cherry picked from commit 054d5273cb)
2018-07-16 16:46:06 +03:00
Dirk Brenken 05b9aceb00 Merge pull request #6444 from EricLuehrsen/unbound_1806_doc
[openwrt-18.06] unbound: add README recipe for DNS/TLS outside of UCI
2018-07-09 07:49:33 +02:00
Eric Luehrsen bd4cfc3d63 unbound: add README recipe for DNS/TLS outside of UCI
Unbound UCI in OpenWrt 18.06 has limited forward configuration lacking
DNS over TLS connection setup tools. User override files
'unbound_srv.conf' and 'unbound_ext.conf' can implement this.

Signed-off-by: Eric Luehrsen <ericluehrsen@gmail.com>
2018-07-09 01:26:54 -04:00
Hannu Nyman 4fa0437fd5 Merge pull request #6399 from EricLuehrsen/unbound_1806rc1
[openwrt-18.06] unbound: update README.md to be consistent OpenWrt Wiki
2018-07-05 09:58:10 +03:00
Eric Luehrsen 4e4534f1fb unbound: update README.md to be consistent with OpenWrt Wiki
Signed-off-by: Eric Luehrsen <ericluehrsen@gmail.com>
2018-07-04 15:21:54 -04:00
Hannu Nyman 3175b77b6d Merge pull request #6384 from micmac1/1806-mariadb
[18.06] mariadb: bump to 10.1.34 + procd init
2018-07-03 19:29:03 +03:00
Sebastian Kemper a4df7b1db3 mariadb: convert init script to procd
- also adds mariadb user to run the server as
- tweaks the default configuration a bit

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-06-30 20:05:26 +02:00
Sebastian Kemper a26540d61c mariadb: bump to 10.1.34
- bump version (100% backward compatible)
- add modules
- small misc improvements

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-06-30 20:01:11 +02:00
Hannu Nyman 38a224d3fb Merge pull request #6373 from jefferyto/golang-compile-arguments-openwrt-18.06
[openwrt-18.06] golang: Makefile improvements
2018-06-29 18:11:13 +03:00
David Woodhouse 4618427deb rtl-sdr: fix build when GCC decides not to emit inlines
Maybe we should use something other than -Os for this code anyway; it's
generally quite CPU-intensive.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2018-06-29 14:31:23 +00:00
champtar 8fbe9d9578 Merge pull request #6380 from aparcar/prom-0161806
[openwrt-18.06] prometheus-node-exporter-lua: adapt 0.16 metrics
2018-06-29 11:42:10 +02:00
Paul Spooren fcaf255d0f prometheus-node-exporter-lua: adapt 0.16 metrics
Prometheus introduced some new conventions on how to name metrics.
Read here https://prometheus.io/docs/practices/naming/

This PR breaks compatibility with past versions, just like the officials
node exporter! 💥

Signed-off-by: Paul Spooren <mail@aparcar.org>
2018-06-29 18:21:03 +09:00
Jeffery To 5d289ccd6a golang: Download bootstrap source directly, use golang-specific mirrors
These changes are a result of this conversation:
https://github.com/openwrt/packages/commit/19292650241de44b4f12fb02f0e11127f069d2b4#r29531922

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2018-06-29 15:04:26 +08:00
Jeffery To 665f3d2bbc golang: Allow additional arguments when compiling Go packages
This updates GoPackage/Build/Compile in golang-package.mk to accept
additional arguments that are passed to the go command line.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2018-06-28 03:11:56 +08:00
Stijn Tintel 8b76a11e67 strongswan: bump to 5.6.3
Fixes the following CVEs:
- CVE-2018-5388
- CVE-2018-10811

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
(cherry picked from commit 7bb68c74e2)
2018-06-27 16:33:58 +03:00
Hannu Nyman 6dbfae07f5 Merge pull request #6351 from EricLuehrsen/unbound_20180625_1806
[openwrt-18.06] unbound: limit outside script source to init funciton scope
2018-06-27 07:17:07 +03:00
Jeffery To 7789257342 golang: update to 1.10.3, add mirrors
This also changes the bootstrap source URL to the official GitHub
mirror, to make building easier for places where Google sites aren't
accessible. Fixes #6326.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2018-06-27 11:39:26 +08:00
Stijn Tintel d48cf92735 Merge pull request #6363 from dwmw2/domoticz-18.06
Domoticz update for 18.06
2018-06-27 00:15:29 +02:00
Hannu Nyman d471ad56c2 Merge pull request #6349 from jefferyto/python-package-updates-openwrt-18.06
[openwrt-18.06] Python package updates
2018-06-26 21:54:05 +03:00
Eric Luehrsen eb80360e57 unbound: limit outside script source to init funciton scope
Signed-off-by: Eric Luehrsen <ericluehrsen@gmail.com>
2018-06-25 20:45:35 -04:00
Jeffery To 9250b7283a twisted: update to 18.4.0, refresh patches
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2018-06-26 04:58:14 +08:00
Jeffery To d25196bc28 python-zope-interface: update to 4.5.0
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2018-06-26 04:57:35 +08:00
Jeffery To e7af1e992d python-pyasn1: update to 0.4.3
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2018-06-26 04:57:25 +08:00
Jeffery To 8c545ae8dd python-ply: update to 3.11
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2018-06-26 04:57:16 +08:00
Jeffery To dcdc8807a0 python-ipaddress: update to 1.0.22
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2018-06-26 04:57:04 +08:00
Jeffery To 4d225bb519 python-hyperlink: update to 18.0.0
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2018-06-26 04:56:53 +08:00
Jeffery To c5a5b3c74c python-automat: update to 0.7.0, refresh patches
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2018-06-26 04:56:38 +08:00
Jeffery To 2a7c48c7fa python-attrs: update to 18.1.0
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2018-06-26 04:56:11 +08:00
David Woodhouse 9b390cb468 domoticz: update to 4.9700 stable release, enable Python, fix compression
The files in ozwcp/ shouldn't be compressed as there's no gzip handling
for those.

Also enable Python support — since it can dynamically link with
libpython optionally, it's harmless to enable it. Those who want Python
plugins can use it. I still want lua-based hardware plugins though.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2018-06-25 16:56:19 +01:00
David Woodhouse 7785d2a444 domoticz: fix Onkyo custom command handling from dzVents
https://github.com/domoticz/domoticz/pull/2386

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2018-06-25 15:26:25 +01:00
David Woodhouse 394e676d27 domoticz: update to 3.9571 and clean up FHS handling
Upstream has merged a simplified version of the FHS patch, with a few
changes...

Scripts are actually configuration. There are examples, but the point is
that you write your own.

So they should live in the data directory (e.g. /var/lib/domoticz) not
in /usr/share/domoticz. The only exception is the dzVents runtime.

So.... the upstream patch handles the dzVents runtime bit. Drop the part
of our patch which added -scripts, because it can just be based in the
userdata directory and we don't need to change that.

Ship the default scripts/ directory in /etc/domoticz/scripts, and on
startup make a *symlink* to it from /var/lib/domoticz/scripts.

Symlink from /etc/domoticz/scripts/dzVents{data,generated_scripts} to
temporary directories under /var/lib/domoticz/dzVents so that those
directories (which are written to by Domoticz) don't land on the root
file system. Anyone with a writeable file system who *wants* the data/
directory to be persistent, can change that. Just as they can change
the userdata config option to point to a real file system somewhere.

Also drop the renaming of the OpenZWave Config/ directory. It's purely
cosmetric so there's no need for us to carry that change. It can go
upstream first, if it really offends anyone.

Drop the patches which are now merged upstream, and turn off the newly
added USE_OPENSSL_STATIC. Add -noupdates to the command line.

Finally, gzip the static www files to save space. In the common case,
clients will use "Accept-Encodiong: gzip" and Domoticz will serve them
as-is. It can also decompress on the fly if it really has to, but now we
aren't asking it to *compress* on the fly, which is probably a losing
proposition on an OpenWRT box.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2018-06-25 15:26:25 +01:00
David Woodhouse 1298bf851a domoticz: build with -flto
This makes quite a significant difference to the executable size:

   text    data     bss     dec     hex filename
7921421   87804   31692 8040917  7ab1d5 domoticz
5862321	  86180	  31212	5979713	 5b3e41	domoticz-lto

As an added bonus, it still seems to work.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2018-06-25 15:26:25 +01:00
David Woodhouse d4853c5644 domoticz: support -ssldhparam config/command line option
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2018-06-25 15:26:25 +01:00
David Woodhouse fa714dc793 domoticz: use 'ln -sf' in serial hotplug script
Otherwise, stale symlinks don't get replaced

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2018-06-25 15:26:25 +01:00
Hannu Nyman 38077f8db4 Merge pull request #6338 from EricLuehrsen/unbound_173_1806
[openwrt-18.06] unbound: update to 1.7.3
2018-06-24 21:41:40 +03:00
Eric Luehrsen 3f00ecb725 unbound: update to 1.7.3
Signed-off-by: Eric Luehrsen <ericluehrsen@hotmail.com>
2018-06-23 12:47:43 -04:00
Daniel Golle b94f4f8dce ola: enable and ship web stuff
Make OLA more useful for untrained users which depend on the built-in
webserver. We may split the ola package into smaller parts to allow
not having web-stuff in case this breaks the space-constraints for some
users.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2018-06-23 11:12:22 +02:00
Daniel Golle e4142dee1b ola: implement Host/Install for ola_protoc_plugin
Should fix build with SDK on buildbots.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2018-06-23 11:12:22 +02:00
Daniel Golle 5268d788f5 ola: update to 0.10.6, fix build with recent protobuf
Recent protobuf requires C++11 while OLA was forcing C++98 in order
to keep using auto_ptr without getting warnings... Use gnu++11 to make
everyone happy and live with the warnings about auto_ptr being
deprecated.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2018-06-23 11:12:22 +02:00
champtar d83dc7cfb8 Merge pull request #6327 from aparcar/fancy_backport
prometheus-node-exporter-lua: handle fancy release backport to 18.06
2018-06-21 14:29:54 +02:00