https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: app-crypt/gnupg-2.2.28 fails to compile. Discovered on: amd64 (internal ref: ci) NOTE: This machine uses GCC-11: https://gcc.gnu.org/gcc-11/porting_to.html If you think this is a GCC-11 related issue, please block bug 732706.
Created attachment 715566 [details] build.log build log and emerge --info
Possible context of error(s): dirmngr.c:(.text+0x139e): undefined reference to `ldapserver_parse_one' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: dirmngr.c:(.text+0x1447): undefined reference to `ldapserver_list_free' collect2: error: ld returned 1 exit status
I can confirm the bug too
I noticed, with USE=ldap enabled it builds successful.
Created attachment 715620 [details] emerge --info
Confirm the useflag ldap fix it
Same here. This appears to be because of this commit: https://github.com/gpg/gnupg/commit/ff17aee5d10c8c5ab902253fb4332001c3fc3701#diff-a4aac8e9dec5ad407f9043aebd98cdb298437c8c534088d384e2d888ad49ce29R752 Not 100% sure, but a quick dirty fix might be just to comment out/remove that line if the LDAP USE flag is not set. This should be reported upstream though.
Oh, yeah, seems like it's already been fixed upstream. This patch applies cleanly and seems to work as expected: https://github.com/gpg/gnupg/commit/c8b2162c0e7eb42b74811b7ed225fa0f56be4083 ( patch file: https://github.com/gpg/gnupg/commit/c8b2162c0e7eb42b74811b7ed225fa0f56be4083.patch )
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=16b8804428d68538b75e21a597ab687830787097 commit 16b8804428d68538b75e21a597ab687830787097 Author: Lars Wendler <polynomial-c@gentoo.org> AuthorDate: 2021-06-12 22:35:44 +0000 Commit: Lars Wendler <polynomial-c@gentoo.org> CommitDate: 2021-06-12 22:37:03 +0000 app-crypt/gnupg: Fixed build with USE="-ldap" Removed "scd-shared-access" USE flag as this finally went into a release Closes: https://bugs.gentoo.org/795669 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org> .../gnupg/files/gnupg-2.2.28-dirmngr_ldap.patch | 36 ++++++++++++++++++++++ app-crypt/gnupg/gnupg-2.2.28.ebuild | 13 ++------ 2 files changed, 39 insertions(+), 10 deletions(-)
*** Bug 795693 has been marked as a duplicate of this bug. ***