Commit Graph

5939 Commits

Author SHA1 Message Date
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
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 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
Daniel Golle 2925877e73 gnunet: update source
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2015-06-26 04:20:08 +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
Maxim Storchak 5d4955c9ff iodine: fix musl compatibility
Signed-off-by: Maxim Storchak <m.storchak@gmail.com>
2015-06-25 19:57:50 +03: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
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
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
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
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
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 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 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
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
Steven Barth 1c66cd37e8 Merge pull request #1421 from Zokormazo/bwm-ng
bwm-ng: Fix building with gcc-security enabled
2015-06-22 17:20:09 +02:00
Steven Barth 33e58b49ac Merge pull request #1369 from kissg1988/seafile
seafile: build against libevhtp 1.1 instead of 1.2
2015-06-22 17:15:27 +02:00
heil b1cac15063 haproxy: upstream fixes
- [PATCH 15/18] MEDIUM: ssl: replace standards DH groups with custom
 - [PATCH 16/18] BUG/MINOR: debug: display (null) in place of "meth"
 - [PATCH 17/18] CLEANUP: deinit: remove codes for cleaning
 - [PATCH 18/18] BUG/MINOR: ssl: fix smp_fetch_ssl_fc_session_id

Signed-off-by: heil <heil@terminal-consulting.de>
2015-06-22 14:57:26 +02:00
Steven Barth 9bf0217f2f strongswan: refresh musl compatibility fixes
Signed-off-by: Steven Barth <steven@midlink.org>
2015-06-22 12:24:19 +02:00
Derek LaHousse 088ec6029f ipsec-tools: Make compatible with musl
Based on changes at http://git.alpinelinux.org/cgit/aports/plain/main/ipsec-tools/musl-cdefs.patch
Removed references to "login" and "logout" functions, as musl utmp
doesn't.
Bump PKG_RELEASE

Signed-off-by: Derek LaHousse <dlahouss@mtu.edu>
2015-06-21 20:38:39 -04:00
Ted Hess 6cbf2e0ad1 Merge pull request #1448 from damianorenfer/master
net/dnscrypt-proxy: update to 1.5.0
2015-06-21 17:05:18 -04:00
heil 9433d5ad28 nginx: fix musl compatibility
- include Patches according to issue #1129
 - refresh Makefile

Signed-off-by: heil <heil@terminal-consulting.de>
2015-06-21 21:41:17 +02:00
Damiano Renfer 7621572e22 net/dnscrypt-proxy: update to 1.5.0
Signed-off-by: Damiano Renfer damiano.renfer@gmail.com
2015-06-21 18:45:30 +02:00
Daniel Golle 60ba8483f1 gnunet: build PostgreSQL and mySQL backends
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2015-06-21 17:30:32 +02:00
Daniel Golle 161b225acc gnunet: update source to r35963
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2015-06-21 15:25:43 +02:00
Nikos Mavrogiannopoulos 18be1b77cf transmission: bumped version
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2015-06-21 12:00:02 +02:00
Steven Barth c2d2967e59 Merge pull request #1441 from commodo/ovs-musl
openvswitch: a bit of cleanup + fix musl compatibility
2015-06-20 16:27:25 +02:00
Nikos Mavrogiannopoulos bc034ae30a ocserv: depend on radcli
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2015-06-20 13:56:49 +02:00
Nikos Mavrogiannopoulos 1b426f5bcf Merge pull request #1442 from nmav/oc
openconnect: added support for supplying a fixed second password.
2015-06-20 13:48:40 +03:00
Nikos Mavrogiannopoulos 2c6a3743c6 openconnect: updated documentation
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2015-06-20 12:36:55 +02:00
Nikos Mavrogiannopoulos 749abcacc8 openconnect: allow processing multiple passwords from stdin
Resolves #1419

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2015-06-20 12:36:39 +02:00
Alexandru Ardelean 3c78eb04b8 openvswitch: fix musl compatibility
Remove libatomic support from OVS: musl's libatomic seems incomplete.
Conditionally compile <net/if_packet.h>.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2015-06-20 11:16:22 +03:00
Alexandru Ardelean b65d05a5ab openvswitch: cleanup makefile (remove explicit build rules)
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2015-06-20 09:49:09 +03:00
Steven Barth 2865b5aa09 strongswan: fix musl builds, reenable lost modules
Signed-off-by: Steven Barth <steven@midlink.org>
2015-06-19 18:38:44 +02:00
Jo-Philipp Wich 44d7aa7789 Merge pull request #1426 from jow-/tinc-musl-compat
tinc: fix musl compatibility
2015-06-19 16:03:08 +02:00
Jonas Gorski e49e86e036 znc: update to 1.6.0
Fixes compilation with musl.

Requires GCC 4.7 or newer, so broken for octeon.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
2015-06-19 13:10:19 +02:00
Jo-Philipp Wich a9277215a9 Merge pull request #1427 from jow-/tgt-musl-compat
tgt: fix musl compatibility
2015-06-19 12:21:26 +02:00
Matthias Schiffer c38ba76698 fastd: fix musl compatibility
Prefer linux/if_ether.h over netinet/if_ether.h if available since the
musl libc if_ether.h header does not allow mixing with kernel headers,
it will result in a struct ethhdr redefinition error.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2015-06-19 04:16:09 +02:00
Jo-Philipp Wich 23bd12a89a Merge pull request #1416 from jow-/vpnc-musl-compat
vpnc: fix musl compatibility
2015-06-18 23:51:28 +02:00
Jo-Philipp Wich e55822ec2b tgt: fix musl compatibility
- Include `sys/user.h` if `__WORDSIZE` is undefined
 - Add `fcntl.h` to `libscc.c` in order to declare `loff_t`

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-06-18 20:18:15 +02:00
Jo-Philipp Wich 4004ec2c75 tinc: fix musl compatibility
Let configure include `sys/if_tun.h` when testing for `netinet/if_ether.h`
to detect the Kernel/libc header conflict on musl.

After this patch, configure will correctly detect `netinet/if_ether.h` as
unusable and the subsequent compilation will not attempt to use it.

Fixes the following compatibility error:

	In file included from .../staging_dir/toolchain-mips_mips32_gcc-4.8-linaro_musl-1.1.9/include/linux/if_tun.h:20:0,
	                 from linux/device.c:24:
	.../staging_dir/toolchain-mips_mips32_gcc-4.8-linaro_musl-1.1.9/include/linux/if_ether.h:137:8: error: redefinition of 'struct ethhdr'
	 struct ethhdr {
	        ^
	In file included from .../staging_dir/toolchain-mips_mips32_gcc-4.8-linaro_musl-1.1.9/include/net/ethernet.h:10:0,
	                 from linux/../have.h:180,
	                 from linux/../system.h:26,
	                 from linux/device.c:21:
	.../staging_dir/toolchain-mips_mips32_gcc-4.8-linaro_musl-1.1.9/include/netinet/if_ether.h:96:8: note: originally defined here
	 struct ethhdr {
	        ^
	make[5]: *** [linux/device.o] Error 1

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-06-18 19:51:59 +02:00
Julen Landa Alustiza 5aae478e24 bwm-ng: fix building with gcc-security enabled
Signed-off-by: Julen Landa Alustiza <julen@zokormazo.info>
2015-06-18 18:45:04 +02:00
Jo-Philipp Wich 54e6887881 mtr: switch to upstream "newdns" branch
Switch the mtr package to the upstream `newdns` git branch.

This will fix compilation on Glibc, uClibc and musl without requiring
further patches.

Note that the base version of this branch is 0.85, not 0.86 so the
lower version number is intentional.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-06-18 18:35:22 +02:00