Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] circular dependencies
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
dpaddy
Apprentice
Apprentice


Joined: 25 Jun 2008
Posts: 176

PostPosted: Sat Mar 08, 2025 8:22 pm    Post subject: [SOLVED] circular dependencies Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 55029
Location: 56N 3W

PostPosted: Sat Mar 08, 2025 8:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
dpaddy
Apprentice
Apprentice


Joined: 25 Jun 2008
Posts: 176

PostPosted: Sat Mar 08, 2025 9:16 pm    Post subject: Reply with quote

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
Quote:
[nomerge ]
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
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 2058

PostPosted: Sat Mar 08, 2025 9:33 pm    Post subject: Reply with quote

[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
View user's profile Send private message
dpaddy
Apprentice
Apprentice


Joined: 25 Jun 2008
Posts: 176

PostPosted: Sat Mar 08, 2025 9:40 pm    Post subject: Reply with quote

Lifesaver! I was nearly about to try (for the third time) starting from the beginning of the handbook. Many thanks :D
Back to top
View user's profile Send private message
Naix
n00b
n00b


Joined: 28 Feb 2024
Posts: 4

PostPosted: Sat Mar 15, 2025 7:05 am    Post subject: Reply with quote

dpaddy wrote:
Lifesaver! I was nearly about to try (for the third time) starting from the beginning of the handbook. Many thanks :D

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
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 2227

PostPosted: Tue Mar 18, 2025 4:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum