From patchwork Fri Apr 28 08:43:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Kanavin X-Patchwork-Id: 23116 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 3453DC77B61 for ; Fri, 28 Apr 2023 08:48:37 +0000 (UTC) Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) by mx.groups.io with SMTP id smtpd.web10.14784.1682671709020154549 for ; Fri, 28 Apr 2023 01:48:29 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="signature has expired" header.i=@gmail.com header.s=20221208 header.b=nP3Q74Cl; spf=pass (domain: gmail.com, ip: 209.85.221.42, mailfrom: alex.kanavin@gmail.com) Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-2f7a7f9667bso5972837f8f.1 for ; Fri, 28 Apr 2023 01:48:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682671707; x=1685263707; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=avoCL16mdBze8YdZMm3kP56M0k1Y6wXV7K8SqIgx1SA=; b=nP3Q74ClHoPVF2HmmJ4OC/ntnqpEZ6RXufa1EZhT9969BPJ4GMT2PmHlV9LXuqAcLG cOjdcjD1oP6TmPnxzYDsSFDShxbxZhVxuGL2d5p9jvVRcCrU789xSeo6GCuiJ3ZLiNJT UBymCIA9vBEQ+IcXZmEYeoeBqIMXG5/0igWmRDcFqupQLKjpUPVPd1mmxdlpCfqz6moZ eIkj9XCr782QkvizDRZgAQdT/J8aplKp6VRhYMM86zg/GKhya2qZd286GjCjCKQrCbzh 33yhY7Bs15i7AhUCoOePU43sDgCqXU9UKg8fpUf+E92qB4G3NNgS6rU3PH2vUDbJ5GKO Lonw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682671707; x=1685263707; 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=avoCL16mdBze8YdZMm3kP56M0k1Y6wXV7K8SqIgx1SA=; b=Rio2dbMNfOcocrB+Pqj4dPjVJp+dqidzErK+nDjsOI+TLOs8Nxe8tSnGi6EK2EcdV+ x3FqTH1JVxahmIIMNxnHLs4OdPPHZOkYOBRRBvf+BTWU8ts8bmZE5FpGHhz+z9jaztZs +jlFty6qwYMlxw38GjyohMDRS2tqE3ZqV4rXRWP2h3YJISDYS1rt+Dr3JakSqYTxRsBB AbqwRcTtNRUnLL6z7viwFfmn8mu3UFCD7kXDTvEfz129jAo6eB076jLQZTH9WgSDPy5U CkSxyULabYEbuf9wTjCHW4u4hXmuUw46nJjxhhQsAPD598TlYcIkLCyArANwBGsXK8PY 16ZQ== X-Gm-Message-State: AC+VfDxlbvf46wuitoO2IhEomDpS2ZWnzrAvosZZhETnQ0nQbhu6shUo ZUR07e8+vN7Lv6OotOMNdoPLwPj7GIQ= X-Google-Smtp-Source: ACHHUZ5EsRrlHuxd1aEgRNqmamiB4Z4wT2Y+8NaOdiBmwZXNDuLLd5yXR5UnRxUdXOP/BLTAdxRe8Q== X-Received: by 2002:adf:efca:0:b0:2f5:8116:6453 with SMTP id i10-20020adfefca000000b002f581166453mr3057129wrp.61.1682671707315; Fri, 28 Apr 2023 01:48:27 -0700 (PDT) Received: from Zen2.lab.linutronix.de. (drugstore.linutronix.de. [80.153.143.164]) by smtp.gmail.com with ESMTPSA id j8-20020adff008000000b002f6176cc6desm20563375wro.110.2023.04.28.01.48.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Apr 2023 01:48:27 -0700 (PDT) From: Alexander Kanavin X-Google-Original-From: Alexander Kanavin To: openembedded-core@lists.openembedded.org Cc: Alexander Kanavin Subject: [PATCH v2 01/11] binutils: backport a patch to address failures when time64.inc is in use Date: Fri, 28 Apr 2023 10:43:42 +0200 Message-Id: <20230428084352.836515-1-alex@linutronix.de> X-Mailer: git-send-email 2.30.2 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 ; Fri, 28 Apr 2023 08:48:37 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/180512 Signed-off-by: Alexander Kanavin --- .../binutils/binutils-2.40.inc | 1 + .../binutils/binutils/fix-time64.patch | 94 +++++++++++++++++++ 2 files changed, 95 insertions(+) create mode 100644 meta/recipes-devtools/binutils/binutils/fix-time64.patch diff --git a/meta/recipes-devtools/binutils/binutils-2.40.inc b/meta/recipes-devtools/binutils/binutils-2.40.inc index 93631ca3d7f..ad2c9f9da14 100644 --- a/meta/recipes-devtools/binutils/binutils-2.40.inc +++ b/meta/recipes-devtools/binutils/binutils-2.40.inc @@ -35,5 +35,6 @@ SRC_URI = "\ file://0014-configure-remove-dependencies-on-gmp-and-mpfr-when-g.patch \ file://0015-Remove-duplicate-pe-dll.o-entry-deom-targ_extra_ofil.patch \ file://0016-CVE-2023-25586.patch \ + file://fix-time64.patch \ " S = "${WORKDIR}/git" diff --git a/meta/recipes-devtools/binutils/binutils/fix-time64.patch b/meta/recipes-devtools/binutils/binutils/fix-time64.patch new file mode 100644 index 00000000000..0bfc977fd4e --- /dev/null +++ b/meta/recipes-devtools/binutils/binutils/fix-time64.patch @@ -0,0 +1,94 @@ +From f6f19a39ecfe962cb8a05522c27f513308687a74 Mon Sep 17 00:00:00 2001 +From: Vladimir Mezentsev +Date: Thu, 16 Feb 2023 19:00:47 -0800 +Subject: [PATCH] gprofng: PR30036 Build failure on aarch64 w/ glibc: symbol + `pwrite64' is already defined + +gprofng/ChangeLog +2023-02-16 Vladimir Mezentsev + + PR gprofng/30036 + * libcollector/iotrace.c: Define creat64 and pwrite64 only when + __USE_LARGEFILE64 and __USE_FILE_OFFSET64 are not defined. + * libcollector/mmaptrace.c: Likewise for mmap64. + +Upstream-Status: Backport [https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=f6f19a39ecfe962cb8a05522c27f513308687a74] +Signed-off-by: Alexander Kanavin +--- + gprofng/libcollector/iotrace.c | 15 ++++++++------- + gprofng/libcollector/mmaptrace.c | 2 +- + 2 files changed, 9 insertions(+), 8 deletions(-) + +diff --git a/gprofng/libcollector/iotrace.c b/gprofng/libcollector/iotrace.c +index af90cc31f1a..d8439b02b3a 100644 +--- a/gprofng/libcollector/iotrace.c ++++ b/gprofng/libcollector/iotrace.c +@@ -1441,7 +1441,7 @@ creat (const char *path, mode_t mode) + } + + /*------------------------------------------------------------- creat64 */ +-#if WSIZE(32) ++#if WSIZE(32) && !defined(__USE_LARGEFILE64) + int + creat64 (const char *path, mode_t mode) + { +@@ -2476,7 +2476,7 @@ __collector_pwrite_2_1 (int fildes, const void *buf, size_t nbyte, off_t offset) + return ret; + } + +-#else ++#endif + ssize_t + pwrite (int fildes, const void *buf, size_t nbyte, off_t offset) + { +@@ -2497,11 +2497,10 @@ pwrite (int fildes, const void *buf, size_t nbyte, off_t offset) + POP_REENTRANCE (guard); + return ret; + } +-#endif + + /*------------------------------------------------------------- pwrite64 */ +-#if WSIZE(32) +-#if !defined(__MUSL_LIBC) && ARCH(Intel) ++#if WSIZE(32) && ARCH(Intel) ++#if !defined(__MUSL_LIBC) + // map interposed symbol versions + + SYMVER_ATTRIBUTE (__collector_pwrite64_2_2, pwrite64@GLIBC_2.2) +@@ -2547,8 +2546,9 @@ __collector_pwrite64_2_1 (int fildes, const void *buf, size_t nbyte, off64_t off + POP_REENTRANCE (guard); + return ret; + } ++#endif + +-#else ++#if !defined(__USE_FILE_OFFSET64) + ssize_t + pwrite64 (int fildes, const void *buf, size_t nbyte, off64_t offset) + { +@@ -2570,7 +2570,8 @@ pwrite64 (int fildes, const void *buf, size_t nbyte, off64_t offset) + return ret; + } + #endif +-#endif /* SIZE(32) */ ++ ++#endif /* SIZE(32) && ARCH(Intel) */ + + /*------------------------------------------------------------- fgets */ + char* +diff --git a/gprofng/libcollector/mmaptrace.c b/gprofng/libcollector/mmaptrace.c +index 61613c21560..221b4e2d176 100644 +--- a/gprofng/libcollector/mmaptrace.c ++++ b/gprofng/libcollector/mmaptrace.c +@@ -1494,7 +1494,7 @@ mmap (void *start, size_t length, int prot, int flags, int fd, off_t offset) + } + + /*------------------------------------------------------------- mmap64 */ +-#if WSIZE(32) /* mmap64 only defined for non-64-bit */ ++#if WSIZE(32) && !defined(__USE_FILE_OFFSET64) + + void * + mmap64 (void *start, size_t length, int prot, int flags, int fd, off64_t offset) +-- +2.31.1 + From patchwork Fri Apr 28 08:43:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Kanavin X-Patchwork-Id: 23123 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 60D4EC7EE29 for ; Fri, 28 Apr 2023 08:48:37 +0000 (UTC) Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) by mx.groups.io with SMTP id smtpd.web11.14758.1682671709483134719 for ; Fri, 28 Apr 2023 01:48:29 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="signature has expired" header.i=@gmail.com header.s=20221208 header.b=OLuBMiqs; spf=pass (domain: gmail.com, ip: 209.85.128.51, mailfrom: alex.kanavin@gmail.com) Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-3f195b164c4so53617165e9.1 for ; Fri, 28 Apr 2023 01:48:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682671708; x=1685263708; 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=OHZfHLmsYtvAY+N7U+CR30dcvB38iFTzZ4YDYun4JeM=; b=OLuBMiqszznJmYJrn1suMdyMIxPefrJmGu9g4IcQRv7lsP00Fwd+jdcNVdm3L3uHlf 9s176nQ+/SqkePXhSYPDG3j40CH6cR2UslDSmi3hBFhDu5Y/FUFQNf8I/sLMtB6hA/H9 xYbRLWKTsn1AUDWb4b0J09bFKT/mVjf5MkiT3leQnz6xtLJ6npxsmJrzoFYqYuHXiQDG FnppuKilnfpBX3fkROXB0lU0bMjSrsKZMnuUyEAFS8guSY2Ouirj9bUtg1wjX4BElSsq fJE6rKT5+uQ9oudJKPdHDxCnvhoNxhXyliNy5D4fGa/ijIdLlAUL+6Q1WtVmZWDZTzlI Le1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682671708; x=1685263708; 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=OHZfHLmsYtvAY+N7U+CR30dcvB38iFTzZ4YDYun4JeM=; b=em10vil9pPJYaWPu58ypXKH6s6w4FK+vlnYCh/jl0vFm07dMBLBhejdi+uKo1EziqQ MAGLV85iFGoJYm5IBwe/GM38q6bxTPOdS6zbp5FnQrXXhSPSsewW1d/dEDQIwrC1WB68 zbauoFkXp4HLtPgZHhLL5qyVOjMx5Ml2vdnqTNS9Xmpn7wA508xCyDl8fa5DbMEwKYR/ Mkx/WP3+cV2MvwDwy6l9/b5MyqOw2C+fq4j+r+c08x3snobm4mO63bM+J/DCrychJWai QT1SxOD6RJVGnZdl/KDeV2lE0cl9kWd4zMd9ft8EJT7MFg4xetM+L3ZulHOG2tXgm3HJ cCiw== X-Gm-Message-State: AC+VfDxG5G78eQ9V1Iy+HWV9saiM045OFEVpuSrQLSihkR2/4o56xTT1 IZn0MfmpSo1Ne1xbSo15iQTrCjoKp+c= X-Google-Smtp-Source: ACHHUZ5ANdC0J1+izbK4tIm2T5X3/jjFIwEaIP9Ze6H8VneLxZxyDd1XLKlybBGt9Awpwk7vEA6w6g== X-Received: by 2002:a7b:c015:0:b0:3f1:662a:93d0 with SMTP id c21-20020a7bc015000000b003f1662a93d0mr3521310wmb.15.1682671707844; Fri, 28 Apr 2023 01:48:27 -0700 (PDT) Received: from Zen2.lab.linutronix.de. (drugstore.linutronix.de. [80.153.143.164]) by smtp.gmail.com with ESMTPSA id j8-20020adff008000000b002f6176cc6desm20563375wro.110.2023.04.28.01.48.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Apr 2023 01:48:27 -0700 (PDT) From: Alexander Kanavin X-Google-Original-From: Alexander Kanavin To: openembedded-core@lists.openembedded.org Cc: Alexander Kanavin Subject: [PATCH v2 02/11] time64.inc: add glibc-testsuite to 'special cases' Date: Fri, 28 Apr 2023 10:43:43 +0200 Message-Id: <20230428084352.836515-2-alex@linutronix.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230428084352.836515-1-alex@linutronix.de> References: <20230428084352.836515-1-alex@linutronix.de> 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 ; Fri, 28 Apr 2023 08:48:37 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/180513 It builds glibc source like other glibc recipes do, and so the same problems occur. Signed-off-by: Alexander Kanavin --- meta/conf/distro/include/time64.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/conf/distro/include/time64.inc b/meta/conf/distro/include/time64.inc index 2e7278292c6..73adebd39db 100644 --- a/meta/conf/distro/include/time64.inc +++ b/meta/conf/distro/include/time64.inc @@ -10,6 +10,7 @@ TARGET_CC_ARCH:append:x86 = "${@bb.utils.contains('TUNE_FEATURES', 'm32', '${GLI GLIBC_64BIT_TIME_FLAGS:pn-glibc = "" GLIBC_64BIT_TIME_FLAGS:pn-glibc-tests = "" +GLIBC_64BIT_TIME_FLAGS:pn-glibc-testsuite = "" # pipewire-v4l2 explicitly sets _FILE_OFFSET_BITS=32 to get access to # both 32 and 64 bit file APIs. But it does not handle the time side? # Needs further investigation From patchwork Fri Apr 28 08:43:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Kanavin X-Patchwork-Id: 23126 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 7881EC7EE2C for ; Fri, 28 Apr 2023 08:48:37 +0000 (UTC) Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) by mx.groups.io with SMTP id smtpd.web10.14785.1682671710104875098 for ; Fri, 28 Apr 2023 01:48:30 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="signature has expired" header.i=@gmail.com header.s=20221208 header.b=kysViobb; spf=pass (domain: gmail.com, ip: 209.85.221.52, mailfrom: alex.kanavin@gmail.com) Received: by mail-wr1-f52.google.com with SMTP id ffacd0b85a97d-2f917585b26so8719306f8f.0 for ; Fri, 28 Apr 2023 01:48:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682671708; x=1685263708; 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=3FCKSEiBKsdnPnOfQ0KJHVx12u1UKgE8eNKhQz0q4XU=; b=kysViobb99qeIY0rw4y3jzChXp09MGvkNrsf6nQRyjB6LyL7CcYohUthUKfU8tIY8K eR3aGvQaqkMe1XQxigoa/NVGYIPBEmbdB+/HeWDnvVbri0XrxdRbJ387Gr6oDpQfMPIz /v8tvlRqCLijwh8yjQ9K5VOd1NOqyOiTpsvyJE+jWFQWff55J55eXel7hnnLjccfmxtQ tCePAKN5srixQ+KfGo27I8PeRZw3IA14bBtG81b0LegBiCye9R+u5BKwCu0BaAK2i9R/ on22i6QyXCE6kF1SaXPBJ2QcW68FtDeKN52vsG1TGOsaVhu/wjKq9J+zhf5J56TxiPW2 D/hA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682671708; x=1685263708; 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=3FCKSEiBKsdnPnOfQ0KJHVx12u1UKgE8eNKhQz0q4XU=; b=b8nYHXj2E/NuwFP6PAtQzpF5YruCgtKkGMvmQ3B7VG5ZnpYqjUy9UesmDLmFmVuYI9 mMaDighlkeqoaNi2+iXTPHfvf4O54UTPu0E88aneWStflRbArKaHA8jmr5/HXoUR2GwR CEs0rCaidwTd8H77kCcfXiHHN+L7oEqqE06UXHJXHvm/0e3ao7u5kX1oKagwsD1+SGKX FP8DcZqCKB6jlTlZF+60vkF2y+w/9h+BA2Io//9Vas0xFAa1ADDVZ/D/1XKYLgpDFZh4 uCa7snO5Ljj3CbwNqxrmBi8hMINWJVyEYY8GZsIVT83pjxD9R/Pf5nTSqA1iHE/srjad md2A== X-Gm-Message-State: AC+VfDwMtw1PCrf2f4Gj6B7q5c2InZ8wBfbesmXQuxSCMziqovmX0Pqe a7yHftx04bKLNklhAXmbBYSFmIQL8Fo= X-Google-Smtp-Source: ACHHUZ6YOeq2MFuEunR7Zh7g24YHBeADqEjpWYANIaQBL4nTQ8ekxs5JZ+PVDfT/beTdWSQSYcuFtA== X-Received: by 2002:a05:6000:50f:b0:2f0:442a:2d45 with SMTP id a15-20020a056000050f00b002f0442a2d45mr3210458wrf.57.1682671708383; Fri, 28 Apr 2023 01:48:28 -0700 (PDT) Received: from Zen2.lab.linutronix.de. (drugstore.linutronix.de. [80.153.143.164]) by smtp.gmail.com with ESMTPSA id j8-20020adff008000000b002f6176cc6desm20563375wro.110.2023.04.28.01.48.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Apr 2023 01:48:28 -0700 (PDT) From: Alexander Kanavin X-Google-Original-From: Alexander Kanavin To: openembedded-core@lists.openembedded.org Cc: Alexander Kanavin Subject: [PATCH v2 03/11] strace: exclude from x86 (32 bit) ptests Date: Fri, 28 Apr 2023 10:43:44 +0200 Message-Id: <20230428084352.836515-3-alex@linutronix.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230428084352.836515-1-alex@linutronix.de> References: <20230428084352.836515-1-alex@linutronix.de> 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 ; Fri, 28 Apr 2023 08:48:37 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/180514 Please see the linked ticket. Signed-off-by: Alexander Kanavin --- meta/conf/distro/include/ptest-packagelists.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meta/conf/distro/include/ptest-packagelists.inc b/meta/conf/distro/include/ptest-packagelists.inc index 78750a0d98b..77d69c9fcd1 100644 --- a/meta/conf/distro/include/ptest-packagelists.inc +++ b/meta/conf/distro/include/ptest-packagelists.inc @@ -114,6 +114,10 @@ PTESTS_SLOW:append:libc-musl = " libc-test" PTESTS_SLOW:remove:x86 = "valgrind" PTESTS_PROBLEMS:append:x86 = " valgrind" +# https://github.com/strace/strace/issues/250 +PTESTS_SLOW:remove:x86 = "strace" +PTESTS_PROBLEMS:append:x86 = " strace" + # ruby \ # Timeout # lz4 \ # Needs a rewrite # rt-tests \ # Needs to be checked whether it runs at all From patchwork Fri Apr 28 08:43:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Kanavin X-Patchwork-Id: 23118 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 46506C7EE24 for ; Fri, 28 Apr 2023 08:48:37 +0000 (UTC) Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) by mx.groups.io with SMTP id smtpd.web11.14759.1682671710395592069 for ; Fri, 28 Apr 2023 01:48:30 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="signature has expired" header.i=@gmail.com header.s=20221208 header.b=Wt8LLO3K; spf=pass (domain: gmail.com, ip: 209.85.221.44, mailfrom: alex.kanavin@gmail.com) Received: by mail-wr1-f44.google.com with SMTP id ffacd0b85a97d-3010889c6ebso5874509f8f.2 for ; Fri, 28 Apr 2023 01:48:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682671709; x=1685263709; 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=rJfxJ4X9sfCiwlmRnxJkW2b8NRPnZdXK3+fJN+/OZOg=; b=Wt8LLO3KQPhU3jDu6J54wiYuctpRsDj1baUffdcAl6AXdsek1O9A9/NEiZ/LxoDB7W kfsnrO+S749sXX/mBu7AvMvdEYzlioDmuQV0lh0F1MJNO8FQ2qP4xUSrtomQZFD+DWf5 PC7GS6KZlvsw6LewMj/nVg1TVdHdTYs58R2z6tn+qAGoyVfzjFIjt527Lv4ykOhafgWg Cugq2wn5FelVP8+SUrOpc/Qt5yh2e4MgtwCm7xViTYGRTdkPmmewS87RpFzN7DyzWLqA Xi+EepfKEvNJWUeIiGnoL+Qbgz19lCKDcYBfh9/tbWw6r21PSY9VBjVDBCTjCdSICJj1 CN7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682671709; x=1685263709; 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=rJfxJ4X9sfCiwlmRnxJkW2b8NRPnZdXK3+fJN+/OZOg=; b=IYthACu5qJ6K7Y1+tw2o4Qifdl5I+8uE5Jz35Wj8gKibEtGguX1xGN5do+VRvn26Qj wQgIe999k2Wfd/ylzYTSy3vtC6E/vXfu0UIvsGtjdILIUCG/AzgGKAdqkIyiD3Brnmgi 2kS7ATJN8N2OFkXfIQe3FhSHkBxcqGoBTiDvZ0elgif4O5jmXUx6rZ5tiMjYLfvahSf/ ZPk0o8XNEQb0u5N0BAvfJYRQpskVyFDfa+08fvQV1K/iFqXJ/81NjJuLG1GoLxn8YTxj G32bK82f3jnlgIJ2BILuZ+S5/lP1m4OhkxDgniwgU82xc910rNA9otcl+08S8Rpu9Xrx 3p7g== X-Gm-Message-State: AC+VfDwIzUpHpM7c5GIZHz1e7jsUVPKywGXtIcbOrmIceKan52WM0M9x yL4zLD/jvD4AzPsrIm/jkiDeL/tiRo0= X-Google-Smtp-Source: ACHHUZ46L830IvA94w0SgoDZdM5R+ruoGcjBLoOCd2QB+BqQi/heGs+h9ZefY9PFndKUDQnnYR0pzw== X-Received: by 2002:adf:f583:0:b0:2ce:a30d:f764 with SMTP id f3-20020adff583000000b002cea30df764mr3078654wro.21.1682671708924; Fri, 28 Apr 2023 01:48:28 -0700 (PDT) Received: from Zen2.lab.linutronix.de. (drugstore.linutronix.de. [80.153.143.164]) by smtp.gmail.com with ESMTPSA id j8-20020adff008000000b002f6176cc6desm20563375wro.110.2023.04.28.01.48.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Apr 2023 01:48:28 -0700 (PDT) From: Alexander Kanavin X-Google-Original-From: Alexander Kanavin To: openembedded-core@lists.openembedded.org Cc: Alexander Kanavin Subject: [PATCH v2 04/11] lttng-tools: exclude from x86 (32 bit) ptests Date: Fri, 28 Apr 2023 10:43:45 +0200 Message-Id: <20230428084352.836515-4-alex@linutronix.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230428084352.836515-1-alex@linutronix.de> References: <20230428084352.836515-1-alex@linutronix.de> 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 ; Fri, 28 Apr 2023 08:48:37 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/180515 Please see the comment. Signed-off-by: Alexander Kanavin --- meta/conf/distro/include/ptest-packagelists.inc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/meta/conf/distro/include/ptest-packagelists.inc b/meta/conf/distro/include/ptest-packagelists.inc index 77d69c9fcd1..39b885066ce 100644 --- a/meta/conf/distro/include/ptest-packagelists.inc +++ b/meta/conf/distro/include/ptest-packagelists.inc @@ -118,6 +118,12 @@ PTESTS_PROBLEMS:append:x86 = " valgrind" PTESTS_SLOW:remove:x86 = "strace" PTESTS_PROBLEMS:append:x86 = " strace" +# Needs support for 64 bit syscall versions +# which was added in http://git.lttng.org/?p=lttng-modules.git;a=commitdiff;h=86040c9e2ff8a79633db34220e32bdda536b00e6 +# and should show up in lttng-modules 2.14.x +PTESTS_SLOW:remove:x86 = "lttng-tools" +PTESTS_PROBLEMS:append:x86 = " lttng-tools" + # ruby \ # Timeout # lz4 \ # Needs a rewrite # rt-tests \ # Needs to be checked whether it runs at all From patchwork Fri Apr 28 08:43:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Kanavin X-Patchwork-Id: 23121 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 5F998C7EE21 for ; Fri, 28 Apr 2023 08:48:37 +0000 (UTC) Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) by mx.groups.io with SMTP id smtpd.web11.14760.1682671711231919775 for ; Fri, 28 Apr 2023 01:48:31 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="signature has expired" header.i=@gmail.com header.s=20221208 header.b=j+Ip8wBF; spf=pass (domain: gmail.com, ip: 209.85.221.54, mailfrom: alex.kanavin@gmail.com) Received: by mail-wr1-f54.google.com with SMTP id ffacd0b85a97d-2f917585b26so8719331f8f.0 for ; Fri, 28 Apr 2023 01:48:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682671709; x=1685263709; 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=2D1PU3l5n6hr7Bb/gaGnM4hcBHfPdgXibh1R2CyuZAo=; b=j+Ip8wBF/XJD8E8HaxM5lp72dtu/funpw7MYHSSmfVhJR4u/j7jn1PjFwhg9la+qKF lPnunzXatclYjMfYpEMhiO5TDS7DqWw/BdG1maW8DlZbpD04FLgT4hgwdV1e+QKoPZZq jBiRl6JaYqRyDx0B+LtyDTMsko8XNXR7xwIR0pvEEq5r0ymUSoZXFtslnqXlJMnaivlU av17FewFzHUnRXdLOpheBdmtzfZYtVoZKwtGceDuFxCO1dXaTinfj9seZaOyKDi44elO 9n47jl+LlTRy3zdeIRpGj8v3nGQTe6rSOs1OBzIFkpfGPmlJS0suRAyEb9TRjtr2ZJgA 3uRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682671709; x=1685263709; 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=2D1PU3l5n6hr7Bb/gaGnM4hcBHfPdgXibh1R2CyuZAo=; b=FliFfT4UnsDBsdiM0aklut7jZfw77UdU/eWXlAl61cjlidmB4rvCTBndC9arMvVsiA K3Dpy5Sp8guGJbjZuH0pDl3TRS2VoVRzR8OpxGAUya5dxwOK72BVDXzOwEfkI7b6kwMH vyP8AjkL+rdinMSuiMA3WYh5j338R6I8btBunLpdEOiLgMgFC1Fxbfq+QumLv66Dre7e 7C/ASP6fLg3IXmTMLvzhgwo1BZCH9Gw7FmCV2M7EBuQctFUivWlN1PMfZ30Ssi4EURCp ixRmJPqTvowngl2ZN+w5d0/ymMhh8YfB3BQXNryg+f0rppchd6KHGAN3BxxME8ADtawh dQUA== X-Gm-Message-State: AC+VfDyhR1B7lRoRost7Yc9TkLAaAonxpNrCMxy4UZ++qQfGuZ9UpuC8 PoGct53nibOPm4fRCwV9lmTiJa5YkT8= X-Google-Smtp-Source: ACHHUZ7wIHxfolhyjhu4htF9pfuyytzK2hSO2V1q+s5wZyacOCt8ftA0ZUktgyRtGRZ2OtDaNQsCSA== X-Received: by 2002:adf:ed04:0:b0:2cb:76d4:42ea with SMTP id a4-20020adfed04000000b002cb76d442eamr3270392wro.36.1682671709619; Fri, 28 Apr 2023 01:48:29 -0700 (PDT) Received: from Zen2.lab.linutronix.de. (drugstore.linutronix.de. [80.153.143.164]) by smtp.gmail.com with ESMTPSA id j8-20020adff008000000b002f6176cc6desm20563375wro.110.2023.04.28.01.48.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Apr 2023 01:48:29 -0700 (PDT) From: Alexander Kanavin X-Google-Original-From: Alexander Kanavin To: openembedded-core@lists.openembedded.org Cc: Alexander Kanavin Subject: [PATCH v2 05/11] bitbake.conf: set minimum required target kernel to 5.15 Date: Fri, 28 Apr 2023 10:43:46 +0200 Message-Id: <20230428084352.836515-5-alex@linutronix.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230428084352.836515-1-alex@linutronix.de> References: <20230428084352.836515-1-alex@linutronix.de> 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 ; Fri, 28 Apr 2023 08:48:37 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/180516 In particular this enables a number of useful features in glibc (which utilize newer kernel APIs), such as actually using 64 bit time_t versions of kernel syscalls: https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/kernel-features.h;h=07b440f4eea364b05fa49bf71ceebf78f80efe13;hb=HEAD#l164 In general, OLDEST_KERNEL setting is used in these two places: - kernel.bbclass compares it with the target kernel version being built. If a vendor BSP still offers an older kernel, OLDEST_KERNEL should be set to match. - glibc recipe passes it as a parameter to the build so that additional features and optimized paths that kernels older than OLDEST_KERNEL are enabled. Note that there is a related setting, SDK_OLDEST_KERNEL, which remains as it was (at 3.2.0) to ensure maximum compatibility with kernels on SDK host machines; that setting is used to build nativesdk-glibc and verify the kernel version when the SDK is being installed. Build host kernel versions are not checked directly; compatible distros are listed instead. Signed-off-by: Alexander Kanavin --- v2: rewrite the description to address the concerns about build host kernels and sdk host kernels --- meta/conf/bitbake.conf | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index afd9e2f5527..2db84a46eed 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf @@ -469,12 +469,7 @@ SDKPATHINSTALL = "/usr/local/${SDK_NAME_PREFIX}-${SDK_ARCH}" # Kernel info. ################################################################## -OLDEST_KERNEL = "3.2.0" -OLDEST_KERNEL:aarch64 = "3.14" -OLDEST_KERNEL:nios2 = "3.19" -OLDEST_KERNEL:powerpc64le = "3.10.0" -OLDEST_KERNEL:riscv32 = "5.4" -OLDEST_KERNEL:riscv64 = "4.15" +OLDEST_KERNEL = "5.15" # SDK_OLDEST_KERNEL can't be set using overrides since there are # none for the SDK architecture. Best to set it from a machine-sdk From patchwork Fri Apr 28 08:43:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Kanavin X-Patchwork-Id: 23124 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 634F9C7EE26 for ; Fri, 28 Apr 2023 08:48:37 +0000 (UTC) Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) by mx.groups.io with SMTP id smtpd.web11.14761.1682671711801435561 for ; Fri, 28 Apr 2023 01:48:32 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="signature has expired" header.i=@gmail.com header.s=20221208 header.b=TermSWDg; spf=pass (domain: gmail.com, ip: 209.85.221.54, mailfrom: alex.kanavin@gmail.com) Received: by mail-wr1-f54.google.com with SMTP id ffacd0b85a97d-2f4214b430aso5985412f8f.0 for ; Fri, 28 Apr 2023 01:48:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682671710; x=1685263710; 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=9O+wDU/fL0m2dm7FNEuNswV/O2rbclHrIFfEPHGT918=; b=TermSWDgp7HngJwnNZTFi7q+Yfyy2wqFG2tvoaFVF3fSQ2f19xxAr9OeR6mId0j4fs kp+DOqgp347sdVeC0nf50/0EBt9CIHT6GAbVsDMLNnQrbOIfwq8dve5PwGlUp8AlLJiC BClsBYgyxf/xIzH9nnrGbbsTknF6wYkwIW1qdItutWEs2qOuvXE+u5+9w0oSXUifwpEF aLZ5WUsC76m0kxxNH5jl89tkZDkXhU9ZyIJm8M1ljzZCUIWUmvoF6CwUTDBShPM37iwx f3pZiSIUptGta7kpoMujdpRTNPTBL+LcxdSlZ2ttgxWiJYBlqgXTg2BYrmSK26MttcyW lJOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682671710; x=1685263710; 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=9O+wDU/fL0m2dm7FNEuNswV/O2rbclHrIFfEPHGT918=; b=CkM4Nx6+UOQC/qPE+cRwEdIkTBqfVYVPRdRH4yy6c3ciwCxm0BaK8AJU86DSXjfIBo Qvrt4ONKRYiCeWvA0Kr4ZXEcQsSI0VmX1yJpT4QEf4O+7AN36ESOAoYvsnHUwzAavZti 6MDqXNscU4MUgCzuSaXJEIG+H/4ke40KyKaFFhn/t6GOkywCkC1bh9/OZVK8RrUpZ9YI tGSldY04jg0kE8XQt0oZ+bFmB0ezqBobIIo7nYhq20WeIrgudnlW98uONWzeagw5AXVt wP0LqN8g7q3r9GVway/dErFBOUUFjae6eu1QD21oaQZZIJjFccEaWZFL0tsfE8zgkvzA 612A== X-Gm-Message-State: AC+VfDyyzViJxtXzhktP/Lm/sm1wy0i2vaG3rHt3fJX//u+7BGOMrg2Q qjnLnA1NQ9jxzWt+tiUyJO1o/1XVgN0= X-Google-Smtp-Source: ACHHUZ4ius0nLiWRoT0UIEXj/1nLzcO9LV2veeBmX/aL44H37PB42V4M1U2IGnglvlb5zKBy4eGX/A== X-Received: by 2002:a5d:4907:0:b0:2fa:f8c2:45f4 with SMTP id x7-20020a5d4907000000b002faf8c245f4mr2814255wrq.0.1682671710252; Fri, 28 Apr 2023 01:48:30 -0700 (PDT) Received: from Zen2.lab.linutronix.de. (drugstore.linutronix.de. [80.153.143.164]) by smtp.gmail.com with ESMTPSA id j8-20020adff008000000b002f6176cc6desm20563375wro.110.2023.04.28.01.48.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Apr 2023 01:48:29 -0700 (PDT) From: Alexander Kanavin X-Google-Original-From: Alexander Kanavin To: openembedded-core@lists.openembedded.org Cc: Alexander Kanavin Subject: [PATCH v2 06/11] python3-pytest: add missing tomllib runtime dependency Date: Fri, 28 Apr 2023 10:43:47 +0200 Message-Id: <20230428084352.836515-6-alex@linutronix.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230428084352.836515-1-alex@linutronix.de> References: <20230428084352.836515-1-alex@linutronix.de> 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 ; Fri, 28 Apr 2023 08:48:37 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/180517 Signed-off-by: Alexander Kanavin --- meta/recipes-devtools/python/python3-pytest_7.3.1.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/recipes-devtools/python/python3-pytest_7.3.1.bb b/meta/recipes-devtools/python/python3-pytest_7.3.1.bb index 9965844d1ad..914ea553464 100644 --- a/meta/recipes-devtools/python/python3-pytest_7.3.1.bb +++ b/meta/recipes-devtools/python/python3-pytest_7.3.1.bb @@ -26,6 +26,7 @@ RDEPENDS:${PN} += " \ ${PYTHON_PN}-py \ ${PYTHON_PN}-setuptools \ ${PYTHON_PN}-six \ + ${PYTHON_PN}-tomllib \ ${PYTHON_PN}-wcwidth \ " From patchwork Fri Apr 28 08:43:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Kanavin X-Patchwork-Id: 23122 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 4FDB2C7EE25 for ; Fri, 28 Apr 2023 08:48:37 +0000 (UTC) Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) by mx.groups.io with SMTP id smtpd.web11.14762.1682671712367112532 for ; Fri, 28 Apr 2023 01:48:32 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="signature has expired" header.i=@gmail.com header.s=20221208 header.b=E3OZJPbt; spf=pass (domain: gmail.com, ip: 209.85.128.47, mailfrom: alex.kanavin@gmail.com) Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-3f178da21b2so97338065e9.1 for ; Fri, 28 Apr 2023 01:48:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682671711; x=1685263711; 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=iAaEakgByQHmw37qBEQ3tnq4IqBhYWYd1Uaao59wt0k=; b=E3OZJPbtNcUm3Z7jrBwTbqjoK/1gnG0YKnswIrCpUKZ93oWb8zMV75Vl1YS2mpA6pb 1pouv2ZyB/gUCm4GbCkZO+4xO/SRUiC7we/bLCUrj9J1QOENBpA+S2yWMHbqNVm7S3uD vVz2/MS/bCQxc+X3yd/Xh4OWgxwgePBjRBujbLZ1vgK7ixHh8cBLD7hXd9KPISRXjZnr ZUhmvIfSsHs2I7xei5BrguxFhkxROuUC/3to/KvsFz2YEGbU2icxR8E55u4gbcRNcCB4 WGHvXVZVv01bV14C0tUxO9GEH1dBqzUXKsruHJy7wUtO/bxgRhMZVyjANhFGdxlvfipX BIEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682671711; x=1685263711; 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=iAaEakgByQHmw37qBEQ3tnq4IqBhYWYd1Uaao59wt0k=; b=fhNcTLQ2S9ho68WlEbO+Gn0HfW9UCrO8tjfwr4V6X5oEc/tefd/5Iqyi/y7wAiONa/ FBBILj//C3t9uOz6c6gXcL1Mi48Cr5nkUizRF75Cq/rHqph2zRMshedjJcYgR9qSRBMn y8rsNH6JgIfz4TU/z6s5JK0xsRzswoxPBm1NWfrh952u46LBnAE42UZ+GR6XcuweMo7T UIbkdDnMYISAwPNSyu9fBvBovK8AxK7ktzTz/iw6F+VEoD+VP1WAXrP90oitDVVLzzdH VFY/cI4VUedRhxiTTGNg6WD8DvikhrFqeJrHDxz3U1pVJz49P95bQ/7sCho+ijUzjvrW VBLw== X-Gm-Message-State: AC+VfDzs3w9bwRuSLQHjhOodW+B5fJi/EPv4ubFWANNvSTINHMfNC1sU p4erNhh3haWdczNPaipKD46wY/ucVjE= X-Google-Smtp-Source: ACHHUZ5D1Fk8nSL4WvXppIL3MaMm9iSdTlfne3rZgPGpbwjOQY20HBPU+wcmAu+xs+JNC2U4Fugvlw== X-Received: by 2002:a5d:4585:0:b0:2c7:1b4c:da75 with SMTP id p5-20020a5d4585000000b002c71b4cda75mr2852798wrq.69.1682671710770; Fri, 28 Apr 2023 01:48:30 -0700 (PDT) Received: from Zen2.lab.linutronix.de. (drugstore.linutronix.de. [80.153.143.164]) by smtp.gmail.com with ESMTPSA id j8-20020adff008000000b002f6176cc6desm20563375wro.110.2023.04.28.01.48.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Apr 2023 01:48:30 -0700 (PDT) From: Alexander Kanavin X-Google-Original-From: Alexander Kanavin To: openembedded-core@lists.openembedded.org Cc: Alexander Kanavin Subject: [PATCH v2 07/11] time64.inc: add a comment about how to simulate Y2038 in qemu Date: Fri, 28 Apr 2023 10:43:48 +0200 Message-Id: <20230428084352.836515-7-alex@linutronix.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230428084352.836515-1-alex@linutronix.de> References: <20230428084352.836515-1-alex@linutronix.de> 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 ; Fri, 28 Apr 2023 08:48:37 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/180518 Setting clock to 2040 causes the following ptest failures on qemux86: {'perl': ['t/op/magic', 'lib/File/stat', 'ext/POSIX/t/time']} {'python3': ['test_create_server_ssl_verified', 'test_create_unix_server_ssl_verified', 'test_local_good_hostname']} {'dbus': ['dbus/test-relay_with_config.test', 'dbus/test-misc-internals.test', 'dbus/test-corrupt.test', 'dbus/test-loopback_with_config.test', 'dbus/test-relay.test', 'dbus/test-misc-internals_with_config.test', 'dbus/test-loopback.test', 'dbus/test-fdpass_with_config.test', 'dbus/test-corrupt_with_config.test', 'dbus/test-fdpass.test']} {'openssl': ['Dubious,_test_returned_5', 'Dubious,_test_returned_1']} {'glibc-tests': ['/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-utimes', '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-utimensat', '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-utime', '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-timespec_get', '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-timer4', '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-stat', '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-sigtimedwait', '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-settimeofday', '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-sem5', '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-select', '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-scm_rights', '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-rwlock14', '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-ppoll', '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-ntp_gettimex', '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-ntp_gettime', '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-ntp_adjtime', '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-mtx-timedlock', '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-mqueue8', '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-mqueue2', '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-mqueue10', '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-mqueue1', '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-lutimes', '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-lchmod', '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-futimesat', '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-futimes', '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-futimens', '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-fts', '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-fcntl', '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-cond11', '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-cnd-timedwait', '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-clock_settime', '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-clock_adjtime', '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-clock', '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-aio6', '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-adjtimex', '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/ftwtest', '/usr/lib/glibc-tests/ptest/tests/glibc-ptest/tst-lchmod-time64']} {'openssh': ['key_options']} {'curl': ['test_0031', 'test_0046', 'test_0053', 'test_0061', 'test_0062', 'test_0172', 'test_0179', 'test_0327', 'test_0329', 'test_0420', 'test_1104', 'test_1216', 'test_1415']} {'glib-2.0': ['glib/asyncqueue.test', 'glib/module-test-plugin.test', 'glib/file.test', 'glib/fileutils.test', 'glib/module-test-library.test']} {'gstreamer1.0': ['gstreamer/elements_multiqueue.test']} (may be flaky) {'tcl': ['cmdAH.test', 'interp.test']} {'libmodule-build-perl': ['t/compat']} Some ptests fail on qemux86-64 as well: {'curl': ['test_0031', 'test_0046', 'test_0053', 'test_0061', 'test_0062', 'test_0172', 'test_0179', 'test_0327', 'test_0329', 'test_0420', 'test_1104', 'test_1216', 'test_1415']} {'python3': ['test_create_server_ssl_verified', 'test_create_unix_server_ssl_verified', 'test_local_good_hostname']} {'openssh': ['key_options']} {'openssl': ['Dubious,_test_returned_5', 'Dubious,_test_returned_1']} {'tcl': ['interp.test']} {'python3-cryptography': ['tests/hazmat/primitives/test_pkcs7.py:TestPKCS7Builder.test_smime_sign_detached', 'tests/hazmat/primitives/test_pkcs7.py:TestPKCS7Builder.test_sign_pem', 'tests/hazmat/primitives/test_pkcs7.py:TestPKCS7Builder.test_sign_alternate_digests_der[hash_alg0-\\x06\\t`\\x86H\\x01e\\x03\\x04\\x02\\x01]', 'tests/hazmat/primitives/test_pkcs7.py:TestPKCS7Builder.test_sign_alternate_digests_der[hash_alg1-\\x06\\t`\\x86H\\x01e\\x03\\x04\\x02\\x02]', 'tests/hazmat/primitives/test_pkcs7.py:TestPKCS7Builder.test_sign_alternate_digests_der[hash_alg2-\\x06\\t`\\x86H\\x01e\\x03\\x04\\x02\\x03]', 'tests/hazmat/primitives/test_pkcs7.py:TestPKCS7Builder.test_sign_attached', 'tests/hazmat/primitives/test_pkcs7.py:TestPKCS7Builder.test_sign_binary', 'tests/hazmat/primitives/test_pkcs7.py:TestPKCS7Builder.test_sign_smime_canonicalization', 'tests/hazmat/primitives/test_pkcs7.py:TestPKCS7Builder.test_sign_text', 'tests/hazmat/primitives/test_pkcs7.py:TestPKCS7Builder.test_sign_no_capabilities', 'tests/hazmat/primitives/test_pkcs7.py:TestPKCS7Builder.test_sign_no_attributes', 'tests/hazmat/primitives/test_pkcs7.py:TestPKCS7Builder.test_multiple_signers', 'tests/hazmat/primitives/test_pkcs7.py:TestPKCS7Builder.test_multiple_signers_different_hash_algs']} Note that setting the year to 2035 resolves almost all of the above, as onl the following then fail: qemux86: {'python3': ['test_local_good_hostname']} {'curl': ['test_0420']} qemux86-64: {'python3': ['test_local_good_hostname']} {'curl': ['test_0420']} Signed-off-by: Alexander Kanavin --- meta/conf/distro/include/time64.inc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/meta/conf/distro/include/time64.inc b/meta/conf/distro/include/time64.inc index 73adebd39db..7474f0fd7a0 100644 --- a/meta/conf/distro/include/time64.inc +++ b/meta/conf/distro/include/time64.inc @@ -1,3 +1,13 @@ +# To simulate Y2038 occurring in qemu, add to your build configuration: +# QB_OPT_APPEND:append = " -rtc base=2040-02-02" +# +# Note that this does result in ptest failures on qemux86: +# perl python3 dbus openssl glibc-tests openssh curl glib-2.0 tcl libmodule-build-perl +# and a subset of those occurs in qemux86-64 as well: +# curl python3 openssl openssl tcl python3-cryptography +# +# Working to address those (before Y2038 rolls in) will be appreciated. + GLIBC_64BIT_TIME_FLAGS = " -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64" # Only needed for some 32-bit architectures, some relatively newer From patchwork Fri Apr 28 08:43:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Kanavin X-Patchwork-Id: 23125 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 76EA3C7EE2A for ; Fri, 28 Apr 2023 08:48:37 +0000 (UTC) Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) by mx.groups.io with SMTP id smtpd.web10.14786.1682671712881810121 for ; Fri, 28 Apr 2023 01:48:33 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="signature has expired" header.i=@gmail.com header.s=20221208 header.b=SkKovSWK; spf=pass (domain: gmail.com, ip: 209.85.128.46, mailfrom: alex.kanavin@gmail.com) Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-3f1738d0d4cso62600015e9.1 for ; Fri, 28 Apr 2023 01:48:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682671711; x=1685263711; 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=2qMzxeLtJNRqgP38a0zIVcK7sRkcU+Z3xfTHpoEh21c=; b=SkKovSWKLrK2WtsutxvTH3CATgdWLMRCmcudW24xNihJLLFmC2f3KbO8rBWS4/2yvV NmtycZr4Xsv+Bq8WV7R1zf36y3i9dpZ5a8ukI3FT0dkhaigcb/4YblFNKrLo/DO5Es8J o/qSc+Zt0/6r88s5A7okiVdVV+RRC48reSvor+I8Fl7SNhof2B4pnc2Dp3Y9+vc7K3Pm tAj5t29eZrScmQRU/L0Liv1GbVJQbpH/bupOggcB7acQQi/ArwMbmiGAp2j9XE9UjHN5 PVw4t0avDzXOH2G56qiLhB/k/D/BceTbeLZtHzicMP1R5Wx8Bb9trq2afNh7ARdTGrE/ Acag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682671711; x=1685263711; 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=2qMzxeLtJNRqgP38a0zIVcK7sRkcU+Z3xfTHpoEh21c=; b=YSlvfpZyMkkZ4Y3z98I9zndyJIRedlWGsronMJDbPkOnHSP7MMhW0DDFuFk8V0D0hi W35RDGKkw4NT8h5JXppVhgS0hMH1achVkbKJ00bOCwQykAo4TYEnskT3cnjheHIe6jHZ ldhn5+NcbdXp3uNVeKybrjlVObDMlSzi2Qh/IV1F+G/g6sG0Gmln9uz7KUyCmAG6gpAH cxB1NfSsusbyTqe/RDHNBdCbTkXd7HqGeshtjC6X9i1Aghy4JAlOY0vfoguC5rbwsA/G 01GT/osznSDF1RoRoX6H4Djon7WYmOLIJLKAftOl7YmtfS3i0FdfVHX2g3ae40qFQOEN /8Hw== X-Gm-Message-State: AC+VfDwf671naKDLiCG1HQSQDRy/L5X6+7Ri0EywAZQSRf2Sj/uDD8cY OT+dV6yNrz8ANbb1tD63eZzr4ZP1IzU= X-Google-Smtp-Source: ACHHUZ5UmVqOSUFvPuAINwH0KuxSfXUArAKcKnT1oMW2tQPdaudhDJu7NM2LyJqdFnyMz+DhXrdFmA== X-Received: by 2002:a5d:6986:0:b0:2ee:d53b:d9ef with SMTP id g6-20020a5d6986000000b002eed53bd9efmr3316911wru.55.1682671711315; Fri, 28 Apr 2023 01:48:31 -0700 (PDT) Received: from Zen2.lab.linutronix.de. (drugstore.linutronix.de. [80.153.143.164]) by smtp.gmail.com with ESMTPSA id j8-20020adff008000000b002f6176cc6desm20563375wro.110.2023.04.28.01.48.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Apr 2023 01:48:31 -0700 (PDT) From: Alexander Kanavin X-Google-Original-From: Alexander Kanavin To: openembedded-core@lists.openembedded.org Cc: Alexander Kanavin Subject: [PATCH v2 08/11] oeqa/sdk/assimp: run only when zlib is in the SDK Date: Fri, 28 Apr 2023 10:43:49 +0200 Message-Id: <20230428084352.836515-8-alex@linutronix.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230428084352.836515-1-alex@linutronix.de> References: <20230428084352.836515-1-alex@linutronix.de> 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 ; Fri, 28 Apr 2023 08:48:37 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/180519 Otherwise assimp will silently fall back to a vendored copy of zlib which will fail with -D_TIME_BITS=64 due to https://github.com/madler/zlib/pull/764 This was exposed by multilib mips core-image-minimal SDKs, where the default 64 bit sysroot has zlib, but 32 bit sysroot does not. Signed-off-by: Alexander Kanavin --- meta/lib/oeqa/sdk/cases/assimp.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta/lib/oeqa/sdk/cases/assimp.py b/meta/lib/oeqa/sdk/cases/assimp.py index aa6541c6f6d..e4c5c730037 100644 --- a/meta/lib/oeqa/sdk/cases/assimp.py +++ b/meta/lib/oeqa/sdk/cases/assimp.py @@ -22,6 +22,9 @@ class BuildAssimp(OESDKTestCase): if not (self.tc.hasHostPackage("nativesdk-cmake") or self.tc.hasHostPackage("cmake-native")): raise unittest.SkipTest("Needs cmake") + if not (self.tc.hasTargetPackage("zlib", multilib=True) or \ + self.tc.hasTargetPackage("libz1", multilib=True)): + raise unittest.SkipTest("Assimp test needs zlib in the SDK") def test_assimp(self): with tempfile.TemporaryDirectory(prefix="assimp", dir=self.tc.sdk_dir) as testdir: From patchwork Fri Apr 28 08:43:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Kanavin X-Patchwork-Id: 23119 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 4607CC7EE22 for ; Fri, 28 Apr 2023 08:48:37 +0000 (UTC) Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) by mx.groups.io with SMTP id smtpd.web11.14764.1682671713596072645 for ; Fri, 28 Apr 2023 01:48:33 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="signature has expired" header.i=@gmail.com header.s=20221208 header.b=Iq3cS8dv; spf=pass (domain: gmail.com, ip: 209.85.128.51, mailfrom: alex.kanavin@gmail.com) Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-3f19afc4fd8so47206625e9.2 for ; Fri, 28 Apr 2023 01:48:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682671712; x=1685263712; 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=Lwtd56FmyDMg0/VoBrXJRtJbmxAJNoHagbPHATeicyY=; b=Iq3cS8dvRmYvUWEBzrgGqn4dxx0QXtQCdbBe8oecMZ5aE1lvbDsPkbmEegV8+k1bUa e9bK09xKPbKtisA1tqpxZsze/8XOrndeBxWh4nkoVis8vEt20wqPJ8eesbX3Bvf497eC 1z8lzS/fKQ+CUyhGWu6tUyuafq1Lta+wsxlXMCaMO3OiiSZ77jWrYKBrzZ3XAzK0Cpl8 3c6vBGjVJyBbA5fK1XHho5QgPBRAbkQ53qa961WHO2Gi3T71KzhKUo8EdOYfKkE4fE02 KiQHCJDnf+gzdWpkg4lKymfDSt8tFc9AZHUi4bwlyy22SqC9RMVLwMkgAJ/pimcohthe I2Vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682671712; x=1685263712; 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=Lwtd56FmyDMg0/VoBrXJRtJbmxAJNoHagbPHATeicyY=; b=d2fVRLFoHZGpHjGirYMCVj8iOJFLEg5a4MjOa2qEbnANfO580eT6VkMIRTLFiVILU3 +kLSfQMuEGAkMdKkOv8ejWDJc7LHV1X38COUKPV25AD9TdM3QViSXPzRNSrUlLM4/Rwz 0UI7ko79vO33+30O9U7WrIlsuxE9kVWWaslJ/cF9VlihPzL1Ul5AOEz756lcLb5ZbuTS bRjVA4yRvDLGUqghJ1igXnxTOoagmLGlcTC9Ov3eM8GjE7Us4+xM1tD6fAiaBrA5WojS 6V01gwgbEMS8ijUS+BuS9niYKRR4xv3EhQWDYGxzdBLA7I83LqRaPB1TbHmox72LnJfI oPjg== X-Gm-Message-State: AC+VfDy7L53xqIys9RZe524l+uee7wsOS0qGthiZdOLJSTWGnIMRgMgK UoseUi6IAByBHqcqIA00lQaDmJE6pxE= X-Google-Smtp-Source: ACHHUZ6V3HqGNZtxTfAShEsMO0Q5LXCBdz4yWOjrYsENH3iK6KJtkR9/KMjTdHSLTwL6gKA3aKZozA== X-Received: by 2002:adf:e0ce:0:b0:2f5:4b0b:a323 with SMTP id m14-20020adfe0ce000000b002f54b0ba323mr2955233wri.7.1682671711883; Fri, 28 Apr 2023 01:48:31 -0700 (PDT) Received: from Zen2.lab.linutronix.de. (drugstore.linutronix.de. [80.153.143.164]) by smtp.gmail.com with ESMTPSA id j8-20020adff008000000b002f6176cc6desm20563375wro.110.2023.04.28.01.48.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Apr 2023 01:48:31 -0700 (PDT) From: Alexander Kanavin X-Google-Original-From: Alexander Kanavin To: openembedded-core@lists.openembedded.org Cc: Khem Raj Subject: [PATCH v2 09/11] defaultsetup: Enable largefile and 64bit time_t support systemwide Date: Fri, 28 Apr 2023 10:43:50 +0200 Message-Id: <20230428084352.836515-9-alex@linutronix.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230428084352.836515-1-alex@linutronix.de> References: <20230428084352.836515-1-alex@linutronix.de> 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 ; Fri, 28 Apr 2023 08:48:37 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/180520 From: Khem Raj Signed-off-by: Khem Raj --- meta/conf/distro/defaultsetup.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/conf/distro/defaultsetup.conf b/meta/conf/distro/defaultsetup.conf index f6894f3ab56..1abb5096293 100644 --- a/meta/conf/distro/defaultsetup.conf +++ b/meta/conf/distro/defaultsetup.conf @@ -2,7 +2,7 @@ include conf/distro/include/default-providers.inc include conf/distro/include/default-versions.inc include conf/distro/include/default-distrovars.inc include conf/distro/include/maintainers.inc - +include conf/distro/include/time64.inc require conf/distro/include/tcmode-${TCMODE}.inc require conf/distro/include/tclibc-${TCLIBC}.inc From patchwork Fri Apr 28 08:43:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Kanavin X-Patchwork-Id: 23120 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 4071FC77B60 for ; Fri, 28 Apr 2023 08:48:37 +0000 (UTC) Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) by mx.groups.io with SMTP id smtpd.web11.14765.1682671714166724930 for ; Fri, 28 Apr 2023 01:48:34 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="signature has expired" header.i=@gmail.com header.s=20221208 header.b=DHqpioN+; spf=pass (domain: gmail.com, ip: 209.85.221.51, mailfrom: alex.kanavin@gmail.com) Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-2fde2879eabso8739608f8f.1 for ; Fri, 28 Apr 2023 01:48:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682671712; x=1685263712; 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=SkO8wCSGqy+4cmIo7R8klIgbf0gIdKAEC0s38h3406g=; b=DHqpioN+ZoQ8Bw6/+AhA6ygLdByyTp58UpigxiPGb53S8h7K5XfaJbXhOBGkQ18lLq ezmanzjbCucntf4xNJgidJDOz9LDofbSVm32I2NAk+oYxd7sPF4mxCXRwwiMchlZMKLs g9kiNajFSgVDIqqFb63OoVqF4I4+DIJVr+haN5fumpaqSrBNCUB4wD7PcEbSccZvsjpx VACz/f3umLDslBfFUdhJQucBaOVngb/BD85Ot44e23xqwrbui6WKQxyGnthCQV37O1NY h9g1cbuUj8Gn77nZKOF1inkGfpH6h7rSp+pF73J5cJD5bYP4sz1gOu42QvQPhJlulsC+ 6OKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682671712; x=1685263712; 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=SkO8wCSGqy+4cmIo7R8klIgbf0gIdKAEC0s38h3406g=; b=Zc0OrP66AzyZSzsQG31oeFpdQaoOfKhbjAAshfFOzDxA5PDtpxYnrukl67Gnocycp7 iQUyJz6EF4bp0R88NAbgeqOzdGz59FkCkOcw64dDBp//KuL5Q7pzc+Tma9EnLezB/sl8 codCMTjzJJhqoB7H3r/7A/Y7rXyObnV+yK9qJpyz4kawcPxymmBPiswQ+YYkTyUcfgzS 93oVOneg+09kLQvD8py2ySL3YTLO1OBltmiOnMc6OcoK4WNSc0fxeMWKUfyWbNj9NQVC bV7+TGq4bR/i4hq5lK39OXxyIlXWc2cES7dPLTikoOsE4brZxxOcQawNJk45hHgYNZgK 6REQ== X-Gm-Message-State: AC+VfDzyBhj0suGujEN0M9qWMkmCkGAPMT2J5Q4LydSGbCJD5WKbqbdH KKo61Pqw599DxM29ksl30GQHeOTBsLA= X-Google-Smtp-Source: ACHHUZ767twZ2tIZemj3aTlVUJ3Msc1HmtOrAqaYv1atGulPW8dKcQMTjv2+MRgL7ywFdKdfuNrHWg== X-Received: by 2002:a5d:618c:0:b0:2fe:c0ea:18a5 with SMTP id j12-20020a5d618c000000b002fec0ea18a5mr3154571wru.58.1682671712553; Fri, 28 Apr 2023 01:48:32 -0700 (PDT) Received: from Zen2.lab.linutronix.de. (drugstore.linutronix.de. [80.153.143.164]) by smtp.gmail.com with ESMTPSA id j8-20020adff008000000b002f6176cc6desm20563375wro.110.2023.04.28.01.48.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Apr 2023 01:48:32 -0700 (PDT) From: Alexander Kanavin X-Google-Original-From: Alexander Kanavin To: openembedded-core@lists.openembedded.org Cc: Alexander Kanavin Subject: [PATCH v2 10/11] insane.bbclass: simplify exceptions for 32 bit time API check Date: Fri, 28 Apr 2023 10:43:51 +0200 Message-Id: <20230428084352.836515-10-alex@linutronix.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230428084352.836515-1-alex@linutronix.de> References: <20230428084352.836515-1-alex@linutronix.de> 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 ; Fri, 28 Apr 2023 08:48:37 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/180521 Existing implementation required to list both specific problematic apis, and files that use them: neither is necessary as both are seen in package_qa error messages, and can cause excessive amount of exception lines, if there are too many files, or they are installed in arch-specific locations. Also, the value of INSANE_SKIP should be the test that needs to be skipped, and in this case it wasn't. Also, all problematic recipes are now correctly listed. Signed-off-by: Alexander Kanavin --- v2: add pseudo to exception list --- meta/classes-global/insane.bbclass | 14 +++----------- meta/conf/distro/include/time64.inc | 19 +++++++++++++------ 2 files changed, 16 insertions(+), 17 deletions(-) diff --git a/meta/classes-global/insane.bbclass b/meta/classes-global/insane.bbclass index ee34d5208d1..8788f58fc5b 100644 --- a/meta/classes-global/insane.bbclass +++ b/meta/classes-global/insane.bbclass @@ -617,22 +617,14 @@ def check_32bit_symbols(path, packagename, d, elf, messages): # At this point, any symbol information is stripped into the debug # package, so that is the only place we will find them. elfpath = elfpath.replace('.debug/', '') - allowed = ( - d.getVarFlag( - 'INSANE_SKIP:' + d.getVar('PN'), elfpath.replace('/', '_') - ) or '' - ).split() - usedapis -= set(allowed) - if usedapis: + allowed = "32bit-time" in (d.getVar('INSANE_SKIP') or '').split() + if not allowed: msgformat = elfpath + " uses 32-bit api '%s'" for sym in usedapis: oe.qa.add_message(messages, '32bit-time', msgformat % sym) oe.qa.add_message( messages, '32bit-time', - 'Suppress with INSANE_SKIP:%s[%s] = "%s"' % ( - d.getVar('PN'), elfpath.replace('/', '_'), - ' '.join(usedapis) - ) + 'Suppress with INSANE_SKIP = "32bit-time"' ) # Check license variables diff --git a/meta/conf/distro/include/time64.inc b/meta/conf/distro/include/time64.inc index 7474f0fd7a0..78569de4337 100644 --- a/meta/conf/distro/include/time64.inc +++ b/meta/conf/distro/include/time64.inc @@ -30,10 +30,17 @@ GLIBC_64BIT_TIME_FLAGS:pn-pipewire = "" GLIBC_64BIT_TIME_FLAGS:pn-pulseaudio = "" GLIBC_64BIT_TIME_FLAGS:pn-gcc-sanitizers = "" -INSANE_SKIP:libstd-rs[_usr_lib_rustlib_armv7-poky-linux-gnueabihf_lib_libstd.so] = "clock_gettime gettime fcntl fstat64 fstatat64 getsockopt ioctl lstat64 nanosleep prctl recvmsg sendmsg setsockopt stat64" -INSANE_SKIP:librsvg[_usr_bin_rsvg-convert] = "fcntl fstat64 prctl stat64 clock_gettime" -INSANE_SKIP:librsvg[_usr_lib_librsvg-2.so.2.48.0] = "fcntl lstat64 setsockopt sendmsg fstat64 getsockopt ioctl nanosleep timegm fstatat64 prctl mktime gmtime_r recvmsg stat64 clock_gettime localtime_r" - -# libpulsedsp.so is a preload-library that hooks libc functions -INSANE_SKIP:pulseaudio[_usr_lib_pulseaudio_libpulsedsp.so] = "setsockopt fcntl" +INSANE_SKIP:append:pn-cargo = " 32bit-time" +INSANE_SKIP:append:pn-gcc-sanitizers = " 32bit-time" +INSANE_SKIP:append:pn-glibc = " 32bit-time" +INSANE_SKIP:append:pn-glibc-tests = " 32bit-time" +INSANE_SKIP:append:pn-librsvg = " 32bit-time" +INSANE_SKIP:append:pn-libstd-rs = " 32bit-time" +INSANE_SKIP:append:pn-pseudo = " 32bit-time" +INSANE_SKIP:append:pn-pulseaudio = " 32bit-time" +INSANE_SKIP:append:pn-python3-bcrypt = " 32bit-time" +INSANE_SKIP:append:pn-python3-cryptography = " 32bit-time" +INSANE_SKIP:append:pn-rust = " 32bit-time" +INSANE_SKIP:append:pn-rust-hello-world = " 32bit-time" +INSANE_SKIP:append:pn-strace = " 32bit-time" From patchwork Fri Apr 28 08:43:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Kanavin X-Patchwork-Id: 23117 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 374B2C77B7E for ; Fri, 28 Apr 2023 08:48:37 +0000 (UTC) Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) by mx.groups.io with SMTP id smtpd.web10.14787.1682671714702451387 for ; Fri, 28 Apr 2023 01:48:35 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="signature has expired" header.i=@gmail.com header.s=20221208 header.b=Vf+WPfd+; spf=pass (domain: gmail.com, ip: 209.85.221.48, mailfrom: alex.kanavin@gmail.com) Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-2f40b891420so9227479f8f.0 for ; Fri, 28 Apr 2023 01:48:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682671713; x=1685263713; 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=P+Fw8TUijwc1bcCjGIGvLGAQHmGWPKU7z2E7BmQoj/Q=; b=Vf+WPfd+nJY65TSiAcBhbZtxCoEkmhSdTDH6XDIuBG6iAMEhBPOTe5s05A8Lk6R0c8 M9+tLhib/BaAzkom4CEm7IBvOKRNq6lmGbHFJhkZOO5VsUbnzAo3GYTJwVoZK4uW3Wb6 /MeMp++ua2ibw7IzhIiE+e0PecRz8PeE/9yR2K0WdJMYrBvqdR11WyqdkguM/fSp/7HK H8u3Gs8vd3sLpl+y97lCjwLGQteHn4jhUrG+JfsZsd+FbX7NNqYDaBUL/Q7EAM3OLgDY 6dteAuawOVMH1V8mg/dIHVMP9aVqOZ4hiVqr2hUhy6WYvLgVQZkXiBOrSH29uy48hKCL kmdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682671713; x=1685263713; 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=P+Fw8TUijwc1bcCjGIGvLGAQHmGWPKU7z2E7BmQoj/Q=; b=TdMPN+thuwUG8QPWkQ8JdJXXLWnFo7smNe54rYCoYUOp6lfUoawS7xoVnZ/a1rXret ewQjaEqs6+DgSix1lJ6Ii2rGuzbQK/eKyq6hZUIacBiyQfat2/5k0QaAGw28VKFFHdWM Kv+oKBTfTFQoVnsFs9CjTWJ0XIJ0XXYBeSvHIR9+ykUMvjiCBlRW5jKYkwRXDGTWzx7H VXa9IY6MLZBjHF8SKENNUCxwKRPeNocY3/PYFAJQFX4gL/zWkUUz3rHrCOXUH9J8Z5BC LOragirrwNt7HaAtkJ9kFYLtHuX1hBqdahZk7CLN4GWoDa7bJqZYv0bZMFfEByQKMVNp 22Eg== X-Gm-Message-State: AC+VfDy3phzfEx8Vh2ADGplWT7yJsVS04MeKBSUFwZzHzYBBljxvh3RT YrUCFnGcHQcK4AdDgzy0mlg/+HkQWK4= X-Google-Smtp-Source: ACHHUZ6+WkHLPjc8IY8l2xPDUwoCfZsvOYOm+Cbk2hD/4zfgZzFO79yB+3mfhdooqLWtYZMgUCuLRg== X-Received: by 2002:a5d:4b02:0:b0:2fa:26cc:71f0 with SMTP id v2-20020a5d4b02000000b002fa26cc71f0mr3396172wrq.10.1682671713113; Fri, 28 Apr 2023 01:48:33 -0700 (PDT) Received: from Zen2.lab.linutronix.de. (drugstore.linutronix.de. [80.153.143.164]) by smtp.gmail.com with ESMTPSA id j8-20020adff008000000b002f6176cc6desm20563375wro.110.2023.04.28.01.48.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Apr 2023 01:48:32 -0700 (PDT) From: Alexander Kanavin X-Google-Original-From: Alexander Kanavin To: openembedded-core@lists.openembedded.org Cc: Alexander Kanavin Subject: [PATCH v2 11/11] insane.bbclass: enable 32 bit time API check (as a warning) on affected architectures Date: Fri, 28 Apr 2023 10:43:52 +0200 Message-Id: <20230428084352.836515-11-alex@linutronix.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230428084352.836515-1-alex@linutronix.de> References: <20230428084352.836515-1-alex@linutronix.de> 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 ; Fri, 28 Apr 2023 08:48:37 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/180522 Signed-off-by: Alexander Kanavin --- v2: downgrade to a warning from an error --- meta/classes-global/insane.bbclass | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/meta/classes-global/insane.bbclass b/meta/classes-global/insane.bbclass index 8788f58fc5b..6479fc0964b 100644 --- a/meta/classes-global/insane.bbclass +++ b/meta/classes-global/insane.bbclass @@ -34,6 +34,7 @@ WARN_QA ?= " libdir xorg-driver-abi buildpaths \ missing-update-alternatives native-last missing-ptest \ license-exists license-no-generic license-syntax license-format \ license-incompatible license-file-missing obsolete-license \ + 32bit-time \ " ERROR_QA ?= "dev-so debug-deps dev-deps debug-files arch pkgconfig la \ perms dep-cmp pkgvarcheck perm-config perm-line perm-link \ @@ -44,7 +45,7 @@ ERROR_QA ?= "dev-so debug-deps dev-deps debug-files arch pkgconfig la \ already-stripped installed-vs-shipped ldflags compile-host-path \ install-host-path pn-overrides unknown-configure-option \ useless-rpaths rpaths staticdev empty-dirs \ - patch-fuzz patch-status-core\ + patch-fuzz patch-status-core \ " # Add usrmerge QA check based on distro feature ERROR_QA:append = "${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge', ' usrmerge', '', d)}" @@ -512,6 +513,11 @@ def check_32bit_symbols(path, packagename, d, elf, messages): """ Check that ELF files do not use any 32 bit time APIs from glibc. """ + thirtytwo_bit_time_archs = set(('arm','armeb','mipsarcho32','powerpc','x86')) + overrides = set(d.getVar('OVERRIDES').split(':')) + if not(thirtytwo_bit_time_archs & overrides): + return + import re # This list is manually constructed by searching the image folder of the # glibc recipe for __USE_TIME_BITS64. There is no good way to do this