Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 919676 - app-text/qpdf-11.6.3: fails to configure with USE=-ssl: CMake Error at libqpdf/CMakeLists.txt:273 (message): no crypto provider is available
Summary: app-text/qpdf-11.6.3: fails to configure with USE=-ssl: CMake Error at libqpd...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-10 02:42 UTC by CaptainBlood
Modified: 2023-12-15 06:18 UTC (History)
1 user (show)

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


Attachments
ebuild log (app-text:qpdf-11.6.3:20231210-025545.log.gz,2.27 KB, application/gzip)
2023-12-10 02:42 UTC, CaptainBlood
Details

Note You need to log in before you can comment on or make changes to this bug.
Description CaptainBlood 2023-12-10 02:42:53 UTC
Created attachment 878603 [details]
ebuild log

TL;DR
-- Checking for module 'zlib'
--   Found zlib, version 1.3
-- Checking for module 'libjpeg'
--   Found libjpeg, version 3.0.0
CMake Error at libqpdf/CMakeLists.txt:273 (message):
  no crypto provider is available


CMake Error at libqpdf/CMakeLists.txt:277 (message):
  Missing dependencies; unable to continue


-- Configuring incomplete, errors occurred!

---------------------------------------------------
qpdf-11.6.3/CMakeLists.txt snippet L270:277

set(JPEG_INCLUDE)

if(${CMAKE_SIZEOF_VOID_P} EQUAL 8)
  set(WORDSIZE 64)
else()
  set(WORDSIZE 32)
endif()
---------------------------------------------------
emerge -info app-text/qpdf
Portage 3.0.56 (python 3.11.7-final-0, default/linux/amd64/17.1, gcc-13, glibc-2.37-r7, 6.6.5-gentoo-std x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.6.5-gentoo-std-x86_64-Intel-R-_Core-TM-_i3-6100_CPU_@_3.70GHz-with-glibc2.37
KiB Mem:     3933748 total,    182676 free
KiB Swap:   65535996 total,  65522968 free
sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.40 p7) 2.40.0
distcc 3.4 x86_64-pc-linux-gnu [disabled]
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-java/java-config:      2.3.1-r1::gentoo
dev-lang/perl:             5.38.0-r1::gentoo
dev-lang/python:           2.7.18_p16-r1::gentoo, 3.10.13::gentoo, 3.11.7::gentoo, 3.12.1::gentoo
dev-lang/rust:             1.74.1::gentoo
dev-util/cmake:            3.27.7::gentoo
dev-util/meson:            1.2.3::gentoo
sys-apps/baselayout:       2.14::gentoo
sys-apps/openrc:           0.48::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/autoconf:        2.13-r7::gentoo, 2.71-r6::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.40-r9::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.6::gentoo
sys-devel/gcc:             10.5.0::gentoo, 11.4.1_p20230824::gentoo, 12.3.1_p20230825::gentoo, 13.2.1_p20231014::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             15.0.7::gentoo
sys-devel/llvm:            14.0.6-r4::gentoo, 15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.6::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.6::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r7::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24

local
    location: /var/db/repos/local
    masters: gentoo
    priority: 10000
    volatile: False

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
AR="gcc-ar"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -mtune=native -O2 -pipe -Wa,-mbranches-within-32B-boundaries "
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.9/conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.1/ext-active/ /etc/php/cgi-php8.1/ext-active/ /etc/php/cli-php8.1/ext-active/ /etc/php/fpm-php8.1/ext-active/ /etc/php/phpdbg-php8.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core2 -mtune=native -O2 -pipe -Wa,-mbranches-within-32B-boundaries "
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--alert y 			--alphabetical 			--ask-enter-invalid 			--autounmask y  	--autounmask-only n  			--autounmask-unrestricted-atoms y  			--autounmask-write y              --complete-graph y  			--misspell-suggestions n 			--noconfmem 			--nospinner  			--tree	--with-bdeps y"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-march=core2 -mtune=native -O2 -pipe -Wa,-mbranches-within-32B-boundaries "
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live compress-build-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms split-elog strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-march=core2 -mtune=native -O2 -pipe -Wa,-mbranches-within-32B-boundaries "
GENTOO_MIRRORS="http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/     http://ftp.halifax.rwth-aachen.de/gentoo/     http://ftp.free.fr/mirrors/ftp.gentoo.org/     http://mirrors.soeasyto.com/distfiles.gentoo.org/     http://gentoo.mirrors.ovh.net/gentoo-distfiles/     http://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/     http://mirror.leaseweb.com/gentoo/     http://www.mirrorservice.org/sites/distfiles.gentoo.org/     http://ftp.belnet.be/pub/rsync.gentoo.org/gentoo/     http://mirror.bytemark.co.uk/gentoo/"
LANG="fr_FR.utf8"
LDFLAGS="-Wl,-O1 -Wl,-fuse-ld=bfd "
LEX="flex"
LINGUAS="fr"
MAKEOPTS="-j3 -l3"
NM="gcc-nm"
PKGDIR="/var/cache/binpkgs"
PORTAGE_COMPRESS="lzma"
PORTAGE_COMPRESS_FLAGS="-9"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
RANLIB="gcc-ranlib"
SHELL="/bin/bash"
USE="amd64 asm custom-cflags emacs fortran gentoo-vm gtk-doc minimal ocamlopt split-usr test-rust verify-sig" ABI_X86="64" ALSA_CARDS="hda-intel" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" L10N="fr" LUA_SINGLE_TARGET="lua5-4" LUA_TARGETS="lua5-4" PHP_TARGETS="php8-1" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" QEMU_USER_TARGETS="aarch64" RUBY_TARGETS="ruby31" VIDEO_CARDS="intel"
Unset:  ADDR2LINE, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

=================================================================
                        Package Settings
=================================================================

app-text/qpdf-11.5.0::gentoo was built with the following:
USE="-doc -examples -gnutls -ssl -test" ABI_X86="(64)"
CFLAGS="-march=native -O2 -pipe -Wa,-mbranches-within-32B-boundaries"
CXXFLAGS="-march=native -O2 -pipe -Wa,-mbranches-within-32B-boundaries"
FEATURES="ipc-sandbox userfetch news compress-build-logs qa-unresolved-soname-deps buildpkg-live fixlafiles unmerge-logs distlocks parallel-fetch assume-digests protect-owned unknown-features-warn usersandbox config-protect-if-modified binpkg-logs network-sandbox merge-sync unmerge-orphans preserve-libs sfperms split-elog binpkg-dostrip ebuild-locks pid-sandbox userpriv multilib-strict binpkg-docompress usersync sandbox strict"
Comment 1 Ellen Emilia Anna Zscheile 2023-12-11 20:15:20 UTC
relevant lines from `libqpdf/CMakeLists.txt` (around 277)

```
if(FOUND_CRYPTO)
  if(NOT DEFAULT_CRYPTO)
    # The preferred order of crypto providers is documented in
    # manual/installation.rst in the crypto.build section.
    if(USE_CRYPTO_GNUTLS)
      set(DEFAULT_CRYPTO "gnutls")
    elseif(USE_CRYPTO_OPENSSL)
      set(DEFAULT_CRYPTO "openssl")
    else()
      set(DEFAULT_CRYPTO "native")
    endif()
  endif()
else()
  message(SEND_ERROR "no crypto provider is available")
  set(ANYTHING_MISSING 1)
endif()
if(ANYTHING_MISSING)
  message(FATAL_ERROR "Missing dependencies; unable to continue")
endif()

message(STATUS "")
message(STATUS "*** Crypto Summary ***")
message(STATUS "  GNU TLS crypto enabled: " ${USE_CRYPTO_GNUTLS})
message(STATUS "  OpenSSL crypto enabled: " ${USE_CRYPTO_OPENSSL})
message(STATUS "  Native crypto enabled: " ${USE_CRYPTO_NATIVE})
message(STATUS "  Default crypto: " ${DEFAULT_CRYPTO})
message(STATUS "")
```
Comment 2 CaptainBlood 2023-12-12 18:38:05 UTC
@Alain Zscheile
Thks for raising my mistake & clarification.
Comment 3 Larry the Git Cow gentoo-dev 2023-12-15 06:18:04 UTC
The bug has been closed via the following commit(s):

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

commit d33c07cfd2e08d000cf53042c355431f6be4d88f
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-12-15 06:16:47 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-12-15 06:17:32 +0000

    app-text/qpdf: require SSL
    
    Non-SSL builds appear to either be unsupported upstream or not work at all (perhaps
    even not supposed to work).
    
    Closes: https://bugs.gentoo.org/919676
    Signed-off-by: Sam James <sam@gentoo.org>

 .../{qpdf-11.6.3.ebuild => qpdf-11.6.3-r1.ebuild}  | 22 +++++++++-------------
 1 file changed, 9 insertions(+), 13 deletions(-)