From patchwork Mon Mar 25 19:48:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 41483 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 734FBCD11DB for ; Mon, 25 Mar 2024 19:48:31 +0000 (UTC) Received: from mail-oo1-f49.google.com (mail-oo1-f49.google.com [209.85.161.49]) by mx.groups.io with SMTP id smtpd.web10.1461.1711396108763671831 for ; Mon, 25 Mar 2024 12:48:28 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bgC4PAHx; spf=pass (domain: gmail.com, ip: 209.85.161.49, mailfrom: raj.khem@gmail.com) Received: by mail-oo1-f49.google.com with SMTP id 006d021491bc7-5a51c063f99so1292028eaf.0 for ; Mon, 25 Mar 2024 12:48:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711396108; x=1712000908; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ViRg4QLjetog89jXvebXrZc8f1JGEfrW8LLY75cp6bw=; b=bgC4PAHxFXEoxtxgHB9HtWDnpuAwvcLwBG04ayoYLUh21wF9uCIt9HEylYHyedp6b7 c/WuIuHMeref/qeQRuURDAlVw95T+jud9TO0KlLcLLwfJ/N3TxPiV8hq5cxhkLQwPlMF 03msLJMfIqAsSwadyD6Vi8qqpuOAp2WupEl3jeXR5O+tgzBPJOGwTG1C+KD+n/Imhznn xK30Wieb4Wc8UKGKeRg5/GIZ0T7pDRjzREDp/Bl7wdJ0a/F/AALY8nd+WFWYc8OafcnW RQyx8Ux5Iu3TbczOs0DfM2dQNa1VYuKYcMw++PInkFQ62F8gTw4xz4JrqOVUTrD4j/8Q Vv4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711396108; x=1712000908; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ViRg4QLjetog89jXvebXrZc8f1JGEfrW8LLY75cp6bw=; b=l9xt0oiwv+Xk/Karq3OsFNibMmPYIMTBazjlhLUShMkjvM4kS2DyfkNfddO1CHS3EM WhWxKUhr+wydsIcMqzGdCFNas++XEMnKk+oNHTvXg2nB9resf3CtKrl4qpeqg5WbvJr3 atrZsEUFaKhmB9yxAkNGWL1odK+XOM0KEPCw/8G4cJSg8BLb2hDCMLUbybMcoY9WY1VF jUaBSkY8Ab4zw1tjeker4euxsENDq76s99mWnp4QlYl7Sr3vq38UpcNuWxMZ51BdP/v/ UzWev5+tVbWSKQsfAM4JndpYsU64OJlaKBs81DUP9flrWxAslZmdZ3QWXICju9zTTOFd 2S5A== X-Gm-Message-State: AOJu0Yyuhe5kkfqjqSl6kum7vo/Z6RKo9K7wDwgjhcTxHFFd6wH6HIBg RIRjCB8lsRKHK9Mreemcpgsv4ik53YK8/feXzBsTxapCYz4waGoLHGFLfpKB X-Google-Smtp-Source: AGHT+IGUmP5e74M2CLRIFha9qPz2ZHzZ7rS1CLc4V/kQZmHUw5WZg43P04cxZpe8xpQoTAQx1AZP6A== X-Received: by 2002:a05:6358:2490:b0:17f:5f17:29a1 with SMTP id m16-20020a056358249000b0017f5f1729a1mr5439558rwc.17.1711396107579; Mon, 25 Mar 2024 12:48:27 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9d80:4380::5eba]) by smtp.gmail.com with ESMTPSA id r14-20020a6560ce000000b005ce472f2d0fsm5122282pgv.66.2024.03.25.12.48.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 12:48:27 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-networking][PATCH 1/4] net-snmp: Fix build with musl Date: Mon, 25 Mar 2024 12:48:22 -0700 Message-ID: <20240325194825.641241-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.44.0 MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 25 Mar 2024 19:48:31 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/109600 The last patch 0012-Fix-configuration-of-NETSNMP_FD_MASK_TYPE.patch brought in with 5.9.4 upgrade is not sufficient and infact has a regression introduced for clang+musl builds. Signed-off-by: Khem Raj --- .../net-snmp/0001-Android-Fix-the-build.patch | 83 +++++++++++++++++++ .../net-snmp/net-snmp_5.9.4.bb | 1 + 2 files changed, 84 insertions(+) create mode 100644 meta-networking/recipes-protocols/net-snmp/net-snmp/0001-Android-Fix-the-build.patch diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp/0001-Android-Fix-the-build.patch b/meta-networking/recipes-protocols/net-snmp/net-snmp/0001-Android-Fix-the-build.patch new file mode 100644 index 0000000000..097d9f83cd --- /dev/null +++ b/meta-networking/recipes-protocols/net-snmp/net-snmp/0001-Android-Fix-the-build.patch @@ -0,0 +1,83 @@ +From b4598662a39ff6974119c900ea56a4d020eac366 Mon Sep 17 00:00:00 2001 +From: Bart Van Assche +Date: Wed, 20 Dec 2023 13:08:06 -0800 +Subject: [PATCH] Android: Fix the build + +Include for the fd_set type. In the configure script, +check whether 'unsigned long' is the underlying type of fd_set. Use +u_long instead of ulong. + +Upstream-Status: Backport [https://github.com/net-snmp/net-snmp/commit/b4598662a39ff6974119c900ea56a4d020eac366] +Signed-off-by: Khem Raj +--- + agent/mibgroup/ip-mib/data_access/ipaddress_linux.c | 4 ++-- + configure | 2 +- + configure.d/config_project_types | 2 +- + include/net-snmp/types.h | 3 +++ + 4 files changed, 7 insertions(+), 4 deletions(-) + +diff --git a/agent/mibgroup/ip-mib/data_access/ipaddress_linux.c b/agent/mibgroup/ip-mib/data_access/ipaddress_linux.c +index b38beb57dd..232202d0f9 100644 +--- a/agent/mibgroup/ip-mib/data_access/ipaddress_linux.c ++++ b/agent/mibgroup/ip-mib/data_access/ipaddress_linux.c +@@ -50,7 +50,7 @@ int _load_v6(netsnmp_container *container, int idx_offset); + int + netsnmp_access_ipaddress_extra_prefix_info(int index, + u_long *preferedlt, +- ulong *validlt, ++ u_long *validlt, + char *addr); + #endif + +@@ -523,7 +523,7 @@ out: + + int + netsnmp_access_ipaddress_extra_prefix_info(int index, u_long *preferedlt, +- ulong *validlt, char *addr) ++ u_long *validlt, char *addr) + { + + struct { +diff --git a/configure b/configure +index e7bf859bba..48abcbab11 100755 +--- a/configure ++++ b/configure +@@ -31577,7 +31577,7 @@ CFLAGS="$CFLAGS -Werror" + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the type of fd_set::fds_bits" >&5 + printf %s "checking for the type of fd_set::fds_bits... " >&6; } +-for type in __fd_mask __int32_t long\ int unknown; do ++for type in __fd_mask __int32_t long 'unsigned long' unknown; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ + +diff --git a/configure.d/config_project_types b/configure.d/config_project_types +index a78e8ebb06..ac958d6712 100644 +--- a/configure.d/config_project_types ++++ b/configure.d/config_project_types +@@ -66,7 +66,7 @@ netsnmp_save_CFLAGS=$CFLAGS + CFLAGS="$CFLAGS -Werror" + + AC_MSG_CHECKING([for the type of fd_set::fds_bits]) +-for type in __fd_mask __int32_t long\ int unknown; do ++for type in __fd_mask __int32_t long 'unsigned long' unknown; do + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([ + #include + #include +diff --git a/include/net-snmp/types.h b/include/net-snmp/types.h +index b78f53ffd7..6228170e5f 100644 +--- a/include/net-snmp/types.h ++++ b/include/net-snmp/types.h +@@ -23,6 +23,9 @@ + #endif + + #include ++#ifdef __ANDROID__ ++#include ++#endif + + #if defined(WIN32) && !defined(cygwin) + typedef HANDLE netsnmp_pid_t; +-- +2.44.0 + diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.4.bb b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.4.bb index 5da06bb6d7..395b02df00 100644 --- a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.4.bb +++ b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.4.bb @@ -27,6 +27,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/net-snmp/net-snmp-${PV}.tar.gz \ file://0010-net-snmp-Reproducibility-Don-t-check-build-host-for.patch \ file://0011-ac_add_search_path.m4-keep-consistent-between-32bit-.patch \ file://0012-Fix-configuration-of-NETSNMP_FD_MASK_TYPE.patch \ + file://0001-Android-Fix-the-build.patch \ " SRC_URI[sha256sum] = "8b4de01391e74e3c7014beb43961a2d6d6fa03acc34280b9585f4930745b0544" From patchwork Mon Mar 25 19:48:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 41482 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 70B76C54E64 for ; Mon, 25 Mar 2024 19:48:31 +0000 (UTC) Received: from mail-pf1-f180.google.com (mail-pf1-f180.google.com [209.85.210.180]) by mx.groups.io with SMTP id smtpd.web11.1512.1711396110011852355 for ; Mon, 25 Mar 2024 12:48:30 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=HHKdV5RQ; spf=pass (domain: gmail.com, ip: 209.85.210.180, mailfrom: raj.khem@gmail.com) Received: by mail-pf1-f180.google.com with SMTP id d2e1a72fcca58-6e6afb754fcso4195102b3a.3 for ; Mon, 25 Mar 2024 12:48:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711396109; x=1712000909; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=zWYqwi+BP2Jqm7TBLloOaBPOKVkc72r8zI379SPgIPg=; b=HHKdV5RQuU3mO5QjbejrqWHn9slrZzLK3HZ/M90pOVrhdGIdnjYNCO5VqjaMXDYBpn UttmiyUE/C7TbW5fuf+ErJld6TTfzUGe4/q3k/0qnt4O5vXBltRNMz04vuI19xQDTKXB aNEArR59btYgyMsr4sJ7fDtXRGzrxMp2YNolYZygNETbn+W9UEDNkgiUgdIWc570hMx5 dm6tp3i1wtwBiGeLg3Gv/NsqpfPHUna4VynPg7QdS/5QH2R+IyKYrlRpxRA32kGBd+bf 1U5CBYgNJlvG5dy2DJStkBsMqSc+ZyUfD9WhRTBk01Da7FEjwen7JrmmJs8BEZk7IAyo F4Wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711396109; x=1712000909; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zWYqwi+BP2Jqm7TBLloOaBPOKVkc72r8zI379SPgIPg=; b=OU4Xe9oHoX9LhUFE6+sPcuFjSz2LnFGNXqUEU5NKuS1qBygRSHy+jcnXmApBYW+pIs tbEA4q5ZuBd+MjotIy+rBRtKSxoSwZk9BLwO/ooDRdKFoaB8w5M5LdIR7udxPbfrMaox N30PqQWbv5f62BWj/yk4e/75c3OWj6rNVvI3YB0qe32f9SerbqhPcVbe/xFlm19CB+U2 0HoMTTKWiZ0/Sz6UOU2XnFFL77CLXZUgH4ugMMyLZwFRnOxuCozHwctCJCadEPnTqaUr EWH04UFlrh84Kn+332fBF4pLjD+vhfJnZrMAOyR+KlWPukCxcI7gPkoCnYrQrUofKcNU WJHA== X-Gm-Message-State: AOJu0YzWc22l9cPYg5oElIeu7nUcH6t0yQTBP/nAvgX2q5oYJFdCAgxc TAL6dcCDoK5E4CNcKzi9GzGPhXTYopd0r4hLEfyZ4AVJlJS2BKShFpL+Elou X-Google-Smtp-Source: AGHT+IFoxT49oRwv6mKfnfDdZgQFdg1vl1vWeEUVShaJdj76THjhK6V+40PAtrCYTqyOqyZGlVBgEw== X-Received: by 2002:a05:6a00:194a:b0:6ea:b69a:7c70 with SMTP id s10-20020a056a00194a00b006eab69a7c70mr1372386pfk.34.1711396108926; Mon, 25 Mar 2024 12:48:28 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9d80:4380::5eba]) by smtp.gmail.com with ESMTPSA id r14-20020a6560ce000000b005ce472f2d0fsm5122282pgv.66.2024.03.25.12.48.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 12:48:27 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-networking][PATCH 2/4] rdma-core: Fix build with musl >= 1.2.5 Date: Mon, 25 Mar 2024 12:48:23 -0700 Message-ID: <20240325194825.641241-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240325194825.641241-1-raj.khem@gmail.com> References: <20240325194825.641241-1-raj.khem@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 25 Mar 2024 19:48:31 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/109601 Signed-off-by: Khem Raj --- .../0001-include-libgen.h-for-basename.patch | 58 +++++++++++++++++++ .../rdma-core/rdma-core_50.0.bb | 4 +- 2 files changed, 61 insertions(+), 1 deletion(-) create mode 100644 meta-networking/recipes-support/rdma-core/rdma-core/0001-include-libgen.h-for-basename.patch diff --git a/meta-networking/recipes-support/rdma-core/rdma-core/0001-include-libgen.h-for-basename.patch b/meta-networking/recipes-support/rdma-core/rdma-core/0001-include-libgen.h-for-basename.patch new file mode 100644 index 0000000000..a093e47048 --- /dev/null +++ b/meta-networking/recipes-support/rdma-core/rdma-core/0001-include-libgen.h-for-basename.patch @@ -0,0 +1,58 @@ +From ae6adc4c748e67919fdf8ae1d44c619ee104c271 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Mon, 25 Mar 2024 11:37:41 -0700 +Subject: [PATCH] include libgen.h for basename + +basename prototype has been removed from string.h from latest musl [1] +compilers e.g. clang-18 flags the absense of prototype as error. therefore +include libgen.h for providing it. + +[1] https://git.musl-libc.org/cgit/musl/commit/?id=725e17ed6dff4d0cd22487bb64470881e86a92e7 + +Upstream-Status: Submitted [https://github.com/linux-rdma/rdma-core/pull/1443] +Signed-off-by: Khem Raj +--- + kernel-boot/rdma_rename.c | 1 + + librdmacm/examples/rping.c | 1 + + providers/mlx5/mlx5_vfio.c | 1 + + 3 files changed, 3 insertions(+) + +diff --git a/kernel-boot/rdma_rename.c b/kernel-boot/rdma_rename.c +index 4af9e4a39..5193ac411 100644 +--- a/kernel-boot/rdma_rename.c ++++ b/kernel-boot/rdma_rename.c +@@ -2,6 +2,7 @@ + /* Copyright (c) 2019, Mellanox Technologies. All rights reserved. See COPYING file */ + + #define _GNU_SOURCE ++#include + #include + #include + #include +diff --git a/librdmacm/examples/rping.c b/librdmacm/examples/rping.c +index cc16ad910..0f1321458 100644 +--- a/librdmacm/examples/rping.c ++++ b/librdmacm/examples/rping.c +@@ -33,6 +33,7 @@ + #define _GNU_SOURCE + #include + #include ++#include + #include + #include + #include +diff --git a/providers/mlx5/mlx5_vfio.c b/providers/mlx5/mlx5_vfio.c +index cd0c41462..4d064b1fc 100644 +--- a/providers/mlx5/mlx5_vfio.c ++++ b/providers/mlx5/mlx5_vfio.c +@@ -6,6 +6,7 @@ + #define _GNU_SOURCE + #include + ++#include + #include + #include + #include +-- +2.44.0 + diff --git a/meta-networking/recipes-support/rdma-core/rdma-core_50.0.bb b/meta-networking/recipes-support/rdma-core/rdma-core_50.0.bb index d0f4fd47a5..ab4de22a51 100644 --- a/meta-networking/recipes-support/rdma-core/rdma-core_50.0.bb +++ b/meta-networking/recipes-support/rdma-core/rdma-core_50.0.bb @@ -6,7 +6,9 @@ DEPENDS = "libnl" RDEPENDS:${PN} = "bash perl" SRC_URI = "git://github.com/linux-rdma/rdma-core.git;branch=master;protocol=https \ - file://0001-cmake-Allow-SYSTEMCTL_BIN-to-be-overridden-from-envi.patch" + file://0001-cmake-Allow-SYSTEMCTL_BIN-to-be-overridden-from-envi.patch \ + file://0001-include-libgen.h-for-basename.patch \ +" SRCREV = "bc6b4bc134532e952fe7f8efc251e1f89b912098" S = "${WORKDIR}/git" From patchwork Mon Mar 25 19:48:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 41481 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 84A68C54E58 for ; Mon, 25 Mar 2024 19:48:31 +0000 (UTC) Received: from mail-oa1-f42.google.com (mail-oa1-f42.google.com [209.85.160.42]) by mx.groups.io with SMTP id smtpd.web10.1463.1711396110688215263 for ; Mon, 25 Mar 2024 12:48:30 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Y+z722Q7; spf=pass (domain: gmail.com, ip: 209.85.160.42, mailfrom: raj.khem@gmail.com) Received: by mail-oa1-f42.google.com with SMTP id 586e51a60fabf-2228c3ffcbdso1997734fac.2 for ; Mon, 25 Mar 2024 12:48:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711396110; x=1712000910; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=bhZ+k+jDI+iFCV5aWFRv0/jreg5FkBwCxz4zd0KuAro=; b=Y+z722Q7nLeVBnrekOCc1+o2BaaxfiiR0bT47BfQjxxPjdSBAoB+ruN57b646UP+JK TajjTrn7kN74H2ALFpZzX8KkOX1X2NER/Jhh2hVblfhGHuzWEOlSWYGLSzxa25ZvqKTh nTa7OZgl6NlsItjVGxz/ygKsxER4MA5TayuLNpoh2rjgz23+3eQekVbRugo3hsFIXjyc dak/qrkPs1p/iUzbwHKxz/q3elaA7NPamNSLCD5UNvkwS963rWfJ+YJh7SyE9LbzpmOx UuMJ2uX3f7bdTmK0wUwqC3+ffDeRxmrUPnOJiCMSIhSb45gtcgQlgwq2//wOTu1fbu2M zELA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711396110; x=1712000910; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bhZ+k+jDI+iFCV5aWFRv0/jreg5FkBwCxz4zd0KuAro=; b=RrJddnL2etP3cXq5lkfhz+nCGW5wS8vmXysvrN5c9ePJB7PBOaYJbIC6NBIL8a0tS+ 6wrAEEiUgaIKmjrIXDt1+LS5/ifql8jvro/3akxXqDL5FkPPbDCxRgeT+kI7DaoYyQqX cFjeuixbtsWE8L3M+WuIvlV9FNgw7vJgjzJ7sdVUVLJPdbx8vU/YrHOihqkk7ltmU+nB tns+lH4WeC5BtvHBSBDqDfMQ5Gn+yX9w11O75rzKHLMi6xp6z8vPqoA2qsTpxTUvS/YW yBflylUrtYnMoz7UJUvI8uyS0wDgs9n1eoOak0jce26Qkk1UpsoG/MUVl/yPsyfpl4vl j/hw== X-Gm-Message-State: AOJu0YxoqCe7QfAXkm5F0sxKG36C0M3+70/apaDSEl93DSHpKdvrDibE EOVgae6myfrehVEWdtv+rSZJ/1eDE/aqslqcYxyFk5BamDRdZ/LndmRthm0Q X-Google-Smtp-Source: AGHT+IFcwgRdWkDSnvrZOaofD1Ns7T/ENfLdSmg75zvCzqQiFyq+MgfYZgJf3Mvbd92mxY+zM9sf0w== X-Received: by 2002:a05:6870:9714:b0:229:cea1:243e with SMTP id n20-20020a056870971400b00229cea1243emr7866318oaq.0.1711396109658; Mon, 25 Mar 2024 12:48:29 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9d80:4380::5eba]) by smtp.gmail.com with ESMTPSA id r14-20020a6560ce000000b005ce472f2d0fsm5122282pgv.66.2024.03.25.12.48.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 12:48:29 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-networking][PATCH 3/4] ssmtp: Fix build with musl >= 1.2.5 Date: Mon, 25 Mar 2024 12:48:24 -0700 Message-ID: <20240325194825.641241-3-raj.khem@gmail.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240325194825.641241-1-raj.khem@gmail.com> References: <20240325194825.641241-1-raj.khem@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 25 Mar 2024 19:48:31 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/109602 Signed-off-by: Khem Raj --- .../0001-include-libgen.h-for-basename.patch | 32 +++++++++++++++++++ .../recipes-support/ssmtp/ssmtp_2.64.bb | 1 + 2 files changed, 33 insertions(+) create mode 100644 meta-networking/recipes-support/ssmtp/ssmtp/0001-include-libgen.h-for-basename.patch diff --git a/meta-networking/recipes-support/ssmtp/ssmtp/0001-include-libgen.h-for-basename.patch b/meta-networking/recipes-support/ssmtp/ssmtp/0001-include-libgen.h-for-basename.patch new file mode 100644 index 0000000000..094ba5afa2 --- /dev/null +++ b/meta-networking/recipes-support/ssmtp/ssmtp/0001-include-libgen.h-for-basename.patch @@ -0,0 +1,32 @@ +From b48840952ec9a68363bed960e98dd6c7aaa3acec Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Mon, 25 Mar 2024 11:55:59 -0700 +Subject: [PATCH] include libgen.h for basename + +basename prototype has been removed from string.h from latest musl [1] +compilers e.g. clang-18 flags the absense of prototype as error. therefore +include libgen.h for providing it. + +[1] https://git.musl-libc.org/cgit/musl/commit/?id=725e17ed6dff4d0cd22487bb64470881e86a92e7 + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- + ssmtp.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/ssmtp.c b/ssmtp.c +index 0a719ac..4dedaf8 100644 +--- a/ssmtp.c ++++ b/ssmtp.c +@@ -23,6 +23,7 @@ + #include + #include + #include ++#include + #include + #include + #ifdef HAVE_SSL +-- +2.44.0 + diff --git a/meta-networking/recipes-support/ssmtp/ssmtp_2.64.bb b/meta-networking/recipes-support/ssmtp/ssmtp_2.64.bb index 05d2bb18ff..499a79d1ed 100644 --- a/meta-networking/recipes-support/ssmtp/ssmtp_2.64.bb +++ b/meta-networking/recipes-support/ssmtp/ssmtp_2.64.bb @@ -8,6 +8,7 @@ SRC_URI = "${DEBIAN_MIRROR}/main/s/${BPN}/${BPN}_${PV}.orig.tar.bz2 \ file://build-ouside_srcdir.patch \ file://use-DESTDIR.patch \ file://0001-ssmtp-Correct-the-null-pointer-assignment-to-char-po.patch \ + file://0001-include-libgen.h-for-basename.patch \ " SRC_URI[md5sum] = "65b4e0df4934a6cd08c506cabcbe584f" From patchwork Mon Mar 25 19:48:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 41484 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6D06DC54E58 for ; Mon, 25 Mar 2024 19:48:41 +0000 (UTC) Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) by mx.groups.io with SMTP id smtpd.web11.1513.1711396111760566688 for ; Mon, 25 Mar 2024 12:48:31 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=XNaukiwU; spf=pass (domain: gmail.com, ip: 209.85.210.175, mailfrom: raj.khem@gmail.com) Received: by mail-pf1-f175.google.com with SMTP id d2e1a72fcca58-6ea80de0e97so1963246b3a.2 for ; Mon, 25 Mar 2024 12:48:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711396111; x=1712000911; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=UZOISbR+A8ODp2C6rwPmFra+PQQwpuT2CJvbv//kEAE=; b=XNaukiwUmgaxLlNXEyPOQBnLYvyqQDO+OSJCE9SnrWJvp8rbdN5A41wCtLHLzob6Z+ 0u+mvSKyB5FPlVpXEAa1xtcxXKm0tLQInSQ8rYVOerGhzPk/ryJrrsXs2MJGqzTDBHLi vesqjsIlPD6/iL3p3k5ehfbMm+HriJY6FjNGupyQUBb2/T/4kyespNsMkxbflYVSiC6u fBuJEgpHF85DKuBgw9evREEos2pUChTZZQxWmeC6Bt9Fw9hZs0ueZgWRfOhFaD/yIecS +xy1Rk7iKblD5yTxbipTQWGlVmsz9nl/YudS04ZZuStL9ayibKQjMxBydwsJcYe5lu2e MZbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711396111; x=1712000911; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=UZOISbR+A8ODp2C6rwPmFra+PQQwpuT2CJvbv//kEAE=; b=ZolhWFJX708TMBQ2dv2lyVUl9kyULhLHOlLRMm5wUZ+GVcVkPEWn6nmJNEIKvMJjLN 0joj8IjZzwsNA6RwhoLaKdRsI3mLJRxu9OnSdbcDTpp01OYWY9yDyAnjCZxwomniFRdg 8MUDqZvplaj3j8gafpXwdfGr+1URTVYTD9gowzxJ6rC1Oe0EFdPcm8FI8uV/76P2X4fS UIvlyZLDrtQB2ql7N1jrSdgBfKoJEjoOgvzVojO03uSlgoZHrYxCOi5CpwIwffh98wv/ /2kQemPsWesuTiukQyYVHm4ZqI9roQEFfI13OeEVyQU+hENbvcUZIGPMF3jm1MpPZcCd vORQ== X-Gm-Message-State: AOJu0Yxd4IonyeFVtIrKiWEYIQRQt1ZRPMYAqdzpUwiRIxE9wj4Ewpbe OIJfKBZtNV+Fmcl+kQH4AWS0iYkQjLMITzh9iw7BpdM+eeiHjiaAAdH9ZvnA X-Google-Smtp-Source: AGHT+IFQnUYeudRdVP/OWsiIcrRRqqF06Yi9ShJAXbi4QecXEdIsDltKPNO3cIq7Tc4jhuiPKwW1ng== X-Received: by 2002:a05:6a00:b43:b0:6e4:62ed:23c3 with SMTP id p3-20020a056a000b4300b006e462ed23c3mr11737673pfo.9.1711396110812; Mon, 25 Mar 2024 12:48:30 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9d80:4380::5eba]) by smtp.gmail.com with ESMTPSA id r14-20020a6560ce000000b005ce472f2d0fsm5122282pgv.66.2024.03.25.12.48.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 12:48:30 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-networking][PATCH 4/4] autofs: Fix build with musl >= 1.2.5 Date: Mon, 25 Mar 2024 12:48:25 -0700 Message-ID: <20240325194825.641241-4-raj.khem@gmail.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240325194825.641241-1-raj.khem@gmail.com> References: <20240325194825.641241-1-raj.khem@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 25 Mar 2024 19:48:41 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/109603 Signed-off-by: Khem Raj --- .../0001-include-libgen.h-for-basename.patch | 58 +++++++++++++++++++ .../recipes-daemons/autofs/autofs_5.1.8.bb | 1 + 2 files changed, 59 insertions(+) create mode 100644 meta-networking/recipes-daemons/autofs/autofs/0001-include-libgen.h-for-basename.patch diff --git a/meta-networking/recipes-daemons/autofs/autofs/0001-include-libgen.h-for-basename.patch b/meta-networking/recipes-daemons/autofs/autofs/0001-include-libgen.h-for-basename.patch new file mode 100644 index 0000000000..4c8b4ef779 --- /dev/null +++ b/meta-networking/recipes-daemons/autofs/autofs/0001-include-libgen.h-for-basename.patch @@ -0,0 +1,58 @@ +From 1651e7a35be8b3e2fa90ca57b073f6944664fa62 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Mon, 25 Mar 2024 12:04:03 -0700 +Subject: [PATCH] include libgen.h for basename + +basename prototype has been removed from string.h from latest musl [1] +compilers e.g. clang-18 flags the absense of prototype as error. therefore +include libgen.h for providing it. + +[1] https://git.musl-libc.org/cgit/musl/commit/?id=725e17ed6dff4d0cd22487bb64470881e86a92e7 + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- + daemon/automount.c | 1 + + daemon/master.c | 1 + + modules/lookup_file.c | 1 + + 3 files changed, 3 insertions(+) + +diff --git a/daemon/automount.c b/daemon/automount.c +index 3d9461d..61b3478 100644 +--- a/daemon/automount.c ++++ b/daemon/automount.c +@@ -21,6 +21,7 @@ + + #include + #include ++#include + #include + #include + #include +diff --git a/daemon/master.c b/daemon/master.c +index f99359c..3f56499 100644 +--- a/daemon/master.c ++++ b/daemon/master.c +@@ -21,6 +21,7 @@ + #include + #include + #include ++#include + #include + #include + #include +diff --git a/modules/lookup_file.c b/modules/lookup_file.c +index 6afc558..82b1f28 100644 +--- a/modules/lookup_file.c ++++ b/modules/lookup_file.c +@@ -15,6 +15,7 @@ + + #include + #include ++#include + #include + #include + #include +-- +2.44.0 + diff --git a/meta-networking/recipes-daemons/autofs/autofs_5.1.8.bb b/meta-networking/recipes-daemons/autofs/autofs_5.1.8.bb index ca11f1a170..e3f9777380 100644 --- a/meta-networking/recipes-daemons/autofs/autofs_5.1.8.bb +++ b/meta-networking/recipes-daemons/autofs/autofs_5.1.8.bb @@ -29,6 +29,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/daemons/autofs/v5/autofs-${PV}.tar.gz \ file://mount_conflict.patch \ file://0001-autofs-5.1.8-add-autofs_strerror_r-helper-for-musl.patch \ file://0002-autofs-5.1.8-handle-innetgr-not-present-in-musl.patch \ + file://0001-include-libgen.h-for-basename.patch \ " SRC_URI[sha256sum] = "0bd401c56f0eb1ca6251344c3a3d70bface3eccf9c67117cd184422c4cace30c"