summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2023-04-06 12:19:02 -0700
committerKhem Raj <raj.khem@gmail.com>2023-04-06 13:45:10 -0700
commit6d22cd4c12242ccc428ad3ca0115ecbbe6b4248a (patch)
tree68e716cc163deb23f93aaa72dbc4df3ee3512910
parentf19dac11ff4189a5c77736a08a24102a2bd3b468 (diff)
downloadmeta-openembedded-6d22cd4c12242ccc428ad3ca0115ecbbe6b4248a.tar.gz
libdnet: Upgrade to 1.16.3
Fix build with upcoming autoconf 1.16.3 Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-networking/recipes-connectivity/libdnet/libdnet/0001-configure-Replace-use-of-AC_EGREP_CPP.patch39
-rw-r--r--meta-networking/recipes-connectivity/libdnet/libdnet/0001-configure-Use-pkg-config-variable-to-find-check-incl.patch27
-rw-r--r--meta-networking/recipes-connectivity/libdnet/libdnet_1.14.bb20
-rw-r--r--meta-networking/recipes-connectivity/libdnet/libdnet_1.16.3.bb23
4 files changed, 89 insertions, 20 deletions
diff --git a/meta-networking/recipes-connectivity/libdnet/libdnet/0001-configure-Replace-use-of-AC_EGREP_CPP.patch b/meta-networking/recipes-connectivity/libdnet/libdnet/0001-configure-Replace-use-of-AC_EGREP_CPP.patch
new file mode 100644
index 0000000000..133ccc46b2
--- /dev/null
+++ b/meta-networking/recipes-connectivity/libdnet/libdnet/0001-configure-Replace-use-of-AC_EGREP_CPP.patch
@@ -0,0 +1,39 @@
1From b0c98f93a7f427d18206c79bf2a0350dc81172f6 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 6 Apr 2023 10:44:08 -0700
4Subject: [PATCH] configure: Replace use of AC_EGREP_CPP
5
6Use AC_COMPILE_IFELSE instead to compute platform support for arp ioctls
7AC_EGREP_CPP does not work as used with upcoming autoconf 2.72
8
9Upstream-Status: Submitted [https://github.com/ofalk/libdnet/pull/85]
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 m4/acinclude.m4 | 11 +++++------
13 1 file changed, 5 insertions(+), 6 deletions(-)
14
15diff --git a/m4/acinclude.m4 b/m4/acinclude.m4
16index d6350a2..3699bf1 100644
17--- a/m4/acinclude.m4
18+++ b/m4/acinclude.m4
19@@ -196,12 +196,11 @@ dnl
20 AC_DEFUN([AC_DNET_IOCTL_ARP],
21 [AC_MSG_CHECKING(for arp(7) ioctls)
22 AC_CACHE_VAL(ac_cv_dnet_ioctl_arp,
23- AC_EGREP_CPP(werd,[#include <sys/types.h>
24- #define BSD_COMP
25- #include <sys/ioctl.h>
26- #ifdef SIOCGARP
27- werd
28- #endif],
29+ AC_COMPILE_IFELSE(
30+ [AC_LANG_PROGRAM([[#include <sys/types.h>
31+ #define BSD_COMP
32+ #include <sys/ioctl.h>]],
33+ [[int foo = SIOCGARP;]])],
34 ac_cv_dnet_ioctl_arp=yes,
35 ac_cv_dnet_ioctl_arp=no))
36 case "$host_os" in
37--
382.40.0
39
diff --git a/meta-networking/recipes-connectivity/libdnet/libdnet/0001-configure-Use-pkg-config-variable-to-find-check-incl.patch b/meta-networking/recipes-connectivity/libdnet/libdnet/0001-configure-Use-pkg-config-variable-to-find-check-incl.patch
new file mode 100644
index 0000000000..8a78e7ac28
--- /dev/null
+++ b/meta-networking/recipes-connectivity/libdnet/libdnet/0001-configure-Use-pkg-config-variable-to-find-check-incl.patch
@@ -0,0 +1,27 @@
1From 85d8338a3ebc01a3ea7600aa602139c4eac3be07 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 6 Apr 2023 12:13:09 -0700
4Subject: [PATCH] configure: Use pkg-config variable to find check include paths
5
6Upstream-Status: Submitted [https://github.com/ofalk/libdnet/pull/85]
7Signed-off-by: Khem Raj <raj.khem@gmail.com>
8---
9 configure.ac | 2 +-
10 1 file changed, 1 insertion(+), 1 deletion(-)
11
12diff --git a/configure.ac b/configure.ac
13index 3f0c404..553b487 100644
14--- a/configure.ac
15+++ b/configure.ac
16@@ -153,7 +153,7 @@ AC_ARG_WITH(check,
17 esac ],
18 [ PKG_CHECK_MODULES([CHECK], [check])
19 if test -n "${CHECK_LIBS}"; then
20- CHECKINC="-I${prefix}/include"
21+ CHECKINC="${CHECK_CFLAGS}"
22 CHECKLIB="${CHECK_LIBS}"
23 AC_MSG_RESULT(yes)
24 else
25--
262.40.0
27
diff --git a/meta-networking/recipes-connectivity/libdnet/libdnet_1.14.bb b/meta-networking/recipes-connectivity/libdnet/libdnet_1.14.bb
deleted file mode 100644
index 9f2ff51576..0000000000
--- a/meta-networking/recipes-connectivity/libdnet/libdnet_1.14.bb
+++ /dev/null
@@ -1,20 +0,0 @@
1SUMMARY = "dumb networking library"
2HOMEPAGE = "http://code.google.com/p/libdnet/"
3SECTION = "libs"
4LICENSE = "BSD-3-Clause"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=0036c1b155f4e999f3e0a373490b5db9"
6
7SRC_URI = "git://github.com/dugsong/libdnet.git;nobranch=1;protocol=https"
8SRCREV = "3e782472d2a58d5e1b94d04eda4a364c2d257600"
9
10UPSTREAM_CHECK_GITTAGREGEX = "libdnet-(?P<pver>\d+(\.\d+)+)"
11
12S = "${WORKDIR}/git"
13
14inherit autotools multilib_script
15
16acpaths = "-I ./config/"
17
18BBCLASSEXTEND = "native"
19
20MULTILIB_SCRIPTS = "${PN}:${bindir}/dnet-config"
diff --git a/meta-networking/recipes-connectivity/libdnet/libdnet_1.16.3.bb b/meta-networking/recipes-connectivity/libdnet/libdnet_1.16.3.bb
new file mode 100644
index 0000000000..05c8fb309f
--- /dev/null
+++ b/meta-networking/recipes-connectivity/libdnet/libdnet_1.16.3.bb
@@ -0,0 +1,23 @@
1SUMMARY = "dumb networking library"
2HOMEPAGE = "https://github.com/ofalk/libdnet"
3SECTION = "libs"
4LICENSE = "BSD-3-Clause"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=0036c1b155f4e999f3e0a373490b5db9"
6
7SRC_URI = "git://github.com/ofalk/libdnet.git;nobranch=1;protocol=https \
8 file://0001-configure-Replace-use-of-AC_EGREP_CPP.patch \
9 file://0001-configure-Use-pkg-config-variable-to-find-check-incl.patch"
10SRCREV = "a03043bec8e66b240a45555e37147b22db182c21"
11
12UPSTREAM_CHECK_GITTAGREGEX = "libdnet-(?P<pver>\d+(\.\d+)+)"
13
14S = "${WORKDIR}/git"
15
16inherit autotools multilib_script pkgconfig
17
18DEPENDS += "libcheck"
19
20EXTRA_AUTORECONF += "-I ./config"
21BBCLASSEXTEND = "native"
22
23MULTILIB_SCRIPTS = "${PN}:${bindir}/dnet-config"