openwrt-packages/net/net-snmp/patches
Jo-Philipp Wich 399d0e57cd net-snmp: build against libnl-tiny
Instead of causing nondeterministing conditional compilation depending on
whether libnl-core happens to be present or not, fixup the net-snmp package
to link against libnl-tiny which is present by default on the majority of
systems.

In order to successfully build against libnl-tiny, a number of things had
to be fixed in both the upstream configure and the outer Makefile:

- Add a patch which fixes the upstream configure macros to properly handle
  cases where the cache variables for nl_connect() and netlink.h tests are
  predefined. Without this patch, all subsequent link tests in configure
  will fail, causing the build system to assume functions like opendir() or
  readdir() to be missing, leading to build failures later on due to
  conflicting redefinitions of structures and function prototypes

- In the same patch, stop probing the host systems /usr/include/libnl-3 if
  ac_cv_header_netlink_netlink_h is given. This brings the proprietary
  configure bits in line with the behaviour expected from autoconfig in a
  cross compile setting

- Explicitely request nl support by passing the --with-nl flag to configure

- Pass the required cache variables to skip the broken tests for
  nl_connect() and netlink.h

- Amend TARGET_CPPFLAGS to let net-snmp's build system discover nl-tiny's
  netlink/netlink.h and netlink/socket.h

- Enable the autoreconf fixup to regenerate the broken shipped configure
  from patched macros

- Adjust the depends to unconditionally require libnl-tiny

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-01-06 16:46:28 +01:00
..
000-cross-compile.patch net-snmp: build against libnl-tiny 2017-01-06 16:46:28 +01:00
100-debian-statistics.patch net-snmp : update to 5.7.3 2017-01-04 12:05:34 +01:00
110-debian-makefiles.patch net-snmp : update to 5.7.3 2017-01-04 12:05:34 +01:00
120-debian-searchdirs.patch net-snmp : update to 5.7.3 2017-01-04 12:05:34 +01:00
130-debian-extramibs.patch net-snmp : update to 5.7.3 2017-01-04 12:05:34 +01:00
160-no_ldconfig.patch net-snmp : update to 5.7.3 2017-01-04 12:05:34 +01:00
170-ldflags.patch net-snmp : update to 5.7.3 2017-01-04 12:05:34 +01:00
750-ieee802dot11.patch net: Fix typos (found by codespell) 2016-04-10 12:51:10 +02:00
900-musl-compat.patch net-snmp: fix musl compatibility 2015-06-26 17:47:33 +02:00