From patchwork Wed Dec 2 13:00:46 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adarsh Jagadish Kamini X-Patchwork-Id: 106969 Received: from GVXPR05CU001.outbound.protection.outlook.com (GVXPR05CU001.outbound.protection.outlook.com [52.101.83.52]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.35387.1796216452820066539 for ; Wed, 02 Dec 2026 05:00:53 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@est.tech header.s=selector1 header.b=zPd85N0t; spf=pass (domain: est.tech, ip: 52.101.83.52, mailfrom: adarsh.jagadish.kamini@est.tech) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=NNBGbO3Z5k139d8l5DiM4ItnBImOw1hUpw18qgtlMa8ZWaVy0amwt69MQDJ6lTVq1Zb0l+EvVMBkZKE6A3b0U791ahXeAb9PUXgjddCt4+g3/5M+0r00J+ZFSLSn+IqMPzQ69anf3NyEWYJYhjaYjV/SkOForv7k5eqPN/AqWhjBILRjUq2XK/ZRNcSZzYKdH3G/P7jjWHQIg3H4pQ+JlGq0qDa7U679na5ClJjVALz7k6bi6+GRy+2K3wpy2ZlmjmjSTIKJtBq7hpJn0Iy2EiBwFQ3c+gbEC+FP9N9rrlAiOTzA1Zx1xp/qXgbWB/QwnM7Ydf+wiXY/1SvLKIQr+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=qhoDpbmkkBm7Nav12M8D6jNjrQTuuwaQp3A33DzmMDY=; b=JahhjAIks4NgFW8vskfOY5rpsX8OHeFZfQSzeMX8T8BwBW2ko9e1wDAFoYZSTZWUM+p7Ck5d6guSMz6L3g4YrRs9FAjq0PqUJueia2F/VTh3O5A9kemoOUSaw3wrktTuUHjGzoVLO/D6G6YO2hoXSmL5NzLEydJAwTDqs74sFb6x3VSenENZ6mTMpKvayonR7qRluwDT5W+dsZnAUU8znRk5+AAAagj6ybTY0LC0xaMqSPWVMqXiMiF7pRIsenI4UnoKWR+wtDRB41KmAEkJt9jLcuprpsqjpRS6mdwTEZ3bfxKwNsePDj07Qkkv8PGLY6UG6+JgvPs1IWJI0LyHMg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=est.tech; dmarc=pass action=none header.from=est.tech; dkim=pass header.d=est.tech; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=est.tech; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qhoDpbmkkBm7Nav12M8D6jNjrQTuuwaQp3A33DzmMDY=; b=zPd85N0tjHct2m9Zf62AAxeA43/lI9n5V8FRfw45PHDuonxSmx75eOAmAhfHieqWHOTz3jdiHIOqnLpP0X2ahDHrbIY4het/sSqtx0F0DC7LGXqi08RF/uxDT8jmHlvNg++vUCu6A7iggAy5qr2yG8jPOUCocbqZidjj2QkYPx1iWAXG361Shhure/4vS5UZyUF4458SQDivJDRIFpv3fSsT/o7oczjSFe78qbMhZ88rHKxnqC+6IQzibOwVSfbwWvqVLNZnqwRjxCRs3fnq89drMmJgsSYkBGvFYLZUc7gTpuCIW5GWpEQnyN8Fa0MmAR/mXl2OQ2zpnlpQyNhknw== Authentication-Results: mx.microsoft.com 1; dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=est.tech; Received: from AS8P189MB1672.EURP189.PROD.OUTLOOK.COM (2603:10a6:20b:396::9) by DU4P189MB2683.EURP189.PROD.OUTLOOK.COM with HTTP via P2P; Wed, 2 Dec 2026 13:00:48 +0000 Received: from AS8P189MB1672.EURP189.PROD.OUTLOOK.COM ([fe80::f147:85e5:34de:eeff]) by AS8P189MB1672.EURP189.PROD.OUTLOOK.COM ([fe80::f147:85e5:34de:eeff%5]) with mapi id 15.21.0688.009; Wed, 2 Dec 2026 13:00:48 +0000 From: Adarsh Jagadish Kamini To: docs@lists.yoctoproject.org CC: paul@pbarker.dev Subject: [PATCH docs v2] docs: document the GPG_SIGN_SERIALIZE variable Date: Wed, 2 Dec 2026 14:00:46 +0100 Message-ID: <20261202130047.312119-1-adarsh.jagadish.kamini@est.tech> X-Mailer: git-send-email 2.43.0 X-ClientProxiedBy: DU2PR04CA0353.eurprd04.prod.outlook.com (2603:10a6:10:2b4::13) To AS8P189MB1672.EURP189.PROD.OUTLOOK.COM (2603:10a6:20b:396::9) Return-Path: adarsh.jagadish.kamini@est.tech MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: AS8P189MB1672:EE_|DU4P189MB2683:EE_ X-MS-PublicTrafficType: Email client-request-id: 7b6f601b-7417-4c28-91c7-2a4f41125f23 request-id: 83049826-1cc8-4be8-8f65-08df50744920 X-MS-Office365-Filtering-Correlation-Id: 83049826-1cc8-4be8-8f65-08df50744920 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|376014|10070799003|23010399003|11063799006|10067099003|56012099006|261021121427099003|261022105027099003|261026121527099003|261009223027099003|261026140227099003|261022075727099003|261028144727099003|261102123227099003|261021123027099003|18002099003|6133799003|3023799007; X-Microsoft-Antispam-Message-Info: c+CBov+eQTb+hiyfgmw/9S6HGCjH7WMEGrn6DMa0/2m3z6IgnjCaitaOf+fw0OmkZr+3qwYv3tseijo4Meh5tPW5fOI+vfkZ+TD41KPfg5TdzLUX2xoMck4t0tkqeui2A4lg1l21eig0K2ru+KgVoQUytcDmZUn6FaDxkO+dJr37fJp4zTFw/e2MgYzWz07NhN3OAxNZfiOmY88pKRQY5zCwWcD56tM/bOFmTlLWwKSfxNQyu8RLbq463goOFi28cIfM11Xl0yK1T/AhL+5IOBZuEwZ7EAlms6ELzkVtPumitpilEZE6uCpSZOZitu75kl0202WP+l5s/8ISpBfJKJ1AgDG0EeAnnQHiRb1GaI57GhO0BghqadNeESOr7Qe2qEWBQs0Yca1+Lro4eQSzdTkMF3HqJWe+grtqR2otZmUJi5+Mp+oXxKekrabS9QcLE+8RW7wSqsXRAhSGq8+xhB3bTFPEo1tN+Lfhd7yOnX9+bbigurcBxtCbdUleMLBs6BjbkCb2lOcolFiKLDjtGv/6YGDITlG5vFeQTVRQB0WyY9/YCqDv5xCsAD/dF8tfx4kRMV5GZQiF1oiHzJL41iQr+oCMgCGanfdDIFihCR4DnJBFlL+7m25TdppEQpDfTOGZEJhnAoJJjtjDurrHYghmpm0m7SEagblM/WFVxVE= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(376014)(10070799003)(23010399003)(11063799006)(10067099003)(56012099006)(261021121427099003)(261022105027099003)(261026121527099003)(261009223027099003)(261026140227099003)(261022075727099003)(261028144727099003)(261102123227099003)(261021123027099003)(18002099003)(6133799003)(3023799007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 2 X-MS-Exchange-AntiSpam-MessageData-0: cUd0GlW84mCH9yAK1Dpfv3VNWRlvnexpSHRzKeNzlMdMv8wGdFv98jUmHiJbN/fSb5dQEuxp8ybC06YUTM0awJ5NgKWVg5+UWhKVmv7KBxw3Q8Gv5CzfJ1b2VY7eK4bq1EkFv8OMo2cG2WfD/5ue2mZQnpUt58Patx2nUlOAnvO+pFOaSTbQQ034hwpIytqwH0ixOIvY7qRPxJgRLLTZcRCuh3kNSqKC9XLLvHuhd5rqtgiAmqW7ieQ5b2XMIdHPQ6EwfD0ZL45wSC2ubOIe9oE8JES5KaoIoAdGXRU8MiUMIQL2J3EZKdiMoJsDUSJFPv+2LyCuIo8FocWfJdgdIHnjJ+qtxq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Y3SPE09cu6mojlB72OV3XJI1iyWqtdQYtCI3b9RsPJh48xZMmEXREumNArFIWvvs4Z/jgm1GJrnkxuN0zscK7nUVAJAzGJ42k2ekotJVd39lVS5uJ1Y+fiTu3uPzXm2Tz4ggYWekGUfxWZ5jQvCtWAqu9NKBbhfqpg0wLHvKj/ueTVUWk6fd/TBkFFRCpv8m/bkkA+qvk3y6WXrQfGx2WZ4hrkPexbYmPkhIALpTFvE0pZjDR2P38hUeFNgKIt3fJpSe0wuETXVPJBYLztWAZrZi9qbdueJGHOmu9ECp+dol89wC6Igdmctvh7f/A50DcNxu5wV0qwl17XmWmFeqTcm0DsglAP/jsuAlgI2 X-MS-Exchange-AntiSpam-MessageData-1: qpZkAJyNlB712zYDoAqE1B4KcOQjuLL+BgE= X-OriginatorOrg: est.tech X-MS-Exchange-CrossTenant-Network-Message-Id: 83049826-1cc8-4be8-8f65-08df50744920 X-MS-Exchange-CrossTenant-AuthSource: AS8P189MB1672.EURP189.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Dec 2026 13:00:48.5376 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d2585e63-66b9-44b6-a76e-4f4b217d97fd X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: /Kvt9ZqzokJ/LhXsmmVpcD7INGCCdCdpHBFHxYqzENeA1TANSysbOUADyLHvL5P8q35OSJuEF2VQCRSHT7iUykXuKYzGkkZd9Cg9x1WVc5Y= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU4P189MB2683 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Wed, 02 Dec 2026 13:01:03 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/docs/message/10876 OE-Core now serializes GnuPG signing by default. Document the opt-out and how to configure gpg-agent before using it. [YOCTO #16480] AI-Generated: Uses Kiro (claude-opus-5.5) Signed-off-by: Adarsh Jagadish Kamini --- documentation/dev-manual/packages.rst | 10 ++++++-- documentation/ref-manual/variables.rst | 34 ++++++++++++++++++++++++++ 2 files changed, 42 insertions(+), 2 deletions(-) diff --git a/documentation/dev-manual/packages.rst b/documentation/dev-manual/packages.rst index 380d806be..3574d87cd 100644 --- a/documentation/dev-manual/packages.rst +++ b/documentation/dev-manual/packages.rst @@ -862,7 +862,7 @@ You must also set up the following settings in a `passphrase`. Aside from the ``RPM_GPG_NAME`` and ``RPM_GPG_PASSPHRASE`` variables in -the previous example, two optional variables related to signing are available: +the previous example, three optional variables related to signing are available: - *GPG_BIN:* Specifies a ``gpg`` binary/wrapper that is executed when the package is signed. @@ -870,6 +870,9 @@ the previous example, two optional variables related to signing are available: - *GPG_PATH:* Specifies the ``gpg`` home directory used when the package is signed. +- :term:`GPG_SIGN_SERIALIZE`: Specifies whether signing operations run + one at a time to avoid exhausting the secure memory of ``gpg-agent``. + Processing Package Feeds ------------------------ @@ -890,7 +893,7 @@ variable. Regarding security, keeping a plain text passphrase out of the configuration is more secure. Aside from the ``PACKAGE_FEED_GPG_NAME`` and -``PACKAGE_FEED_GPG_PASSPHRASE_FILE`` variables, three optional variables +``PACKAGE_FEED_GPG_PASSPHRASE_FILE`` variables, four optional variables related to signed package feeds are available: - *GPG_BIN* Specifies a ``gpg`` binary/wrapper that is executed @@ -899,6 +902,9 @@ related to signed package feeds are available: - *GPG_PATH:* Specifies the ``gpg`` home directory used when the package is signed. +- :term:`GPG_SIGN_SERIALIZE`: Specifies whether signing operations run + one at a time to avoid exhausting the secure memory of ``gpg-agent``. + - *PACKAGE_FEED_GPG_SIGNATURE_TYPE:* Specifies the type of ``gpg`` signature. This variable applies only to RPM and IPK package feeds. Allowable values for the ``PACKAGE_FEED_GPG_SIGNATURE_TYPE`` are diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst index bbf0e6d07..99931f9b8 100644 --- a/documentation/ref-manual/variables.rst +++ b/documentation/ref-manual/variables.rst @@ -3965,6 +3965,40 @@ system and gives an overview of their function and contents. the optional :term:`GO_WORKDIR` variable, defaulting to the value of :term:`GO_IMPORT`, allows to specify a different Go working directory. + :term:`GPG_SIGN_SERIALIZE` + When set to "1" (the default), the OpenEmbedded build system uses a + lock in :term:`TMPDIR` so that GnuPG signing operations sharing that + :term:`TMPDIR`, such as those done by the :ref:`ref-classes-sign_rpm` + class or for :doc:`shared state signing + `, run one at a time. Builds or + multiconfigs with different :term:`TMPDIR` values are not serialized + against each other. Concurrent signing requests can exhaust the secure + memory of ``gpg-agent``, causing "Cannot allocate memory" errors, + unless the agent was started with the ``auto-expand-secmem`` option. + + Set :term:`GPG_SIGN_SERIALIZE` to "0" to sign in parallel. Only do this + if every ``gpg-agent`` serving the GnuPG home directory used for signing + runs with ``auto-expand-secmem``. To configure this, add the following + line to ``gpg-agent.conf`` in that directory:: + + auto-expand-secmem + + A running agent does not pick up this change. Stop any running agent so + that the next signing operation starts one with the new configuration: + + .. code-block:: console + + $ gpgconf --homedir /path/to/gpg/home --kill gpg-agent + + Signing tasks that run under pseudo, such as ``do_package_write_rpm``, + can use a separate agent whose sockets are in the GnuPG home directory + itself, which the above command does not stop. Stop that agent through + its socket, for example: + + .. code-block:: console + + $ gpg-connect-agent -S /path/to/gpg/home/S.gpg-agent.yocto-native KILLAGENT /bye + :term:`GROUPADD_PARAM` When inheriting the :ref:`ref-classes-useradd` class, this variable specifies for a package what parameters should be