openembedded-core.lists.openembedded.org archive mirror
 help / color / mirror / Atom feed
From: Alexander Kanavin <alex.kanavin@gmail.com>
To: openembedded-core@lists.openembedded.org
Cc: Alexander Kanavin <alex.kanavin@gmail.com>
Subject: [PATCH 14/39] socat: upgrade 1.7.4.2 -> 1.7.4.3
Date: Wed, 19 Jan 2022 11:40:52 +0100	[thread overview]
Message-ID: <20220119104117.2120127-14-alex@linutronix.de> (raw)
In-Reply-To: <20220119104117.2120127-1-alex@linutronix.de>

From: Alexander Kanavin <alex.kanavin@gmail.com>

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
---
 ...ck-getprotobynumber_r-with-AC_TRY_LI.patch | 35 +++++++++++++++++++
 .../{socat_1.7.4.2.bb => socat_1.7.4.3.bb}    |  5 +--
 2 files changed, 38 insertions(+), 2 deletions(-)
 create mode 100644 meta/recipes-connectivity/socat/socat/0001-configure.ac-check-getprotobynumber_r-with-AC_TRY_LI.patch
 rename meta/recipes-connectivity/socat/{socat_1.7.4.2.bb => socat_1.7.4.3.bb} (90%)

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 @@
+From d67d6b4f981db9612d808bd723176a1d2996d53a Mon Sep 17 00:00:00 2001
+From: Alexander Kanavin <alex@linutronix.de>
+Date: Mon, 17 Jan 2022 13:21:32 +0100
+Subject: [PATCH] configure.ac: check getprotobynumber_r with AC_TRY_LINK
+
+AC_TRY_COMPILE won't error out if the function is altogether absent
+(e.g. on linux musl C library), the test needs to link all the way.
+
+Upstream-Status: Submitted [via email to socat@dest-unreach.org]
+Signed-off-by: Alexander Kanavin <alex@linutronix.de>
+---
+ configure.ac | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index d4acc9e..973a7f2 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -137,13 +137,13 @@ AC_MSG_RESULT($sc_cv_have_prototype_hstrerror)
+ # getprotobynumber_r() is not standardized
+ AC_MSG_CHECKING(for getprotobynumber_r() variant)
+ AC_CACHE_VAL(sc_cv_getprotobynumber_r,
+-[AC_TRY_COMPILE([#include <stddef.h>
++[AC_TRY_LINK([#include <stddef.h>
+ #include <netdb.h>],[getprotobynumber_r(1,NULL,NULL,1024,NULL);],
+ [sc_cv_getprotobynumber_r=1; tmp_bynum_variant=Linux],
+- [AC_TRY_COMPILE([#include <stddef.h>
++ [AC_TRY_LINK([#include <stddef.h>
+  #include <netdb.h>],[getprotobynumber_r(1,NULL,NULL,1024);],
+  [sc_cv_getprotobynumber_r=2; tmp_bynum_variant=Solaris],
+-  [AC_TRY_COMPILE([#include <stddef.h>
++  [AC_TRY_LINK([#include <stddef.h>
+   #include <netdb.h>],[getprotobynumber_r(1,NULL,NULL);],
+   [sc_cv_getprotobynumber_r=3; tmp_bynum_variant=AIX],
+ 
diff --git a/meta/recipes-connectivity/socat/socat_1.7.4.2.bb b/meta/recipes-connectivity/socat/socat_1.7.4.3.bb
similarity index 90%
rename from meta/recipes-connectivity/socat/socat_1.7.4.2.bb
rename to 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 \
                     file://README;beginline=257;endline=287;md5=82520b052f322ac2b5b3dfdc7c7eea86"
 
 SRC_URI = "http://www.dest-unreach.org/socat/download/socat-${PV}.tar.bz2 \
-"
+           file://0001-configure.ac-check-getprotobynumber_r-with-AC_TRY_LI.patch \
+           "
 
-SRC_URI[sha256sum] = "6690a9f9990457b505097a272bbf2cbf4cc35576176f76646e3524b0e91c1763"
+SRC_URI[sha256sum] = "d47318104415077635119dfee44bcfb41de3497374a9a001b1aff6e2f0858007"
 
 inherit autotools
 
-- 
2.20.1



  parent reply	other threads:[~2022-01-19 10:41 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-19 10:40 [PATCH 01/39] mesa: fold mesa-gl variant into the main recipe using mcextend class Alexander Kanavin
2022-01-19 10:40 ` [PATCH 02/39] meson: fold nativesdk into the main recipe Alexander Kanavin
2022-01-19 10:40 ` [PATCH 03/39] meson: update 0.60.3 -> 0.61.1 Alexander Kanavin
2022-01-19 10:40 ` [PATCH 04/39] efivar: update 37 -> 38 Alexander Kanavin
2022-01-19 10:40 ` [PATCH 05/39] libuv: update 1.42.0 -> 1.43.0 Alexander Kanavin
2022-01-19 10:40 ` [PATCH 06/39] resolvconf: update 1.87 -> 1.91 Alexander Kanavin
2022-01-19 10:40 ` [PATCH 07/39] systemd: update 250.1 -> 250.3 Alexander Kanavin
2022-01-19 10:40 ` [PATCH 08/39] python3: update 3.10.1 -> 3.10.2 Alexander Kanavin
2022-01-19 10:40 ` [PATCH 09/39] rust: update 1.57.0 -> 1.58.0 Alexander Kanavin
2022-01-19 10:40 ` [PATCH 10/39] logrotate: update 3.18.1 -> 3.19.0, drop rotate-across-filesystems patches Alexander Kanavin
2022-01-19 11:04   ` Robert Yang
2022-01-19 10:40 ` [PATCH 11/39] libunistring: update 0.9.10 -> 1.0 Alexander Kanavin
2022-01-19 10:40 ` [PATCH 12/39] sqlite: update 3.37.1 -> 3.37.2 Alexander Kanavin
2022-01-19 10:40 ` [PATCH 13/39] iproute2: upgrade 5.15.0 -> 5.16.0 Alexander Kanavin
2022-01-19 10:40 ` Alexander Kanavin [this message]
2022-01-19 10:40 ` [PATCH 15/39] readline: upgrade 8.1 -> 8.1.2 Alexander Kanavin
2022-01-19 10:40 ` [PATCH 16/39] go: upgrade 1.17.5 -> 1.17.6 Alexander Kanavin
2022-01-19 10:40 ` [PATCH 17/39] repo: upgrade 2.19 -> 2.20 Alexander Kanavin
2022-01-19 10:40 ` [PATCH 18/39] shadow: upgrade 4.10 -> 4.11.1 Alexander Kanavin
2022-01-19 10:40 ` [PATCH 19/39] btrfs-tools: upgrade 5.15.1 -> 5.16 Alexander Kanavin
2022-01-19 10:40 ` [PATCH 20/39] e2fsprogs: upgrade 1.46.4 -> 1.46.5 Alexander Kanavin
2022-01-19 10:40 ` [PATCH 21/39] mtd-utils: upgrade 2.1.3 -> 2.1.4 Alexander Kanavin
2022-01-19 10:41 ` [PATCH 22/39] mtools: upgrade 4.0.36 -> 4.0.37 Alexander Kanavin
2022-01-19 10:41 ` [PATCH 23/39] python3-pygments: upgrade 2.11.1 -> 2.11.2 Alexander Kanavin
2022-01-19 10:41 ` [PATCH 24/39] python3-pyrsistent: upgrade 0.18.0 -> 0.18.1 Alexander Kanavin
2022-01-19 10:41 ` [PATCH 25/39] python3-ruamel-yaml: upgrade 0.17.19 -> 0.17.20 Alexander Kanavin
2022-01-19 10:41 ` [PATCH 26/39] vala: upgrade 0.54.4 -> 0.54.6 Alexander Kanavin
2022-01-19 10:41 ` [PATCH 27/39] pigz: upgrade 2.6 -> 2.7 Alexander Kanavin
2022-01-19 10:41 ` [PATCH 28/39] rpcsvc-proto: upgrade 1.4.2 -> 1.4.3 Alexander Kanavin
2022-01-19 10:41 ` [PATCH 29/39] stress-ng: upgrade 0.13.09 -> 0.13.10 Alexander Kanavin
2022-01-19 10:41 ` [PATCH 30/39] piglit: upgrade to latest revision Alexander Kanavin
2022-01-19 10:41 ` [PATCH 31/39] libinput: upgrade 1.19.2 -> 1.19.3 Alexander Kanavin
2022-01-19 10:41 ` [PATCH 32/39] xwayland: upgrade 21.1.3 -> 21.1.4 Alexander Kanavin
2022-01-19 10:41 ` [PATCH 33/39] puzzles: upgrade to latest revision Alexander Kanavin
2022-01-19 10:41 ` [PATCH 34/39] webkitgtk: upgrade 2.34.2 -> 2.34.3 Alexander Kanavin
2022-01-19 10:41 ` [PATCH 35/39] diffoscope: upgrade 199 -> 200 Alexander Kanavin
2022-01-19 10:41 ` [PATCH 36/39] libsoup: upgrade 3.0.3 -> 3.0.4 Alexander Kanavin
2022-01-19 10:41 ` [PATCH 37/39] liburcu: upgrade 0.13.0 -> 0.13.1 Alexander Kanavin
2022-01-19 10:41 ` [PATCH 38/39] ffmpeg: upgrade 4.4.1 -> 5.0 Alexander Kanavin
2022-01-19 10:41 ` [PATCH 39/39] p11-kit: update 0.24.0 -> 0.24.1 Alexander Kanavin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220119104117.2120127-14-alex@linutronix.de \
    --to=alex.kanavin@gmail.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).