Commit graph

3950 commits

Author SHA1 Message Date
Jo-Philipp Wich
fdde981522 net-snmp: fix musl compatibility
Fixup `iwlib.h` to not consider an musl environment to be an unsupported
platform.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-06-26 17:47:33 +02:00
Jo-Philipp Wich
d9e391bbce Merge pull request #1480 from jow-/postfix-musl-compat
postfix: fix musl compatibility
2015-06-26 17:28:40 +02:00
Jo-Philipp Wich
cbf11196b7 ntpd: fix fortify source compatibility
The ntpd package ships autoconf macros which attempt to test for the C99
compliance of `snprintf()` and `vsnprintf()`.

Those macros unconditionally consider the functions not compliant in a cross
compile setting and therfore break all subsequent configure tests because
the `snprintf` and `vsnprintf` symbols are shadowed with `#define` directives
redirecting them to their respectiv gnulib replacements.

The fortify source headers in turn will `#undef` those defines when wrapping
the associated functions and therfore cause all `conftest` programs to emit
a failure.

Pass the required magic autoconf cache variables via `CONFIGURE_VARS` to let
`./configure` assume C99 compliance of the affected functions, thus fixing
the build.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-06-26 17:17:13 +02:00
Micke Prag
b506d3b835 python-pyserial: new package
This is the pyserial package ported from oldpackages. It is a
bumped version and depends on python-light instead of python-mini

Signed-off-by: Micke Prag <micke.prag@telldus.se>
2015-06-26 16:52:10 +02:00
Jo-Philipp Wich
e10abaf165 ntripclient: fix musl comaptibility
Add missing `sys/select.h` include to `ntripclient.c` to provide
declarations for `struct timeval` and `fd_set` under musl.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-06-26 16:48:26 +02:00
Jo-Philipp Wich
d3c279d4f6 open-plc-utils: fix musl and fortify source compatibility
- Include `poll.h` at the top of `ether/readpacket.c` to avoid nested
   declaration errors caused by fortify source headers
 - Add missing `sys/select.h` include to `serial/serial.c`

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-06-26 16:41:26 +02:00
Jo-Philipp Wich
e86ca8c6e1 Merge pull request #1464 from jow-/c-ares-fortify-source-fix
c-ares: fix build with CONFIG_PKG_FORTIFY_SOURCE*
2015-06-26 15:51:15 +02:00
Jo-Philipp Wich
a187bc8d57 opennhrp: fix musl compatibility
- Add `fcntl.h` to `nrhp/opennhrp.c` for `open()`, `O_WRONLY` etc.
 - Add missing `sys/types.h` include to `nrhp/nrhp_common.h` to provide
   required `u_int*_t` types under musl

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-06-26 15:48:25 +02:00
Jo-Philipp Wich
940c522cf6 lm-sensors: fix musl compatibility
Only use `asm/io.h` for uClibc, else include `sys/io.h`

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-06-26 15:10:03 +02:00
Jo-Philipp Wich
abcadcbede postfix: fix musl compatibility
The current package patches `makedefs` to probe for the existance
of the `nsl` and `resolv` libraries but uses the wrong variables
for the prefix, leading to `makedefs` probing the host directories,
not the staging dir ones.

Replace `$PKG_BUILD_DIR` with `$STAGING_DIR` to perform the library
tests in the correct directory.

Fixes the following error spotted by doing test builds against musl
which does not provide a `libnsl`:

    .../mips-openwrt-linux-musl/bin/ld: cannot find -lnsl
    collect2: error: ld returned 1 exit status
    make: *** [master] Error 1

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-06-26 14:55:33 +02:00
Jo-Philipp Wich
f1fbc7f51e pthsem: fix musl and fortify source compatibility
This commit addresses two issues encountered while building pthsem for
x86_64/musl:

1) Autoconf incorrectly assumes a broken Glibc and thus falls back
   to Linux compatibility code which runs into an unsupported
   platform error with musl libc. Since musl provides a proper
   implementation of `sigaltstack(2)`, force configure to use the
   POSIX compliant code when musl libc is used.

2) The `pth_syscall.c` file undefines various libc function names
   which breaks the indirection set up by fortify-source headers,
   therefore forcibly disable fortify source in the OpenWrt Makefile.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-06-26 12:13:03 +02:00
Steven Barth
22cd467290 Merge pull request #1475 from ejurgensen/master
forked-daapd: update to 23.2
2015-06-26 11:31:06 +02:00
Daniel Golle
2925877e73 gnunet: update source
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2015-06-26 04:20:08 +02:00
Daniel Golle
edb90c8ded Merge pull request #1326 from dangowrt/update-libmicrohttpd
libmicrohttpd: update source
2015-06-25 23:33:47 +02:00
Daniel Golle
9e221b6b83 libmicrohttpd: import fixes from subversion repo
Fixes a memleak as well as a bug in digest authentication.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2015-06-25 23:28:54 +02:00
Daniel Golle
24056cfdad libmicrohttpd: get rid of OpenSSL dependency
Depending on both, GnuTLS and OpenSSL doesn't make sense, we should
use either TLS implementation but not both. Use GnuTLS for now and
get rid of OpenSSL dependency by explicitely telling the package's
build-system to do so using CONFIGURE_ARGS.

If future uses of libmicrohttpd require OpenSSL, it probably makes
most sense to build several variants of the package, i.e.
libmicrohttpd-openssl as well as libmicrohttpd-gnutls. As with most
packages making use of any TLS implementation, these are build-time
decissions resulting in conflicting variants of the same package
which cannot be installed simultanously.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2015-06-25 23:25:46 +02:00
Daniel Golle
e14423f866 libmicrohttpd: update source
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2015-06-25 23:25:45 +02:00
ejurgensen
5c0d034171 forked-daapd: update to 23.2
Signed-off-by: Espen Jürgensen <espenjurgensen+openwrt@gmail.com>
2015-06-25 22:40:46 +02:00
Luka Perkov
0983670143 Merge pull request #1469 from jow-/squid-musl-compat
squid: fix musl compatibility
2015-06-25 22:04:35 +02:00
Luka Perkov
c6ffaa34d6 snort: add maintainer and SPDX license info
Signed-off-by: Luka Perkov <luka@openwrt.org>
2015-06-25 22:00:35 +02:00
Luka Perkov
b35efb38d5 Merge pull request #1470 from jow-/snort-hardening-fix
snort: fix build with CONFIG_PKG_CHECK_FORMAT_SECURITY
2015-06-25 21:54:58 +02:00
Álvaro Fernández Rojas
b73068365d minicom: fix full language support
Fixes https://github.com/openwrt/packages/issues/1467

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2015-06-25 19:47:49 +02:00
Maxim Storchak
5d4955c9ff iodine: fix musl compatibility
Signed-off-by: Maxim Storchak <m.storchak@gmail.com>
2015-06-25 19:57:50 +03:00
Ted Hess
e553e65f2f Merge pull request #1472 from psycho-nico/for-upstream
libv4l: fix musl compatibility on 64-bits
2015-06-25 12:38:43 -04:00
Jo-Philipp Wich
a89c0cadcf shadowsocks-client: fix fortify source compatibility
The shadowsocks source uses the name `encrypt` which is already reserved by
the `unistd.h` header. Rename the local `encrypt` and `decrypt` functions to
`crypto_encrypt` and `crypto_decrypt` in order to prevent clashes with the
standard headers.

Fixes the following build error oberserved on the buildbot:

    In file included from client.c:19:0:
    crypto.h:18:5: error: conflicting types for 'encrypt'
     int encrypt(int sockfd, struct link *ln);
         ^
    In file included from .../staging_dir/toolchain-mipsel_mips32_gcc-4.8-linaro_musl-1.1.10/include/fortify/unistd.h:20:0,
                     from client.c:12:
    .../staging_dir/toolchain-mipsel_mips32_gcc-4.8-linaro_musl-1.1.10/include/unistd.h:145:6: note: previous declaration of 'encrypt' was here
     void encrypt(char *, int);
          ^
    make[3]: *** [sslocal] Error 1

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-06-25 18:02:37 +02:00
Jo-Philipp Wich
eaf4652760 snort: fix build with CONFIG_PKG_CHECK_FORMAT_SECURITY
The configure script incorrectly mangles `CFLAGS` by attempting to remove
`-Werror` from it, thus turning `-Werror=format-security` into just
`=format-security` which will cause subsequent autoconf tests to fail.

Patch out the custom `CFLAGS` mangling to fix the build.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-06-25 17:29:22 +02:00
Nicolas Thill
9aa904b04b libv4l: fix musl compatibility on 64-bits
Signed-off-by: Nicolas Thill <nico@openwrt.org>
2015-06-25 17:10:31 +02:00
Jo-Philipp Wich
321043ede9 Merge pull request #1468 from jow-/sstp-client-musl-compat
sstp-client: fix musl compatibility
2015-06-25 16:44:52 +02:00
Jo-Philipp Wich
768f1a42ae squid: fix musl compatibility
Change `sys/signal.h` include to just `signal.h`. The build otherwise fails
due to `-Werror` with the following message:

    In file included from rfcnb-io.c:43:0:
    .../staging_dir/toolchain-mipsel_mips32_gcc-4.8-linaro_musl-1.1.10/include/sys/signal.h:1:2: error: #warning redirecting incorrect #include <sys/signal.h> to <signal.h> [-Werror=cpp]
     #warning redirecting incorrect #include <sys/signal.h> to <signal.h>
      ^
    cc1: all warnings being treated as errors

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-06-25 16:44:11 +02:00
Jo-Philipp Wich
419637e17f sstp-client: fix musl compatibility
- Ship a `net/ppp_defs.h` replacement header since musl does not provide one
   but `pppd/pppd.h` provided by pppd is needing it.
 - Add missing `sys/types.h` includes

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-06-25 16:31:58 +02:00
Nuno Goncalves
50b3175b12 Merge pull request #1466 from jow-/usbip-musl-compat
usb: fix musl compatibility
2015-06-25 13:51:42 +01:00
Jo-Philipp Wich
757de70511 usb: fix musl compatibility
Replace the nonstandard `SIGCLD` signal name with the proper `SIGCHLD` spelling
as the `SIGCLD` alias is not provided by musl.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-06-25 14:49:52 +02:00
Jo-Philipp Wich
2e73fcd4b0 c-ares: fix build with CONFIG_PKG_FORTIFY_SOURCE*
When fortify source is enabled, the c-ares configure script will abort with:
    configure: CFLAGS error: CFLAGS may only be used to specify C compiler flags, not macro definitions. Use CPPFLAGS for: -D_FORTIFY_SOURCE=1

Change the OpenWrt Makefile to move any -D flags from TARGET_CFLAGS to
TARGET_CPPFLAGS in order to satisfy `configure`.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-06-25 12:57:36 +02:00
Steven Barth
07c0677b7b Merge pull request #1461 from chris5560/master
ddns-scripts: fix/update to version 2.4.3-1
2015-06-24 19:00:09 +02:00
Christian Schoenebeck
3788dd697b ddns-scripts: fix/update to version 2.4.3-1
fixed sed when filtering IP address from nslookup output
because "Server:" block might have multiple address lines.
Thanks to Arjen de Korte

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2015-06-24 18:46:52 +02:00
Daniel Golle
5b6dbc15f5 hiredis: add new package
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2015-06-24 17:41:30 +02:00
Christoph König
de68de3062 mpc: update to 0.27
Signed-off-by: Christoph Koenig <christoph.koenig@gmail.com>
2015-06-24 15:18:01 +02:00
Jo-Philipp Wich
5325329b53 Merge pull request #1407 from jow-/wifidog-musl-compat
wifidog: fix musl compatibility
2015-06-24 13:50:57 +02:00
Jo-Philipp Wich
f0cb183834 Merge pull request #1387 from jow-/etherwake-musl-compat
etherwake: fix musl compatibility
2015-06-24 13:50:00 +02:00
Steven Barth
fc1adfb0d2 Merge pull request #1333 from br101/master
bluez: Add bluez-daemon package
2015-06-24 08:44:17 +02:00
Jonathan McCrohan
eaf358fbe6 Merge pull request #1425 from jow-/mtr-musl-compat
mtr: switch to upstream "newdns" branch
2015-06-23 23:04:10 +01:00
Steven Barth
c665325f8c strongswan: add more exceptions to musl-fixes
Signed-off-by: Steven Barth <steven@midlink.org>
2015-06-23 18:41:11 +02:00
Nicolas Thill
1d3ee8ab07 Merge branch 'ulogd-musl-compat' 2015-06-23 10:57:35 +02:00
Nicolas Thill
bdf5ef09e1 Merge branch 'ulogd-musl-compat' of git://github.com/jow-/packages into ulogd-musl-compat 2015-06-23 10:57:12 +02:00
Nicolas Thill
45604ec5ed Merge branch 'jow--keepalived-musl-compat' 2015-06-23 01:35:41 +02:00
Nicolas Thill
0aa8cea665 Merge branch 'keepalived-musl-compat' of git://github.com/jow-/packages into jow--keepalived-musl-compat 2015-06-23 01:33:11 +02:00
Nicolas Thill
246802512e Merge branch 'paulfertser-macchanger-musl-fix' 2015-06-23 01:20:02 +02:00
Nicolas Thill
fd06fee8f2 Merge branch 'macchanger-musl-fix' of git://github.com/paulfertser/packages into paulfertser-macchanger-musl-fix 2015-06-23 01:19:27 +02:00
Nicolas Thill
d4afd14ff1 erlang: fix musl compatibility
gethostbyname_r is available when _GNU_SOURCE is defined, add a patch to check for it instead of __GLIBC__, build with -D_GNU_SOURCE, bump release number

Signed-off-by: Nicolas Thill <nico@openwrt.org>
2015-06-23 01:06:36 +02:00
Noah Meyerhans
0b73e6833b Merge pull request #1436 from ManoftheSea/musl-compat
Make ipsec-tools compatible with musl
2015-06-22 14:44:20 -07:00