From patchwork Thu May 9 01:30:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 43385 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 EC8D1C04FFE for ; Thu, 9 May 2024 01:30:56 +0000 (UTC) Received: from mail-pg1-f174.google.com (mail-pg1-f174.google.com [209.85.215.174]) by mx.groups.io with SMTP id smtpd.web10.11.1715218252358999387 for ; Wed, 08 May 2024 18:30:52 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=CBgqGvPo; spf=pass (domain: gmail.com, ip: 209.85.215.174, mailfrom: raj.khem@gmail.com) Received: by mail-pg1-f174.google.com with SMTP id 41be03b00d2f7-53fa455cd94so301050a12.2 for ; Wed, 08 May 2024 18:30:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715218251; x=1715823051; 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=TBOp6RWOEOt2ptt6RZbOi15dpuHcI0yKw4Cb7SNiNI4=; b=CBgqGvPoDs7+pTKDljmUH4In01cdeMOG3oHXc184vOrlHR5v4YZ3O4VwYdRtMwHAaP cG/ROffW/ia9NsjvCLHkD+VFkH0/B8X3ztGEPnjU0hECVcFO3WbMmGMUUXCPMEsp77K3 KutpgPJ/dJikv06qzih9Kn9aiLBTnHH1wM5EXLKP9LLBSaUJyL0CMfUZnRd4EEh/bi5U ssYTFwZDnAI1kNoHliaWGTzJc3+NZnJHY6V8GxDmEhuAMls7ujIL6+bxVJWKeyMQQ/J7 3AarnTA6ECoRijMRO0Kj8/jDgSjniOwa26VIU0HBv95HOuh+g8yaulmjT6eA4cF95R1c jXmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715218251; x=1715823051; 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=TBOp6RWOEOt2ptt6RZbOi15dpuHcI0yKw4Cb7SNiNI4=; b=cJaHMsu70cPdL7BvZqoKQ8PpikgN7ELx9LRHlBr5mGsZG3t9kY9xDhwj1S1OeZ5AzL fydpX1q1uxMyAZirC5p8uqnkjbRYvHfSKPZNiSJ4a8Am2/k2vzXf5SYqPW5JsUIA8ubJ ervVWCfgBUe8/VjjT9HnOSFN6Ljw0BLlV9FaX1i0JOVdAhhrkpoLUX4R1H04h/DgChxR zQ7sTmIRaAWVyby8QoCq70WaPUIrtv5onbtEXP9Qc+TpYcw3v5zw37A/+9qIc760sUxV ApsdouX6fYAu8N76Irv0HVTwsABFBjRiuuZuLwcgmqpRHV9heF/u1o7fng0BsSv0Fxhb 1Gkw== X-Gm-Message-State: AOJu0Yw/WJpvoa0UCd2XX8YSrONaABjIeg4qnV76hRDd252P/RGrH8Z/ EseOY/pXPiaBU6E5HOVQmwlTmyrm6zAQRhjbIr6jvCDwX4Mz+cq2VpwR+/yk X-Google-Smtp-Source: AGHT+IHylgz2ceFczXehh2NNDYf71jCPKLhOdJKirMJ3BkKMW7Pjoe8Zivwrc614xojMXXcUeFTsqw== X-Received: by 2002:a17:90b:4d89:b0:2b5:af18:4222 with SMTP id 98e67ed59e1d1-2b616c00d4bmr4077625a91.44.1715218251490; Wed, 08 May 2024 18:30:51 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9d80:4380::af2d]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2b67158de4dsm244558a91.42.2024.05.08.18.30.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 18:30:51 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Cc: Khem Raj Subject: [PATCH V2 1/4] python3: Treat UID/GID overflow as failure Date: Wed, 8 May 2024 18:30:46 -0700 Message-ID: <20240509013049.523093-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.45.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 ; Thu, 09 May 2024 01:30:56 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/199132 This fixes ptest failures on 32bit architectures AssertionError: Failed ptests: {'python3': ['test_extractall_none_gid', 'test_extractall_none_gname', 'test_extractall_none_mode', 'test_extractall_none_mtime', 'test_extractall_none_uid', 'test_extractall_none_uname', 'setUpClass', 'python3']} Signed-off-by: Khem Raj --- v2: Fix typo in subject ...e-treat-overflow-in-UID-GID-as-failu.patch | 40 +++++++++++++++++++ .../recipes-devtools/python/python3_3.12.3.bb | 1 + 2 files changed, 41 insertions(+) create mode 100644 meta/recipes-devtools/python/python3/0001-gh-107811-tarfile-treat-overflow-in-UID-GID-as-failu.patch diff --git a/meta/recipes-devtools/python/python3/0001-gh-107811-tarfile-treat-overflow-in-UID-GID-as-failu.patch b/meta/recipes-devtools/python/python3/0001-gh-107811-tarfile-treat-overflow-in-UID-GID-as-failu.patch new file mode 100644 index 00000000000..88b84c60243 --- /dev/null +++ b/meta/recipes-devtools/python/python3/0001-gh-107811-tarfile-treat-overflow-in-UID-GID-as-failu.patch @@ -0,0 +1,40 @@ +From 999d4e74d34afa233ad8ad0c70b989d77a21957f Mon Sep 17 00:00:00 2001 +From: Petr Viktorin +Date: Wed, 23 Aug 2023 20:00:07 +0200 +Subject: [PATCH] gh-107811: tarfile: treat overflow in UID/GID as failure to + set it (#108369) + +Upstream-Status: Backport [https://github.com/python/cpython/pull/108369] +Signed-off-by: Khem Raj +--- + Lib/tarfile.py | 3 ++- + .../Library/2023-08-23-17-34-39.gh-issue-107811.3Fng72.rst | 3 +++ + 2 files changed, 5 insertions(+), 1 deletion(-) + create mode 100644 Misc/NEWS.d/next/Library/2023-08-23-17-34-39.gh-issue-107811.3Fng72.rst + +diff --git a/Lib/tarfile.py b/Lib/tarfile.py +index 3bbbcaa..473167d 100755 +--- a/Lib/tarfile.py ++++ b/Lib/tarfile.py +@@ -2557,7 +2557,8 @@ class TarFile(object): + os.lchown(targetpath, u, g) + else: + os.chown(targetpath, u, g) +- except OSError as e: ++ except (OSError, OverflowError) as e: ++ # OverflowError can be raised if an ID doesn't fit in `id_t` + raise ExtractError("could not change owner") from e + + def chmod(self, tarinfo, targetpath): +diff --git a/Misc/NEWS.d/next/Library/2023-08-23-17-34-39.gh-issue-107811.3Fng72.rst b/Misc/NEWS.d/next/Library/2023-08-23-17-34-39.gh-issue-107811.3Fng72.rst +new file mode 100644 +index 0000000..ffca413 +--- /dev/null ++++ b/Misc/NEWS.d/next/Library/2023-08-23-17-34-39.gh-issue-107811.3Fng72.rst +@@ -0,0 +1,3 @@ ++:mod:`tarfile`: extraction of members with overly large UID or GID (e.g. on ++an OS with 32-bit :c:type:`!id_t`) now fails in the same way as failing to ++set the ID. +-- +2.45.0 + diff --git a/meta/recipes-devtools/python/python3_3.12.3.bb b/meta/recipes-devtools/python/python3_3.12.3.bb index 93709b207ce..37afa442fa3 100644 --- a/meta/recipes-devtools/python/python3_3.12.3.bb +++ b/meta/recipes-devtools/python/python3_3.12.3.bb @@ -31,6 +31,7 @@ SRC_URI = "http://www.python.org/ftp/python/${PV}/Python-${PV}.tar.xz \ file://0001-test_storlines-skip-due-to-load-variability.patch \ file://0001-gh-114492-Initialize-struct-termios-before-calling-t.patch \ file://0001-test_shutdown-skip-problematic-test.patch \ + file://0001-gh-107811-tarfile-treat-overflow-in-UID-GID-as-failu.patch \ " SRC_URI:append:class-native = " \ From patchwork Thu May 9 01:30:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 43386 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 0661BC25B74 for ; Thu, 9 May 2024 01:30:57 +0000 (UTC) Received: from mail-pj1-f47.google.com (mail-pj1-f47.google.com [209.85.216.47]) by mx.groups.io with SMTP id smtpd.web11.8.1715218253165290585 for ; Wed, 08 May 2024 18:30:53 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=jea963U5; spf=pass (domain: gmail.com, ip: 209.85.216.47, mailfrom: raj.khem@gmail.com) Received: by mail-pj1-f47.google.com with SMTP id 98e67ed59e1d1-2b27c532e50so300916a91.2 for ; Wed, 08 May 2024 18:30:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715218252; x=1715823052; 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=Kicgq613sdQHFr4X75rrOfkfMgF8y/kdwDqvealArnc=; b=jea963U5V31TOLDGnh/ukxmB4uuxQMEEy+lIEJ8bnqySjUW4KkIbLyM/cYtCGy1e+I FSeOb9aWy+Z0qFSpUqjvPiBOjuZEJidBOTclj1ewJsoSuXImmauYy+OX+6/7SUa++YgK Pn4yFoCyi9dA2Ge+gHPM6jyioYFgvSmThwCQV8q6UcfXP3yclgG04A0Pu0V9LNtILRoO v/NoJlyW6CkiwyEqyB7bS+vLEq26Bncz76OFjCRTQidMO3ewZ6palYUwLunxTHTa/X2V avNQ7Q30ETXh/1o4fd5iNpc6wCjC8mCh6lWzRM30sLeUX7tCPuVcfi86FlD43vxGiYxR 4Yyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715218252; x=1715823052; 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=Kicgq613sdQHFr4X75rrOfkfMgF8y/kdwDqvealArnc=; b=d3Qe+H5TRV8mgNrrSSNOKGHaJUDTS97kzyBxnaEj5/hqQ+liAEMS9mwg2TrF7s6loJ 7ntxRbTcJSq+y7FHhZIBYjx1F8iqf4r8P9LBM2vmNLKkGhjSxCguvZJ4tj3M8ha0Lazk oOqe4PjF9+huCzt97GLS/Dtkra5XP3hR7izQvWUiOmNVPyxcNlcz/M3rwa9dK8xWxfdy O5VpRqNhFam/WbJ+5/zsW6r8zzrmAEts6+VtuePUQ3hDVMfbUCN+KCbyWKsE37f4GoJy nM69OdhrPXfeCQf4cI+SWZteve9dSGk4o/hGlqeSwJhqRWQKuupIqZndGONqZpO9rhRv KyHg== X-Gm-Message-State: AOJu0YyGSZSyudIZD0+JSxpVn1etoIBqk7zNordUed5bLtnha1Hmug0G s+wCq9DHVVBaguR237bG508gJU18f5kMAKsswGI9aakeUd31DXGoOtNoEIle X-Google-Smtp-Source: AGHT+IExaZszGsJS0/Gtibbz2SyCkLgNpqnLvxwXuj5X9boxY9tE8QZgm8uxZX81VeJUaYUJfnHmhQ== X-Received: by 2002:a17:90a:e548:b0:2b2:1d33:f687 with SMTP id 98e67ed59e1d1-2b616be479fmr3764612a91.47.1715218252340; Wed, 08 May 2024 18:30:52 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9d80:4380::af2d]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2b67158de4dsm244558a91.42.2024.05.08.18.30.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 18:30:52 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Cc: Martin Jansa , Khem Raj Subject: [PATCH V3 2/4] lrzsz connman-gnome libfm: ignore various issues fatal with gcc-14 Date: Wed, 8 May 2024 18:30:47 -0700 Message-ID: <20240509013049.523093-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20240509013049.523093-1-raj.khem@gmail.com> References: <20240509013049.523093-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 ; Thu, 09 May 2024 01:30:57 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/199133 From: Martin Jansa work arounds for: oe-core/meta/recipes-bsp/lrzsz/lrzsz_0.12.20.bb:do_compile oe-core/meta/recipes-connectivity/connman/connman-gnome_0.7.bb:do_compile oe-core/meta/recipes-support/libfm/libfm_1.3.2.bb:do_compile http://errors.yoctoproject.org/Errors/Build/183127/ More fixes on ML (especially for -native with gcc-14 on host) cdrtools: https://lists.openembedded.org/g/openembedded-core/message/198899 syslinux: https://lists.openembedded.org/g/openembedded-core/message/198901 Signed-off-by: Martin Jansa Signed-off-by: Khem Raj --- v3: Drop zip as it has another fix in ml meta/recipes-bsp/lrzsz/lrzsz_0.12.20.bb | 6 ++++++ meta/recipes-connectivity/connman/connman-gnome_0.7.bb | 4 ++++ meta/recipes-support/libfm/libfm_1.3.2.bb | 4 ++++ 3 files changed, 14 insertions(+) diff --git a/meta/recipes-bsp/lrzsz/lrzsz_0.12.20.bb b/meta/recipes-bsp/lrzsz/lrzsz_0.12.20.bb index 63edcbd8643..3024ddcaf07 100644 --- a/meta/recipes-bsp/lrzsz/lrzsz_0.12.20.bb +++ b/meta/recipes-bsp/lrzsz/lrzsz_0.12.20.bb @@ -46,3 +46,9 @@ ALTERNATIVE_TARGET[rb] = "${bindir}/lrz" ALTERNATIVE_TARGET[sz] = "${bindir}/lsz" ALTERNATIVE_TARGET[sx] = "${bindir}/lsz" ALTERNATIVE_TARGET[sb] = "${bindir}/lsz" + +# http://errors.yoctoproject.org/Errors/Details/766929/ +# lrzsz-0.12.20/src/tcp.c:75:56: error: passing argument 3 of 'getsockname' from incompatible pointer type [-Wincompatible-pointer-types] +# lrzsz-0.12.20/src/tcp.c:83:52: error: passing argument 3 of 'getsockname' from incompatible pointer type [-Wincompatible-pointer-types] +# lrzsz-0.12.20/src/tcp.c:103:51: error: passing argument 3 of 'accept' from incompatible pointer type [-Wincompatible-pointer-types] +CFLAGS += "-Wno-error=incompatible-pointer-types" diff --git a/meta/recipes-connectivity/connman/connman-gnome_0.7.bb b/meta/recipes-connectivity/connman/connman-gnome_0.7.bb index f6150d98ec9..46b3f854c52 100644 --- a/meta/recipes-connectivity/connman/connman-gnome_0.7.bb +++ b/meta/recipes-connectivity/connman/connman-gnome_0.7.bb @@ -28,3 +28,7 @@ RDEPENDS:${PN} = "connman" do_install:append() { install -m 0644 ${UNPACKDIR}/images/* ${D}/usr/share/icons/hicolor/22x22/apps/ } + +# http://errors.yoctoproject.org/Errors/Details/766926/ +# connman-client.c:200:15: error: assignment to 'GtkTreeModel *' {aka 'struct _GtkTreeModel *'} from incompatible pointer type 'GtkTreeStore *' {aka 'struct _GtkTreeStore *'} [-Wincompatible-pointer-types] +CFLAGS += "-Wno-error=incompatible-pointer-types" diff --git a/meta/recipes-support/libfm/libfm_1.3.2.bb b/meta/recipes-support/libfm/libfm_1.3.2.bb index 057c7370293..1d7609165b4 100644 --- a/meta/recipes-support/libfm/libfm_1.3.2.bb +++ b/meta/recipes-support/libfm/libfm_1.3.2.bb @@ -53,3 +53,7 @@ do_install:append () { rm -f ${D}${libdir}/libfm-extra.a rm -f ${D}${libdir}/libfm-extra.la } + +# http://errors.yoctoproject.org/Errors/Details/766924/ +# libfm-1.3.2/src/actions/action.c:2050:25: error: assignment to 'gchar **' {aka 'char **'} from incompatible pointer type 'const gchar * const*' {aka 'const char * const*'} [-Wincompatible-pointer-types] +CFLAGS += "-Wno-error=incompatible-pointer-types" From patchwork Thu May 9 01:30:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 43387 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 06666C25B77 for ; Thu, 9 May 2024 01:30:57 +0000 (UTC) Received: from mail-pf1-f179.google.com (mail-pf1-f179.google.com [209.85.210.179]) by mx.groups.io with SMTP id smtpd.web10.12.1715218254398810747 for ; Wed, 08 May 2024 18:30:54 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=KTq5bn2Q; spf=pass (domain: gmail.com, ip: 209.85.210.179, mailfrom: raj.khem@gmail.com) Received: by mail-pf1-f179.google.com with SMTP id d2e1a72fcca58-6f489e64eb3so358599b3a.1 for ; Wed, 08 May 2024 18:30:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715218254; x=1715823054; 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=x62gyVuvKhbBgXvf9YpFpZkM4VAi4ZVFzodg71UF5Is=; b=KTq5bn2QW/4pt6wBBeuQ+Uq1iXHWw93Azddc4ZquPCwEelRnDpCFGjWwYLm6Gzha4E bF1s0kUl0V2yCnYezijAEd3OYfwIk8dzFDwG7dd8tREbZGgsTQEkCcFFODlLE1wQWBO+ EOPxLmonPn3f72l0TYpmvdRlV9zr/dMAwo0DC9lIGgCI2Qjhhf18VEIsNTpbFJBbf2LP GhNePg47hIPp29YHNjZLUrkt0kHyoiswhxdq7KWwRkKGn8OxZI6O7DN9h5lcFAWXkMgf ImyLskHvn07ZQlalepoBss5ozt4xdVsqUgBR3Njh+A+obgg7DzR4eZKL5c/8R7Gk4h9b QOjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715218254; x=1715823054; 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=x62gyVuvKhbBgXvf9YpFpZkM4VAi4ZVFzodg71UF5Is=; b=mFkN7d5JlglcLeyvbVQYayCbzalSrs6VaPmPzPhJnTFExhnXpxDGy+SpsbA2CKh6q1 tVuICzKr9cOMiL+7VU1Fc7abKubzJ6Kn8POws1h6Pz3UP2mSeme1e1MXbzpBjCJm2hiP 5Em+jLYE3xN4EQvJvtKbMlO65RbYh1x+fh6jGovtAZ70pN0SnjQsuwvmyMqEQ69+BtIb 7ENMDl3Pv1tvOUYxieus2WR4AH+Xm/0NHr7XXtkAqq7C/anC7WqlvxFQLfh17LG9MCmn sZ0x8LXLVO7EXs9t0Q4JbaZ3MhN+lWhL5rQsuCa3TLkWLCCmHqcSbBVCQgILLDl28Wft ks+w== X-Gm-Message-State: AOJu0YwabDyv8xaVndnK4kmhARLLapmtv1TaV6ShWEYpEtCvWXYtaAuy wiHnKYXS3lqEhXn7a2Pu52T+3blIhdSPR18knxRbkt3QoUn/N3dSLBn+lTr6 X-Google-Smtp-Source: AGHT+IHm9Dc3pU7M9XHrQOqEqC6zup+FO7VkucWnnb9ljrfqkb77RDeWxCVNVIeH8uWGnFPB6h6YpA== X-Received: by 2002:a05:6a20:3c8a:b0:1af:952f:f6fb with SMTP id adf61e73a8af0-1afc8d1b1f2mr5062758637.3.1715218253565; Wed, 08 May 2024 18:30:53 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9d80:4380::af2d]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2b67158de4dsm244558a91.42.2024.05.08.18.30.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 18:30:52 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Cc: Khem Raj Subject: [PATCH V2 3/4] ltp: Fix build with GCC-14 Date: Wed, 8 May 2024 18:30:48 -0700 Message-ID: <20240509013049.523093-3-raj.khem@gmail.com> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20240509013049.523093-1-raj.khem@gmail.com> References: <20240509013049.523093-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 ; Thu, 09 May 2024 01:30:57 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/199134 Signed-off-by: Khem Raj --- v2: Change the patch status to Backport ...-Use-time_t-instead-of-long-for-type.patch | 54 +++++++++++++++++++ meta/recipes-extended/ltp/ltp_20240129.bb | 1 + 2 files changed, 55 insertions(+) create mode 100644 meta/recipes-extended/ltp/ltp/0001-sched_stress-Use-time_t-instead-of-long-for-type.patch diff --git a/meta/recipes-extended/ltp/ltp/0001-sched_stress-Use-time_t-instead-of-long-for-type.patch b/meta/recipes-extended/ltp/ltp/0001-sched_stress-Use-time_t-instead-of-long-for-type.patch new file mode 100644 index 00000000000..ae8dc8706e3 --- /dev/null +++ b/meta/recipes-extended/ltp/ltp/0001-sched_stress-Use-time_t-instead-of-long-for-type.patch @@ -0,0 +1,54 @@ +From 74074f9a71c876d6e95c2d72702888dd2fabc761 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Mon, 6 May 2024 11:43:20 -0700 +Subject: [PATCH] sched_stress: Use time_t instead of long for type + +This ensures it works across different architectures +Fixes + +| sched_driver.c:744:43: error: passing argument 1 of 'ctime' from incompatible pointer type [-Wincompatible-pointer-types] +| 744 | printf("\nend time = %s\n", ctime(&end_time)); +| | ^~~~~~~~~ + +With gcc-14 + +Upstream-Status: Backport [https://github.com/linux-test-project/ltp/commit/0a682f1af42d8d261202821be580fe26d17ee9b7] +Signed-off-by: Khem Raj +--- + testcases/kernel/sched/sched_stress/sched_driver.c | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/testcases/kernel/sched/sched_stress/sched_driver.c b/testcases/kernel/sched/sched_stress/sched_driver.c +index 61573d788..5b8c187fe 100644 +--- a/testcases/kernel/sched/sched_stress/sched_driver.c ++++ b/testcases/kernel/sched/sched_stress/sched_driver.c +@@ -136,7 +136,7 @@ int debug = 0; + /* + * Function prototypes + */ +-void startup(long); ++void startup(time_t); + int start_testcase(char *, char *, char *, char *, char *, char *); + int process_slots_in_use(); + int available_user_process_slots(); +@@ -251,7 +251,7 @@ int main(int argc, char **argv) + * information to the screen and . It also initializes the * + * process id list and other global variables. * + *-----------------------------------------------------------------------*/ +-void startup(long start_time) ++void startup(time_t start_time) + { + char tempbuffer[50]; /* temporary buffer to hold names */ + +@@ -734,7 +734,7 @@ void kill_short_term_testcases() + void finishup(start_time) + long start_time; /* starting time to calculate elapsed time */ + { +- long end_time; /* time when program finished */ ++ time_t end_time; /* time when program finished */ + + /* + * Get the end time and calculate elapsed time; write all this out +-- +2.45.0 + diff --git a/meta/recipes-extended/ltp/ltp_20240129.bb b/meta/recipes-extended/ltp/ltp_20240129.bb index e88e931a687..f8e6d3987ee 100644 --- a/meta/recipes-extended/ltp/ltp_20240129.bb +++ b/meta/recipes-extended/ltp/ltp_20240129.bb @@ -29,6 +29,7 @@ SRCREV = "68737d20556d37364c95776044b1119c0912a36a" SRC_URI = "git://github.com/linux-test-project/ltp.git;branch=master;protocol=https \ file://0001-Remove-OOM-tests-from-runtest-mm.patch \ file://0001-scenario_groups-default-remove-connectors.patch \ + file://0001-sched_stress-Use-time_t-instead-of-long-for-type.patch \ " S = "${WORKDIR}/git" From patchwork Thu May 9 01:30:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 43384 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 ED5ADC41513 for ; Thu, 9 May 2024 01:30:56 +0000 (UTC) Received: from mail-pg1-f182.google.com (mail-pg1-f182.google.com [209.85.215.182]) by mx.groups.io with SMTP id smtpd.web10.13.1715218255351798128 for ; Wed, 08 May 2024 18:30:55 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=mKcAYKmi; spf=pass (domain: gmail.com, ip: 209.85.215.182, mailfrom: raj.khem@gmail.com) Received: by mail-pg1-f182.google.com with SMTP id 41be03b00d2f7-5d4d15ec7c5so290294a12.1 for ; Wed, 08 May 2024 18:30:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715218254; x=1715823054; 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=2YtvmovBBWnofGhcs6Aevab305mRK4DwcGIVZRdkW6s=; b=mKcAYKmi+M6ca5aw0lqErV6mHKhrT60Ykhpl9wG6RJfvgTKp3Dynrv3C80dHEfdwDo QvDYmK+SyRHgQg3yVq/2F2xrF+n4uDcVX8UV58/TDbi5RjBsqrAkmzG7HFw17hvwY3tk bjyBYOjKZJ6g9EKND8Do1li7tQpBAeckpTnv9AElIZrwUH9/uIyzkRVNn2Bgo0u0PdY0 BBED31IpoxtbsUpgw9uB8x7OYSybRIY5gNcQldPdIj1T2cE93URcYT1C49QMVxERHaKH PW5T1aEU3YYXZmEilalHF7fkBuRQRwkPABZSe6YnZ5M8YkdkPzxS1/nrNQq0FuI6ZN5P HUFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715218254; x=1715823054; 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=2YtvmovBBWnofGhcs6Aevab305mRK4DwcGIVZRdkW6s=; b=tAbCVeBomiQcckDOSE0FOXQVqkn2EOBbxBa+6yFvDo7CVQKH1b4DCPM4F36JnBPwkS r1OCrFCV8LedLIqXINARXw+B0OPfVHjsk5TmvmZA1zcolnN2WMEiqWXeTiZti3+HScwM HlUbl6/hRJBO9ntw4dCBrf466xyoZytl7hGcHFYzJf2xRMCoFRb930Zy2okpAvs0k9PF ByVGGr7b0Nf5LfTTW9JPwBzYmX8xFbd0EnugfPRHOveKirxvhStj+xxKrKJXso6T3uLL 4TGYqwn2QR4gzgh+AJvWJXOYA147QnHyFu+hCUlceISdGrBjCA1NHTY7P/5u0JaFnvUE FOuA== X-Gm-Message-State: AOJu0Yx7nzEzdzcylZYsOr80LYBhDTFJ4h/w2cEaUP8LoCIVry/L7B6d sw5d2RYz7GyVgMe6bB87Z6PpxYd542RLZut/7kWIJu5BQzMaN5/75i7IqoNQ X-Google-Smtp-Source: AGHT+IFtkbmavdUGQTdDIddd5vOd8hxu2zhG2QLDv5pNHV6oDzCAuzrnYPSm+VnfY9/mWtJU1xwONw== X-Received: by 2002:a17:90b:1914:b0:2b1:9fa4:16fd with SMTP id 98e67ed59e1d1-2b6163a3570mr4554037a91.4.1715218254402; Wed, 08 May 2024 18:30:54 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9d80:4380::af2d]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2b67158de4dsm244558a91.42.2024.05.08.18.30.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 18:30:54 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Cc: Khem Raj Subject: [PATCH V2 4/4] iproute2: Fix build with GCC-14 Date: Wed, 8 May 2024 18:30:49 -0700 Message-ID: <20240509013049.523093-4-raj.khem@gmail.com> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20240509013049.523093-1-raj.khem@gmail.com> References: <20240509013049.523093-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 ; Thu, 09 May 2024 01:30:56 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/199135 Signed-off-by: Khem Raj --- V2: Rebased meta/recipes-connectivity/iproute2/iproute2_6.8.0.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/recipes-connectivity/iproute2/iproute2_6.8.0.bb b/meta/recipes-connectivity/iproute2/iproute2_6.8.0.bb index 68f7611943f..24539e3d998 100644 --- a/meta/recipes-connectivity/iproute2/iproute2_6.8.0.bb +++ b/meta/recipes-connectivity/iproute2/iproute2_6.8.0.bb @@ -26,6 +26,8 @@ PACKAGECONFIG[selinux] = ",,libselinux" IPROUTE2_MAKE_SUBDIRS = "lib tc ip bridge misc genl ${@bb.utils.filter('PACKAGECONFIG', 'devlink tipc rdma', d)}" +# This is needed with GCC-14 and musl +CFLAGS += "-Wno-error=incompatible-pointer-types" # CFLAGS are computed in Makefile and reference CCOPTS # EXTRA_OEMAKE = "\