diff options
Diffstat (limited to 'package/libnl')
| -rw-r--r-- | package/libnl/Makefile | 23 | ||||
| -rw-r--r-- | package/libnl/patches/patch-autogen_sh | 7 | ||||
| -rw-r--r-- | package/libnl/patches/patch-configure_ac | 11 | ||||
| -rw-r--r-- | package/libnl/patches/patch-include_linux-private_linux_libc-compat_h | 11 | ||||
| -rw-r--r-- | package/libnl/patches/patch-lib_utils_c | 34 | ||||
| -rw-r--r-- | package/libnl/patches/patch-src_lib_utils_c | 25 |
6 files changed, 98 insertions, 13 deletions
diff --git a/package/libnl/Makefile b/package/libnl/Makefile index 6d5ade6c7..10b4a24d8 100644 --- a/package/libnl/Makefile +++ b/package/libnl/Makefile @@ -4,37 +4,34 @@ include ${ADK_TOPDIR}/rules.mk PKG_NAME:= libnl -PKG_VERSION:= 3.2.25 -PKG_RELEASE:= 1 -PKG_MD5SUM:= 03f74d0cd5037cadc8cdfa313bbd195c +PKG_VERSION:= 3.2.29 +PKG_RELEASE:= 2 +PKG_HASH:= 5a30dc4986158c6c2b1309f4a15a283d50cc938108a675e3d822e24debcd229d PKG_DESCR:= netlink library PKG_SECTION:= libs/net PKG_BUILDDEP:= m4-host flex-host -PKG_URL:= http://www.infradead.org/~tgr/libnl/ -PKG_SITES:= http://www.infradead.org/~tgr/libnl/files/ +PKG_NEEDS:= threads +PKG_SITES:= https://github.com/thom311/libnl/archive/ PKG_NOPARALLEL:= 1 PKG_OPTS:= dev -DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz +DISTFILES:= ${PKG_NAME}3_2_29.tar.gz +WRKDIST= $(WRKDIR)/$(PKG_NAME)-${PKG_NAME}3_2_29 include ${ADK_TOPDIR}/mk/package.mk $(eval $(call PKG_template,LIBNL,libnl,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS})) +AUTOTOOL_STYLE:= autogen +CONFIGURE_ARGS+= --disable-cli + libnl-install: ${INSTALL_DIR} ${IDIR_LIBNL}/etc/libnl $(CP) ${WRKINST}/etc/libnl/* ${IDIR_LIBNL}/etc/libnl ${INSTALL_DIR} ${IDIR_LIBNL}/usr/lib ${CP} ${WRKINST}/usr/lib/libnl-3.so* ${IDIR_LIBNL}/usr/lib ${CP} ${WRKINST}/usr/lib/libnl-genl-3.so* ${IDIR_LIBNL}/usr/lib - ${CP} ${WRKINST}/usr/lib/libnl-cli-3.so* ${IDIR_LIBNL}/usr/lib ${CP} ${WRKINST}/usr/lib/libnl-route-3.so* ${IDIR_LIBNL}/usr/lib ${CP} ${WRKINST}/usr/lib/libnl-nf-3.so* ${IDIR_LIBNL}/usr/lib - ${INSTALL_DIR} ${IDIR_LIBNL}/usr/lib/libnl/cli/cls - $(CP) ${WRKINST}/usr/lib/libnl/cli/cls/*.so \ - ${IDIR_LIBNL}/usr/lib/libnl/cli/cls - ${INSTALL_DIR} ${IDIR_LIBNL}/usr/lib/libnl/cli/qdisc - $(CP) ${WRKINST}/usr/lib/libnl/cli/qdisc/*.so \ - ${IDIR_LIBNL}/usr/lib/libnl/cli/qdisc include ${ADK_TOPDIR}/mk/pkg-bottom.mk diff --git a/package/libnl/patches/patch-autogen_sh b/package/libnl/patches/patch-autogen_sh new file mode 100644 index 000000000..2888ae770 --- /dev/null +++ b/package/libnl/patches/patch-autogen_sh @@ -0,0 +1,7 @@ +--- libnl-libnl3_2_29.orig/autogen.sh Fri Dec 30 15:57:01 2016 ++++ libnl-libnl3_2_29/autogen.sh Sat Jan 13 10:02:41 2024 +@@ -12,4 +12,3 @@ cd "$BASEDIR" || die "Could not change into base direc + autoreconf -fi || die "Error during autoreconf" + rm -Rf autom4te.cache; + +-doc/autogen.sh || die "Error during doc/autogen.sh" diff --git a/package/libnl/patches/patch-configure_ac b/package/libnl/patches/patch-configure_ac new file mode 100644 index 000000000..c480cb9ef --- /dev/null +++ b/package/libnl/patches/patch-configure_ac @@ -0,0 +1,11 @@ +--- libnl-libnl3_2_29.orig/configure.ac 2016-12-30 15:57:01.000000000 +0100 ++++ libnl-libnl3_2_29/configure.ac 2017-04-26 20:09:18.129932699 +0200 +@@ -126,6 +126,8 @@ fi + + AC_CONFIG_SUBDIRS([doc]) + ++AC_CHECK_FUNCS([strerror_l]) ++ + AC_CONFIG_FILES([ + Makefile + libnl-3.0.pc diff --git a/package/libnl/patches/patch-include_linux-private_linux_libc-compat_h b/package/libnl/patches/patch-include_linux-private_linux_libc-compat_h new file mode 100644 index 000000000..104c3c6ba --- /dev/null +++ b/package/libnl/patches/patch-include_linux-private_linux_libc-compat_h @@ -0,0 +1,11 @@ +--- libnl-libnl3_2_29.orig/include/linux-private/linux/libc-compat.h 2016-12-30 15:57:01.000000000 +0100 ++++ libnl-libnl3_2_29/include/linux-private/linux/libc-compat.h 2017-07-25 22:04:13.423563709 +0200 +@@ -49,7 +49,7 @@ + #define _LIBC_COMPAT_H + + /* We have included glibc headers... */ +-#if defined(__GLIBC__) ++#if 1 + + /* Coordinate with glibc netinet/in.h header. */ + #if defined(_NETINET_IN_H) diff --git a/package/libnl/patches/patch-lib_utils_c b/package/libnl/patches/patch-lib_utils_c new file mode 100644 index 000000000..3d75f7487 --- /dev/null +++ b/package/libnl/patches/patch-lib_utils_c @@ -0,0 +1,34 @@ +--- libnl-libnl3_2_29.orig/lib/utils.c Fri Dec 30 15:57:01 2016 ++++ libnl-libnl3_2_29/lib/utils.c Sat Jan 13 09:58:56 2024 +@@ -30,7 +30,9 @@ + #include <netlink/utils.h> + #include <linux/socket.h> + #include <stdlib.h> /* exit() */ ++#ifdef HAVE_STRERROR_L + #include <locale.h> ++#endif + + /** + * Global variable indicating the desired level of debugging output. +@@ -123,9 +125,10 @@ int __nl_read_num_str_file(const char *path, int (*cb) + + const char *nl_strerror_l(int err) + { ++ const char *buf; ++#ifdef HAVE_STRERROR_L + int errno_save = errno; + locale_t loc = newlocale(LC_MESSAGES_MASK, "", (locale_t)0); +- const char *buf; + + if (loc == (locale_t)0) { + if (errno == ENOENT) +@@ -140,6 +143,9 @@ const char *nl_strerror_l(int err) + } + + errno = errno_save; ++#else ++ buf = strerror(err); ++#endif + return buf; + } + /** @endcond */ diff --git a/package/libnl/patches/patch-src_lib_utils_c b/package/libnl/patches/patch-src_lib_utils_c new file mode 100644 index 000000000..60117cbdc --- /dev/null +++ b/package/libnl/patches/patch-src_lib_utils_c @@ -0,0 +1,25 @@ +--- libnl-libnl3_2_29.orig/src/lib/utils.c Fri Dec 30 15:57:01 2016 ++++ libnl-libnl3_2_29/src/lib/utils.c Sat Jan 13 09:58:56 2024 +@@ -81,6 +81,7 @@ void nl_cli_fatal(int err, const char *fmt, ...) + fprintf(stderr, "\n"); + } else { + char *buf; ++#ifdef HAVE_STRERROR_L + locale_t loc = newlocale(LC_MESSAGES_MASK, "", (locale_t)0); + if (loc == (locale_t)0) { + if (errno == ENOENT) +@@ -91,9 +92,14 @@ void nl_cli_fatal(int err, const char *fmt, ...) + } + if (loc != (locale_t)0) + buf = strerror_l(err, loc); ++#else ++ buf = strerror(err); ++#endif + fprintf(stderr, "%s\n", buf); ++#ifdef HAVE_STRERROR_L + if (loc != (locale_t)0) + freelocale(loc); ++#endif + } + + exit(abs(err)); |
