Created attachment 528490 [details] output of sudo armv7a-pip-linux-gnueabi-emerge --info Cross compiling: gnupg autoconfigure finds the wrong library path for the following libraries: libgpg-error libksba libassuan libgcrypt libnpth This is because of the same error repeated several times. Instead of finding the target version of the library config program, it found the one on the build machine. example: instead of finding /usr/armv7a-pip-linux-gnueabi/usr/bin/gpg-error-config it found /usr/bin/gpg-error-config. This happened for all libraries above. I don't have the original logs becuase I fixed each case and am attaching patches. When it uses the /usr/bin version instead of the <sysroot>/usr/bin version it inserts /usr/lib64 into the library path instead of /usr/lib. The result is that it fails to find any libraries from /usr/lib and fails to link. Some of the patches I created are copied from pinentry. Apparently the sources for these two packages have the same provenance. In some cases the versions of the .m4 files from pinentry were modified to support <sysroot>, but were only looking in <sysroot>/bin instead of <sysroot>/usr/bin. So they were easy to fix. The other ones are just older clones of the upgraded pinentry ones. So the fixes are just clones of the pinentry fixes. Refer to https://bugs.gentoo.org/show_bug.cgi?id=653938 to see the bug report I made for the pinentry issue.
Oh, to reproduce the failure: 1.Create cross toolcain (crossdev -t armv7a-pip-linux-gnueabi) 2.Unpack latest portage snapshot into /usr/armv7a-pip-linux-gnueabi/usr 3.Update /usr/armv7a-pip-linux-gnueabi/etc/portage/make.profile symlink to point to ../../usr/portage/profiles/default/linux/arm/13.0/armv7a 4. sudo armv7a-pip-linux-gnueabi-emerge -a1v --noreplace --keep-going @system 5. repeat step 4 as necessary until emerge actually attempts to build app-crypt/gnupg Also, https://bugs.gentoo.org/653930 is another bug for the same issue for apparently the same upstream codebase.
Created attachment 528492 [details, diff] gnupg-2.2.6.ebuild
Created attachment 528494 [details, diff] gpg-error.m4
Created attachment 528496 [details, diff] ksba.m4
Created attachment 528498 [details, diff] libassuan.m4
Created attachment 528500 [details, diff] libgcrypt.m4
Created attachment 528502 [details, diff] npth.m4
Thanks! But we are downstream we do not fork upstream. Please workout with upstream to embed this or any other solution. Once merged downstream will be follow.
Created attachment 528712 [details, diff] gnupg-2.2.6.ebuild.patch
Upstream bug report https://dev.gnupg.org/T3950
Can you please test 2.2.10-r1?
I successfully merged 2.2.15-r1