Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 698254 - app-arch/libarchive-3.4.0: missing dependency on app-crypt/libb2 - (was: kde-frameworks/karchive-5.63.0: error while loading shared libraries: libb2.so.1: cannot open shared object file: No such file or directory)
Summary: app-arch/libarchive-3.4.0: missing dependency on app-crypt/libb2 - (was: kde-...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Michał Górny
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2019-10-22 11:36 UTC by Alexis Lahouze
Modified: 2019-10-27 17:11 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexis Lahouze 2019-10-22 11:36:27 UTC
I am using the profile "default/linux/amd64/17.0/desktop/plasma" and keyword ~amd64 in Catalyst.

While trying to build karchive 5.63.0, I got the following error:

cmake -C /var/tmp/portage/kde-frameworks/karchive-5.63.0/work/karchive-5.63.0_build/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TESTING=OFF -DBUILD_QCH=no -DKDE_INSTALL_USE_QT_SYS_PATHS=ON -DKDE_INSTALL_DOCBUNDLEDIR=/usr/share/help -DCMAKE_DISABLE_FIND_PACKAGE_BZip2=OFF -DCMAKE_DISABLE_FIND_PACKAGE_LibLZMA=OFF -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/kde-frameworks/karchive-5.63.0/work/karchive-5.63.0_build/gentoo_toolchain.cmake  /var/tmp/portage/kde-frameworks/karchive-5.63.0/work/karchive-5.63.0
cmake: error while loading shared libraries: libb2.so.1: cannot open shared object file: No such file or directory
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2019-10-22 11:48:26 UTC
(In reply to Alexis Lahouze from comment #0)
> I am using the profile "default/linux/amd64/17.0/desktop/plasma" and keyword
> ~amd64 in Catalyst.

You should post your `emerge --info` output in a comment.

> While trying to build karchive 5.63.0, I got the following error:

You should attach the entire build log to this bug report.

> cmake -C
> /var/tmp/portage/kde-frameworks/karchive-5.63.0/work/karchive-5.63.0_build/
> gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr
> -DBUILD_TESTING=OFF -DBUILD_QCH=no -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
> -DKDE_INSTALL_DOCBUNDLEDIR=/usr/share/help
> -DCMAKE_DISABLE_FIND_PACKAGE_BZip2=OFF
> -DCMAKE_DISABLE_FIND_PACKAGE_LibLZMA=OFF -DCMAKE_BUILD_TYPE=Gentoo
> -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/kde-frameworks/karchive-5.63.0/work/
> karchive-5.63.0_build/gentoo_toolchain.cmake 
> /var/tmp/portage/kde-frameworks/karchive-5.63.0/work/karchive-5.63.0
> cmake: error while loading shared libraries: libb2.so.1: cannot open shared
> object file: No such file or directory

This looks like cmake itself is linked to libb2, and karchive just happens to be the package that exposed this cmake linkage problem.
Comment 2 Alexis Lahouze 2019-10-22 16:40:04 UTC
The build.log is not available because Catalyst uses a tmpfs and unmounts it even if the build failed.

Anyway it seems you are right concerning the link issue in cmake:

# chroot /var/lib/catalyst/store/tmp/default/stage4-amd64-latest ldd /usr/bin/cmake | grep libb2
        libb2.so.1 => not found

So it is not a dependency issue, but I don't know why I got it now (several hundreds of packages were previously built without any issue). I will try to force a cmake rebuild.

Here is the emerge --info in the Catalyst tree:

# chroot /var/lib/catalyst/store/tmp/default/stage4-amd64-latest emerge --info
Portage 2.3.78 (python 3.7.5-final-0, default/linux/amd64/17.0/desktop/plasma, gcc-9.2.0, glibc-2.29-r5, 4.15.11-mainline-rev1 x86_64)                                                                                               [18/8303]
=================================================================
System uname: Linux-4.15.11-mainline-rev1-x86_64-Intel-R-_Atom-TM-_CPU_C2750_@_2.40GHz-with-gentoo-2.6                                                                                                                                        KiB Mem:    32859028 total,  19915928 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Tue, 22 Oct 2019 00:45:01 +0000                                                                                                                                                                               Head commit of repository gentoo: 8354a5571f6e2e57f5a9fdd0eeae085f902c3442                                                                                                                                                                    sh bash 5.0_p11                                                                                                                                                                                                                               ld GNU ld (Gentoo 2.32 p2) 2.32.0                                                                                                                                                                                                             app-shells/bash:          5.0_p11::gentoo                                                                                                                                                                                                     dev-lang/perl:            5.30.0::gentoo                                                                                                                                                                                                      dev-lang/python:          2.7.16::gentoo, 3.6.9::gentoo, 3.7.5-r1::gentoo                                                                                                                                                                     dev-util/cmake:           3.15.4::gentoo                                                                                                                                                                                                      sys-apps/baselayout:      2.6-r1::gentoo                                                                                                                                                                                                      sys-apps/sandbox:         2.18::gentoo                                                                                                                                                                                                        sys-devel/autoconf:       2.69-r4::gentoo                                                                                                                                                                                                    sys-devel/automake:       1.16.1-r1::gentoo                                                                       
sys-devel/binutils:       2.32-r1::gentoo                                                                                                                                                                           
sys-devel/gcc:            9.2.0-r1::gentoo
sys-devel/gcc-config:     2.1::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r5::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts:
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/var/cache/portage/distfiles"
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 config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protec
t-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/var/cache/portage/packages"
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 a52 aac acl acpi activities alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr clang cli consolekit crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam flac fortran gdbm gif glamor gphoto2 gpm gtk iconv i
cu ipv6 jpeg kde kipi kwallet lcms ldap libnotify libtirpc lm-sensors lm_sensors lzma mad matroska mng mp3 mp4 mpeg mtp multilib ncurses networkmanager nls nptl nsplugin ofx ogg openexr opengl openh264 openmp opus pam pango pcre pdf phono
n plasma pm-utils png policykit postgres ppds pulseaudio python qml qt5 readline samba sdl seccomp semantic-desktop spell split-usr sqlite ssl startup-notification svg taglib tcpd theora tiff truetype udev udisks unicode upnp upower usb v
4l vorbis vpx widgets wxwidgets x264 x265 xattr xcb xcomposite xft xml xv xvid zeroconf zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 f
m801 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_ma
gic 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="mmx mmxext sse sse2" 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 ub
x" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" L10N="en fr" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="ap
isupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARG
ET="python3_6" PYTHON_TARGETS="python2_7 python3_6 python3_7" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Andreas Sturmlechner gentoo-dev 2019-10-27 12:25:46 UTC
Checking dependencies of kde-frameworks/karchive, this seems to be coming from >=app-arch/libarchive-3.4.0 - reassigning.
Comment 4 Larry the Git Cow gentoo-dev 2019-10-27 17:11:21 UTC
The bug has been closed via the following commit(s):

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

commit e579b8f0f365f663bc64c53ad70d282763d09aa3
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2019-10-27 13:28:26 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2019-10-27 17:11:16 +0000

    app-arch/libarchive: Add explicit flag for blake2 (libb2)
    
    Closes: https://bugs.gentoo.org/698254
    Signed-off-by: Michał Górny <mgorny@gentoo.org>
    Closes: https://github.com/gentoo/gentoo/pull/13466
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 app-arch/libarchive/libarchive-3.4.0.ebuild | 4 +++-
 app-arch/libarchive/metadata.xml            | 3 +++
 2 files changed, 6 insertions(+), 1 deletion(-)