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

Bug 737126

Summary: app-text/mupdf-1.17.0 : source/.../pkcs7-openssl.c: error: redefinition of PKCS12_SAFEBAG_get0_safes
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo LibreSSL <libressl>
Status: RESOLVED FIXED    
Severity: normal CC: johu, sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 561854    
Attachments: emerge-info.txt
app-text:mupdf-1.17.0:20200814-051237.log
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
temp.tbz2

Description Toralf Förster gentoo-dev 2020-08-14 13:18:56 UTC
      |     ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
source/helpers/pkcs7/pkcs7-openssl.c: At top level:
source/helpers/pkcs7/pkcs7-openssl.c:533:1: error: redefinition of ‘PKCS12_SAFEBAG_get0_safes’
  533 | PKCS12_SAFEBAG_get0_safes(const PKCS12_SAFEBAG *bag)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~
source/helpers/pkcs7/pkcs7-openssl.c:103:1: note: previous definition of ‘PKCS12_SAFEBAG_get0_safes’ was here

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma_systemd-libressl-20200806-051503

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-8.3.1
 [3] x86_64-pc-linux-gnu-10.2.0 *
clang version 10.0.1 
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/10/bin
/usr/lib/llvm/10
10.0.1
Available Python interpreters, in order of preference:
  [1]   python3.7
  [2]   python3.9 (fallback)
  [3]   python3.8 (fallback)
  [4]   python3.6 (fallback)
  [5]   python2.7 (fallback)
  [6]   pypy3 (fallback)
Available Ruby profiles:
  [1]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.45.2 *
The following VMs are available for generation-2:
*)	AdoptOpenJDK 8.265_p01 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.8.4

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Fri Aug 14 04:35:58 AM UTC 2020
/var/db/repos/libressl	Mon Aug 10 09:13:35 AM UTC 2020

emerge -qpvO app-text/mupdf
[ebuild     U ] app-text/mupdf-1.17.0 [1.16.1] USE="X javascript libressl opengl ssl -static-libs"
Comment 1 Toralf Förster gentoo-dev 2020-08-14 13:18:58 UTC
Created attachment 654622 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-08-14 13:19:01 UTC
Created attachment 654624 [details]
app-text:mupdf-1.17.0:20200814-051237.log
Comment 3 Toralf Förster gentoo-dev 2020-08-14 13:19:03 UTC
Created attachment 654626 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-08-14 13:19:04 UTC
Created attachment 654628 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-08-14 13:19:06 UTC
Created attachment 654630 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-08-14 13:19:08 UTC
Created attachment 654632 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-08-14 13:19:09 UTC
Created attachment 654634 [details]
temp.tbz2
Comment 8 jospezial 2020-08-14 23:05:26 UTC
Without mupdf-1.14-libressl.patch app-text/mupdf-1.17.0 compiles against dev-libs/libressl-3.2.0.
mupdf-1.17.0 seems to have the libressl support now builtin:


http://git.ghostscript.com/?p=mupdf.git;a=commit;h=8b79cf2ead21053ae7e0875dba6e1e9b24624467
"Add workaround for libressl missing new openssl APIs.

If supporting libressl is trivial, then mupdf should support it.
Should libressl and openssl diverge too much, we might need to
reconsider this decision."

another important change:
http://git.ghostscript.com/?p=mupdf.git;a=commit;h=3f9ee8f4dfa03e9680cf0777f1518e305cb48c09
"pkcs7: refactor signing interface.

Move the pkcs7 check functions to pkcs7-openssl.c/.h and remove
pkcs7-check.c/h.

Move pdf pkcs7 sign/verify interfaces from pdf/document.h to pdf/form.h.

Fix up redundant references to pkcs7-check.h.

Update the gl app and tools to use the slightly reworked pkcs7 interface."
Comment 9 Larry the Git Cow gentoo-dev 2020-08-14 23:53:34 UTC
The bug has been closed via the following commit(s):

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

commit 30fc228f731e480aaef3d357936c0c7768acfadd
Author:     Aaron Bauman <bman@gentoo.org>
AuthorDate: 2020-08-14 23:51:42 +0000
Commit:     Aaron Bauman <bman@gentoo.org>
CommitDate: 2020-08-14 23:53:29 +0000

    app-text/mupdf: drop libressl patch and bump min version
    
    * Upstream has included LibreSSL support
    * Bump minimum version to 3.2.0 for latest APIs.
    
    Closes: https://bugs.gentoo.org/737126
    Signed-off-by: Aaron Bauman <bman@gentoo.org>

 app-text/mupdf/mupdf-1.17.0.ebuild | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)