Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 648378 - app-arch/libarchive[lz4] and dev-util/cmake circular build dependency
Summary: app-arch/libarchive[lz4] and dev-util/cmake circular build dependency
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo/BSD Team
Depends on:
Reported: 2018-02-21 11:26 UTC by Kalin KOZHUHAROV
Modified: 2018-02-21 20:46 UTC (History)
1 user (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Kalin KOZHUHAROV 2018-02-21 11:26:03 UTC
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`