Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 554070 - The following USE changes are necessary to proceed: >=media-gfx/graphicsmagick-1.3.20-r1 imagemagick
Summary: The following USE changes are necessary to proceed: >=media-gfx/graphicsmagic...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL: https://forums.gentoo.org/viewtopic-t...
Whiteboard:
Keywords: InVCS
: 601628 610672 (view as bug list)
Depends on:
Blocks: 155723 611328
  Show dependency tree
 
Reported: 2015-07-06 09:48 UTC by David Kredba
Modified: 2017-05-20 17:56 UTC (History)
3 users (show)

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


Attachments
Emerge debug output 7z mx9 compressed (imagemagick.txt.7z,514.58 KB, application/x-7z-compressed)
2015-07-06 09:54 UTC, David Kredba
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Kredba 2015-07-06 09:48:59 UTC
Portage enforces me to change use flag on media-gfx/graphicsmagick to include imagemagick for no real reason IMHO.

When ocatve-4.0.0 was present in system it blame ocatve. After removing octave it not blame anything. Now with octave present it blames kopete [latex]:

* Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.

  (media-gfx/graphicsmagick-1.3.20-r1:0/0::gentoo, ebuild scheduled for merge) pulled in by
    media-gfx/graphicsmagick[imagemagick] required by (media-plugins/kipi-plugins-4.10.0:4/4::gentoo, installed)
    media-gfx/graphicsmagick required by (media-gfx/darktable-1.6.7:0/0::gentoo, installed)
    media-gfx/graphicsmagick[imagemagick] required by (kde-apps/kopete-4.14.3-r1:4/4.14::gentoo, installed)
    media-gfx/graphicsmagick:=[cxx] required by (sci-mathematics/octave-4.0.0:0/4.0.0::x-portage, installed)
    media-gfx/graphicsmagick required by @selected
    media-gfx/graphicsmagick required by (app-office/scribus-1.5.0-r1:0/0::gentoo, installed)
    media-gfx/graphicsmagick:0/0=[cxx] required by (sci-mathematics/octave-4.0.0:0/4.0.0::x-portage, installed)

# required by kde-apps/kopete-4.14.3-r1::gentoo[latex]
# required by kde-apps/kdenetwork-meta-4.14.3::gentoo
# required by kde-base/kde-meta-4.14.3::gentoo
# required by @selected
# required by @world (argument)
what is not valid reason IMHO.

graphicsmagick[imagemagick] must not be in use when imagemagick is present.

Kopete ebuild contains OR:

latex? (
        || (
            media-gfx/imagemagick
            media-gfx/graphicsmagick[imagemagick]
        )
First variant is satisfying. Kipi-plugins uses the same OR for it.


Could you please check it?



Reproducible: Always




Portage 2.2.20 (python 2.7.10-final-0, default/linux/amd64/13.0/desktop, gcc-5.1.0, glibc-2.20-r2, 4.1.1-gentoo-r1 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.1.1-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9550_@_2.83GHz-with-gentoo-2.2
KiB Mem:     8169548 total,   2799332 free
KiB Swap:    8396796 total,   8396796 free
Timestamp of repository gentoo: Mon, 06 Jul 2015 09:00:01 +0000
sh bash 4.3_p39
ld GNU ld (Gentoo 2.25 p1.2) 2.25
app-shells/bash:          4.3_p39::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2-r1::gentoo
dev-lang/python:          2.7.10::gentoo, 3.4.3::gentoo
dev-util/cmake:           3.2.3::gentoo
dev-util/pkgconfig:       0.28-r3::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25-r1::gentoo
sys-devel/gcc:            5.1.0::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -ggdb -pipe -march=core2 -frecord-gcc-switches"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -ggdb -pipe -march=core2 -frecord-gcc-switches"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch usersandbox usersync xattr"
FFLAGS="-O2 -ggdb -pipe -march=core2 -frecord-gcc-switches"
GENTOO_MIRRORS="ftp://gentoo.mirror.web4u.cz/"
LANG="cs_CZ.utf8"
LC_ALL="cs_CZ.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="echo"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac aalib acl acpi alsa amd64 berkdb blas bluetooth branding bzip2 cairo caps cdda cddb cdparanoia cdr cli consolekit cracklib crypt cups cvs cxx dbus declarative djvu dri dts dv dvb dvd dvdr emboss encode exif fam ffmpeg fftw firefox flac fontconfig fortran ftp gd gdbm geoip gif glamor gmp gnuplot gpm gps graphviz gsl gsm gstreamer gtk hdf5 iconv icu idn ieee1394 imagemagick imlib ipv6 ithreads javascript jbig jpeg jpeg2k ladspa lame lapack lcms ldap libass libnotify libsamplerate lzma lzo mad matroska mms mmx mmxext mng modplug modules mp3 mp4 mpeg mplayer msn mtp multilib musepack musicbrainz ncurses netcdf nls nptl odbc ogg opencl openexr opengl openmp pam pango pch pcre pdf perl pic plotutils png policykit postscript ppds pulseaudio python qt3support qt4 quicktime rdesktop readline samba scanner sdl semantic-desktop session slang smp sndfile sox speex spell sse sse2 ssl ssse3 startup-notification svg szip tcpd theora threads tidy tiff truetype udev udisks unicode upower usb v4l vcd vdpau vnc vorbis wavpack wmf wxwidgets x264 xattr xcb xft xine xinerama xml xosd xpm xscreensaver xv xvid xvmc zlib" ABI_X86="64 32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2 adc65 agfa_cl20 aox ax203 barbie canon casio_qv clicksmart310 digigr8 digita dimagev dimera3500 directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 jl2005a jl2005c kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica konica_qm150 largan lg_gsm mars mustek panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859 pccam300 pccam600 pentax polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ricoh ricoh_g3 samsung sierra sipix_blink2 sipix_web2 smal sonix sony_dscf1 sony_dscf55 soundvision spca50x sq905 st2205 stv0674 stv0680 sx330z topfield toshiba_pdrm11 tp6801" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 sse4_1 ssse3" CURL_SSL="gnutls" ELIBC="glibc" FFTOOLS="aviocat cws2fws ffescape ffeval fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart trasher ffhash" GPSD_PROTOCOLS="aivdm ashtech earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 navcom nmea ntrip oceanserver oncore rtcm104v2 rtcm104v3 sirf superstar2 tnt tripmate tsip ubx fury geostar nmea2000" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer scripting-beanshell scripting-javascript nlpsolver" LINGUAS="cs en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="x86_64 arm i386" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby19 ruby20 ruby21 ruby22" USERLAND="GNU" VIDEO_CARDS="nouveau radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="2.7 3.4"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

media-gfx/imagemagick-6.9.1.4::gentoo was built with the following:
USE="X autotrace bzip2 corefonts cxx djvu fftw fontconfig fpx graphviz hdri jbig jpeg jpeg2k lcms lqr lzma opencl openexr openmp pango perl png postscript raw svg tiff truetype webp wmf xml zlib -q32 -q64 -q8 -static-libs -test" ABI_X86="64"

=================================================================
                        Package Settings
=================================================================

media-gfx/graphicsmagick-1.3.20-r1::gentoo was built with the following:
USE="X bzip2 cxx fpx jbig jpeg jpeg2k lcms lzma modules openmp perl png postscript q16 q32 svg threads tiff truetype webp wmf zlib -debug -imagemagick -static-libs" ABI_X86="64"
Comment 1 David Kredba 2015-07-06 09:54:51 UTC
Created attachment 406238 [details]
Emerge debug output 7z mx9 compressed
Comment 2 Zac Medico gentoo-dev 2015-07-12 22:28:31 UTC
(In reply to David Kredba from comment #0)
> Portage enforces me to change use flag on media-gfx/graphicsmagick to
> include imagemagick for no real reason IMHO.

What happens if you use --autounmask=n so that it won't attempt to modify your package.use settings?

> When ocatve-4.0.0 was present in system it blame ocatve. After removing
> octave it not blame anything. Now with octave present it blames kopete
> [latex]:

That seems like a symptom of bug 419381.
Comment 3 David Kredba 2015-07-13 06:11:05 UTC
Hello Zac,
here it is:

emerge: there are no ebuilds built with USE flags to satisfy "media-gfx/graphicsmagick[imagemagick]".
!!! One of the following packages is required to complete your request:
- media-gfx/graphicsmagick-1.3.20-r1::gentoo (Change USE: +imagemagick)
(dependency required by "media-plugins/kipi-plugins-4.10.0::gentoo[videoslideshow,imagemagick]" [installed])
(dependency required by "media-gfx/digikam-4.10.0::gentoo" [installed])
(dependency required by "@selected" [set])
(dependency required by "@world" [argument])

Thank you.
Comment 4 Ștefan Talpalaru 2015-09-09 20:40:42 UTC
The dependency resolution problem is still present, but I found a workaround: "emerge -1 imagemagick". After this I can "emerge -uDN @world".
Comment 5 Zac Medico gentoo-dev 2016-01-18 19:29:44 UTC
(In reply to David Kredba from comment #1)
> Created attachment 406238 [details]
> Emerge debug output 7z mx9 compressed

Apparently the problem is triggered by this slot conflict:

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

media-gfx/imagemagick:0

  (media-gfx/imagemagick-6.9.1.7:0/6.9.1.7::gentoo, ebuild scheduled for merge) pulled in by
    (no parents that aren't satisfied by other packages in this slot)

  (media-gfx/imagemagick-6.9.1.4:0/6.9.1.4::gentoo, installed) pulled in by
    media-gfx/imagemagick:0/6.9.1.4=[cxx] required by (media-gfx/inkscape-0.91:0/0::gentoo, installed)
                         ^^^^^^^^^^^                                                                   
    (and 1 more with the same problem)


I think we need to wait until the fixes for bug 567686 and bug 566024 are released, and then see if problem is still reproducible. If it is reproducible, then we should get a copy of the configuration created as follows:

tar -cJf /tmp/config.tar.xz -C / ./etc/portage ./var/db/pkg $(cd / && echo ./var/lib/portage/world*) --exclude CONTENTS --exclude '*.ebuild' --exclude environment.bz2 --exclude 'NEEDED*'
Comment 6 Brian Dolbec (RETIRED) gentoo-dev 2016-01-18 20:04:15 UTC
Portage-2.2.27 I just released in the tree with those bugfixes.  It should be availabe for merge in the next few hours depending on your rsync server you connect to.  Best is to wat a few hours and then sync, emerge 2.2.27
Comment 7 Porcupine of the Moon 2016-09-26 22:27:22 UTC
Same problem again. 
I solved it as above with emerge -1 imagemagick followd by emerge -unD world.

Versions: 
media-gfx/imagemagick-6.9.5.10
sci-mathematics/octave-4.0.3
media-gfx/graphicsmagick-1.3.25
Comment 8 Zac Medico gentoo-dev 2016-12-05 00:31:13 UTC
*** Bug 601628 has been marked as a duplicate of this bug. ***
Comment 9 Zac Medico gentoo-dev 2016-12-05 00:59:14 UTC
(In reply to Zac Medico from comment #5)
> Apparently the problem is triggered by this slot conflict:
> 
> !!! Multiple package instances within a single package slot have been pulled
> !!! into the dependency graph, resulting in a slot conflict:
> 
> media-gfx/imagemagick:0
> 
>   (media-gfx/imagemagick-6.9.1.7:0/6.9.1.7::gentoo, ebuild scheduled for
> merge) pulled in by
>     (no parents that aren't satisfied by other packages in this slot)
> 
>   (media-gfx/imagemagick-6.9.1.4:0/6.9.1.4::gentoo, installed) pulled in by
>     media-gfx/imagemagick:0/6.9.1.4=[cxx] required by
> (media-gfx/inkscape-0.91:0/0::gentoo, installed)
>                          ^^^^^^^^^^^                                        
> 
>     (and 1 more with the same problem)

I suspect this code from bug 531656 is triggering the problem when it tries to avoid the above conflict:

https://gitweb.gentoo.org/proj/portage.git/commit/?id=a9064d08ef4c92a5d0d1bfb3dc8a01b7850812b0

That fix was released in portage-2.2.16, a few months before this bug was reported for portage-2.2.20.
Comment 10 Zac Medico gentoo-dev 2016-12-05 01:50:35 UTC
Because PackageTracker.match returns packages in ascending order, depgraph._wrapped_select_pkg_highest_available_imp prefers to return the lowest version involved in a slot conflict here:

https://gitweb.gentoo.org/proj/portage.git/tree/pym/_emerge/depgraph.py?h=portage-2.3.2#n6070

That will cause the conflict_dowgrade flag to be set here, because avail_pkg refers to the lowest version returned from PackageTracker.match:

https://gitweb.gentoo.org/proj/portage.git/tree/pym/portage/dep/dep_check.py?h=portage-2.3.2#n374

It seems like making depgraph._wrapped_select_pkg_highest_available_imp use the highest version returned from PackageTracker.match should solve the problem.
Comment 13 Martin von Gagern 2017-01-03 09:43:15 UTC
I'm still seeing this with portage-2.3.3, during a world update that would involve upgrading imagemagick from 6.9.6.6 to 6.9.7.0.

# emerge -uND --newrepo --ask y --keep-going --with-bdeps=y --backtrack=50 --autounmask-write --autounmask @system @world
⋮
[blocks B      ] media-gfx/imagemagick ("media-gfx/imagemagick" is blocking media-gfx/graphicsmagick-1.3.25)

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

media-gfx/imagemagick:0

  (media-gfx/imagemagick-6.9.7.0:0/6.9.7.0::gentoo, ebuild scheduled for merge) pulled in by
    (no parents that aren't satisfied by other packages in this slot)

  (media-gfx/imagemagick-6.9.6.6:0/6.9.6.6::gentoo, installed) pulled in by
    media-gfx/imagemagick:0/6.9.6.6=[cxx] required by (media-gfx/inkscape-0.91-r3:0/0::gentoo, installed)
                         ^^^^^^^^^^^

    (and 1 more with the same problem)
⋮
 * Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.

  (media-gfx/graphicsmagick-1.3.25:0/1.3::gentoo, ebuild scheduled for merge) pulled in by media-gfx/graphicsmagick required by @selected
    media-gfx/graphicsmagick[imagemagick,png] required by (app-editors/kile-2.1.3-r2:4/4::gentoo, installed)
⋮
The following USE changes are necessary to proceed:
 (see "package.use" in the portage(5) man page for more details)   
# required by app-editors/kile-2.1.3-r2::gentoo[png]
# required by @selected
# required by @world (argument)
>=media-gfx/graphicsmagick-1.3.25 imagemagick

That “1 more with the same problem” is likely transcode, which has an imagemagick:= dependency as well. I've got yet another conflict, due to qgis-2.18.2-r2 being incompatible with sip-4.19. So there is a sight chance that the imagemagick issue would magically disappear if the other issue got resolved.

Can I provide any more information before I resolve this by manually upgrading imagemagick first?
Comment 14 Martin von Gagern 2017-01-03 19:51:47 UTC
(In reply to Martin von Gagern from comment #13)
> So there is a sight chance that the imagemagick issue would magically
> disappear if the other issue got resolved.

Unfortunately, but not unexpectedly, it did not.

> Can I provide any more information before I resolve this by manually
> upgrading imagemagick first?

I pasted the full output of an emerge --pretend @world in
https://gist.github.com/gagern/a9aa117f1d3c06a7ae8ff4b6a7b1c741
and will upgrade imagemagick now, to get on with my world update.
Comment 15 Zac Medico gentoo-dev 2017-01-03 23:30:44 UTC
(In reply to Martin von Gagern from comment #13)
> I'm still seeing this with portage-2.3.3, during a world update that would
> involve upgrading imagemagick from 6.9.6.6 to 6.9.7.0.

I think that the _dep_check_composite_db._visible method needs to be adjusted here, to select the higest version from the package_tracker.match call, for consistency with the change in ab07ac68fa1e04ed64e2e0f6c753ff169a32d517:

https://gitweb.gentoo.org/proj/portage.git/tree/pym/_emerge/depgraph.py?h=portage-2.3.3#n9126

I'm going to try and create a unit test to reproduce this problem, and use that to test a fix.
Comment 18 David Kredba 2017-01-13 19:49:04 UTC
I tried the patch on top or =sys-apps/portage-2.3.3 now and it solves it! Thank you.
Comment 19 David Kredba 2017-01-13 19:49:15 UTC
or -> of
Comment 20 Zac Medico gentoo-dev 2017-02-26 13:01:26 UTC
*** Bug 610672 has been marked as a duplicate of this bug. ***
Comment 21 Zac Medico gentoo-dev 2017-05-20 17:56:17 UTC
Fixed in portage-2.3.5.