I have updated the pinentry port and it compiles for me now. I'm using pinentry-mac which didn't break.

Please let me know if you still have issues.

Thanks,
Jann

On 17/01/2026 22:56, MacPorts wrote:
#73403: No pinentry for GPG
----------------------+----------------------------------
   Reporter:  vkuznet  |      Owner:  (none)
       Type:  defect   |     Status:  new
   Priority:  Normal   |  Milestone:
  Component:  ports    |    Version:  2.11.6
Resolution:           |   Keywords:  gpg, pinetry, gnupg2
       Port:  gnupg2   |
----------------------+----------------------------------

Comment (by crimsonpython24):

  I believe I ran into a similar issue.

  {{{
  admin@device ~ % sudo port install gnupg2
  Password:
  --->  Computing dependencies for gnupg2
  # ...
  --->  Cleaning gnupg2
  --->  Updating database of binaries
  --->  Scanning binaries for linking errors
  --->  Found 3 broken files, matching files to ports
  --->  Found 1 broken port, determining rebuild order
  You can always run 'port rev-upgrade' again to fix errors.
  The following ports will be rebuilt: pinentry @1.2.1
  Continue? [Y/n]: n
  }}}

  When installing `pinentry` explicitly:
  {{{
  ```fish
  admin@device ~ % sudo port install pinentry
  Password:
  --->  Computing dependencies for pinentry
  --->  Cleaning pinentry
  --->  Scanning binaries for linking errors
  --->  Found 3 broken files, matching files to ports
  --->  Found 1 broken port, determining rebuild order
  You can always run 'port rev-upgrade' again to fix errors.
  The following ports will be rebuilt: pinentry @1.2.1
  Continue? [Y/n]: y
  --->  Computing dependencies for pinentry
  --->  Cleaning pinentry
  --->  Scanning binaries for linking errors
  --->  Found 3 broken files, matching files to ports
  --->  Found 1 broken port, determining rebuild order
  --->  Rebuilding in order
       pinentry @1.2.1_0
  --->  Computing dependencies for pinentry
  --->  Fetching distfiles for pinentry
  --->  Attempting to fetch pinentry-1.2.1.tar.bz2 from
  https://distfiles.macports.org/pinentry
  --->  Verifying checksums for pinentry
  --->  Extracting pinentry
  --->  Configuring pinentry
  Error: Failed to configure pinentry: consult /opt/local/var/macports/build
  /pinentry-7fceddc8/work/pinentry-1.2.1/config.log
  Error: Failed to configure pinentry: configure failure: command execution
  failed
  Error: See
  
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_security_pinentry/pinentry/main.log
  for details.
  Error: rev-upgrade failed: Error rebuilding pinentry
  Error: Follow https://guide.macports.org/#project.tickets if you believe
  there is a bug.
  }}}

  Looking at the log:
  {{{
  cat /opt/local/var/macports/build/pinentry-
  7fceddc8/work/pinentry-1.2.1/config.log

  configure:7375: checking for LIBASSUAN - version >= 2.1.0
  configure:7416: result: yes (3.0.2)
  configure:7431: checking LIBASSUAN API version
  configure:7438: result: does not match.  want=2 got=3.
  ```

  Here, `pinentry 1.2.1` seems to require `libassuan API` version 2, but the
  system installed `libassuan 3.0.2`, which provides API v3. I.e.,
  `pinentry` doesn't seem updated to support the newer `libassuan`, which
  breaks the installation. As a result:

  ```fish
  Real name:
  Email address:
  Comment:
  You selected this USER-ID:
      "text"

  Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? O
  We need to generate a lot of random bytes. It is a good idea to perform
  some other action (type on the keyboard, move the mouse, utilize the
  disks) during the prime generation; this gives the random number
  generator a better chance to gain enough entropy.
  gpg: agent_genkey failed: No pinentry
  Key generation failed: No pinentry
  }}}

  Attached is the full error log: https://github.com/user-
  attachments/files/24692472/error.txt. I also commented on GitHub on this
  breaking change: https://github.com/macports/macports-
  ports/commit/98ae05cecc79ffe84aee5ec4fe912b4a5be5b1e9#commitcomment-174969842.


Reply via email to