<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>16480</bug_id>
          
          <creation_ts>2026-10-30 18:18:26 +0000</creation_ts>
          <short_desc>oe.gpg_sign should use supported method of passing gpg-agent arguments</short_desc>
          <delta_ts>2026-10-30 18:18:26 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>oe-core other</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>0.0.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Barker">paul</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>107256</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Barker">paul</who>
    <bug_when>2026-10-30 18:18:26 +0000</bug_when>
    <thetext>Using a `|` character with `gpg --agent-program` to specify arguments for the gpg-agent process is not officially supported. The docs describe it as &quot;a regression test suite hack&quot; [1].

This is easy to fix for the selftests where we create a temporary gnupg homedir. In that case we can safely write a gpg-agent.conf file with the required options and know that there is no pre-existing gpg-agent running for this homedir without the options set. However, in the more general case supported by oe.gpg_sign, we can&apos;t modify the configuration files in the gnupg homedir as this is likely to be provided and managed by the user. We also can&apos;t guarantee that there isn&apos;t already a gpg-agent process running which lacks the required options.

Fixing this in the general case is tricky. We may need to simply document the requirement for the gpg-agent to have the auto-expand-secmem option enabled and leave it to users to ensure that is set in their environments.

[1]: https://www.gnupg.org/documentation/manuals/gnupg24/gpg.1.html</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>