Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 865321 - app-office/libreoffice-7.3.5.2 - configure: error: gpgmepp not found or not functional (w/ app-crypt/gpgme-1.18.0)
Summary: app-office/libreoffice-7.3.5.2 - configure: error: gpgmepp not found or not f...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Office Team
URL: https://lists.freedesktop.org/archive...
Whiteboard:
Keywords:
: 865319 865329 865367 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-08-15 20:35 UTC by Toralf Förster
Modified: 2022-08-31 21:47 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,19.83 KB, text/plain)
2022-08-15 20:35 UTC, Toralf Förster
Details
app-office:libreoffice-7.3.5.2:20220815-193911.log (app-office:libreoffice-7.3.5.2:20220815-193911.log,26.78 KB, text/plain)
2022-08-15 20:35 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,196.33 KB, text/plain)
2022-08-15 20:35 UTC, Toralf Förster
Details
environment (environment,212.50 KB, text/plain)
2022-08-15 20:35 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,33.23 KB, application/x-bzip)
2022-08-15 20:35 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,24.01 KB, application/x-bzip)
2022-08-15 20:35 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,52.90 KB, application/x-bzip)
2022-08-15 20:35 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-08-15 20:35:00 UTC
checking whether to build Skia... no
checking which gpgmepp to use... external
checking for gpgme++/gpgmepp_version.h... yes
checking for progress_callback in -lgpgmepp... no
configure: error: gpgmepp not found or not functional

!!! Please attach the following file when seeking support:

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma-j4-20220813-180005

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12.1.1 *
clang/llvm (if any):
clang version 14.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/14/bin
/usr/lib/llvm/14
14.0.6
Python 3.10.6
Available Ruby profiles:
  [1]   ruby27 (with Rubygems)
  [2]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.62.1 *
GENTOO_VM=  CLASSPATH="" JAVA_HOME="/etc/java-config-2/current-system-vm"
JAVACFLAGS="" COMPILER=""
The following VMs are available for generation-2:
1)	IcedTea JDK 3.21.0 [icedtea-8]
*)	Eclipse Temurin JDK 17.0.3_p7 [openjdk-bin-17]
3)	Eclipse Temurin JDK 8.332_p09 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-8 
  [2]   openjdk-bin-8 
  [3]   openjdk-bin-17  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli:
  [1]   php7.4
  [2]   php8.0
  [3]   php8.1 *

  HEAD of ::gentoo
commit 016123229e90d03527865c0e688aa47676036b95
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Aug 15 19:16:52 2022 +0000

    2022-08-15 19:16:51 UTC

emerge -qpvO app-office/libreoffice
[ebuild   R   ] app-office/libreoffice-7.3.5.2  USE="bluetooth branding cups dbus gtk kde mariadb -accessibility -base -clang -coinmp -custom-cflags -debug -eds -firebird -googledrive -gstreamer -java -ldap -odk -pdfimport -postgres -test -vulkan" LIBREOFFICE_EXTENSIONS="-nlpsolver -scripting-beanshell -scripting-javascript -wiki-publisher" PYTHON_SINGLE_TARGET="python3_10 -python3_8 -python3_9 -python3_11"
Comment 1 Toralf Förster gentoo-dev 2022-08-15 20:35:02 UTC
Created attachment 799803 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-08-15 20:35:03 UTC
Created attachment 799805 [details]
app-office:libreoffice-7.3.5.2:20220815-193911.log
Comment 3 Toralf Förster gentoo-dev 2022-08-15 20:35:04 UTC
Created attachment 799807 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-08-15 20:35:06 UTC
Created attachment 799809 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-08-15 20:35:07 UTC
Created attachment 799811 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-08-15 20:35:08 UTC
Created attachment 799813 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-08-15 20:35:09 UTC
Created attachment 799815 [details]
temp.tar.bz2
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-08-15 20:35:59 UTC
*** Bug 865319 has been marked as a duplicate of this bug. ***
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-08-15 20:37:10 UTC
from config.log:

configure:40812: checking which gpgmepp to use
configure:40815: result: external
configure:40820: checking for gpgme++/gpgmepp_version.h
configure:40820: x86_64-pc-linux-gnu-gcc -c -pipe -march=native -fno-diagnostics-color -O2 -I/usr/include/python3.10     conftest.c >&5
configure:40820: $? = 0
configure:40820: result: yes
configure:40830: checking for progress_callback in -lgpgmepp
configure:40853: x86_64-pc-linux-gnu-gcc -o conftest -pipe -march=native -fno-diagnostics-color -O2 -I/usr/include/python3.10     -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0   conftest.c -lgpgmepp   >&5
/usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/app-office/libreoffice-7.3.5.2/temp/ccH6cG0Y.o: in function `main':
conftest.c:(.text.startup+0x7): undefined reference to `progress_callback'
collect2: error: ld returned 1 exit status
configure:40853: $? = 1
configure: failed program was
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-08-15 20:42:12 UTC
https://dev.gnupg.org/T5906

[21:40:29]  <@sam_> so i think it's.. intentional
[21:40:30]  <@sam_> https://dev.gnupg.org/T5906
[21:40:46]  <@sam_> (which kind of makes sense, "progress_callback" is real generic, especially in a C++ library?)
[21:41:30]  <@sam_>   callbacks.h - callback targets for internal use:
[21:41:30]  <@sam_> :)
[21:41:34]  <@sam_>   This is an internal header file, subject to change without
[21:41:34]  <@sam_>   notice. DO NOT USE.
[21:41:35]  <@sam_> great

I don't think libreoffice should be using this symbol to detect gpgme (or trying to use it at runtime - I don't know if it is, not checked yet).
Comment 11 jospezial 2022-08-15 20:50:25 UTC
configure:42348: checking whether to enable gpgmepp
configure:42360: result: yes
configure:42362: checking which gpgmepp to use
configure:42365: result: external
configure:42370: checking for gpgme++/gpgmepp_version.h
configure:42370: x86_64-pc-linux-gnu-clang -c -march=native -mtune=native -O2 -pipe -I/usr/include/python3.10     conftest.c >&5
configure:42370: $? = 0
configure:42370: result: yes
configure:42380: checking for progress_callback in -lgpgmepp
configure:42403: x86_64-pc-linux-gnu-clang -o conftest -march=native -mtune=native -O2 -pipe -I/usr/include/python3.10     -Wl,-O1 -Wl,--as-needed -fuse-ld=lld   conftest.c -lgpgmepp   >&5
ld.lld: error: undefined symbol: progress_callback
>>> referenced by conftest.c
>>>               /var/tmp/portage/app-office/libreoffice-9999/temp/conftest-5b6b66.o:(main)
clang-14: error: linker command failed with exit code 1 (use -v to see invocation)
configure:42403: $? = 1
configure: failed program was:
Comment 12 Larry the Git Cow gentoo-dev 2022-08-15 21:15:06 UTC
The bug has been closed via the following commit(s):

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

commit 69fc15afc8b81272abfe7a4035c8a6c2d37b8d13
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-08-15 21:14:29 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-08-15 21:14:59 +0000

    app-office/libreoffice: fix build w/ gpgme 1.18.0, add which BDEPEND
    
    - Fix build w/ gpgme 1.18.0 by spoofing existence of progress_callback
    (see bug for details; reported upstream but waiting for email to appear
    in archive/pending moderation)
    
    - Add which BDEPEND (bunch of configure checks use it for now)
    
    Closes: https://bugs.gentoo.org/865321
    Signed-off-by: Sam James <sam@gentoo.org>

 app-office/libreoffice/libreoffice-7.3.3.2-r3.ebuild | 4 ++++
 app-office/libreoffice/libreoffice-7.3.4.2-r1.ebuild | 4 ++++
 app-office/libreoffice/libreoffice-7.3.5.2.ebuild    | 4 ++++
 app-office/libreoffice/libreoffice-7.3.9999.ebuild   | 4 ++++
 app-office/libreoffice/libreoffice-9999.ebuild       | 4 ++++
 5 files changed, 20 insertions(+)
Comment 13 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-08-15 23:37:54 UTC
*** Bug 865329 has been marked as a duplicate of this bug. ***
Comment 14 Ionen Wolkens gentoo-dev 2022-08-16 09:01:55 UTC
*** Bug 865367 has been marked as a duplicate of this bug. ***
Comment 16 Larry the Git Cow gentoo-dev 2022-08-31 21:47:28 UTC
The bug has been closed via the following commit(s):

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

commit ac8e15beacefb21f215f9f25e282da204e4ef435
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-08-31 21:44:10 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-08-31 21:45:19 +0000

    app-office/libreoffice: use upstream gpgme 1.18.0 patch
    
    At least for 7.3.x.
    
    Closes: https://bugs.gentoo.org/865321
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/libreoffice-7.3.5.2-gpgme-1.18.0.patch   | 48 ++++++++++++++++++++++
 app-office/libreoffice/libreoffice-7.3.5.2.ebuild  |  6 +--
 app-office/libreoffice/libreoffice-7.3.9999.ebuild |  6 +--
 app-office/libreoffice/libreoffice-9999.ebuild     |  3 --
 4 files changed, 54 insertions(+), 9 deletions(-)