diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2022-01-19 11:40:52 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-01-20 11:57:29 +0000 |
commit | 078a1a64edb1ff03f1ab47285d44a1c2926a9673 (patch) | |
tree | 9de12ebd9a958be50373967f16050b5325d0b956 | |
parent | 464c3e59c6ad8d13d0677bf48debfdf48fded447 (diff) | |
download | poky-078a1a64edb1ff03f1ab47285d44a1c2926a9673.tar.gz |
socat: upgrade 1.7.4.2 -> 1.7.4.3
(From OE-Core rev: 2c51c702a3036f641d34d00123d359fc34e96cf7)
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-connectivity/socat/socat/0001-configure.ac-check-getprotobynumber_r-with-AC_TRY_LI.patch | 35 | ||||
-rw-r--r-- | meta/recipes-connectivity/socat/socat_1.7.4.3.bb (renamed from meta/recipes-connectivity/socat/socat_1.7.4.2.bb) | 5 |
2 files changed, 38 insertions, 2 deletions
diff --git a/meta/recipes-connectivity/socat/socat/0001-configure.ac-check-getprotobynumber_r-with-AC_TRY_LI.patch b/meta/recipes-connectivity/socat/socat/0001-configure.ac-check-getprotobynumber_r-with-AC_TRY_LI.patch new file mode 100644 index 0000000000..fbfb0816dd --- /dev/null +++ b/meta/recipes-connectivity/socat/socat/0001-configure.ac-check-getprotobynumber_r-with-AC_TRY_LI.patch | |||
@@ -0,0 +1,35 @@ | |||
1 | From d67d6b4f981db9612d808bd723176a1d2996d53a Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex@linutronix.de> | ||
3 | Date: Mon, 17 Jan 2022 13:21:32 +0100 | ||
4 | Subject: [PATCH] configure.ac: check getprotobynumber_r with AC_TRY_LINK | ||
5 | |||
6 | AC_TRY_COMPILE won't error out if the function is altogether absent | ||
7 | (e.g. on linux musl C library), the test needs to link all the way. | ||
8 | |||
9 | Upstream-Status: Submitted [via email to socat@dest-unreach.org] | ||
10 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> | ||
11 | --- | ||
12 | configure.ac | 6 +++--- | ||
13 | 1 file changed, 3 insertions(+), 3 deletions(-) | ||
14 | |||
15 | diff --git a/configure.ac b/configure.ac | ||
16 | index d4acc9e..973a7f2 100644 | ||
17 | --- a/configure.ac | ||
18 | +++ b/configure.ac | ||
19 | @@ -137,13 +137,13 @@ AC_MSG_RESULT($sc_cv_have_prototype_hstrerror) | ||
20 | # getprotobynumber_r() is not standardized | ||
21 | AC_MSG_CHECKING(for getprotobynumber_r() variant) | ||
22 | AC_CACHE_VAL(sc_cv_getprotobynumber_r, | ||
23 | -[AC_TRY_COMPILE([#include <stddef.h> | ||
24 | +[AC_TRY_LINK([#include <stddef.h> | ||
25 | #include <netdb.h>],[getprotobynumber_r(1,NULL,NULL,1024,NULL);], | ||
26 | [sc_cv_getprotobynumber_r=1; tmp_bynum_variant=Linux], | ||
27 | - [AC_TRY_COMPILE([#include <stddef.h> | ||
28 | + [AC_TRY_LINK([#include <stddef.h> | ||
29 | #include <netdb.h>],[getprotobynumber_r(1,NULL,NULL,1024);], | ||
30 | [sc_cv_getprotobynumber_r=2; tmp_bynum_variant=Solaris], | ||
31 | - [AC_TRY_COMPILE([#include <stddef.h> | ||
32 | + [AC_TRY_LINK([#include <stddef.h> | ||
33 | #include <netdb.h>],[getprotobynumber_r(1,NULL,NULL);], | ||
34 | [sc_cv_getprotobynumber_r=3; tmp_bynum_variant=AIX], | ||
35 | |||
diff --git a/meta/recipes-connectivity/socat/socat_1.7.4.2.bb b/meta/recipes-connectivity/socat/socat_1.7.4.3.bb index 0edde6a2e4..a4a0a8933e 100644 --- a/meta/recipes-connectivity/socat/socat_1.7.4.2.bb +++ b/meta/recipes-connectivity/socat/socat_1.7.4.3.bb | |||
@@ -10,9 +10,10 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | |||
10 | file://README;beginline=257;endline=287;md5=82520b052f322ac2b5b3dfdc7c7eea86" | 10 | file://README;beginline=257;endline=287;md5=82520b052f322ac2b5b3dfdc7c7eea86" |
11 | 11 | ||
12 | SRC_URI = "http://www.dest-unreach.org/socat/download/socat-${PV}.tar.bz2 \ | 12 | SRC_URI = "http://www.dest-unreach.org/socat/download/socat-${PV}.tar.bz2 \ |
13 | " | 13 | file://0001-configure.ac-check-getprotobynumber_r-with-AC_TRY_LI.patch \ |
14 | " | ||
14 | 15 | ||
15 | SRC_URI[sha256sum] = "6690a9f9990457b505097a272bbf2cbf4cc35576176f76646e3524b0e91c1763" | 16 | SRC_URI[sha256sum] = "d47318104415077635119dfee44bcfb41de3497374a9a001b1aff6e2f0858007" |
16 | 17 | ||
17 | inherit autotools | 18 | inherit autotools |
18 | 19 | ||