Commit graph

7906 commits

Author SHA1 Message Date
Florian Fainelli
140b3f2fe0 lpeg: Fix build with external toolchains
We are not properly passing down TARGET_CFLAGS and TARGET_CPPFLAGS and
this can be noticed with external toolchains with the following build
error:

mipsel-linux-gnu-gcc -Wall -Wextra -pedantic -Waggregate-return
-Wcast-align -Wcast-qual -Wdisabled-optimization -Wpointer-arith
-Wshadow -Wsign-compare -Wundef -Wwrite-strings -Wbad-function-cast
-Wdeclaration-after-statement -Wmissing-prototypes -Wnested-externs
-Wstrict-prototypes  -O2 -std=c99 -I../lua/ -fPIC   -c -o lpvm.o lpvm.c
lpvm.c:10:17: fatal error: lua.h: No such file or directory
 #include "lua.h"
                 ^
compilation terminated.
make[4]: *** [lpvm.o] Error 1

Re-use COPT to pass our TARGET_CFLAGS and TARGET_CPPFLAGS

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2017-06-05 17:44:27 -07:00
Florian Fainelli
3ffd13fbd2 pciutils: Fix build with external toolchains
Passing GNU_TARGET_NAME implies that we have a 4-group triplet (e.g:
arm-openwrt-unknown-linux), and this works fine with pciutils'
lib/configure operating system detection. If we have an external
toolchain (e.g: mipsel-linux-gnu), the configure script is all confused
and ends-up picking up i386-ports, which is not valid on the target
architecture.

Finally, we are not passing TARGET_CPPFLAGS as we should, so let's do
that correctly.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2017-06-05 17:18:51 -07:00
Florian Fainelli
43269ecf01 klish: Fix build errors with external toolchains
We would first not be able to properly detect libxml2 because it's not
automatically found, fix that by explicitly linking against it (and zlib
a dependency). Then if we don't don't define X_OPEN_SOURCE=500, we would
run into the following build error:

clish/shell/shell_execute.c: In function 'clish_shell_exec_action':
clish/shell/shell_execute.c:309:18: error: 'sigignore' undeclared (first
use in this function)
  sa.sa_handler = sigignore; /* Empty signal handler */
                  ^
clish/shell/shell_execute.c:309:18: note: each undeclared identifier is
reported only once for each function it appears in

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2017-06-05 17:18:51 -07:00
Florian Fainelli
c6f813df2b libplist: Explicitly link with zlib
Fixes build errors with external toolchains that don't automatically
append STAGING_DIR to the library search path:

/opt/toolchains/stbgcc-4.8-1.5/lib/gcc/mipsel-linux-gnu/4.8.5/../../../../mipsel-linux-gnu/bin/ld:
warning: libz.so.1, needed by
/local/users/fainelli/openwrt/trunk/staging_dir/target-mipsel-linux-gnu_glibc/usr/lib/libxml2.so,
not found (try using -rpath or -rpath-link)
/local/users/fainelli/openwrt/trunk/staging_dir/target-mipsel-linux-gnu_glibc/usr/lib/libxml2.so:
undefined reference to `gzopen64'
/local/users/fainelli/openwrt/trunk/staging_dir/target-mipsel-linux-gnu_glibc/usr/lib/libxml2.so:
undefined reference to `gzdirect'
/local/users/fainelli/openwrt/trunk/staging_dir/target-mipsel-linux-gnu_glibc/usr/lib/libxml2.so:
undefined reference to `gzclose'
/local/users/fainelli/openwrt/trunk/staging_dir/target-mipsel-linux-gnu_glibc/usr/lib/libxml2.so:
undefined reference to `gzwrite'
/local/users/fainelli/openwrt/trunk/staging_dir/target-mipsel-linux-gnu_glibc/usr/lib/libxml2.so:
undefined reference to `gzdopen'
/local/users/fainelli/openwrt/trunk/staging_dir/target-mipsel-linux-gnu_glibc/usr/lib/libxml2.so:
undefined reference to `gzread'
collect2: error: ld returned 1 exit status
make[5]: *** [plistutil] Error 1
make[5]: Leaving directory
`/local/users/fainelli/openwrt/trunk/build_dir/target-mipsel-linux-gnu_glibc/libplist-1.13/tools'

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2017-06-05 17:18:51 -07:00
Florian Fainelli
5374d8635d squashfs-tools: Pass down TARGET_CFLAGS, CPPFLAGS and LDFLAGs
This fixes build errors with external toolchains that don't
automatically search for headers in STAGING_DIR:

mipsel-linux-gnu-gcc   -I. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-D_GNU_SOURCE -DCOMP_DEFAULT=\"gzip\" -Wall -DGZIP_SUPPORT   -c -o
gzip_wrapper.o gzip_wrapper.c
gzip_wrapper.c:27:18: fatal error: zlib.h: No such file or directory
 #include <zlib.h>
                  ^
compilation terminated.
make[3]: *** [gzip_wrapper.o] Error 1

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2017-06-05 17:18:51 -07:00
Florian Fainelli
fdd3f3f7f9 smartsnmpd: Properly pass down TARGET_CPPFLAGS
The smartsnmpd SConstruct file only accepts setting CFLAGS and does not
use CPPFLAGS, so pass both down using CFLAGS.

This fixes build errors with external toolchains that don't
automatically search for headers in $(STAGING_DIR).

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2017-06-05 17:18:51 -07:00
Florian Fainelli
d3c11a8f92 ices: Explicitly link with libvorbisidec
We link against libshout which already links against libvorbisidec, this
is needed to pass the configure script that checks against libshout
symbols availability.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2017-06-05 17:18:51 -07:00
Florian Fainelli
bb1c950c52 tgt: Pass down TARGET_CPPFLAGS and TARGET_LDFLAGS
Make sure we pass down TARGET_CPPFLAGS and TARGET_LDFLAGS to fix build
with external toolchains that don't automatically search for headers and
libraries in $(STAGING_DIR).

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2017-06-05 17:18:51 -07:00
Florian Fainelli
20891e8d42 tgt: Drop dependency against KERNEL_DIRECT_IO
This was removed in LEDE commit 0b7ed65cec8084bb98ae0e2758b7aca6c447cd4b
("kernel: remove out of tree direct-io disable hack")

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2017-06-05 17:18:51 -07:00
Daniel Golle
c0268da07b Merge pull request #4439 from commodo/netatalk-fix-perms
netatalk: fix config files permissions
2017-06-05 21:38:39 +02:00
Peter Wagner
9d4da9b172 alsa-lib: update to 1.1.4.1
Signed-off-by: Peter Wagner <tripolar@gmx.at>
2017-06-05 21:32:21 +02:00
Alexandru Ardelean
2675e6813c netatalk: fix config files permissions
After checking in the ipkg-install dir of netatalk,
it seems that the permissions it sets to the conf-files
are 644.

 # ls -la lede/build_dir/target-mips_24kc_musl/netatalk-3.1.11/ipkg-install/etc
 -rw-r--r-- 1 sandu sandu   226 iun  5 20:53 afp.conf
 -rw-r--r-- 1 sandu sandu  1948 iun  5 20:53 dbus-session.conf
 -rw-r--r-- 1 sandu sandu 25037 iun  5 20:53 extmap.conf

While the Package/netatalk/install build rule overrides
them to 600.

According to
* https://github.com/openwrt/packages/issues/4318
* https://forum.lede-project.org/t/help-with-apple-filesharing-protocol-for-time-machine/3259/5
this is a problem in some setups.

So, this patch changes them to what the netatalk
package creators intended initially (i.e. 644).

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-06-05 21:02:09 +03:00
Ted Hess
5a0236af95 mpd: Set USE_MIPS16=0. Workaround compiler error (Error: branch to a symbol in another ISA mode) on mips_24k
Signed-off-by: Ted Hess <thess@kitschensync.net>
2017-06-05 13:24:57 -04:00
Hauke Mehrtens
b83d982bcd Merge pull request #3769 from wvdakker/master
Added Shorewall(6)-lite.
2017-06-05 18:51:18 +02:00
Hauke Mehrtens
5f6b5be6c6 Merge pull request #4382 from commodo/python-lxml
[new package] python-lxml: add initial version (with python3 variant included)
2017-06-05 18:48:47 +02:00
Daniel Golle
794e917b1a cryptsetup: update to version 1.7.5
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2017-06-05 18:22:04 +02:00
Daniel Golle
8a33af3490 lvm2: update to version 2.02.168
Add HTTP mirror URL as well.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2017-06-05 18:22:04 +02:00
Philip Prindeville
9fdba25e04 openssh: if we don't generate a dsa key we shouldn't look for it
The earlier commit ea119211b2 removed 'dsa' as one of the ssh_host_*_key
types that got generated.  Problem was that it didn't remove that key
as one of the paths that the server looks for by default.  As a
consequence, your log file might fill up with messages like:

    2017-06-01T15:43:07-06:00 openwrt sshd[31929]: error: Could not load host key: /etc/ssh/ssh_host_dsa_key

The patch is forunately trivial.  Don't set the path for the dsa
key file in the server configuration.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2017-06-05 18:22:04 +02:00
Daniel Golle
d96c092a00 Revert "The earlier commit ea119211b2 removed 'dsa' as one of the ssh_host_*_key"
The author (@pprindeville) of the original commit noted that the wrong
commit was picked, see
325b7d2cd2 (commitcomment-22387528)
"Err... looks like the wrong fix got committed. I was hoping that this
commit d902e5d would have gone in instead."

This reverts commit 325b7d2cd2.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2017-06-05 18:22:03 +02:00
W. van den Akker
7c8990cac5
Add package shorewall(6)-lite.
Bump to version 5.1.4.1

Signed-off-by: W. van den Akker <wvdakker@wilsoft.nl>
2017-06-05 17:54:59 +02:00
Daniel Golle
93ae6db928 Merge pull request #4385 from D-Albers/btrfs-progs-4.11
btrfs-progs: update to 4.11
2017-06-05 17:32:58 +02:00
Daniel Golle
e2695ad819 Merge pull request #4437 from commodo/netatalk-switch-maintainer
netatalk: switch maintainer to me
2017-06-05 17:29:49 +02:00
Alexandru Ardelean
820d998a97 netatalk: switch maintainer to me
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-06-05 18:25:56 +03:00
Daniel Golle
bef4c67bd1 Merge pull request #4402 from commodo/netatalk-upgrade
netatalk: upgrade to version 3.1.11
2017-06-05 17:08:33 +02:00
Daniel Golle
a84489134e Merge pull request #4417 from diizzyy/patch-51
utils/pcsc-lite: Update to 1.8.21
2017-06-05 17:05:50 +02:00
Daniel Golle
af54e301a5 Merge pull request #4418 from diizzyy/patch-52
utils/ccid: Update to 1.4.27
2017-06-05 17:04:56 +02:00
Alexandru Ardelean
ff016a4802 python-lxml: add initial version (with python3 variant included)
This package requires libxml2 & libxslt to be built, has some
C code so it's not installable via pip.
It needs cross-compilation.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-06-05 18:00:24 +03:00
Daniel Golle
92b2a187bb Merge pull request #4099 from dangowrt/freeradius3-ldap
freeradius3: build and package support for LDAP
2017-06-05 16:51:38 +02:00
Hauke Mehrtens
3527f34b3e Merge pull request #4116 from lucize/clamsmtp
mail: add package clamsmtp
2017-06-05 16:39:05 +02:00
Hauke Mehrtens
f243d7c2bc Merge pull request #4284 from bmork/conserver
conserver: add advanced serial console package
2017-06-05 15:33:08 +02:00
Daniel Golle
3548a8b2c2 Merge pull request #4423 from pprindeville/lighttpd-use-procd
lighttpd: use procd-based init.d script
2017-06-05 14:47:32 +02:00
Hannu Nyman
28e97784b7 Merge pull request #4419 from danrl/wireguard
wireguard: version bump
2017-06-05 09:20:12 +03:00
Florian Fainelli
4eec08f225 fossil: Explicitly link with libm
Fixes the following build error with an external toolchain:

./bld/sqlite3.o: In function `fts5Bm25Function':
sqlite3.c:(.text+0x27234): undefined reference to `log'
./bld/piechart.o: In function `piechart_render':
piechart_.c:(.text+0x430): undefined reference to `sincos'
piechart_.c:(.text+0x47c): undefined reference to `sincos'
piechart_.c:(.text+0x548): undefined reference to `sincos'
collect2: error: ld returned 1 exit status
src/main.mk:526: recipe for target 'fossil' failed
make[3]: *** [fossil] Error 1

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2017-06-04 19:48:46 -07:00
Florian Fainelli
657be0880b libcanfestival: Don't force -fhonour-opts
-fhonour-copts is an OpenWrt/LEDE toolchain specific patch, forcing it
will make external toolchain fail to build this package. What we need
instead is a way to override CFLAGS from the different Makefile files so
rename the patch to illustrate that.

Fixes: 317c2469d9 ("libcanfestival: fix several small build process issues")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2017-06-04 19:48:46 -07:00
Luiz Angelo Daros de Luca
a8a7a2329c Merge pull request #4412 from luizluca/sane-backends-1.0.27
sane-backends: bump to 1.0.27
2017-06-04 23:31:19 -03:00
Florian Fainelli
b493f36887 linuxptp: Remove unnecessary netdb.h includes
This backports a patch that has been accepted upstream in linuxptp:
8b61aa2c3f3103db1d4ca1d1e49bb4f8831c1abf ("udp: Avoid including
netdb.h") to fix build errors with external glibc toolchains that
provide rpc/types.h.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2017-06-04 14:01:27 -07:00
Michael Heimpold
fe125bd55f php7-pecl-http: add a patch to fix a segfault during php startup
The extensions tries to register some string constants after quering
version strings from underlaying libcurl. However, depending on libcurl's
configuration these strings could also be NULL, which was not handled
properly.

An upstream pull request for this patch is waiting for review.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2017-06-04 21:34:40 +02:00
Bjørn Mork
f42caaffb8 conserver: add advanced serial console package
Conserver is an application that allows multiple users to use
serial consoles at the same time, with logging.  It has a client-
server design which makes it easy to manage a distributed set
of serial consoles.  Logging makes post-crash analyses easier.

Signed-off-by: Bjørn Mork <bjorn@mork.no>
2017-06-04 11:22:43 +02:00
Hauke Mehrtens
93811f98a0 Merge pull request #4220 from p-wassi/atftp
net/atftp: update source URL and checksum
2017-06-04 00:29:40 +02:00
Hauke Mehrtens
aa7f25d795 Merge pull request #4274 from DocLM/gphoto2
gphoto2 and libgphoto2: add package
Maintainer: me / @DocLM
Compile tested: (ramips, mt7688, LEDE 17.01.0)
Run tested: (ramips, mt7688, LEDE 17.01.0)

Description:
Add libgphoto2 with modular camlibs and gphoto2 packages
2017-06-03 23:32:04 +02:00
Ted Hess
870a621107 Merge pull request #4427 from diizzyy/patch-57
net/socat: Update to 1.7.3.2
2017-06-03 15:23:22 -04:00
Peter Wagner
325b7d2cd2 The earlier commit ea119211b2 removed 'dsa' as one of the ssh_host_*_key
types that got generated.  Problem was that it didn't remove that key
as one of the paths that the server looks for by default.  As a
consequence, your log file might fill up with messages like:

    2017-06-01T15:43:07-06:00 openwrt sshd[31929]: error: Could not load host key: /etc/ssh/ssh_host_dsa_key

The patch is forunately trivial.  Don't set the path for the dsa
key file in the server configuration.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
Signed-off-by: Peter Wagner <tripolar@gmx.at>
2017-06-03 01:04:27 +02:00
champtar
52e04b2642 Merge pull request #4415 from diizzyy/patch-49
libs/sqlite3: Update to 3190200
2017-06-02 15:24:24 +02:00
Daniel Engberg
076eba07f4 net/socat: Update to 1.7.3.2
Update socat to 1.7.3.2
Remove SSLv3 patch, workaround added upstream
Remove inclusion of stddef.h, fix added upstream
Replace obsolete tarball hash variable with PKG_HASH

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
2017-06-02 13:43:06 +02:00
Hannu Nyman
29e507f26b Merge pull request #4424 from diizzyy/patch-56
utils/tmux: Update to 2.5
2017-06-02 13:54:11 +03:00
Philip Prindeville
79f9f1a3ec lighttpd: use procd-based init.d script
This will allow procd to restart the service if it crashes or otherwise
exits.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
2017-06-01 20:12:58 -06:00
Daniel Engberg
dacc820fe4 utils/tmux: Update to 2.5
Update tmux to 2.5
Drop patch
Update homepage URL
Use toolchain functionality for configuring and compiling

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
2017-06-02 02:58:40 +02:00
Luka Perkov
31db48a506 Merge pull request #4405 from sartura/symlink-soversion-libnetconf2
libnetconf2: modify copy of .so files
2017-06-01 15:55:52 +02:00
Luka Perkov
a5d16f856c Merge pull request #4404 from sartura/symlink-soversion-libyang
libyang: modify copy of .so files
2017-06-01 15:55:17 +02:00
Luka Perkov
563772779d Merge pull request #4406 from sartura/symlink-soversion-libssh
libssh: modify copy of .so files
2017-06-01 15:54:28 +02:00