All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexander Kanavin <alex.kanavin@gmail.com>
To: openembedded-core@lists.openembedded.org
Cc: Alexander Kanavin <alex@linutronix.de>,
	Bruce Ashfield <bruce.ashfield@gmail.com>
Subject: [PATCH 09/16] strace: update 5.14 -> 5.15
Date: Tue,  7 Dec 2021 14:06:56 +0100	[thread overview]
Message-ID: <20211207130703.3196805-9-alex@linutronix.de> (raw)
In-Reply-To: <20211207130703.3196805-1-alex@linutronix.de>

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
---
 ...1-Avoid-relying-on-presence-of-ipx.h.patch | 151 ------------------
 .../strace/{strace_5.14.bb => strace_5.15.bb} |   3 +-
 2 files changed, 1 insertion(+), 153 deletions(-)
 delete mode 100644 meta/recipes-devtools/strace/strace/0001-Avoid-relying-on-presence-of-ipx.h.patch
 rename meta/recipes-devtools/strace/{strace_5.14.bb => strace_5.15.bb} (93%)

diff --git a/meta/recipes-devtools/strace/strace/0001-Avoid-relying-on-presence-of-ipx.h.patch b/meta/recipes-devtools/strace/strace/0001-Avoid-relying-on-presence-of-ipx.h.patch
deleted file mode 100644
index e791b4130d..0000000000
--- a/meta/recipes-devtools/strace/strace/0001-Avoid-relying-on-presence-of-ipx.h.patch
+++ /dev/null
@@ -1,151 +0,0 @@
-From 197f712ea96c12dcabc9fe98889a425d61ad6a60 Mon Sep 17 00:00:00 2001
-From: Eugene Syromyatnikov <evgsyr@gmail.com>
-Date: Wed, 3 Nov 2021 00:48:59 +0100
-Subject: [PATCH] Avoid relying on presence of ipx.h
-
-After Linux has broken UAPI in commit v5.15-rc1~157^2~207, it is well
-possible that neither kernel nor libc (such as musl, for example)
-provide IPX-related header.  Avoid relying on its presence
-in the strace's code and conditionalise the relevant checks in the tests.
-
-* configure.ac (AC_CHECK_HEADERS): Add linux/ipx.h.
-* src/net.c: Remove <netipx/ipx.h>/<linux/ipx.h> includes.
-* src/sockaddr.c: Likewise.
-(IPX_NODE_LEN): New macro constant.
-(struct sockaddr_ipx): New type definition.
-* src/xlat/sock_ipx_options.in (IPX_TYPE): Provide a fallback value.
-* tests/net-sockaddr.c [!HAVE_LINUX_IPX_H]: Do not include
-<linux/ipx.h>.
-[!HAVE_LINUX_IPX_H && HAVE_NETIPX_IPX_H]: Include <netipx/ipx.h>.
-[!(HAVE_LINUX_IPX_H || defined HAVE_NETIPX_IPX_H)]: Do not define
-check_ipx.
-[!(HAVE_LINUX_IPX_H || defined HAVE_NETIPX_IPX_H)] (main): Do not call
-check_ipx.
-
-Closes: https://github.com/strace/strace/issues/201
-
-Upstream-Status: Backport [commit cca828197c0e1 branch esyr/5.15]
-
-[bva: changed context to apply to a released strace 5.14 tarball]
-Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
-
----
- configure.ac                 |  1 +
- src/net.c                    |  5 -----
- src/sockaddr.c               | 16 ++++++++++------
- src/xlat/sock_ipx_options.in |  2 +-
- tests/net-sockaddr.c         | 10 +++++++++-
- 5 files changed, 21 insertions(+), 13 deletions(-)
-
-Index: strace-5.14/configure.ac
-===================================================================
---- strace-5.14.orig/configure.ac
-+++ strace-5.14/configure.ac
-@@ -423,6 +423,7 @@
- 	elf.h
- 	gcov.h
- 	iconv.h
-+	linux/ipx.h
- 	mqueue.h
- 	netinet/sctp.h
- 	netipx/ipx.h
-Index: strace-5.14/src/net.c
-===================================================================
---- strace-5.14.orig/src/net.c
-+++ strace-5.14/src/net.c
-@@ -28,11 +28,6 @@
- #include <arpa/inet.h>
- #include <net/if.h>
- #include <asm/types.h>
--#ifdef HAVE_NETIPX_IPX_H
--# include <netipx/ipx.h>
--#else
--# include <linux/ipx.h>
--#endif
- 
- #include <linux/ip_vs.h>
- #include "netlink.h"
-Index: strace-5.14/src/sockaddr.c
-===================================================================
---- strace-5.14.orig/src/sockaddr.c
-+++ strace-5.14/src/sockaddr.c
-@@ -24,12 +24,6 @@
- #include <linux/if_ether.h>
- #include <linux/x25.h>
- 
--#ifdef HAVE_NETIPX_IPX_H
--# include <netipx/ipx.h>
--#else
--# include <linux/ipx.h>
--#endif
--
- #include "xlat/addrfams.h"
- #include "xlat/arp_hardware_types.h"
- #include "xlat/ethernet_protocols.h"
-@@ -45,6 +39,16 @@
- const size_t arp_hardware_types_size = ARRAY_SIZE(arp_hardware_types) - 1;
- const size_t ethernet_protocols_size = ARRAY_SIZE(ethernet_protocols) - 1;
- 
-+#define IPX_NODE_LEN	6
-+struct sockaddr_ipx {
-+	uint16_t sipx_family;
-+	uint16_t sipx_port;
-+	uint32_t sipx_network;
-+	unsigned char sipx_node[IPX_NODE_LEN];
-+	uint8_t sipx_type;
-+	unsigned char sipx_zero;
-+};
-+
- static void
- print_sockaddr_data_un(struct tcb *tcp, const void *const buf, const int addrlen)
- {
-Index: strace-5.14/src/xlat/sock_ipx_options.in
-===================================================================
---- strace-5.14.orig/src/xlat/sock_ipx_options.in
-+++ strace-5.14/src/xlat/sock_ipx_options.in
-@@ -1 +1 @@
--IPX_TYPE
-+IPX_TYPE	1
-Index: strace-5.14/tests/net-sockaddr.c
-===================================================================
---- strace-5.14.orig/tests/net-sockaddr.c
-+++ strace-5.14/tests/net-sockaddr.c
-@@ -24,7 +24,11 @@
- #include <linux/if_ether.h>
- #include <linux/if_packet.h>
- #include <linux/x25.h>
--#include <linux/ipx.h>
-+#if defined HAVE_LINUX_IPX_H
-+# include <linux/ipx.h>
-+#elif defined HAVE_NETIPX_IPX_H
-+# include <netipx/ipx.h>
-+#endif
- #ifdef HAVE_BLUETOOTH_BLUETOOTH_H
- # include <bluetooth/bluetooth.h>
- # include <bluetooth/hci.h>
-@@ -269,6 +273,7 @@
- 	printf("connect(-1, %p, %u) = %d EBADF (%m)\n", in6, len, ret);
- }
- 
-+#if defined HAVE_LINUX_IPX_H || defined HAVE_NETIPX_IPX_H
- static void
- check_ipx(void)
- {
-@@ -295,6 +300,7 @@
- 	       c_ipx.sipx_node[4], c_ipx.sipx_node[5],
- 	       c_ipx.sipx_type, len, ret);
- }
-+#endif /* HAVE_LINUX_IPX_H || defined HAVE_NETIPX_IPX_H */
- 
- /* for a bit more compact AX.25 address definitions */
- #define AX25_ADDR(c_, s_) \
-@@ -773,7 +779,9 @@
- 	check_un();
- 	check_in();
- 	check_in6();
-+#if defined HAVE_LINUX_IPX_H || defined HAVE_NETIPX_IPX_H
- 	check_ipx();
-+#endif
- 	check_ax25();
- 	check_x25();
- 	check_nl();
diff --git a/meta/recipes-devtools/strace/strace_5.14.bb b/meta/recipes-devtools/strace/strace_5.15.bb
similarity index 93%
rename from meta/recipes-devtools/strace/strace_5.14.bb
rename to meta/recipes-devtools/strace/strace_5.15.bb
index 4fbff04137..716806d22f 100644
--- a/meta/recipes-devtools/strace/strace_5.14.bb
+++ b/meta/recipes-devtools/strace/strace_5.15.bb
@@ -13,9 +13,8 @@ SRC_URI = "https://strace.io/files/${PV}/strace-${PV}.tar.xz \
            file://0001-caps-abbrev.awk-fix-gawk-s-path.patch \
            file://ptest-spacesave.patch \
            file://0001-strace-fix-reproducibilty-issues.patch \
-           file://0001-Avoid-relying-on-presence-of-ipx.h.patch \
            "
-SRC_URI[sha256sum] = "901bee6db5e17debad4530dd9ffb4dc9a96c4a656edbe1c3141b7cb307b11e73"
+SRC_URI[sha256sum] = "ebcac22f297335294dc654425cbc3ce013343bece6da2699e3aec86aee8d72dc"
 
 inherit autotools ptest
 
-- 
2.20.1



  parent reply	other threads:[~2021-12-07 13:07 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-07 13:06 [PATCH 01/16] insane.bbclass: do not hardcode oe-core path in upstream-status check Alexander Kanavin
2021-12-07 13:06 ` [PATCH 02/16] python3: drop unneeded multiprocessing module patch Alexander Kanavin
2021-12-07 13:06 ` [PATCH 03/16] libid3tag: move to meta-oe Alexander Kanavin
2021-12-07 13:06 ` [PATCH 04/16] serf: mark patches as inappropriate for upstream submission Alexander Kanavin
2021-12-07 13:06 ` [PATCH 05/16] rustfmt: remove the recipe Alexander Kanavin
2021-12-07 16:01   ` [OE-core] " Khem Raj
2021-12-08  0:10     ` Randy MacLeod
2021-12-07 13:06 ` [PATCH 06/16] python3-pycryptodome: update to 3.12.0 Alexander Kanavin
2021-12-07 13:06 ` [PATCH 07/16] repo: update 2.17.3 -> 2.18 Alexander Kanavin
2021-12-07 13:06 ` [PATCH 08/16] rust: update 1.56.1 -> 1.57.0 Alexander Kanavin
2021-12-07 13:06 ` Alexander Kanavin [this message]
2021-12-07 13:06 ` [PATCH 10/16] cups: update 2.3.3op2 -> 2.4.0 Alexander Kanavin
2021-12-07 13:06 ` [PATCH 11/16] libseccomp: update 2.5.2 -> 2.5.3 Alexander Kanavin
2021-12-07 13:06 ` [PATCH 12/16] erofs-utils: update 1.3 -> 1.4 Alexander Kanavin
2021-12-07 13:07 ` [PATCH 13/16] git: upgrade 2.34.0 -> 2.34.1 Alexander Kanavin
2021-12-07 13:07 ` [PATCH 14/16] go: update 1.17.3 -> 1.17.4 Alexander Kanavin
2021-12-07 13:07 ` [PATCH 15/16] ruby: update 3.0.2 -> 3.0.3 Alexander Kanavin
2021-12-07 15:57   ` [OE-core] " Khem Raj
2021-12-07 18:47     ` Alexander Kanavin
2021-12-07 13:07 ` [PATCH 16/16] libunwind: update 1.6.0 -> 1.6.2 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=20211207130703.3196805-9-alex@linutronix.de \
    --to=alex.kanavin@gmail.com \
    --cc=alex@linutronix.de \
    --cc=bruce.ashfield@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.