#65991 closed defect (fixed)

gnupg2 @2.2.39 fails configure ("You need libgpg-error to build this program.", even though libgpg is installed, and latest)

Reported by: jf (Jeffrey 'jf' Lim) Owned by: roederja
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: Ionic (Mihai Moldovan), l2dy (Zero King)
Port: gnupg2

Description

$ sudo port install gnupg2
--->  Computing dependencies for gnupg2
--->  Fetching archive for gnupg2
--->  Attempting to fetch gnupg2-2.2.39_0+pinentry.darwin_21.arm64.tbz2 from https://packages.macports.org/gnupg2
--->  Attempting to fetch gnupg2-2.2.39_0+pinentry.darwin_21.arm64.tbz2 from http://jog.id.packages.macports.org/macports/packages/gnupg2
--->  Attempting to fetch gnupg2-2.2.39_0+pinentry.darwin_21.arm64.tbz2 from https://kmq.jp.packages.macports.org/gnupg2
--->  Fetching distfiles for gnupg2
--->  Verifying checksums for gnupg2
--->  Extracting gnupg2
--->  Configuring gnupg2
Error: Failed to configure gnupg2: consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_mail_gnupg2/gnupg2/work/gnupg-2.2.39/config.log
Error: Failed to configure gnupg2: configure failure: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_mail_gnupg2/gnupg2/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port gnupg2 failed

It might be possible that this is a libgpg-error issue (not sure, but in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_mail_gnupg2/gnupg2/work/gnupg-2.2.39/config.log I see the lines below):

configure:8288: checking for libraries
configure:8334: checking for gpg-error-config
configure:8365: result: no

Looking at another system on which I successfully installed gnupg2 before (2.2.34), with libgpg-error @1.44_0, I see that gpg-error-config is available at the command line?

Whatever the cause, it is clear that configure fails to detect libgpg-error:

configure:16372:
***
*** You need libgpg-error to build this program.
**  This library is for example available at
***   https://gnupg.org/ftp/gcrypt/libgpg-error
*** (at least version 1.27 is required.)
***
configure:16505: error:
***
*** Required libraries not found. Please consult the above messages
*** and install them before running configure again.
***

I am attaching /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_mail_gnupg2/gnupg2/work/gnupg-2.2.39/config.log and /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_mail_gnupg2/gnupg2/main.log

Attachments (2)

config.log (332.5 KB) - added by jf (Jeffrey 'jf' Lim) 19 months ago.
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_mail_gnupg2/gnupg2/work/gnupg-2.2.39/config.log
main.log (88.2 KB) - added by jf (Jeffrey 'jf' Lim) 19 months ago.
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_mail_gnupg2/gnupg2/main.log

Download all attachments as: .zip

Change History (6)

Changed 19 months ago by jf (Jeffrey 'jf' Lim)

Attachment: config.log added

/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_mail_gnupg2/gnupg2/work/gnupg-2.2.39/config.log

Changed 19 months ago by jf (Jeffrey 'jf' Lim)

Attachment: main.log added

/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_mail_gnupg2/gnupg2/main.log

comment:1 Changed 19 months ago by jmroot (Joshua Root)

Cc: Ionic added
Keywords: configure libgpg-error removed
Owner: set to roederja
Status: newassigned
Summary: gnupg2 2.2.39 fails configure ("You need libgpg-error to build this program.", even though libgpg is installed, and latest)gnupg2 @2.2.39 fails configure ("You need libgpg-error to build this program.", even though libgpg is installed, and latest)

Confirmed. The gpg-error-config executable was removed from the default installation of libgpg-error in version 1.46. The replacement is pkg-config or gpgrt-config, and it looks like gnupg2 is trying to use the latter but not getting the desired result.

comment:2 Changed 19 months ago by l2dy (Zero King)

Cc: l2dy added

comment:3 Changed 19 months ago by jf (Jeffrey 'jf' Lim)

not sure whether the addition (restoration?) of gpg-error-config back to libgpg-error is permanent, but FYI I just noticed an update to libgpg-error today (@1.46_0 -> @1.46_1), and proceeded to update to libgpg-error @1.46_1... and lo and behold, gpg-error-config is back? and now gnupg2 installs without a problem!

Last edited 19 months ago by jf (Jeffrey 'jf' Lim) (previous) (diff)

comment:4 Changed 19 months ago by roederja

Resolution: fixed
Status: assignedclosed

Seems like the change to libgpg-error and/or the update to gnupg 2.2.40 fixed this issue.

Note: See TracTickets for help on using tickets.