Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 699206

Summary: dev-libs/libassuan-2.5.3 - configure:14434: checking for GPG Error - version >= 1.17 // configure:14482: result: no // configure:14484: error: libgpg-error was not found
Product: Gentoo Linux Reporter: Stefan Langenmaier <stefan.langenmaier+gentoo>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal CC: nvinson234, sam, sandino, toralf, zlogene
Priority: Normal    
Version: unspecified   
Hardware: ARM   
OS: Linux   
Whiteboard: In future, revisit and remove all the --with-gpg-error-config from gpg stack, and then drop installation in libgpg-error again.
Package list:
Runtime testing required: ---
Attachments: emerge --info
config.log

Description Stefan Langenmaier 2019-11-03 07:02:14 UTC
Since dev-libs/libassuan-2.5.3 went stable I can no longer build it on arm.

Reproducible: Always

Steps to Reproduce:
emerge dev-libs/libassuan
Actual Results:  
checking for gpg-error-config... /usr/bin/armv7a-hardfloat-linux-gnueabi-gpg-error-config
./configure: line 14356: /usr/bin/armv7a-hardfloat-linux-gnueabi-gpg-error-config: No such file or directory
./configure: line 14367: test: : integer expression expected
./configure: line 14370: test: : integer expression expected
./configure: line 14377: test: : integer expression expected
checking for GPG Error - version >= 1.17... no
configure: error: libgpg-error was not found

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/dev-libs/libassuan-2.5.3/work/libassuan-2.5.3/config.log
 * ERROR: dev-libs/libassuan-2.5.3::gentoo failed (configure phase):
 *   econf failed
 * 
 * Call stack:
 *               ebuild.sh, line  125:  Called src_configure
 *             environment, line 1030:  Called econf '--disable-static' 'GPG_ERROR_CONFIG=/usr/bin/armv7a-hardfloat-linux-gnueabi-gpg-error-config'
 *        phase-helpers.sh, line  681:  Called __helpers_die 'econf failed'
 *   isolated-functions.sh, line  112:  Called die
 * The specific snippet of code:
 *   		die "$@"
 * 
 * If you need support, post the output of `emerge --info '=dev-libs/libassuan-2.5.3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/libassuan-2.5.3::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-libs/libassuan-2.5.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/libassuan-2.5.3/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-libs/libassuan-2.5.3/work/libassuan-2.5.3'
 * S: '/var/tmp/portage/dev-libs/libassuan-2.5.3/work/libassuan-2.5.3'
 * Messages for package dev-libs/libassuan-2.5.3:
 * ERROR: dev-libs/libassuan-2.5.3::gentoo failed (configure phase):
 *   econf failed
 * 
 * Call stack:
 *               ebuild.sh, line  125:  Called src_configure
 *             environment, line 1030:  Called econf '--disable-static' 'GPG_ERROR_CONFIG=/usr/bin/armv7a-hardfloat-linux-gnueabi-gpg-error-config'
 *        phase-helpers.sh, line  681:  Called __helpers_die 'econf failed'
 *   isolated-functions.sh, line  112:  Called die
 * The specific snippet of code:
 *   		die "$@"
 * 
 * If you need support, post the output of `emerge --info '=dev-libs/libassuan-2.5.3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/libassuan-2.5.3::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-libs/libassuan-2.5.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/libassuan-2.5.3/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-libs/libassuan-2.5.3/work/libassuan-2.5.3'
 * S: '/var/tmp/portage/dev-libs/libassuan-2.5.3/work/libassuan-2.5.3'
Comment 1 Stefan Langenmaier 2019-11-03 07:22:42 UTC
Created attachment 594924 [details]
emerge --info
Comment 2 Stefan Langenmaier 2019-11-03 07:23:00 UTC
Created attachment 594926 [details]
config.log
Comment 3 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2020-01-09 09:00:30 UTC
Please post the output of the following command on your affected arm system:

  qlist -Ce libgpg-error | sort
Comment 4 Stefan Langenmaier 2020-02-12 20:02:41 UTC
Sorry I haven't reported back here. After an `emerge -e @world`, I can no longer reproduce the problem. This issue can be closed.
Comment 5 Kobboi 2021-01-24 13:58:09 UTC
I have the problem in the following context:

With $ROOT being empty:

ROOT=/mnt/newroot/ emerge -avq -1 libassuan --keep-going --with-bdeps=y --complete-graph

>>> Emerging (1 of 3) virtual/libintl-0-r2::gentoo for /mnt/newroot/
>>> Installing (1 of 3) virtual/libintl-0-r2::gentoo to /mnt/newroot/
>>> Emerging (2 of 3) dev-libs/libgpg-error-1.41::gentoo for /mnt/newroot/
>>> Installing (2 of 3) dev-libs/libgpg-error-1.41::gentoo to /mnt/newroot/
>>> Emerging (3 of 3) dev-libs/libassuan-2.5.4::gentoo for /mnt/newroot/
>>> Failed to emerge dev-libs/libassuan-2.5.4 for /mnt/newroot/, Log file:

(...)

checking for gpg-error-config... /mnt/newroot/usr/bin/x86_64-pc-linux-gnu-gpg-error-config
./configure: line 14365: /mnt/newroot/usr/bin/x86_64-pc-linux-gnu-gpg-error-config: Permission denied
./configure: line 14376: test: : integer expression expected
./configure: line 14379: test: : integer expression expected
./configure: line 14386: test: : integer expression expected
checking for GPG Error - version >= 1.17... no
configure: error: libgpg-error was not found
Comment 6 Kobboi 2021-01-24 13:59:19 UTC
Note that the file in question is available and executable:

# /mnt/newroot/usr/bin/x86_64-pc-linux-gnu-gpg-error-config
Usage: gpg-error-config [OPTIONS]
Options:
        [--mt]       (must be the first option)
	[--prefix]
	[--exec-prefix]
	[--version]
	[--libs]
	[--cflags]
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-02-17 21:26:13 UTC
CCing gpg maintainers.
Comment 8 nvinson234 2022-10-09 00:59:07 UTC
The issue appears to be that in the dev-libs/libgpg-error-1.46 ebuild the following stanza was removed:

MULTILIB_CHOST_TOOLS=(
    /usr/bin/gpg-error-config                                                                    
)

this results in the binary being called gpg-error-config instead of x86_64-pc-linux-gnu-gpg-error-config.

The ultimate result iss that libassuan fails to configure because it cannot find x86_64-pc-linux-gnu-gpg-error-config and does not fallback to looking for 'gpg-error-config'.
Comment 9 nvinson234 2022-10-09 01:00:59 UTC
(In reply to nvinson234 from comment #8)
> The issue appears to be that in the dev-libs/libgpg-error-1.46 ebuild the
> following stanza was removed:
> 
> MULTILIB_CHOST_TOOLS=(
>     /usr/bin/gpg-error-config                                               
> 
> )
> 
> this results in the binary being called gpg-error-config instead of
> x86_64-pc-linux-gnu-gpg-error-config.
> 
> The ultimate result iss that libassuan fails to configure because it cannot
> find x86_64-pc-linux-gnu-gpg-error-config and does not fallback to looking
> for 'gpg-error-config'.

or more correctly it fails to find the arch-qualified name. armv7a-hardfloat-linux-gnueabi-gpg-error-config for Langenmaier, x86_64-pc-linux-gnu-gpg-error-config for me.
Comment 10 Larry the Git Cow gentoo-dev 2022-10-09 01:14:13 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=33877493c1cbbe20732462198c753eb94372ed04

commit 33877493c1cbbe20732462198c753eb94372ed04
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: 2022-10-09 01:12:55 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2022-10-09 01:14:02 +0000

    dev-libs/libgpg-error: Install gpg-error-config again
    
    Also give gpgrt-config the multilib treatment
    
    Closes: https://bugs.gentoo.org/699206
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 dev-libs/libgpg-error/libgpg-error-1.46-r1.ebuild | 81 +++++++++++++++++++++++
 1 file changed, 81 insertions(+)
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-10-09 21:07:35 UTC
This bug is far older than libgpg-error deciding to not install it anymore, and ultimately, we should stop installing it at some point, but it's not worth it for now given we've got other fires like Clang 16.

I'll just call the gpgme bugs dupes of this.
Comment 12 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-10-09 21:08:01 UTC
(In reply to Sam James from comment #11)
> This bug is far older than libgpg-error deciding to not install it anymore,
> and ultimately, we should stop installing it at some point, but it's not
> worth it for now given we've got other fires like Clang 16.
> 
> I'll just call the gpgme bugs dupes of this.

but fwiw, I don't think the issues that people hit yesterday were the same bug as this one. In future, folks, please file a new one if you suddenly start hitting some problem out of nowhere, and just reference the older one.
Comment 13 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-10-09 21:08:10 UTC
*** Bug 876388 has been marked as a duplicate of this bug. ***
Comment 14 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-10-09 21:08:14 UTC
*** Bug 876349 has been marked as a duplicate of this bug. ***
Comment 15 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-10-09 21:08:17 UTC
*** Bug 876373 has been marked as a duplicate of this bug. ***
Comment 16 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-10-09 21:08:20 UTC
*** Bug 876343 has been marked as a duplicate of this bug. ***
Comment 17 Larry the Git Cow gentoo-dev 2022-10-09 21:12:19 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a9a4a206d078813dbae058425f27180f821373d

commit 1a9a4a206d078813dbae058425f27180f821373d
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-10-09 21:11:56 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-10-09 21:12:08 +0000

    app-crypt/gpgme: depend on libgpg-error which installs gpg-error-config
    
    which in turn ensures we provide gpgme-config. See bug for more details.
    
    Closes: https://bugs.gentoo.org/699206
    Signed-off-by: Sam James <sam@gentoo.org>

 .../gpgme/{gpgme-1.17.1-r1.ebuild => gpgme-1.17.1-r2.ebuild}      | 8 +++++++-
 .../gpgme/{gpgme-1.18.0-r1.ebuild => gpgme-1.18.0-r2.ebuild}      | 8 +++++++-
 2 files changed, 14 insertions(+), 2 deletions(-)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b88409f46c96ce91536762af9b1401649e00d7e6

commit b88409f46c96ce91536762af9b1401649e00d7e6
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-10-09 21:09:05 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-10-09 21:09:05 +0000

    dev-libs/libgpg-error: add commentary wrt gpg-error-config & gpgme-config
    
    Bug: https://bugs.gentoo.org/699206
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-libs/libgpg-error/libgpg-error-1.46-r1.ebuild | 5 +++++
 1 file changed, 5 insertions(+)
Comment 18 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-10-09 23:35:04 UTC
*** Bug 876370 has been marked as a duplicate of this bug. ***
Comment 19 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-10-09 23:35:09 UTC
*** Bug 876385 has been marked as a duplicate of this bug. ***
Comment 20 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-10-11 15:15:34 UTC
A new libassuan release will make life easier: https://git.gnupg.org/cgi-bin/gitweb.cgi?p=libassuan.git;a=commitdiff;h=8ec3e9f1dd88e14f42f31e8692a8664bd894226b (and maybe some followup commits).