Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Circular dependencies
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Proinsias
Tux's lil' helper
Tux's lil' helper


Joined: 06 Oct 2014
Posts: 133
Location: Scotland

PostPosted: Thu Oct 13, 2016 1:45 am    Post subject: Circular dependencies Reply with quote

I first noticed a problem with portage complaining about cups-filters around 2 weeks ago and wasn't able to resolve it. I was away for a while and found an issue with adwaita/gtk on my reutrn. I've removed packages & overlays, tried altering package.use, package.mask, package.unmask alongside a good deal of --back-track=300 and --keep-going. I seem to have made what may have been a small l issue larger by removing my plex media server, chunks of my cinnamon de and others in an attempt to keep portage happy, my menu pop up is pretty sparse now I think I've removed the theme engine responsible adwaita. Any help is appreciated.

emerge --info
https://paste.pound-python.org/show/5YWbaSWSnPsX0kbD5j17/
Code:
emerge -auDNp @world

These are the packages that would be merged, in order:

Calculating dependencies... done!


[nomerge       ] media-gfx/ufraw-0.22::gentoo  USE="gtk openmp -contrast -fits -gimp -gnome -timezone"
[ebuild   R    ]  media-gfx/gtkimageview-1.6.4::gentoo  USE="-examples -static-libs (-debug%) (-doc%) (-test%)" 0 KiB
[ebuild   R    ] www-client/firefox-49.0::gentoo  USE="dbus gmp-autoupdate hwaccel jemalloc jit skia startup-notification -bindist* -custom-cflags -custom-optimization -debug -gtk2 -hardened (-neon) -pgo -pulseaudio (-selinux) (-system-cairo) -system-harfbuzz -system-icu -system-jpeg -system-libevent -system-libvpx -system-sqlite {-test} -wifi" L10N="-ach -af -an -ar -as -ast -az -be -bg -bn-BD -bn-IN -br -bs -ca -cak% -cs -cy -da -de -dsb% -el -en-GB -en-ZA -eo -es-AR -es-CL -es-ES -es-MX -et -eu -fa -ff% -fi -fr -fy -ga -gd -gl -gn% -gu -he -hi -hr -hsb -hu -hy -id -is -it -ja -kk -km -kn -ko -lij% -lt -lv -mai -mk -ml -mr -ms -nb -nl -nn -or -pa -pl -pt-BR -pt-PT -rm -ro -ru -si -sk -sl -son -sq -sr -sv -ta -te -th -tr -uk -uz -vi -xh -zh-CN -zh-TW" 0 KiB
[ebuild     U  ] mail-client/thunderbird-45.4.0::gentoo [45.3.0-r2::gentoo] USE="crypt dbus gstreamer jemalloc3 jit ldap minimal startup-notification -bindist*
-custom-cflags -custom-optimization -debug -ffmpeg -gstreamer-0 -hardened -lightning -mozdom (-neon) -pulseaudio (-selinux) (-system-cairo) -system-harfbuzz -system-icu -system-jpeg -system-libevent -system-libvpx -system-sqlite" L10N="-ar -ast -be -bg -bn-BD -br -ca -cs -cy -da -de -el -en-GB -es-AR -es-ES -et -eu -fi -fr -fy -ga -gd -gl -he -hr -hsb -hu -hy -id -is -it -ja -ko -lt -nb -nl -nn -pa -pl -pt-BR -pt-PT -rm -ro -ru -si -sk -sl -sq -sr -sv -ta-LK -tr -uk -vi -zh-CN -zh-TW" 0 KiB
[nomerge       ] x11-libs/gtk+-2.24.31-r1:2::gentoo [3.20.9:3::gentoo] USE="cups introspection (-aqua) -examples {-test} -vim-syntax -xinerama" ABI_X86="(64) -32 (-x32)"
[ebuild  N     ]  x11-themes/gtk-engines-adwaita-3.20.2::gentoo  ABI_X86="(64) -32 (-x32)" 0 KiB
[nomerge       ] mail-client/thunderbird-45.4.0::gentoo [45.3.0-r2::gentoo] USE="crypt dbus gstreamer jemalloc3 jit ldap minimal startup-notification -bindist*
-custom-cflags -custom-optimization -debug -ffmpeg -gstreamer-0 -hardened -lightning -mozdom (-neon) -pulseaudio (-selinux) (-system-cairo) -system-harfbuzz -system-icu -system-jpeg -system-libevent -system-libvpx -system-sqlite" L10N="-ar -ast -be -bg -bn-BD -br -ca -cs -cy -da -de -el -en-GB -es-AR -es-ES -et -eu -fi -fr -fy -ga -gd -gl -he -hr -hsb -hu -hy -id -is -it -ja -ko -lt -nb -nl -nn -pa -pl -pt-BR -pt-PT -rm -ro -ru -si -sk -sl -sq -sr -sv -ta-LK -tr -uk -vi -zh-CN -zh-TW"
[nomerge       ]  app-crypt/gnupg-2.1.15::gentoo  USE="bzip2 gnutls ldap nls readline usb -doc (-selinux) -smartcard -tofu -tools"
[ebuild   R    ]   app-crypt/pinentry-0.9.7-r1::gentoo  USE="gtk ncurses qt4 -caps -emacs -gnome-keyring* -qt5 -static" 0 KiB
[ebuild  NS    ]    x11-libs/gtk+-2.24.31-r1:2::gentoo [3.20.9:3::gentoo] USE="cups introspection (-aqua) -examples {-test} -vim-syntax -xinerama" ABI_X86="(64) -32 (-x32)" 0 KiB

Total: 6 packages (1 upgrade, 1 new, 1 in new slot, 3 reinstalls), Size of downloads: 0 KiB

 * Error: circular dependencies:

(x11-libs/gtk+-2.24.31-r1:2/2::gentoo, ebuild scheduled for merge) depends on
 (x11-themes/gtk-engines-adwaita-3.20.2:0/0::gentoo, ebuild scheduled for merge) (runtime)
  (x11-libs/gtk+-2.24.31-r1:2/2::gentoo, ebuild scheduled for merge) (buildtime)

 * Note that circular dependencies can often be avoided by temporarily
 * disabling USE flags that trigger optional dependencies.
Back to top
View user's profile Send private message
dantrell
l33t
l33t


Joined: 01 Jun 2007
Posts: 915
Location: Earth

PostPosted: Thu Oct 13, 2016 2:08 am    Post subject: Re: Circular dependencies Reply with quote

Proinsias wrote:
I was away for a while and found an issue with adwaita/gtk on my reutrn.

Code:
(x11-libs/gtk+-2.24.31-r1:2/2::gentoo, ebuild scheduled for merge) depends on
 (x11-themes/gtk-engines-adwaita-3.20.2:0/0::gentoo, ebuild scheduled for merge) (runtime)
  (x11-libs/gtk+-2.24.31-r1:2/2::gentoo, ebuild scheduled for merge) (buildtime

This is due to the changes implemented by Gentoo bug #569552. One way to resolve it in the tree is for x11-themes/gtk-engines-adwaita to move to PDEPEND as was indicated in comment #2.

Assuming you have the necessary dependencies installed, one way to resolve it locally is by running:

Code:
emerge --ask --nodeps --oneshot x11-libs/gtk+ x11-themes/gtk-engines-adwaita

before updating @world.
_________________
Dantrell B.
Back to top
View user's profile Send private message
Proinsias
Tux's lil' helper
Tux's lil' helper


Joined: 06 Oct 2014
Posts: 133
Location: Scotland

PostPosted: Thu Oct 13, 2016 2:17 am    Post subject: Reply with quote

local attempt fails:
https://paste.pound-python.org/show/YzG5D7YC0akhxqQTk8wM/
Back to top
View user's profile Send private message
dantrell
l33t
l33t


Joined: 01 Jun 2007
Posts: 915
Location: Earth

PostPosted: Thu Oct 13, 2016 2:47 am    Post subject: Reply with quote

Proinsias wrote:
local attempt fails:
https://paste.pound-python.org/show/YzG5D7YC0akhxqQTk8wM/

That was supposed to be:

Code:
emerge --ask --nodeps --oneshot x11-libs/gtk+:2 x11-themes/gtk-engines-adwaita

but because of --nodeps if you have the cups USE flag enabled, it will probably fail too. You can try dropping --nodeps or even:
Code:
USE="-cups" emerge --ask --nodeps --oneshot x11-libs/gtk+:2 x11-themes/gtk-engines-adwaita

after which the world update should correct everything else provided you don't actually have a cups problem too.
_________________
Dantrell B.
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1555
Location: Montréal

PostPosted: Thu Oct 13, 2016 8:12 am    Post subject: Reply with quote

Some packages depend on the gnome-themes-standard package and others depend on the gtk-engines-adwaita package. gnome-themes-standard include the Adwaita theme. As a consequence, gnome-themes-standard and gtk-engines-adwaita cannot be installed at the same time on Gentoo.

Because I have packages installed who depend on one or the other making the need for both to be installed, I have resolv the conflict by making gtk-engines-adwaita provided.
Code:
mkdir /etc/portage/profile
echo 'x11-themes/gtk-engines-adwaita-3.20.2' > /etc/portage/profile/package.provided

It have resolv the conflict until possibly a newest version of gtk-engines-adwaita because a package can only be provided per version not globally.
_________________
Paul
Back to top
View user's profile Send private message
dantrell
l33t
l33t


Joined: 01 Jun 2007
Posts: 915
Location: Earth

PostPosted: Thu Oct 13, 2016 5:07 pm    Post subject: Reply with quote

Logicien wrote:
As a consequence, gnome-themes-standard and gtk-engines-adwaita cannot be installed at the same time on Gentoo.

This is not correct. Those two packages do not conflict because they were split apart with no overlap. For details, check the git commits referenced in comment #3 and/or compare the new ebuilds with the old ones.

The issue here is a circular dependency which occurs on new and existing installs and should probably be reported on Gentoo bug #569552.
_________________
Dantrell B.
Back to top
View user's profile Send private message
Proinsias
Tux's lil' helper
Tux's lil' helper


Joined: 06 Oct 2014
Posts: 133
Location: Scotland

PostPosted: Thu Oct 13, 2016 5:42 pm    Post subject: Reply with quote

Thanks dantrell,
Code:
USE="-cups" emerge --ask --nodeps --oneshot x11-libs/gtk+:2 x11-themes/gtk-engines-adwaita

This got things moving again, but I still have a cups problem.
https://paste.pound-python.org/show/YquqA5SRd31km1EoYm8V/

edit: Just spotted another thread with a similar cups-filters issue, I also have:
Code:
equery  b pdftops pdftocairo
 * Searching for pdftops,pdftocairo ...
app-text/poppler-0.48.0 (/usr/bin/pdftocairo)
app-text/poppler-0.48.0 (/usr/bin/pdftops)
Back to top
View user's profile Send private message
dantrell
l33t
l33t


Joined: 01 Jun 2007
Posts: 915
Location: Earth

PostPosted: Thu Oct 13, 2016 6:25 pm    Post subject: Reply with quote

Proinsias wrote:
This got things moving again, but I still have a cups problem.
https://paste.pound-python.org/show/YquqA5SRd31km1EoYm8V/

Looks related to the new C++11 ABI. To get net-print/cups-filters to build, you need to at least rebuild app-text/qpdf first. So this might work:

Code:
emerge --ask --nodeps --oneshot app-text/qpdf net-print/cups-filters

However, unless you are really lucky, this issue impacts more than just net-print/cups-filters and you probably want to reference the relevant news release (GCC 5 Defaults to the New C++11 ABI).
_________________
Dantrell B.
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1555
Location: Montréal

PostPosted: Fri Oct 14, 2016 4:52 am    Post subject: Reply with quote

dantrell,

It is Emerge who tell me that gnome-themes-standard and gtk-engines-adwaita cannot be installed at the same time on Gentoo. I see that gnome-themes-standard install files in /usr/share/themes/Adwaita/gtk2.0. It may not overlap with gtk-engines-adwaita files. I have not install gtk-engines-adwaita, so I do not know the files the package contain precisely. I have think of a possible files conflict between those two packages.

Provide gtk-engines-adwaita to Emerge may be just a workaround until the conflict that Emerge talk about between the two packages will be resolv in Portage. I haven't sync Portage since a couple of days now.
_________________
Paul
Back to top
View user's profile Send private message
ct85711
Veteran
Veteran


Joined: 27 Sep 2005
Posts: 1791

PostPosted: Fri Oct 14, 2016 1:13 pm    Post subject: Reply with quote

One thing I will mention is that using the provided may not be the correct solution for this problem (a workaround, but that's it). What is going need to remember may be from completely different developers, which may or may not want to fix it on their side (upstream). So either way, you probably going need to make sure there is a bug report open to get the devs involved. It may end up working that Adwaita is pulled from gnome-themes-standard, and only provided from gtk-engines-adwaita. But that's assuming no other files are conflicting and doesn't break other packages.
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1555
Location: Montréal

PostPosted: Fri Oct 14, 2016 1:32 pm    Post subject: Reply with quote

On ArchLinux, gnome-themes-standard install what I see to be the same files than gnome-themes-standard on Gentoo. There are some gtk-engines-* packages in the Arch repositories and AUR, but no gtk-engines-adwaita.

Is gtk-engines-adwaita arrive to an end?
_________________
Paul
Back to top
View user's profile Send private message
Proinsias
Tux's lil' helper
Tux's lil' helper


Joined: 06 Oct 2014
Posts: 133
Location: Scotland

PostPosted: Fri Oct 14, 2016 8:42 pm    Post subject: Reply with quote

dantrell wrote:
Code:
emerge --ask --nodeps --oneshot app-text/qpdf net-print/cups-filters


This has gotten things back on track, thanks.
Back to top
View user's profile Send private message
dantrell
l33t
l33t


Joined: 01 Jun 2007
Posts: 915
Location: Earth

PostPosted: Mon Oct 17, 2016 6:05 am    Post subject: Reply with quote

Just for the record, this issue was resolved in the tree with commit 437f158.
_________________
Dantrell B.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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