Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 918658 - Reduce emerge output for conflicts
Summary: Reduce emerge output for conflicts
Status: UNCONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All All
: Normal enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-27 12:04 UTC by Paul Gover
Modified: 2024-01-27 22:58 UTC (History)
5 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Gover 2023-11-27 12:04:20 UTC
Emerge's default output when there are conflicts is very verbose; currently we see many forum requests (eg:
  https://forums.gentoo.org/viewtopic-t-1166092.html
) where the end user can't interpret the output.

This suggestion is to make the current level of detail into "--verbose" level output, and trim the default to something like the following (extracted from the output of the previous forum item, slightly trimmed to prevent line wrapping):

WARNING: One or more updates/rebuilds have been skipped due to a dependency conflict:

media-video/ffmpeg
  media-video/ffmpeg-6.0-r9 (to be merged) conflicts with
    >=media-video/ffmpeg-3.1.3 required by media-video/vlc-3.0.18-r3 (depende
    <media-video/ffmpeg-5 required by media-video/vlc-3.0.18-r3 (dependency)
    >=media-video/ffmpeg-4.4 required by media-video/mpv-9999 (dependency)
    media-video/ffmpeg required by media-libs/opencv-4.8.0-r1 (dependency)
    >=media-video/ffmpeg-2.7 required by media-video/ffmpegthumbnailer-2.2.2-r1 
    media-video/ffmpeg required by media-video/pipewire-0.3.80 (dependency)
    media-video/ffmpeg required by kde-apps/ffmpegthumbs-23.08.3 (dependency)
    media-video/ffmpeg required by kde-frameworks/kfilemetadata-5.112.0 (depe
    >=media-video/ffmpeg-2.4 required by media-libs/ffmpegsource-2.40-r2 (dep
    >=media-video/ffmpeg-4 required by media-plugins/gst-plugins-libav-1.22.3
Comment 1 Zac Medico gentoo-dev 2023-11-27 19:59:50 UTC
In the original conflict message, many of the conflicts were simply due to slot operator dependencies that would have only required a rebuild in order to match, which is related to bug 598503:

> WARNING: One or more updates/rebuilds have been skipped due to a dependency conflict:
>  
> media-video/ffmpeg:0
>  
>   (media-video/ffmpeg-6.0-r9:0/58.60.60::gentoo, ebuild scheduled for merge) USE="X alsa amr amrenc bluray bs2b bzip2 cdio chromium codec2 cpudetection dav1d debug encode fdk flite fontconfig frei0r fribidi gme gmp gnutls gpl gsm hardcoded-tables iconv jpeg2k jpegxl kvazaar lcms libaribb24 libass libdrm libilbc libplacebo librtmp libsoxr libv4l libxml2 lv2 lzma modplug mp3 network nvenc opengl opus postproc pulseaudio rav1e rubberband sdl snappy speex svg svt-av1 theora threads truetype twolame v4l vaapi vdpau vorbis vpx vulkan webp x264 x265 xvid zimg zlib zvbi (-amf) (-appkit) -chromaprint (-cuda) -doc -gcrypt -iec61883 -ieee1394 -jack -ladspa -libaom -libcaca -libtesseract (-mipsdspr1) (-mipsdspr2) (-mipsfpu) (-mmal) -openal -opencl -openh264 -openssl -oss -pic (-qsv) -samba -sndio -srt -ssh -static-libs -test -verify-sig -vidstab (-vmaf) -zeromq" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext sse sse2 sse3 sse4_1 sse4_2 ssse3 -3dnow -3dnowext -fma4 -xop" FFTOOLS="aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart sidxindex trasher" conflicts with
>     >=media-video/ffmpeg-3.1.3:0/56.58.58=[postproc,vaapi,vdpau] required by (media-video/vlc-3.0.18-r3:0/5-9::gentoo, installed) USE="X a52 alsa aom dav1d dbus dts dvbpsi dvd encode faad fdk ffmpeg flac fontconfig gcrypt gstreamer gui jpeg libnotify libsamplerate mad matroska mp3 mpeg ncurses ogg opus png pulseaudio sdl-image ssl svg taglib theora tremor truetype twolame udev upnp vaapi vdpau vpx wayland x264 x265 xml zeroconf zvbi -archive -aribsub -bidi -bluray -cddb -chromaprint -chromecast -dc1394 -debug (-directx) -fluidsynth -gme -ieee1394 -jack -kate -keyring -libass -libcaca -libtar -libtiger -linsys -lirc -live -lua -macosx-notifications -modplug -mtp -musepack -nfs -omxil -optimisememory -projectm -rdp -run-as-root -samba -sftp -shout -sid -skins -soxr -speex -srt -test -v4l -vnc" ABI_X86="(64)" CPU_FLAGS_X86="mmx sse" LUA_SINGLE_TARGET="lua5-1"
>                               ^^^^^^^^^^^^                      
>     <media-video/ffmpeg-5 required by (media-video/vlc-3.0.18-r3:0/5-9::gentoo, installed) USE="X a52 alsa aom dav1d dbus dts dvbpsi dvd encode faad fdk ffmpeg flac fontconfig gcrypt gstreamer gui jpeg libnotify libsamplerate mad matroska mp3 mpeg ncurses ogg opus png pulseaudio sdl-image ssl svg taglib theora tremor truetype twolame udev upnp vaapi vdpau vpx wayland x264 x265 xml zeroconf zvbi -archive -aribsub -bidi -bluray -cddb -chromaprint -chromecast -dc1394 -debug (-directx) -fluidsynth -gme -ieee1394 -jack -kate -keyring -libass -libcaca -libtar -libtiger -linsys -lirc -live -lua -macosx-notifications -modplug -mtp -musepack -nfs -omxil -optimisememory -projectm -rdp -run-as-root -samba -sftp -shout -sid -skins -soxr -speex -srt -test -v4l -vnc" ABI_X86="(64)" CPU_FLAGS_X86="mmx sse" LUA_SINGLE_TARGET="lua5-1"
>     ^                   ^
>     >=media-video/ffmpeg-4.4:0/56.58.58=[encode,threads,vaapi,vdpau] required by (media-video/mpv-9999:0/2::gentoo, installed) USE="X alsa archive bluray cdda cli drm dvb dvd egl iconv javascript jpeg lcms libcaca libmpv lua nvenc openal opengl pipewire rubberband tools uchardet vaapi vdpau vulkan xv zimg zlib (-aqua) (-coreaudio) -debug -gamepad -jack (-mmal) -pulseaudio (-raspberry-pi) -sdl (-selinux) -sixel -sndio -test -wayland" ABI_X86="(64)" LUA_SINGLE_TARGET="(luajit) (-lua5-1)" PYTHON_SINGLE_TARGET="python3_11 -python3_10 -python3_12"
>                             ^^^^^^^^^^^^                            
>     media-video/ffmpeg:0/56.58.58=[abi_x86_64(-)] required by (media-libs/opencv-4.8.0-r1:0/4.8.0::gentoo, installed) USE="contrib contribdnn eigen features2d ffmpeg jpeg jpeg2k opengl openmp png python qt5 tiff vaapi webp (-contribcvv) -contribfreetype (-contribhdf) (-contribovis) (-contribsfm) (-contribxfeatures2d) (-cuda) -debug -dnnsamples -download -examples -gdal (-gflags) (-glog) -gphoto2 -gstreamer -gtk3 -ieee1394 -java -lapack -lto -opencl -opencvapps -openexr (-tesseract) -testprograms -threads -v4l (-vtk) -xine" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="avx avx2 f16c fma3 popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3 -avx512f" PYTHON_TARGETS="python3_11 -python3_10"
>                       ^^^^^^^^^^^^               
>     >=media-video/ffmpeg-2.7:0/56.58.58= required by (media-video/ffmpegthumbnailer-2.2.2-r1:0/0::gentoo, installed) USE="gnome gtk jpeg png -test" ABI_X86="(64)"
>                             ^^^^^^^^^^^^
>     media-video/ffmpeg:0/56.58.58= required by (media-video/pipewire-0.3.80:0/0.4::gentoo, installed) USE="X bluetooth dbus extra ffmpeg gsettings gstreamer liblc3 lv2 pipewire-alsa readline sound-server ssl v4l zeroconf -doc -echo-cancel -flatpak -ieee1394 -jack-client -jack-sdk -modemmanager -roc (-system-service) -systemd -test" ABI_X86="(64) -32 (-x32)"
>                       ^^^^^^^^^^^^
>     media-video/ffmpeg:0/56.58.58= required by (kde-apps/ffmpegthumbs-23.08.3:5/5::gentoo, installed) USE="debug" ABI_X86="(64)"
>                       ^^^^^^^^^^^^
>     media-video/ffmpeg:0/56.58.58= required by (kde-frameworks/kfilemetadata-5.112.0:5/5.112::gentoo, installed) USE="debug epub exif ffmpeg mobi pdf taglib -doc -test" ABI_X86="(64)"
>                       ^^^^^^^^^^^^
>     >=media-video/ffmpeg-2.4:0/56.58.58= required by (media-libs/ffmpegsource-2.40-r2:0/4::gentoo, installed) USE="" ABI_X86="(64)"
>                             ^^^^^^^^^^^^
>     >=media-video/ffmpeg-4:0/56.58.58=[abi_x86_64(-)] required by (media-plugins/gst-plugins-libav-1.22.3:1.0/1.0::gentoo, installed) USE="nls -test" ABI_X86="(64) -32 (-x32)"
>                           ^^^^^^^^^^^^