Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to resolve slot confilict when binary repo introduced?
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
diablo465
Apprentice
Apprentice


Joined: 10 Sep 2013
Posts: 194

PostPosted: Thu Nov 06, 2014 2:32 am    Post subject: How to resolve slot confilict when binary repo introduced? Reply with quote

To speed up the update process of a gentoo installed in a old laptop, I decided to introduce a binary host. Here is the outcome from emerge update:


emerge -avgkuDN --binpkg-respect-use=y --quiet-build=y --autounmask-write --backtrack=30 world
Code:


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

Calculating dependencies... done!
[binary     U  ] sys-libs/glibc-2.19-r1:2.2 [2.17:2.2] USE="(multilib) -debug -gd (-hardened) -nscd -profile (-selinux) -suid -systemtap -vanilla" 18,124 kB
[binary   R    ] dev-lang/python-exec-2.0.1-r1:2  PYTHON_TARGETS="(jython2_5) (jython2_7) (pypy) (python2_7) (python3_2) (python3_3) (python3_4*)" 40 kB
[binary     U  ] virtual/libintl-0-r1 [0] ABI_X86="(64%*) -32% (-x32)" 16 kB
[binary     U  ] dev-libs/icu-53.1:0/53 [52.1:0/52] USE="-debug -doc -examples -static-libs" ABI_X86="(64) (-32) (-x32)" 10,033 kB

......
some of the contents are deleted here
......

[ebuild     U  ] media-libs/phonon-4.7.2 [4.6.0-r1] USE="gstreamer pulseaudio qt4%* vlc* (-aqua) -debug -designer% (-qt5) (-zeitgeist)" 323 kB
[ebuild  N     ] media-libs/phonon-vlc-0.7.2  USE="qt4 -debug (-qt5)" 58 kB
[ebuild     U  ] media-libs/phonon-gstreamer-4.7.2 [4.6.3] USE="alsa network qt4%* -debug (-qt5)" 74 kB
[ebuild     U  ] kde-base/kdelibs-4.12.5-r2:4/4.12 [4.12.5-r1:4/4.12] USE="acl alsa bzip2 fam handbook mmx nls opengl policykit spell sse sse2 ssl udev udisks upower -3dnow (-altivec) (-aqua) -debug -doc -jpeg2k -kerberos -lzma -openexr -semantic-desktop {-test} -zeroconf" 11,281 kB

Total: 304 packages (236 upgrades, 1 downgrade, 13 new, 4 in new slots, 50 reinstalls, 197 binaries), Size of downloads: 1,179,414 kB
Conflict: 2 blocks

!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:

x11-libs/cairo:0

  (x11-libs/cairo-1.12.16::gentoo, binary scheduled for merge) pulled in by
    >=x11-libs/cairo-1.12.14-r4[abi_x86_64(-)] required by (gnome-base/librsvg-2.40.2-r1::gentoo, binary scheduled for merge)
    >=x11-libs/cairo-1.12.14-r4:0/0=[X,abi_x86_64(-)] required by (x11-libs/pango-1.36.5::gentoo, binary scheduled for merge)
    >=x11-libs/cairo-1.12.14-r4:0/0=[X,svg,abi_x86_64(-)] required by (x11-libs/gtk+-2.24.24::gentoo, binary scheduled for merge)

  (x11-libs/cairo-1.12.16::gentoo, installed) pulled in by
    (no parents that aren't satisfied by other packages in this slot)

app-text/poppler:0

  (app-text/poppler-0.24.5::gentoo, installed) pulled in by
    >=app-text/poppler-0.12.3-r3:0/44= required by (app-text/texlive-core-2012-r1::gentoo, installed)
    app-text/poppler:0/44=[xpdf-headers(+)] required by (dev-tex/luatex-0.70.1-r2::gentoo, installed)
    app-text/poppler:0/44=[cxx,jpeg,lcms,tiff,xpdf-headers(+)] required by (net-print/cups-filters-1.0.53::gentoo, installed)
    (and 1 more with the same problems)

  (app-text/poppler-0.26.5::gentoo, ebuild scheduled for merge) pulled in by
    app-text/poppler:0/46 required by (app-office/libreoffice-bin-4.2.6.3-r1::gentoo, ebuild scheduled for merge)

dev-libs/icu:0

  (dev-libs/icu-53.1::gentoo, binary scheduled for merge) pulled in by
    dev-libs/icu:0/53=[abi_x86_64(-)] required by (dev-db/sqlite-3.8.6::gentoo, binary scheduled for merge)
    >=dev-libs/icu-51.2-r1:0/53=[abi_x86_64(-)] required by (dev-libs/libxml2-2.9.1-r4::gentoo, binary scheduled for merge)
    dev-libs/icu:0/53 required by (app-office/libreoffice-bin-4.2.6.3-r1::gentoo, ebuild scheduled for merge)

  (dev-libs/icu-52.1::gentoo, installed) pulled in by
    dev-libs/icu:0/52= required by (app-text/libebook-0.0.2::gentoo, installed)
    dev-libs/icu:0/52= required by (media-libs/libvisio-0.0.30::gentoo, installed)
    dev-libs/icu:0/52= required by (media-libs/libcdr-0.0.14::gentoo, installed)
    dev-libs/icu:0/52= required by (net-nds/openldap-2.4.38-r2::gentoo, binary scheduled for merge)
    dev-libs/icu:0/52= required by (app-text/libmspub-0.0.6::gentoo, installed)
    dev-libs/icu:0/52= required by (app-i18n/fcitx-4.2.8.1::gentoo, installed)
    dev-libs/icu:0/52= required by (media-libs/raptor-2.0.9::gentoo, installed)
    >=dev-libs/icu-51.2-r1:0/52=[abi_x86_64(-)] required by (media-libs/harfbuzz-0.9.28::gentoo, binary scheduled for merge)
    dev-libs/icu:0/52= required by (dev-qt/qtwebkit-4.8.5::gentoo, installed)
    dev-libs/icu:0/52= required by (gnome-extra/evolution-data-server-3.12.4::gentoo, binary scheduled for merge)
    (and 3 more with the same problems)

net-dialup/ppp:0

  (net-dialup/ppp-2.4.5-r3::gentoo, installed) pulled in by
    net-dialup/ppp:0/0= required by (net-dialup/pptpd-1.4.0::gentoo, installed)

  (net-dialup/ppp-2.4.7::gentoo, ebuild scheduled for merge) pulled in by
    (no parents that aren't satisfied by other packages in this slot)

dev-lang/perl:0

  (dev-lang/perl-5.16.3::gentoo, ebuild scheduled for merge) pulled in by
    dev-lang/perl:0/5.16=[-build(-)] required by (dev-perl/Cairo-1.103.0::gentoo, installed)
    dev-lang/perl:0/5.16=[-build(-)] required by (dev-perl/Pango-1.224.0::gentoo, installed)
    dev-lang/perl:0/5.16=[-build(-)] required by (dev-perl/gtk2-perl-1.247.0::gentoo, installed)
    dev-lang/perl:0/5.16=[-build(-)] required by (dev-perl/glib-perl-1.301.0::gentoo, installed)

  (dev-lang/perl-5.18.2-r2::gentoo, installed) pulled in by
    dev-lang/perl:0/5.18=[-build(-)] required by (dev-perl/perl-tk-804.32.0::gentoo, binary scheduled for merge)
    dev-lang/perl:0/5.18=[-build(-)] required by (dev-perl/File-DesktopEntry-0.40.0-r1::gentoo, binary scheduled for merge)
    =dev-lang/perl-5.18* required by (virtual/perl-Getopt-Long-2.390.0-r1::gentoo, binary scheduled for merge)
    dev-lang/perl:0/5.18=[-build(-)] required by (dev-perl/File-MimeInfo-0.170.0-r1::gentoo, binary scheduled for merge)
    dev-lang/perl:0/5.18=[-build(-)] required by (perl-core/File-Temp-0.230.0::gentoo, installed)
    dev-lang/perl:0/5.18=[-build(-)] required by (dev-perl/File-BaseDir-0.30.0-r1::gentoo, binary scheduled for merge)
    (and 3 more with the same problems)

x11-misc/colord:0

  (x11-misc/colord-1.0.3::gentoo, installed) pulled in by
    x11-misc/colord:0/1=[introspection] required by (x11-libs/colord-gtk-0.1.25::gentoo, installed)

  (x11-misc/colord-1.2.1-r1::gentoo, ebuild scheduled for merge) pulled in by
    >=x11-misc/colord-1.0.2:0/2= required by (gnome-base/gnome-settings-daemon-3.12.2::gentoo, binary scheduled for merge)
    (and 3 more with the same problem)

media-libs/a52dec:0

  (media-libs/a52dec-0.7.4-r6::gentoo, installed) pulled in by
    (no parents that aren't satisfied by other packages in this slot)

  (media-libs/a52dec-0.7.4-r6::gentoo, ebuild scheduled for merge) pulled in by
    >=media-libs/a52dec-0.7.4-r6[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] required by (media-plugins/gst-plugins-a52dec-0.10.19-r1::gentoo, ebuild scheduled for merge)

virtual/udev:0

  (virtual/udev-215::gentoo, ebuild scheduled for merge) pulled in by
    =virtual/udev-215 required by (app-misc/media-player-info-21-r1::gentoo, installed)
    (and 18 more with the same problem)

  (virtual/udev-208-r2::gentoo, installed) pulled in by
    virtual/udev:0/0=[gudev] required by (x11-misc/colord-1.0.3::gentoo, installed)
    virtual/udev[gudev] required by (gnome-extra/nm-applet-0.9.8.10-r1::gentoo, binary scheduled for merge)
    virtual/udev[gudev] required by (gnome-base/gnome-settings-daemon-3.12.2::gentoo, binary scheduled for merge)
    virtual/udev[gudev] required by (gnome-base/gvfs-1.20.2::gentoo, binary scheduled for merge)
    >=virtual/udev-165[gudev] required by (net-misc/networkmanager-0.9.8.10-r1::gentoo, binary scheduled for merge)


It may be possible to solve this problem by using package.mask to
prevent one of those packages from being selected. However, it is also
possible that conflicting dependencies exist such that they are
impossible to satisfy simultaneously.  If such a conflict exists in
the dependencies of two different packages, then those packages can
not be installed simultaneously.

For more information, see MASKED PACKAGES section in the emerge man
page or refer to the Gentoo Handbook.





Basically the binary repo has taken effect, as many packages are planned to be installed using the binary files. However, I don't know specifically how to resolve the slot conflict shown below so that the update can be proceed.

Taking a example 1: to resolve the last conflict

Code:

virtual/udev:0

  (virtual/udev-215::gentoo, ebuild scheduled for merge) pulled in by
    =virtual/udev-215 required by (app-misc/media-player-info-21-r1::gentoo, installed)
    (and 18 more with the same problem)

  (virtual/udev-208-r2::gentoo, installed) pulled in by
    virtual/udev:0/0=[gudev] required by (x11-misc/colord-1.0.3::gentoo, installed)
    virtual/udev[gudev] required by (gnome-extra/nm-applet-0.9.8.10-r1::gentoo, binary scheduled for merge)
    virtual/udev[gudev] required by (gnome-base/gnome-settings-daemon-3.12.2::gentoo, binary scheduled for merge)
    virtual/udev[gudev] required by (gnome-base/gvfs-1.20.2::gentoo, binary scheduled for merge)
    >=virtual/udev-165[gudev] required by (net-misc/networkmanager-0.9.8.10-r1::gentoo, binary scheduled for merge)


I may mask virtual/udev-215 and using --backtrack=30. But does it mean I need to do this for all the conflict slot?

Example 2:
Code:
media-libs/a52dec:0

  (media-libs/a52dec-0.7.4-r6::gentoo, installed) pulled in by
    (no parents that aren't satisfied by other packages in this slot)

  (media-libs/a52dec-0.7.4-r6::gentoo, ebuild scheduled for merge) pulled in by
    >=media-libs/a52dec-0.7.4-r6[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] required by (media-plugins/gst-plugins-a52dec-0.10.19-r1::gentoo, ebuild scheduled for merge)


These two packages are exactly the same. Which one should I mask to resolve it?

Example 3

x11-misc/colord:0

(x11-misc/colord-1.0.3::gentoo, installed) pulled in by
x11-misc/colord:0/1=[introspection] required by (x11-libs/colord-gtk-0.1.25::gentoo, installed)

(x11-misc/colord-1.2.1-r1::gentoo, ebuild scheduled for merge) pulled in by
>=x11-misc/colord-1.0.2:0/2= required by (gnome-base/gnome-settings-daemon-3.12.2::gentoo, binary scheduled for merge)
(and 3 more with the same problem

the bold contents are displayed in red, what does this specific mean?


------------------------update----------------------------
1. the update can proceed without any conflict by running:
emerge -avuDN world

2. I have tried to mount the binary folder in the server to the laptop that requires update by sshfs /usr/portage/packages chenming@ae429-1105:/usr/portage/packages -o nonempty,rw,idmap=user and run the update by emerge -akvuDN --quiet-build=y --autounmask-write --binpkg-respect-use=n world (notice -k is used rather than -g before the update), exactly same conflicts pops out.


thanks for your suggestions.
Back to top
View user's profile Send private message
diablo465
Apprentice
Apprentice


Joined: 10 Sep 2013
Posts: 194

PostPosted: Thu Nov 06, 2014 7:32 am    Post subject: Reply with quote

--ignore-built-slot-operator-deps seems to be able to work around this problem. But I am not sure what is the side effect using this method. It seems to be a workaround rather than a solution.
Back to top
View user's profile Send private message
RAPHEAD
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jun 2003
Posts: 134
Location: Germany

PostPosted: Wed Nov 19, 2014 10:27 pm    Post subject: Reply with quote

I'm facing similar slot conflicts with icu-53.1::gentoo and the solution you propose would work.
Did you try it and did you find out something about the side effects?
Back to top
View user's profile Send private message
diablo465
Apprentice
Apprentice


Joined: 10 Sep 2013
Posts: 194

PostPosted: Thu Nov 20, 2014 1:28 am    Post subject: Reply with quote

Hi @RAPHEAD

Not yet so far, and it is even interesting that when running emerge -avuDN world again after the world update with --ignore-built-slot-operator-deps, there is no conflicts showing up anymore, which is quite exciting.

But still doubting that some day a big problem may come over....
Back to top
View user's profile Send private message
dilfridge
Developer
Developer


Joined: 18 Sep 2010
Posts: 120
Location: Regensburg, Germany

PostPosted: Fri Nov 21, 2014 1:06 am    Post subject: Reply with quote

diablo465 wrote:
--ignore-built-slot-operator-deps seems to be able to work around this problem. But I am not sure what is the side effect using this method. It seems to be a workaround rather than a solution.


It's neither; it just won't work.

Anything built against icu-52 links against the icu-52 libraries; anything built against icu-53 links against the icu-53 libraries which have (not only) different filenames. This is the reason why you have to rebuild packages after upgrading icu, and this is what is recorded in the subslot dependency.

If you have icu-53 installed and force-merge a binary package built against icu-52, it won't run.
Back to top
View user's profile Send private message
diablo465
Apprentice
Apprentice


Joined: 10 Sep 2013
Posts: 194

PostPosted: Fri Nov 21, 2014 12:32 pm    Post subject: Reply with quote

dilfridge wrote:
This is the reason why you have to rebuild packages after upgrading icu, and this is what is recorded in the subslot dependency.



which command to rebuild package after upgrading with --ignore-built-slot-operator-deps? (1) emerge @preserved-rebuild ? (2) revdep-rebuild ? (3) emerge system?
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