Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 722532 - dev-libs/libressl[static-libs]: missing dep on sys-libs/zlib[static-libs] (was: sys-fs/cryptsetup-2.3.2[static,libressl] seems to need sys-libs/zlib[static-libs], even though it doesn't depend on it)
Summary: dev-libs/libressl[static-libs]: missing dep on sys-libs/zlib[static-libs] (wa...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal
Assignee: Gentoo LibreSSL
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-11 19:02 UTC by Mateusz Majewski
Modified: 2021-04-30 21:11 UTC (History)
1 user (show)

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


Attachments
Build log of sys-fs/cryptsetup failed build (cs_log,115.09 KB, text/plain)
2020-05-11 19:03 UTC, Mateusz Majewski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mateusz Majewski 2020-05-11 19:02:41 UTC
Trying to build

[ebuild   R    ] sys-libs/zlib-1.2.11-r2:0/1::gentoo  USE="minizip (split-usr) -static-libs*" ABI_X86="32 (64) (-x32)" 0 KiB
[ebuild   R    ] sys-fs/cryptsetup-2.3.2:0/12::gentoo  USE="argon2 libressl nls openssl pwquality static udev urandom -gcrypt -kernel -luks1_default -nettle -reencrypt -static-libs" 0 KiB

results in

/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lz

Once sys-libs/zlib is forced to build with the static-libs USE flag, sys-fs/cryptsetup[static] builds correctly.

Reproducible: Always

Steps to Reproduce:
1. Compile sys-libs/zlib[-static-libs]
2. Try to compile sys-fs/cryptsetup-2.3.2[static]
Actual Results:  
sys-fs/cryptsetup-2.3.2[static] fails to build with

/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lz

Expected Results:  
It should build, probably requiring sys-libs/zlib[static-libs] to be set.

Portage 2.3.99 (python 3.8.2-final-0, default/linux/amd64/17.1, gcc-9.3.0, glibc-2.31-r2, 5.4.28-1-lts x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.4.28-1-lts-x86_64-Intel-R-_Core-TM-_i5-2520M_CPU_@_2.50GHz-with-glibc2.2.5
KiB Mem:    16279728 total,  11240508 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Mon, 11 May 2020 08:41:13 +0000
Head commit of repository gentoo: 14fdc4aa0f380fa46f7d0e4f1534004e385b5ba2

Timestamp of repository haskell: Thu, 07 May 2020 21:35:19 +0000
Head commit of repository haskell: 496566ce98f84edf122c9d591f568449fb61b92d

Timestamp of repository mv: Sun, 10 May 2020 17:05:27 +0000
Head commit of repository mv: 9f79721e7a5fd28ba9c2eb4667fab6b90c649240

Timestamp of repository steam-overlay: Fri, 01 May 2020 10:40:34 +0000
Head commit of repository steam-overlay: d9f36ed6e2975246eda02ea00c1697fe5f58ee92

sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.34 p1) 2.34.0
app-shells/bash:          4.4_p23-r1::gentoo
dev-lang/perl:            5.30.2::gentoo
dev-lang/python:          2.7.18::gentoo, 3.7.7-r2::mv, 3.8.2-r2::gentoo
dev-util/cmake:           3.17.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.69-r5::gentoo
sys-devel/automake:       1.16.2::gentoo
sys-devel/binutils:       2.34::gentoo
sys-devel/gcc:            9.3.0::gentoo
sys-devel/gcc-config:     2.2.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.6::gentoo (virtual/os-headers)
sys-libs/glibc:           2.31-r2::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000

haskell
    location: /var/db/repos/haskell
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/haskell.git
    masters: gentoo
    priority: 50

mv
    location: /var/db/repos/mv
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/mv.git
    masters: gentoo
    priority: 50

steam-overlay
    location: /var/db/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -falign-functions=32 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=native -falign-functions=32 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--alert --ask-enter-invalid --autounmask --autounmask-backtrack=y --autounmask-keep-masks=y --backtrack=50 --binpkg-changed-deps=y --binpkg-respect-use=y --jobs=3 --keep-going --load-average=2 --usepkg"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg candy cgroup config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.netcologne.de/gentoo/ http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://gentoo.modulix.net/gentoo/ http://tux.rainside.sk/gentoo/ rsync://ftp.halifax.rwth-aachen.de/gentoo/ http://mirror.yandex.ru/gentoo-distfiles/ https://mirrors.evowise.com/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://212.110.163.12/gentoo/ ftp://mirror.bytemark.co.uk/gentoo/ ftp://ftp.ntua.gr/pub/linux/gentoo/ https://104.22.4.179/gentoo/ http://ftp.romnet.org/gentoo/ http://gentoo.mirror.web4u.cz/ http://mirror.leaseweb.com/gentoo/"
LANG="pl_PL.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/var/cache/binpkgs"
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"
USE="X aac acl acpi amd64 berkdb bluetooth bzip2 cairo cjk cli crypt cryptsetup cups dbus djvu dri elogind encode exif fam fish-completion flac fontconfig fortran gd gdbm gif git graphicsmagick gstreamer ibus iconv icu idn inotify ipv6 jit joystick jpeg jpeg2k latex libnotify libressl libtirpc lto luajit mad matroska mng mp3 mp4 mpeg multilib musepack ncurses nls nptl ogg openexr opengl openmp opus orc pam pcre pdf pgo png ppds pulseaudio raw readline seccomp split-usr ssl startup-notification svg tcpd threads tiff truetype unicode usb vaapi vdpau vorbis webp x264 xattr xcomposite xv xvid zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en ja pl" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python3_8" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="intel i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

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

sys-fs/cryptsetup-2.3.2::gentoo was built with the following:
USE="argon2 libressl nls openssl pwquality static udev urandom -gcrypt -kernel -luks1_default -nettle -reencrypt -static-libs" ABI_X86="(64)"
Comment 1 Mateusz Majewski 2020-05-11 19:03:36 UTC
Created attachment 638242 [details]
Build log of sys-fs/cryptsetup failed build
Comment 2 Thomas Deutschmann (RETIRED) gentoo-dev 2021-03-29 14:18:39 UTC
This is caused by USE=libressl.

You don't need sys-libs/zlib[static-libs] to build sys-fs/cryptsetup[static,kernel] for example. Once you enable USE=openssl it would pull in zlib[static-libs] via OpenSSL. But dev-libs/libressl doesn't do that.