Page MenuHome GnuPG

pinentry looks for gpg-error-config and libassuan-config in ${SYSROOT}/bin but they are in ${SYSROOT}/usr/bin
Closed, ResolvedPublic

Description

When I cross compile pinentry on Gentoo it fails because gpg-error.m4 and libassuan.m4 both look in ${SYSROOT}/bin for their config programs instead of ${SYSROOT}/usr/bin where they actually are. The result is a fallback to searching for those programs in $PATH. It does find the versions of those programs on the build system in /usr/bin. But they say --libdir is /usr/lib64 so that gets added as an linker option. As a result none of the libraries are found since adding /usr/lib64 makes the compiler not look in /usr/lib.

Actually, I think the same problem exists for fltk, but as you can see in the Gentoo bug report I worked around that by disabling that optional feature. If I recall correctly the logic looking for fltk config was not even looking in SYSROOT and the solution would not have been so simple as the patches I made to gpg.error.m4 and libassuan.m4 to work around the problem.

Details

External Link
https://bugs.gentoo.org/653938
Version
1.1.0

Event Timeline

jharvell set External Link to https://bugs.gentoo.org/653938.
werner triaged this task as Normal priority.Jun 6 2018, 5:58 PM
gniibe claimed this task.
gniibe added a subscriber: gniibe.

I believe the problem was fixed in the master of pinentry with newer gpg-error-config and libassuan-config which support cross build better.