I recently run into this situation on a newish system: ```` # emerge wireshark -avtq [ebuild N ] net-analyzer/wireshark-2.4.3-r1:0/2.4.3::gentoo USE="capinfos caps captype dftest dumpcap editcap filecaps geoip libssh lz4 mergecap netlink nghttp2 pcap portaudio randpkt randpktdump reordercap sharkd smi spandsp sshdump ssl text2pcap tfshark tshark udpdump zlib -adns -androiddump -ciscodump -doc -doc-pdf -gtk -kerberos -libxml2 -lua -qt5 -sbc (-selinux) -snappy" CPU_FLAGS_X86="sse4_2" 0 KiB [ebuild N ] net-libs/libssh-0.7.4:0/4::gentoo USE="sftp zlib -debug -doc -examples -gcrypt -gssapi -libressl -pcap -server -ssh1 -static-libs {-test}" ABI_X86="(64) -32 (-x32)" 0 KiB [ebuild N ] dev-util/cmake-3.9.6::gentoo USE="ncurses -doc -emacs -qt5 -server -system-jsoncpp {-test}" 0 KiB [ebuild N ] app-arch/libarchive-3.3.1:0/13::gentoo USE="acl bzip2 e2fsprogs iconv lz4 lzma lzo threads xattr zlib -expat -libressl -nettle -static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB [ebuild N ] app-arch/lz4-1.8.0:0/r131::gentoo USE="-static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB Total: 5 packages (5 new), Size of downloads: 0 KiB * Error: circular dependencies: (dev-util/cmake-3.9.6:0/0::gentoo, ebuild scheduled for merge) depends on (app-arch/libarchive-3.3.1:0/13::gentoo, ebuild scheduled for merge) (buildtime_slot_op) (app-arch/lz4-1.8.0:0/r131::gentoo, ebuild scheduled for merge) (buildtime_slot_op) (dev-util/cmake-3.9.6:0/0::gentoo, ebuild scheduled for merge) (buildtime) It might be possible to break this cycle by applying the following change: - app-arch/libarchive-3.3.1 (Change USE: -lz4) Note that this change can be reverted, once the package has been installed. ```` It can be sidestepped with `USE="-lz4 -lzo" emerge libarchive -avtq; emerge wireshark -avtq`
cmake and libarchive has circular build-time dependency on new system with zstd or lz4 use enabled (need disable this flags for libarchive when building cmake first time). cmake provides libarchive dependency in tarball, so i think, we need add system-libs use flag to prevent dependency problems