From patchwork Thu Mar 13 08:58:33 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alex Kiernan X-Patchwork-Id: 58919 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 6121BC35FF1 for ; Thu, 13 Mar 2025 08:58:49 +0000 (UTC) Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) by mx.groups.io with SMTP id smtpd.web11.9959.1741856325244604336 for ; Thu, 13 Mar 2025 01:58:45 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Rx7HNOrB; spf=pass (domain: gmail.com, ip: 209.85.221.45, mailfrom: alex.kiernan@gmail.com) Received: by mail-wr1-f45.google.com with SMTP id ffacd0b85a97d-38dcac27bcbso1108632f8f.0 for ; Thu, 13 Mar 2025 01:58:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741856323; x=1742461123; darn=lists.openembedded.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=BKDXA3Gz2QUeQHr3MtOfjOZAhKqrCh7kQwTK3mqZZH0=; b=Rx7HNOrB97xn4kIid1EfKKHZ85KMBgyN0bIVR4EP0dezxW+c9XQdrwg2wP51jdSGRg Zo60CO0up+Ms5MKnZZcgf735uPpBXneTFcQoohG1caEU17kZ7cFeSVxA8lM/99lRmN3c Q96rsI2EjG5cprRouib1pbzFCqIhLac2x+agb3x8yMPI4NNrsUCmhRbNUw6afRe9s+3w hqVaMerFyJoytNRhqsaYWLqvtq9aQnswGjysBjJS/zQsHqBaBdG+dEoi5wE1+VC579w4 jNuXZ5IqTAAqD4hV2sp2F/0/cTamSbjr/8+XDJVis7AEaQM3QTNl3VjPvDvCLBvekTJM m7Ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741856323; x=1742461123; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BKDXA3Gz2QUeQHr3MtOfjOZAhKqrCh7kQwTK3mqZZH0=; b=U4oWOnOvJgHTjuSR9gxMekYreqmG9t4A9VWZlsVlgUNufkv9+UPNpUmBzj+MlXs2j2 007fe6s/V4kj0xf/eu4KGv/CixrfY5M5j2wGGPFYQK7yg7rybSuYMKZEgD7PfgccVtz2 hn2bX18msxxNk3ZJ/off5G5NEKQrWyMDa6eYgAYBhU6cSeVkdD7D+IKHVNzexXyxiRPT XHfRIiHGx8cPAncBbuj6XHzxveBR97NCQ0PPkrd6IVyWhkPVsrqqgSbnFcB4FW7B7UuS yG9f0Chm3oydBeQHU5J71OUk4iAeW9LULiHb4ulNraW2FGcw2NFvVcoWk1b0/7yv1KMK hdBQ== X-Gm-Message-State: AOJu0YwuIlrijZoTkN31puRFLOzGXpgdgL+yxSu+D3Zjx7fFTHZA15+9 0V8jewWaGC3ErZltN+tVHqM3WhfsA+ZZ/EL0jKg4vJ+s9Bm7SrhBJcaOBJRx X-Gm-Gg: ASbGncuq/0nQKX+P5n53AwkbnQRj6cEJ+SfPAneSPV33vSx5BepqYSO2qkkuqdNJ4YP C9a5sohl20s8tKHdxXYX0s9XbIDoO9GzcjdJUsDDsShTN0uSw3A1Z84/QfwzhaqUuA8FJc4U5o/ yFuHPT7lCpzzCqvDL7PczpmxwDmtUuQJ0xoWPFlzlYjtzw6PfTQ1xo5dWQUUoO2xagEvn0TXo8B 8+oUwgAAb2pQe6Xl+k8T71iTE8YzPISK19QTav2FOlRJEv5dqszrs/k/nmDPuK/ZuYOpAGDQJXn B0bpvD4DrS6ATChDMfdZyXTRkp0qvJupLPrzv/ru3LCnYMun35N8jWF11e+5ycMF1dSmq9Vw4wC 9yl2nQh+gGRw= X-Google-Smtp-Source: AGHT+IEFGMRNhVufrCgOQqeo7Fb2f6dNGcVer42xH2rYeJquv6mvX9ynTHQEAkxNLhhTrhVaRMfjOQ== X-Received: by 2002:a5d:648f:0:b0:391:2e6a:30fa with SMTP id ffacd0b85a97d-395b9b10d54mr1106054f8f.27.1741856323111; Thu, 13 Mar 2025 01:58:43 -0700 (PDT) Received: from ip-10-0-0-134.eu-west-1.compute.internal ([2a05:d018:db1:fb00:c4f8:7a97:b7aa:1bfd]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43d18a4c2dasm12978845e9.33.2025.03.13.01.58.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Mar 2025 01:58:42 -0700 (PDT) From: Alex Kiernan Date: Thu, 13 Mar 2025 08:58:33 +0000 Subject: [PATCH OE-Core v2 1/4] scdoc: Import from meta-wayland MIME-Version: 1.0 Message-Id: <20250313-upgrade-kmod-v2-1-2103ca9a26ad@gmail.com> References: <20250313-upgrade-kmod-v2-0-2103ca9a26ad@gmail.com> In-Reply-To: <20250313-upgrade-kmod-v2-0-2103ca9a26ad@gmail.com> To: openembedded-core@lists.openembedded.org Cc: Alex Kiernan X-Mailer: b4 0.14.2 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, 13 Mar 2025 08:58:49 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/212750 scdoc is a simple man page generator for POSIX systems written in C99. Signed-off-by: Alex Kiernan --- meta/conf/distro/include/maintainers.inc | 1 + .../0001-Makefile-dont-add-static-to-LDFLAGS.patch | 27 ++++++++++++++++++++++ meta/recipes-extended/scdoc/scdoc_git.bb | 25 ++++++++++++++++++++ 3 files changed, 53 insertions(+) diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc index 5515d46ca5b1aad22c46665c78e4707bc22e3a0a..df7480d51301b4203c703a420e1522e221f77048 100644 --- a/meta/conf/distro/include/maintainers.inc +++ b/meta/conf/distro/include/maintainers.inc @@ -761,6 +761,7 @@ RECIPE_MAINTAINER:pn-sassc = "Simone Weiß " RECIPE_MAINTAINER:pn-sato-screenshot = "Ross Burton " RECIPE_MAINTAINER:pn-sato-icon-theme = "Richard Purdie " RECIPE_MAINTAINER:pn-sbc = "Unassigned " +RECIPE_MAINTAINER:pn-scdoc = "Unassigned " RECIPE_MAINTAINER:pn-screen = "Anuj Mittal " RECIPE_MAINTAINER:pn-seatd = "Unassigned " RECIPE_MAINTAINER:pn-sed = "Chen Qi " diff --git a/meta/recipes-extended/scdoc/scdoc/0001-Makefile-dont-add-static-to-LDFLAGS.patch b/meta/recipes-extended/scdoc/scdoc/0001-Makefile-dont-add-static-to-LDFLAGS.patch new file mode 100644 index 0000000000000000000000000000000000000000..b520e949c0b31c0908118cba4f6c2b6ea26f5a26 --- /dev/null +++ b/meta/recipes-extended/scdoc/scdoc/0001-Makefile-dont-add-static-to-LDFLAGS.patch @@ -0,0 +1,27 @@ +From 2cac433806d9622dbc005fe5738f1ae8c33a98cb Mon Sep 17 00:00:00 2001 +From: Markus Volk +Date: Thu, 13 Jul 2023 19:26:40 +0200 +Subject: [PATCH] Makefile: dont add -static to LDFLAGS + +Signed-off-by: Markus Volk + +Upstream-Status: Inappropriate [oe-specific] +--- + Makefile | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/Makefile b/Makefile +index 60a80b8..49021fa 100644 +--- a/Makefile ++++ b/Makefile +@@ -1,7 +1,6 @@ + VERSION=1.11.2 + CFLAGS?=-g + MAINFLAGS:=-DVERSION='"$(VERSION)"' -Wall -Wextra -Werror -Wno-unused-parameter +-LDFLAGS+=-static + INCLUDE+=-Iinclude + PREFIX?=/usr/local + BINDIR?=$(PREFIX)/bin +-- +2.39.3 + diff --git a/meta/recipes-extended/scdoc/scdoc_git.bb b/meta/recipes-extended/scdoc/scdoc_git.bb new file mode 100644 index 0000000000000000000000000000000000000000..224e5417342e9db820456ec54476a1e3cac0e4e4 --- /dev/null +++ b/meta/recipes-extended/scdoc/scdoc_git.bb @@ -0,0 +1,25 @@ +SUMMARY = "scdoc is a simple man page generator for POSIX systems written in C99." +HOMEPAGE = "https://github.com/ddevault/scdoc" +BUGTRACKER = "https://github.com/ddevault/scdoc/issues" +SECTION = "base/doc" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://COPYING;md5=31752b4a8edd3fb9ddba1cb90fada74d" + +SRC_URI = " \ + git://git.sr.ht/~sircmpwn/scdoc;protocol=https;branch=master \ + file://0001-Makefile-dont-add-static-to-LDFLAGS.patch \ +" + +DEPENDS = "scdoc-native" + +S = "${WORKDIR}/git" +PV = "1.11.2" +SRCREV = "afeda241f3f9b2c27e461f32d9c2a704ab82ef61" + +EXTRA_OEMAKE:class-native = "PREFIX=${prefix}" +EXTRA_OEMAKE:class-target = "PREFIX=${prefix} HOST_SCDOC=${STAGING_BINDIR_NATIVE}/scdoc" + +inherit autotools-brokensep + +BBCLASSEXTEND = "native" + From patchwork Thu Mar 13 08:58:34 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Kiernan X-Patchwork-Id: 58918 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 42571C28B28 for ; Thu, 13 Mar 2025 08:58:49 +0000 (UTC) Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) by mx.groups.io with SMTP id smtpd.web10.10301.1741856325954584455 for ; Thu, 13 Mar 2025 01:58:46 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=dHqfAM3O; spf=pass (domain: gmail.com, ip: 209.85.128.50, mailfrom: alex.kiernan@gmail.com) Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-43948021a45so5625155e9.1 for ; Thu, 13 Mar 2025 01:58:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741856324; x=1742461124; darn=lists.openembedded.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=1GNYrSHe6bcaa3yIMeds4psdenBqjFUJ660LrJ9iawM=; b=dHqfAM3O6bC4ed56NH/QfrAlW3KLci7MkFV+B6aX2NYfeOTONAKyqsAYuDawmBVBtm nSk3mx2mlysUvGXj6SWkL9x3vNZmdRLi2ptSHeQC2kVwdNgxPRp2IXV3Cn2RnE1QRDHS 4CIGWcXkAyP3u1yq1M23pt+NmbTUY+oFqMuttTgLmPMSnAIsat2TILfjLogrMsenOOqY L7EgLyyO5UHuaPveKuUuShNr8bzW/G6MIVBm5LK0VQWlFNkqwhpcgHiknaTdhJF/KVQz fSF34yRleMn2zZecD5k58sjRD4NEBRvBJLoAIbKjHBJk5ZNmq9YS7Ahbl/dopA9XSt5q eHfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741856324; x=1742461124; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1GNYrSHe6bcaa3yIMeds4psdenBqjFUJ660LrJ9iawM=; b=OgNxC/N2EOBRAkwj9+IThxJN4GgvKmzCJZAk4pGzh6GwRT/hmxUgYuesEksGFu1r/q s9989WD8Fga6myegigz/JNhOAy+cFCWQ3A5zxrd/O95k3NoSAogQQJNTUwJHbWQpfl2Z NxvMYRFMfz5Q/5xior3m+s4f0XZxr9G28Aih/cN+Ch1fbbtb3MEZr4K432KGItsdm5jj CsY4NpFCIjX9jG4m3BFpqyfVks87zbP+3yRqeR5V2dWukZSLTQRd7iy/ZYXn/4Tsi1rJ EpMXgY3QNyrZwA/sfbUCSB5mbnmSjcsh3pnZlhphjF5+IUKNFGXLLYRn4XYWfblXxyp0 tzbQ== X-Gm-Message-State: AOJu0YyFWHA/1lNh7v3IxTGydNEFTUNRqG8Db5DR4NPtGlLPTizAoy9I MzfSjx0KEdDiy/QX2+hufEZh8VyZeB+iZ1sNQ+kt3eews6v+5LbIK70sYHPh X-Gm-Gg: ASbGnctvVGjaUB/6b7hOIiwhGaHidZJYd38sXHp394TeXQNwtWHdizYKsiAGKW4pb/P 6OpKn/PGrpA4HCowIw4qgfHQuLhZsc/K/ITM3K6rmKjQ/zWoG6zRiFlAv4VHtoSH0BzXr70gCHC Ae/2jQZCFRqaIFfENqUIbPluAYslWzjxO7nlE8I0Qpt/UFG+el/AHSByaCsRW3SMF8eunGctoWa JTnyb5Nf5N2oZ0iAq/zj2SoOUC3bJ1UY/xQYFJh8YI/hnzZxl94wHhvL9g6cT+ukemsvSxqZl9p LcP4DiybdXiacl8y86YZ5hs5cwj7TnYtkweef0oKO1GX/+lpkvs6xbdUlwPQ+STI4BXTtTLjMJG bSF1572ZWqws= X-Google-Smtp-Source: AGHT+IEJ4ZDPLHc8SyWGsSW1Pv1kArLp4/74xTRT12j9X4MTBVG4tPjVcREyU3tWSw/qpyYQhk1XoQ== X-Received: by 2002:a05:600c:524d:b0:43c:f470:75df with SMTP id 5b1f17b1804b1-43cf470797emr136356095e9.3.1741856323654; Thu, 13 Mar 2025 01:58:43 -0700 (PDT) Received: from ip-10-0-0-134.eu-west-1.compute.internal ([2a05:d018:db1:fb00:c4f8:7a97:b7aa:1bfd]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43d18a4c2dasm12978845e9.33.2025.03.13.01.58.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Mar 2025 01:58:43 -0700 (PDT) From: Alex Kiernan Date: Thu, 13 Mar 2025 08:58:34 +0000 Subject: [PATCH OE-Core v2 2/4] scdoc: Upgrade 1.11.2 -> 1.11.3 MIME-Version: 1.0 Message-Id: <20250313-upgrade-kmod-v2-2-2103ca9a26ad@gmail.com> References: <20250313-upgrade-kmod-v2-0-2103ca9a26ad@gmail.com> In-Reply-To: <20250313-upgrade-kmod-v2-0-2103ca9a26ad@gmail.com> To: openembedded-core@lists.openembedded.org Cc: Alex Kiernan X-Mailer: b4 0.14.2 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, 13 Mar 2025 08:58:49 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/212751 Drop "dont add -static to LDFLAGS" patch as this is now upstream. Changes: Dimitry Andric (1): Fix clang 15 -Wstrict-prototypes warnings Drew DeVault (3): README.md: mention system packages Update version to 1.11.3 Makefile: drop -static Eli Schwartz (2): remove useless re-declarations of standard functions get rid of some unused includes Humm (3): use .PP for paragraph breaks scdoc(1), scdoc(5): follow conventions more closely simplify list output Kirill Chibisov (1): Emit \(ti and \(ha instead of ~ and ^ Max Schillinger (1): fix formatting of escaped backticks Nico Wagner (1): Makefile: remove unnecessary path separator Simon Branch (2): scdoc.5: fix capitalization of subsection headers scdoc.5: fix formatting in the preamble Simon Ser (1): man: add section about SOURCE_DATE_EPOCH Viacheslav Kruglov (1): Fix logical error in comparison with ULONG_MAX elij (1): strip indentation after a hard line break `++` jturtle (1): Emit '\e' instead of '\\' Signed-off-by: Alex Kiernan --- .../0001-Makefile-dont-add-static-to-LDFLAGS.patch | 27 ---------------------- .../scdoc/{scdoc_git.bb => scdoc_1.11.3.bb} | 21 ++++++++--------- 2 files changed, 9 insertions(+), 39 deletions(-) diff --git a/meta/recipes-extended/scdoc/scdoc/0001-Makefile-dont-add-static-to-LDFLAGS.patch b/meta/recipes-extended/scdoc/scdoc/0001-Makefile-dont-add-static-to-LDFLAGS.patch deleted file mode 100644 index b520e949c0b31c0908118cba4f6c2b6ea26f5a26..0000000000000000000000000000000000000000 --- a/meta/recipes-extended/scdoc/scdoc/0001-Makefile-dont-add-static-to-LDFLAGS.patch +++ /dev/null @@ -1,27 +0,0 @@ -From 2cac433806d9622dbc005fe5738f1ae8c33a98cb Mon Sep 17 00:00:00 2001 -From: Markus Volk -Date: Thu, 13 Jul 2023 19:26:40 +0200 -Subject: [PATCH] Makefile: dont add -static to LDFLAGS - -Signed-off-by: Markus Volk - -Upstream-Status: Inappropriate [oe-specific] ---- - Makefile | 1 - - 1 file changed, 1 deletion(-) - -diff --git a/Makefile b/Makefile -index 60a80b8..49021fa 100644 ---- a/Makefile -+++ b/Makefile -@@ -1,7 +1,6 @@ - VERSION=1.11.2 - CFLAGS?=-g - MAINFLAGS:=-DVERSION='"$(VERSION)"' -Wall -Wextra -Werror -Wno-unused-parameter --LDFLAGS+=-static - INCLUDE+=-Iinclude - PREFIX?=/usr/local - BINDIR?=$(PREFIX)/bin --- -2.39.3 - diff --git a/meta/recipes-extended/scdoc/scdoc_git.bb b/meta/recipes-extended/scdoc/scdoc_1.11.3.bb similarity index 54% rename from meta/recipes-extended/scdoc/scdoc_git.bb rename to meta/recipes-extended/scdoc/scdoc_1.11.3.bb index 224e5417342e9db820456ec54476a1e3cac0e4e4..330d4e426f6e552e37214fffea244659eb8e4dcf 100644 --- a/meta/recipes-extended/scdoc/scdoc_git.bb +++ b/meta/recipes-extended/scdoc/scdoc_1.11.3.bb @@ -5,21 +5,18 @@ SECTION = "base/doc" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://COPYING;md5=31752b4a8edd3fb9ddba1cb90fada74d" -SRC_URI = " \ - git://git.sr.ht/~sircmpwn/scdoc;protocol=https;branch=master \ - file://0001-Makefile-dont-add-static-to-LDFLAGS.patch \ -" - DEPENDS = "scdoc-native" -S = "${WORKDIR}/git" -PV = "1.11.2" -SRCREV = "afeda241f3f9b2c27e461f32d9c2a704ab82ef61" +PV .= "+git" -EXTRA_OEMAKE:class-native = "PREFIX=${prefix}" -EXTRA_OEMAKE:class-target = "PREFIX=${prefix} HOST_SCDOC=${STAGING_BINDIR_NATIVE}/scdoc" +SRC_URI = "git://git.sr.ht/~sircmpwn/scdoc;protocol=https;branch=master" +SRCREV = "29306d8dde650f5ac2bcc067f3c1d3bcfcac7a1d" + +S = "${WORKDIR}/git" inherit autotools-brokensep - -BBCLASSEXTEND = "native" +EXTRA_OEMAKE = "PREFIX=${prefix}" +EXTRA_OEMAKE:append:class-target = " HOST_SCDOC=${STAGING_BINDIR_NATIVE}/scdoc" + +BBCLASSEXTEND = "native" From patchwork Thu Mar 13 08:58:35 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Kiernan X-Patchwork-Id: 58920 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 41153C282DE for ; Thu, 13 Mar 2025 08:58:49 +0000 (UTC) Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) by mx.groups.io with SMTP id smtpd.web11.9960.1741856327207995570 for ; Thu, 13 Mar 2025 01:58:47 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=EB28ZJlR; spf=pass (domain: gmail.com, ip: 209.85.221.50, mailfrom: alex.kiernan@gmail.com) Received: by mail-wr1-f50.google.com with SMTP id ffacd0b85a97d-3912d2c89ecso558943f8f.2 for ; Thu, 13 Mar 2025 01:58:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741856325; x=1742461125; darn=lists.openembedded.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=7CnUK594peqBwgUVIlwx4PGTJ42uUWecw1HYIT1XluI=; b=EB28ZJlRC3q1RpfSCredDq2DXhumtW/Jgq6s5tuLZmhh2S4E1I1mOGxP3H6XXNj9ye ukSFzAS9uE6TEWqN1jzg72CFTKHdaQQEVmHKiOWhymKhpdRigjoJh2wFER1E+l3R+zGS dk67TO0MDQX2FAg3pGWxsmXgPnKb2huRAlNCp1uP1Ggv36noj4MKtcKQWjHoFvmmmIv6 gd0Kkp2oVI6eWuaiIXQ4w4cEuqRZsgoS50KEmv6x9sIG8Y4OLmbgjqlp2SbXYeHfak5v PKdi8AufQYBFDSlFNKykyc9CPL9r/38Skz/TbcLnyfyXV39N8n64OejXoDHH4VT3u14g fsNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741856325; x=1742461125; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7CnUK594peqBwgUVIlwx4PGTJ42uUWecw1HYIT1XluI=; b=O2POGQ4cV6QL+3bw+EIXN5EaPKVtXETs77GcvCoi+H9E4K5d1LPkPQjASP/Lx7ZNx3 tMrqA5+PgjcqYfONlJts4fgSN8UDYVq5whC1g9ciWqZ6u9ovBfjVaQvmpwYi6Ypul6pl bWYPD+D9p5CJLZRnwqqtJkTVwwqnR+EdicK+4GxuWOwU7FD9YU//YhqeUDM9xnsBrNrM 6JzUwf/HEjg+LDfzCSQJY5yJZqfFzQe/cUisFAdnNNyFVJOpXrw5sN/wEqnU3ZjvWia8 IevSFl2YmxjnLfq9dLyT9J3Sb1myCT2mcLfGO/xFpnr9n0VRdKfkEitJ/Vu7zDkl5wVv +EoQ== X-Gm-Message-State: AOJu0YxtExWf2GASQY3s3rY+lv68NL1N81HcfmszUgVZAWL4pxscqsja a5wyHC48aeCWDCzKwy4+CgsqABQKaUXjRXiMxZKCH392UDu/MGO+FDU5sTIU X-Gm-Gg: ASbGncvdOWCNBZxoS3lvyClgzjwpxQtBaBVK7Q0uAjjQQfnhzrVkhJPB4uEC+YJqANR 92L8UhBlo2VhwzVxBwp/P5Xk9iSuzdR45/zIh4MFzJTOzkXCjxbz3uvmuxhE/Q+Rz3mrXYR3KWw kE9ETrMm9wvIH5l7SKumHUeOMzsT2Sz9S7quoyAKQL/OUo6lWI5fcWr5tlKKMaV/bgelipAonhu Ouadg2mFGktYS+LJuMAp0iZAfkuHNZS5H0PGfPseYSwl7muRsr/NHf/UEAezN9hD0OiieLFoIs9 LTMPvDdTE8+e+nAVNZl4U0SaSeXk6OrqRmwkfQ2jQpvVqHAy/eoKCDprTgudLlabkJREFaxLcA1 DyEnr8X52oo4= X-Google-Smtp-Source: AGHT+IHaJ6je4mGHj3tRL1PbsdxmQu469goGvsJGb/i0yDsw4Q7KxQIDigpL7Om+n2tFfEQvgrWpAQ== X-Received: by 2002:a05:6000:1fa4:b0:38f:30a3:51fe with SMTP id ffacd0b85a97d-39132dbb4fbmr19141735f8f.42.1741856324343; Thu, 13 Mar 2025 01:58:44 -0700 (PDT) Received: from ip-10-0-0-134.eu-west-1.compute.internal ([2a05:d018:db1:fb00:c4f8:7a97:b7aa:1bfd]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43d18a4c2dasm12978845e9.33.2025.03.13.01.58.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Mar 2025 01:58:43 -0700 (PDT) From: Alex Kiernan Date: Thu, 13 Mar 2025 08:58:35 +0000 Subject: [PATCH OE-Core v2 3/4] kmod: Upgrade 33 -> 34.1 MIME-Version: 1.0 Message-Id: <20250313-upgrade-kmod-v2-3-2103ca9a26ad@gmail.com> References: <20250313-upgrade-kmod-v2-0-2103ca9a26ad@gmail.com> In-Reply-To: <20250313-upgrade-kmod-v2-0-2103ca9a26ad@gmail.com> To: openembedded-core@lists.openembedded.org Cc: Alex Kiernan X-Mailer: b4 0.14.2 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, 13 Mar 2025 08:58:49 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/212752 Migrate to meson from autotools. Drop remnants of ptest support which was removed in 2015: https://git.openembedded.org/openembedded-core/commit/?id=f80d136bdd578468035a88125fa1b84973fd912b Remove configuration directory/symlink handling which is now done by the meson build. Fix manpage generation. kmod 34 ======= - Improvements - Drop pre-built .ko modules from git - distros/packages will need the linux-headers to be able to run the testsuite. There was limited use of the feature, while linters complained about "source-not-included" or "source-contains-prebuilt-binary". - Switch build system to meson: autotools is still supported but slated for removal on next release. This is the transition release to help distros and integrators to move to the new build system. Default options target distros while developers can use the build-dev.ini configuration file. - Allow to load decompression libraries on demand: liblzma.so, libz.so and libzstd.so can now be loaded on demand, only when there is such a need. For use during early boot for loading modules, if configured well it means none of these libraries are loaded: the module loading logic via finit_module() will just hand over to kernel the open file descriptor and kernel will use its own decompress routine. If kernel doesn't handle decompression or if the module is compressed with a different algorithm than the one configured in the kernel, libkmod can still open the module by dynamically loading the correspondent library. Tools inspecting the module contents, like modinfo, will load that single decompression library instead all of them. For distros building with meson it's possible to choose the behavior per library. Examples: a) -Ddlopen=all uses dlopen behavior for all the libraries; b) -Ddlopen=xz, will make only xz to be dlopen'ed while other enabled libraries will be linked in at build time. The use of dlopen is annotated in the ELF file by using the ELF Package Metadata spec as documented in https://systemd.io/ELF_PACKAGE_METADATA/. Example: $ dlopen-notes.py libkmod.so # build/libkmod.so [ { "feature": "xz", "description": "Support for uncompressing xz-compressed modules", "priority": "recommended", "soname": [ "liblzma.so.5" ] } ] - Add -m / --moduledir to depmod to override in runtime the module directory that was already possible to set on build time. Document the interaction between the dir options: base, module and output. - Better error propagation in libkmod for its internal APIs and libc functions up to the callers. - Improve libkmod API documentation by adding new sections, documenting functions previously missing, rewording existing ones, adding version information, cross-referencing, etc. - Remove deprecated arguments for depmod: --unresolved-error, --quiet, --root and --map. - Remove deprecated arguments for rmmod: -w. - Remove deprecated arguments for insmod: -p and -s. - Add --syslog and --force for insmod to normalize it with other tools. - Add bash, fish and zsh shell-completion for insmod, rmmod and lsmod. - Remove depmod_module_directory_override from .pc as the kernel side is not making use of it and will likely not need it. - Improve builtin module listing and retrieving information from its modinfo index which reduces the amount of needed syscalls by 90%. - Improve zstd decompression by using streaming bufferless mode which reduces the amount of syscalls by 65%. - Increase use of pread while parsing ELF and indexes in order to reduce syscalls and improve performance. - Improve module sorting in depmod to speedup the use of the modules.order index and support duplicate lines in it. - Avoid misaligned memory access while reading module signature in libkmod. - Add more documentation for contributing to kmod. New developers are welcome to look at the new README.md and CONTRIBUTING.md files for information on process, coding style, build/installation, etc. - Overhaul man pages with multiple clarifications, section rewrites and additional documentation. - Drop --with-rootlibdir as it's seldom used and was partially broken. - Drop strndupa() and alloca() for increased libc compatibility. - Better handling of LFS for increased compatibility with libc. - Protect kmod_get_dirname() and kmod_new() against NULL argument. - Normalize --version / --help output across all tools. - Always include log priority in messages, even when building with debug. - Optimize index reading by lazily reading nodes on demand, reducing FILE overhead and reducing code duplication wrt FILE vs mmap implementations, etc. - Switch index to pre-order to improve performance in both read and write, meaning faster lookup and faster depmod. Some examples: a) traversing all indexes via configuration dump shows a 9% improvement on Raspberry Pi 2. b) writing the indexes takes 90% less lseek() calls, leading to a performance gain of 13%. - Make symlink install locations more similar to what distros are using: by default it installs the kmod binary as bin/kmod and the symlinks are located in e.g. `sbin/depmod -> ../bin/kmod`. Changing the sbin location is sufficient to move the symlinks to the appropriate place, so distros using `--sbin /usr/bin` will have them installed in that directory. This avoids distros having to remove the symlink and add the symlinks by themselves. (meson only) - Install configuration directories, /{etc,usr/lib}/{depmod,modprobe}.d/ as part of installation, matching what several distros do during packaging. (meson only) - Bug fixes - Fix testsuite using when using configurable module dir. - Fix typos on documentation and source code. - Fix out of bound access in multiple places when using long paths, synthetic huge files, or handling memory allocation errors, or inconsistent variable types, particularly on 32b builds. - Fix internal array APIs, with better error checking: improve execution on very memory-constrained scenarios or very long paths. - Fix absolute path handling in depmod. - Fix libkmod memory leaks on error handling when getting builtin module list. - Do not crash on invalid modules.builtin.modinfo file. - Fix link with lld resulting in empty testsuite. - Fix testsuite build/execution with musl. - Others - Adopt clang-format and editorconfig for coding style and setup CI action to keep the codebase consistent. - Adopt codespell in CI. - Adopt CodeQL integration in CI. - Adopt Codecov in CI. - Adopt SPDX copyright and license identifiers throughout the project. - Add more distros to CI, 32b builds, clang as compiler and lld as linker. - Add support for clang sanitizers and squelch warnings. - Add tests for builtin modules from modinfo index file. - Multiple testsuite refactors and fixes to make it simpler to write tests. - Add CI coverage for docs - Improve strbuf implementation with more error checks and generalize it to cover the role of scratchbuf. This allows to remove the scratchbuf implementation. - Use common array and strbuf code in depmod to remove duplication. - Add abstraction and use more compiler builtins for addition and multiplication with overflow checking. - Normalize use of C attributes throughout the project. Signed-off-by: Alex Kiernan --- .../kmod/kmod/avoid_parallel_tests.patch | 30 ----------- meta/recipes-kernel/kmod/kmod/gtkdocdir.patch | 30 ----------- meta/recipes-kernel/kmod/kmod/run-ptest | 5 -- .../kmod/{kmod_33.bb => kmod_34.1.bb} | 58 +++++++++------------- 4 files changed, 23 insertions(+), 100 deletions(-) diff --git a/meta/recipes-kernel/kmod/kmod/avoid_parallel_tests.patch b/meta/recipes-kernel/kmod/kmod/avoid_parallel_tests.patch deleted file mode 100644 index 6db4fa7e97e55ea0d9e34c8caa35357ff2052adb..0000000000000000000000000000000000000000 --- a/meta/recipes-kernel/kmod/kmod/avoid_parallel_tests.patch +++ /dev/null @@ -1,30 +0,0 @@ -From 7a22abf188e5b688080bb1321a77588474114339 Mon Sep 17 00:00:00 2001 -From: Tudor Florea -Date: Fri, 6 Sep 2013 21:11:57 +0000 -Subject: [PATCH] kmod: avoid parallel-tests - -Avoid parallel-tests as it remove -buildtest-TESTS and runtest-TESTS targets required by ptest. -In automake 1.13.4 parallel-tests is assumed by defauls. -In order to have buildtest-TESTS and runtest-TESTS targets -serial-tests is now required - -Signed-off-by: Tudor Florea -Upstream-Status: Inappropriate (disable feature incompatible with ptest) ---- - configure.ac | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/configure.ac b/configure.ac -index 2f1c525..7056aae 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -14,7 +14,7 @@ AC_USE_SYSTEM_EXTENSIONS - AC_SYS_LARGEFILE - AC_PREFIX_DEFAULT([/usr]) - AM_MAINTAINER_MODE([enable]) --AM_INIT_AUTOMAKE([check-news foreign 1.11 silent-rules tar-pax no-dist-gzip dist-xz subdir-objects color-tests parallel-tests]) -+AM_INIT_AUTOMAKE([check-news foreign 1.11 silent-rules tar-pax no-dist-gzip dist-xz subdir-objects color-tests serial-tests]) - AM_SILENT_RULES([yes]) - LT_INIT([disable-static pic-only]) - diff --git a/meta/recipes-kernel/kmod/kmod/gtkdocdir.patch b/meta/recipes-kernel/kmod/kmod/gtkdocdir.patch deleted file mode 100644 index 91d622b8c7b04a34b875efb8c2579614bdb90668..0000000000000000000000000000000000000000 --- a/meta/recipes-kernel/kmod/kmod/gtkdocdir.patch +++ /dev/null @@ -1,30 +0,0 @@ -From 90fb7bb85002cde39de3b3d2e2481933390832af Mon Sep 17 00:00:00 2001 -From: Ross Burton -Date: Fri, 8 Dec 2023 22:35:45 +0000 -Subject: [PATCH] configure: set docdir in GTK_DOC_CHECK - -By passing --docdir in the GTK_DOC_CHECK arguments (to match -autogen.sh) autoreconf will work out of the box. - -Without this autoreconf fails due to the documentation not being in -./docs, the default location. - -Upstream-Status: Submitted [https://lore.kernel.org/linux-modules/20231208224511.1363066-1-ross.burton@arm.com/T/#u] -Signed-off-by: Ross Burton ---- - configure.ac | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/configure.ac b/configure.ac -index 7056aae..d53a20c 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -236,7 +236,7 @@ AS_IF([test "x$enable_coverage" = "xyes"], [ - AM_CONDITIONAL([ENABLE_COVERAGE], [test "x$enable_coverage" = "xyes"]) - - m4_ifdef([GTK_DOC_CHECK], [ --GTK_DOC_CHECK([1.14],[--flavour no-tmpl-flat]) -+GTK_DOC_CHECK([1.14],[--flavour no-tmpl-flat --docdir libkmod/docs]) - ], [ - AM_CONDITIONAL([ENABLE_GTK_DOC], false)]) - diff --git a/meta/recipes-kernel/kmod/kmod/run-ptest b/meta/recipes-kernel/kmod/kmod/run-ptest deleted file mode 100755 index 598dd2cb5fbad194a135e5d06601847e00df1586..0000000000000000000000000000000000000000 --- a/meta/recipes-kernel/kmod/kmod/run-ptest +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh -touch testsuite/stamp-rootfs -tar xf testmodule.tar -make -k runtest-TESTS 2>/dev/null| grep -e ^PASS -e ^FAIL -find testsuite -name *.ko -exec rm -f {} \; diff --git a/meta/recipes-kernel/kmod/kmod_33.bb b/meta/recipes-kernel/kmod/kmod_34.1.bb similarity index 58% rename from meta/recipes-kernel/kmod/kmod_33.bb rename to meta/recipes-kernel/kmod/kmod_34.1.bb index 15f42766f3b5e484a8f0519fc037b32fa62a4754..8154e6ec57498711d8948d94787962e73c866b7f 100644 --- a/meta/recipes-kernel/kmod/kmod_33.bb +++ b/meta/recipes-kernel/kmod/kmod_34.1.bb @@ -13,28 +13,28 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343 \ file://libkmod/COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343 \ file://tools/COPYING;md5=751419260aa954499f7abaabaa882bbe \ " -inherit autotools bash-completion gtk-doc pkgconfig update-alternatives +inherit bash-completion gtk-doc manpages meson pkgconfig update-alternatives -SRCREV = "e193aeb99a04fb4b63ce47eb2c7f119db59446a0" - -SRC_URI = "git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git;branch=master;protocol=https \ +SRC_URI = "https://www.kernel.org/pub/linux/utils/kernel/${BPN}/${BP}.tar.xz \ file://depmod-search.conf \ - file://avoid_parallel_tests.patch \ - file://gtkdocdir.patch \ " +SRC_URI[sha256sum] = "125957c9125fc5db1bd6a2641a1c9a6a0b500882fb8ccf7fb6483fcae5309b17" -S = "${WORKDIR}/git" - -EXTRA_OECONF += "--enable-tools" +EXTRA_OEMESON += "\ + -Ddistconfdir=${nonarch_base_libdir} \ + --bindir=${base_bindir} \ + --sbindir=${base_sbindir} \ + -Dtools=true \ +" PACKAGECONFIG ??= "zlib xz openssl" -PACKAGECONFIG[debug] = "--enable-debug,--disable-debug" -PACKAGECONFIG[logging] = " --enable-logging,--disable-logging" -PACKAGECONFIG[manpages] = "--enable-manpages, --disable-manpages, scdoc-native" -PACKAGECONFIG[openssl] = "--with-openssl,--without-openssl,openssl" -PACKAGECONFIG[xz] = "--with-xz,--without-xz,xz" -PACKAGECONFIG[zlib] = "--with-zlib,--without-zlib,zlib" -PACKAGECONFIG[zstd] = "--with-zstd,--without-zstd,zstd" +PACKAGECONFIG[debug] = "-Ddebug-messages=true,-Ddebug-messages=false" +PACKAGECONFIG[logging] = " -Dlogging=true,-Dlogging=false" +PACKAGECONFIG[manpages] = "-Dmanpages=true,-Dmanpages=false,scdoc-native" +PACKAGECONFIG[openssl] = "-Dopenssl=enabled,-Dopenssl=disabled,openssl" +PACKAGECONFIG[xz] = "-Dxz=enabled,-Dxz=disabled,xz" +PACKAGECONFIG[zlib] = "-Dzlib=enabled,-Dzlib=disabled,zlib" +PACKAGECONFIG[zstd] = "-Dzstd=enabled,-Dzstd=disabled,zstd" PROVIDES += "module-init-tools-insmod-static module-init-tools-depmod module-init-tools" RPROVIDES:${PN} += "module-init-tools-insmod-static module-init-tools-depmod module-init-tools" @@ -44,24 +44,7 @@ RREPLACES:${PN} += "module-init-tools-insmod-static module-init-tools-depmod mod # to force user to remove old module-init-tools and replace them with kmod variants RCONFLICTS:libkmod2 += "module-init-tools-insmod-static module-init-tools-depmod module-init-tools" -# autotools set prefix to /usr, however we want them in /bin and /sbin -EXTRA_OECONF += "--bindir=${base_bindir} --sbindir=${base_sbindir}" - do_install:append () { - install -dm755 ${D}${base_bindir} - install -dm755 ${D}${base_sbindir} - # add symlinks to kmod - [ -e ${D}${base_bindir}/lsmod ] || ln -rs ${D}${base_bindir}/kmod ${D}${base_bindir}/lsmod - for tool in insmod rmmod depmod modinfo modprobe; do - rm -f ${D}${base_bindir}/${tool} - ln -rs ${D}${base_bindir}/kmod ${D}${base_sbindir}/${tool} - done - # configuration directories - install -dm755 ${D}${nonarch_base_libdir}/depmod.d - install -dm755 ${D}${nonarch_base_libdir}/modprobe.d - install -dm755 ${D}${sysconfdir}/depmod.d - install -dm755 ${D}${sysconfdir}/modprobe.d - # install depmod.d file for search/ dir install -Dm644 "${UNPACKDIR}/depmod-search.conf" "${D}${nonarch_base_libdir}/depmod.d/search.conf" @@ -69,6 +52,11 @@ do_install:append () { echo "exclude .debug" > ${D}${nonarch_base_libdir}/depmod.d/exclude.conf } +PACKAGES += "${PN}-fish-completion ${PN}-zsh-completion" + +FILES:${PN}-fish-completion = "${datadir}/fish" +FILES:${PN}-zsh-completion = "${datadir}/zsh" + ALTERNATIVE_PRIORITY = "70" ALTERNATIVE:kmod = "insmod modprobe rmmod modinfo bin-lsmod lsmod depmod" @@ -78,9 +66,9 @@ ALTERNATIVE_LINK_NAME[insmod] = "${base_sbindir}/insmod" ALTERNATIVE_LINK_NAME[modprobe] = "${base_sbindir}/modprobe" ALTERNATIVE_LINK_NAME[rmmod] = "${base_sbindir}/rmmod" ALTERNATIVE_LINK_NAME[modinfo] = "${base_sbindir}/modinfo" -ALTERNATIVE_LINK_NAME[bin-lsmod] = "${base_bindir}/lsmod" +ALTERNATIVE_LINK_NAME[bin-lsmod] = "${base_sbindir}/lsmod" ALTERNATIVE_LINK_NAME[lsmod] = "${base_sbindir}/lsmod" -ALTERNATIVE_TARGET[lsmod] = "${base_bindir}/lsmod.${BPN}" +ALTERNATIVE_TARGET[lsmod] = "${base_sbindir}/lsmod.${BPN}" PACKAGES =+ "libkmod" FILES:libkmod = "${base_libdir}/libkmod*${SOLIBS} ${libdir}/libkmod*${SOLIBS}" From patchwork Thu Mar 13 08:58:36 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Kiernan X-Patchwork-Id: 58917 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 56885C28B2E for ; Thu, 13 Mar 2025 08:58:49 +0000 (UTC) Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) by mx.groups.io with SMTP id smtpd.web10.10302.1741856327459913873 for ; Thu, 13 Mar 2025 01:58:47 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=SnAhkwLf; spf=pass (domain: gmail.com, ip: 209.85.128.49, mailfrom: alex.kiernan@gmail.com) Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-4394a0c65fcso5934995e9.1 for ; Thu, 13 Mar 2025 01:58:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741856325; x=1742461125; darn=lists.openembedded.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=tFl6TKtG+VCWRFN0ARm8el3ubuDwENnGZL+tU1N6Jvs=; b=SnAhkwLfA9RILmda6rB2NQZQUf2JY/c4PE4ZSJLvQSpNCrXPhcERB9YOc98ktzLzs5 ibiOYCmsNR1/czm7yXkJehiB0ugnQzz/i0EgNfmA/pMhup6yIf5AoXVZ8ARxu52vcqeb 7asbb7Vb8hUXMYSiwsWDjgFLp35FKjpVFC3kQ1m4qBXm4kar642/4F8XgC/FzcdRvnn1 3RY9xFqnxiwbCkXpt1uwAd1FJei35iAVNmFCEoxiaTBbN+k/q84vVNYCoGIrbUvjhx5Y HLwsGNlnjOhGFL0bt6C5szhTc7h40yim7qrkd4Du4gdrKSWapKOkzhsYxtAtGU9a2qn+ tWeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741856325; x=1742461125; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=tFl6TKtG+VCWRFN0ARm8el3ubuDwENnGZL+tU1N6Jvs=; b=nnhp7rmZFmydiV1xMNFkAQPrmKC+ytTGct3Jxm/ci0QeEF975APo40sfOM0TnkRyYT AV9/825XHh5SKISakACZkvY/j7s+CQRFxR7RsXedIIhUvl/4P9k70m8ynfzhvMKRMVUG ynqTj3Ej/9g8/PRW6pJ2IOaQvtb2pg4J5zKM/RlKwQY5ytE/1UtDThIh3qKXvvc4Zu7u XmRuJGNwUF+W1P2cKDRpRl6tJofhUhMbm+cEOaJUjOzsL1+0VveEEk0xf9kU3JlnR8B4 acdN3P6U6Th4+v6TpGByatSaXN3ccaOIrsc2Ju6u94APyQMBvytd0cWP0rZV0/NnZZwJ X4Tw== X-Gm-Message-State: AOJu0YwTN4jA+UxtdX+GtxUZYcQKbADtEkBlON4DVjBNfztP2kVNMeBH k45fs3t+9DiiviW9LE3jD45ofR17skpMkQeDSzDpSmmlpDcw0m6zd6p93fdF X-Gm-Gg: ASbGncsYSpTmWjjHFyPoS1vdLWZfMQjaN22W/92UMdgXmit/sjaqLeqPSrDzaY/EsbA Yg2p2FZCF4EGbv5OuP483UynDuP7bBcV/yMP+UbsWX1N/lCO8xx+yEMdhrzZNJiHhX8UEWOqCcY q62o7hLo9UHdSCq/ozWGjsL3c/A4PIcSNPZMQCg6OSLf+kpK6l+2zpdSpF9EYmMsvT4YLAsXTsU zyTiFdflT8IkvIPcA9qmis1qAGGME+1MDJRsQ2AwmtGinRJ2LsF4fM9ner3YmteHOdqM3xkvQCe Yj5ZMxWEG3jCn7sQSsjqvIfnQ9CrCnDEtg/NrvPXffnpjjIeg8xueo2KkpWZp1cjSs60qhRzEMD +UjeYIIlRTc7xQC9SMUQYXQ== X-Google-Smtp-Source: AGHT+IH5PEe7wSsUcLOVGLF3v5VBFB/IORNB1udIQBhNkBQi+tXCgQWPx9wtGYwxIYg2kc++5g1/WQ== X-Received: by 2002:a05:600c:1e8c:b0:43c:fc0c:7f33 with SMTP id 5b1f17b1804b1-43cfc0c92bcmr142887905e9.2.1741856324977; Thu, 13 Mar 2025 01:58:44 -0700 (PDT) Received: from ip-10-0-0-134.eu-west-1.compute.internal ([2a05:d018:db1:fb00:c4f8:7a97:b7aa:1bfd]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43d18a4c2dasm12978845e9.33.2025.03.13.01.58.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Mar 2025 01:58:44 -0700 (PDT) From: Alex Kiernan Date: Thu, 13 Mar 2025 08:58:36 +0000 Subject: [PATCH OE-Core v2 4/4] eudev: Drop --output=... from kmod call in init script MIME-Version: 1.0 Message-Id: <20250313-upgrade-kmod-v2-4-2103ca9a26ad@gmail.com> References: <20250313-upgrade-kmod-v2-0-2103ca9a26ad@gmail.com> In-Reply-To: <20250313-upgrade-kmod-v2-0-2103ca9a26ad@gmail.com> To: openembedded-core@lists.openembedded.org Cc: Alex Kiernan X-Mailer: b4 0.14.2 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, 13 Mar 2025 08:58:49 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/212753 This awkward invocation is no longer required as kmod just uses the stdout file descriptor, rather than explicitly opening /dev/stdout. Signed-off-by: Alex Kiernan --- meta/recipes-core/udev/eudev/init | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/meta/recipes-core/udev/eudev/init b/meta/recipes-core/udev/eudev/init index 477a525b21212ad72d2661e27e1218fca9fee5db..790cd3b9339b6334dbab1feaa65f8948d72c76ea 100644 --- a/meta/recipes-core/udev/eudev/init +++ b/meta/recipes-core/udev/eudev/init @@ -27,8 +27,7 @@ make_static_nodes () { [ -e /lib/modules/$(uname -r)/modules.devname ] || return 0 [ -x @KMOD@ ] || return 0 - #output to /proc/self/fd/1 since /dev/stdout not created by udevd yet - @KMOD@ static-nodes --format=tmpfiles --output=/proc/self/fd/1 | + @KMOD@ static-nodes --format=tmpfiles | while read TTYPE TPATH TMODE TUSER TGROUP TAGE TARG; do case "${TTYPE}" in 'd')