View previous topic :: View next topic |
Author |
Message |
dpaddy Apprentice

Joined: 25 Jun 2008 Posts: 176
|
Posted: Sat Mar 08, 2025 8:22 pm Post subject: [SOLVED] circular dependencies |
|
|
I am at the point in the handbook where the following is appropriate Code: | emerge --ask sys-kernel/gentoo-kernel | but that fails Quote: | * Error: circular dependencies:
(net-misc/curl-8.11.1-r2:0/0::gentoo, ebuild scheduled for merge) depends on
(net-libs/nghttp2-1.64.0:0/1.14::gentoo, ebuild scheduled for merge) (buildtime_slot_op)
(dev-build/cmake-3.31.5:0/0::gentoo, ebuild scheduled for merge) (buildtime)
(net-misc/curl-8.11.1-r2:0/0::gentoo, ebuild scheduled for merge) (buildtime)
It might be possible to break this cycle
by applying the following change:
- net-misc/curl-8.11.1-r2 (Change USE: -http2)
| After following the advice... Code: | cat /etc/portage/package.use/curl
=net-misc/curl-8.11.1-r2 -http2 | I get Quote: | * Error: circular dependencies:
(net-misc/curl-8.11.1-r2:0/0::gentoo, ebuild scheduled for merge) depends on
(net-libs/nghttp3-1.7.0:0/0::gentoo, ebuild scheduled for merge) (buildtime)
(dev-build/cmake-3.31.5:0/0::gentoo, ebuild scheduled for merge) (buildtime)
(net-misc/curl-8.11.1-r2:0/0::gentoo, ebuild scheduled for merge) (buildtime)
* Note that circular dependencies can often be avoided by temporarily
* disabling USE flags that trigger optional dependencies. | I have been flailing around trying to resolve this without success. How can I proceed?
Last edited by dpaddy on Sat Mar 08, 2025 9:41 pm; edited 1 time in total |
|
Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 55029 Location: 56N 3W
|
Posted: Sat Mar 08, 2025 8:58 pm Post subject: |
|
|
dpaddy,
Remove /etc/portage/package.use/curl
Try Code: | USE=-http2 emergo -1av net-misc/curl |
That turns off http2 for just this one command.
If that runs, yoh back to your original emerge, which should be happy to rubuild curl with USE=http2 using your installed curl (without http2) _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
 |
dpaddy Apprentice

Joined: 25 Jun 2008 Posts: 176
|
Posted: Sat Mar 08, 2025 9:16 pm Post subject: |
|
|
No joy... Code: | USE="-http2" emerge -1av net-misc/curl
* IMPORTANT: 17 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
These are the packages that would be merged, in order:
Calculating dependencies... done!
Dependency resolution took 1.32 s (backtrack: 1/20).
[nomerge ] net-misc/curl-8.11.1-r2::gentoo USE="adns alt-svc ftp hsts http3 imap openssl pop3 progress-meter psl quic smtp ssl tftp websockets -brotli -debug -gnutls -gopher -http2 -idn -kerberos -ldap -mbedtls -rtmp (-rustls) -samba -ssh (-sslv3) -static-libs -telnet -test -verify-sig -zstd" ABI_X86="(64) -32 (-x32)" CURL_QUIC="openssl -ngtcp2" CURL_SSL="openssl -gnutls -mbedtls (-rustls)"
[ebuild N ] net-libs/nghttp3-1.7.0::gentoo USE="-static-libs -test" ABI_X86="(64) -32 (-x32)" 387 KiB
[ebuild N ] dev-build/cmake-3.31.5::gentoo USE="ncurses -dap -doc -gui -test -verify-sig" 11982 KiB
[ebuild N ] net-misc/curl-8.11.1-r2::gentoo USE="adns alt-svc ftp hsts http3 imap openssl pop3 progress-meter psl quic smtp ssl tftp websockets -brotli -debug -gnutls -gopher -http2 -idn -kerberos -ldap -mbedtls -rtmp (-rustls) -samba -ssh (-sslv3) -static-libs -telnet -test -verify-sig -zstd" ABI_X86="(64) -32 (-x32)" CURL_QUIC="openssl -ngtcp2" CURL_SSL="openssl -gnutls -mbedtls (-rustls)" 2687 KiB
Total: 3 packages (3 new), Size of downloads: 15055 KiB
* Error: circular dependencies:
(net-libs/nghttp3-1.7.0:0/0::gentoo, ebuild scheduled for merge) depends on
(dev-build/cmake-3.31.5:0/0::gentoo, ebuild scheduled for merge) (buildtime)
(net-misc/curl-8.11.1-r2:0/0::gentoo, ebuild scheduled for merge) (buildtime)
(net-libs/nghttp3-1.7.0:0/0::gentoo, ebuild scheduled for merge) (buildtime)
* Note that circular dependencies can often be avoided by temporarily
* disabling USE flags that trigger optional dependencies.
|
I thought indicated that net-misc/curl-8.11.1-r2::gentoo is already installed... but the above is trying to install net-misc/curl-8.11.1-r2:0/0::gentoo . Is this somehow a clue, should I deselect and depclean to remove something (I dont understand any of this). |
|
Back to top |
|
 |
grknight Retired Dev

Joined: 20 Feb 2015 Posts: 2058
|
Posted: Sat Mar 08, 2025 9:33 pm Post subject: |
|
|
[quote="dpaddy"] Code: | cat /etc/portage/package.use/curl
=net-misc/curl-8.11.1-r2 -http2 | I get Quote: | * Error: circular dependencies:
(net-misc/curl-8.11.1-r2:0/0::gentoo, ebuild scheduled for merge) depends on
(net-libs/nghttp3-1.7.0:0/0::gentoo, ebuild scheduled for merge) (buildtime)
(dev-build/cmake-3.31.5:0/0::gentoo, ebuild scheduled for merge) (buildtime)
(net-misc/curl-8.11.1-r2:0/0::gentoo, ebuild scheduled for merge) (buildtime)
|
Make that package.use line (temporarily): /etc/portage/package.use/curl: | =net-misc/curl-8.11.1-r2 -http2 -http3 -quic -curl_quic_openssl |
Then delete it once net-misc/curl is installed. |
|
Back to top |
|
 |
dpaddy Apprentice

Joined: 25 Jun 2008 Posts: 176
|
Posted: Sat Mar 08, 2025 9:40 pm Post subject: |
|
|
Lifesaver! I was nearly about to try (for the third time) starting from the beginning of the handbook. Many thanks  |
|
Back to top |
|
 |
Naix n00b

Joined: 28 Feb 2024 Posts: 4
|
Posted: Sat Mar 15, 2025 7:05 am Post subject: |
|
|
dpaddy wrote: | Lifesaver! I was nearly about to try (for the third time) starting from the beginning of the handbook. Many thanks  |
If you were to do this it wouldn't help, it happens at the start on a fairly vanilla install even when you execute Code: | emerge --verbose --update --deep --newuse @world | seems like the issue exist in the stage3-amd64-hardened-openrc-20250309T170330Z.tar.xz not sure if it exists for the other stage3 tarballs I'm putting off deploying a new VM for now until they update the tarball again. _________________ Kind regards, Naix |
|
Back to top |
|
 |
sam_ Developer


Joined: 14 Aug 2020 Posts: 2227
|
Posted: Tue Mar 18, 2025 4:07 pm Post subject: |
|
|
See bug 951525 and bug 951524. In this case, we were aware of it before I filed those bugs (I just filed them as I wanted a reference when committing), but if something has been going on for a while, and affects a "default installation", you should file a bug.
I also don't think you need a new tarball here. The issue was in the repository, not the contents of the stage3. It should be fixed now (but isn't in the latest emerge-webrsync snapshot, it will be tonight; you'll need to emerge --sync instead). |
|
Back to top |
|
 |
|