Mailing List Archive

Klayout and ruby target problem.
Howdy,

I ran into this last week and I just skipped this package.  I thought
maybe I caught the tree in the middle of some update or something that
would be corrected by this week.  Well, it's still here so it's me, not
the tree.  I tried setting the ruby target like it suggests but then I
get a long error message about a lot of other conflicts.  It seems to
make the problem worse not better.  Anyone know how to get around this
problem??




root@fireball / # emerge -auDN world

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

Calculating dependencies |

!!! Problem resolving dependencies for sci-electronics/klayout from
@selected
... done!
Dependency resolution took 4.79 s.


!!! The ebuild selected to satisfy "sci-electronics/klayout" has unmet
requirements.
- sci-electronics/klayout-0.28.5::gentoo USE="" ABI_X86="(64)"
PYTHON_SINGLE_TARGET="python3_11 -python3_10" RUBY_TARGETS="-ruby30"

  The following REQUIRED_USE flag constraints are unsatisfied:
    ruby_targets_ruby30

  The above constraints are a subset of the following complete expression:
    exactly-one-of ( python_single_target_python3_10
python_single_target_python3_11 ) any-of ( ruby_targets_ruby30 )

(dependency required by "@selected" [set])
(dependency required by "@world" [argument])
root@fireball / #  equery u sci-electronics/klayout
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for sci-electronics/klayout-0.28.5:
 U I
 - - python_single_target_python3_10 : Build for Python 3.10 only
 + + python_single_target_python3_11 : Build for Python 3.11 only
 - + ruby_targets_ruby30             : Build with MRI Ruby 3.0.x
root@fireball / #


By default, it has no ruby target it seems, although it used to.  The
on/off status changes.  Setting to match the old way made it worse, as
mentioned above.  I can't figure out how to make this work. 

Any ideas?  Thoughts? 

Dale

:-)  :-) 
Re: Klayout and ruby target problem. [ In reply to ]
On Sun, 25 Jun 2023 at 18:19, Dale <rdalek1967@gmail.com> wrote:
> The following REQUIRED_USE flag constraints are unsatisfied:
> ruby_targets_ruby30
>
> The above constraints are a subset of the following complete expression:
> exactly-one-of ( python_single_target_python3_10
> python_single_target_python3_11 ) any-of ( ruby_targets_ruby30 )
>
> By default, it has no ruby target it seems, although it used to. The
> on/off status changes. Setting to match the old way made it worse, as
> mentioned above. I can't figure out how to make this work.

This might be a bug from the recent move to ruby31 as the default
target, but the easy solution as I see it now is installing the
unstable version klayout-0.28.9, which has the ruby31 target
available.

I found this bug, https://bugs.gentoo.org/903497, which was about
stabilising 0.28.5 "because needed by ruby30", so I assume a similar
action is needed now.

Regards,
Arve
Re: Klayout and ruby target problem. [ In reply to ]
On Sun, 2023-06-25 at 11:19 -0500, Dale wrote:
> By default, it has no ruby target it seems, although it used to.  The
> on/off status changes.  Setting to match the old way made it worse,
> as
> mentioned above.  I can't figure out how to make this work. 
>
> Any ideas?  Thoughts? 
>
> Dale
>
> :-)  :-) 
>

Not the same problem I had, but I ran into some "portage wants to do
strange things" issues after the Ruby upgrade. A --depclean fixed this
up for me by removing ruby30 which was no longer required anywhere.

Might give that a go and see if it shakes things out right.
Re: Klayout and ruby target problem. [ In reply to ]
Arve Barsnes wrote:
> On Sun, 25 Jun 2023 at 18:19, Dale <rdalek1967@gmail.com> wrote:
>> The following REQUIRED_USE flag constraints are unsatisfied:
>> ruby_targets_ruby30
>>
>> The above constraints are a subset of the following complete expression:
>> exactly-one-of ( python_single_target_python3_10
>> python_single_target_python3_11 ) any-of ( ruby_targets_ruby30 )
>>
>> By default, it has no ruby target it seems, although it used to. The
>> on/off status changes. Setting to match the old way made it worse, as
>> mentioned above. I can't figure out how to make this work.
> This might be a bug from the recent move to ruby31 as the default
> target, but the easy solution as I see it now is installing the
> unstable version klayout-0.28.9, which has the ruby31 target
> available.
>
> I found this bug, https://bugs.gentoo.org/903497, which was about
> stabilising 0.28.5 "because needed by ruby30", so I assume a similar
> action is needed now.
>
> Regards,
> Arve
>
>


That did it.  I thought I had already checked for a unstable version but
I guess I either didn't or it wasn't there.  That's usually the first
thing I check.  That solved that problem.  Now to figure out why ffmpeg
is griping.  I ran into it last week too.  This is the beginning of
that.  It's to long to post the whole thing. 


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

media-video/ffmpeg:0

  (media-video/ffmpeg-6.0-r1:0/58.60.60::gentoo, ebuild scheduled for
merge) USE="X alsa bluray bzip2 dav1d encode fdk fontconfig frei0r
gnutls gpl iconv jpeg2k lcms libass lzma mp3 network opengl openh264
postproc pulseaudio sdl svg theora threads truetype vorbis vpx vulkan
webp x264 x265 xvid zlib -amf -amr -amrenc (-appkit) -bs2b -cdio
-chromaprint -chromium -codec2 -cpudetection -cuda -debug -doc -flite
-fribidi -gcrypt -gme -gmp -gsm -hardcoded-tables -iec61883 -ieee1394
-jack -jpegxl -kvazaar -ladspa -libaom -libaribb24 -libcaca -libdrm
-libilbc -libplacebo -librtmp -libsoxr -libtesseract -libv4l -libxml2
-lv2 (-mipsdspr1) (-mipsdspr2) (-mipsfpu) (-mmal) -modplug -nvenc
-openal -opencl -openssl -opus -oss -pic -qsv -rav1e -rubberband -samba
-snappy -sndio -speex -srt -ssh -static-libs -svt-av1 -test -twolame
-v4l -vaapi -vdpau -verify-sig -vidstab -vmaf -zeromq -zimg -zvbi"
ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="aes avx fma3 fma4 mmx mmxext
sse sse2 sse3 sse4_1 sse4_2 ssse3 xop -3dnow -3dnowext -avx2"
FFTOOLS="aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot
ismindex pktdumper qt-faststart sidxindex trasher" conflicts with
    media-video/ffmpeg:0/56.58.58= required by
(sci-libs/vtk-9.2.5:0/9.2::gentoo, installed) USE="ffmpeg java logging
mysql openmp qt5 rendering sdl threads -all-modules -boost -cuda
(-debug) -doc -examples -freetype -gdal -imaging -las -mpi -odbc
-openvdb -pdal -postgres -python -qt6 -tbb -test -tk -views -vtkm -web"
ABI_X86="(64)" PYTHON_SINGLE_TARGET="python3_11 -python3_10"
VIDEO_CARDS="-nvidia"
                      ^^^^^^^^^^^^
    media-video/ffmpeg:0/56.58.58=[abi_x86_64(-)] required by
(media-libs/opencv-4.7.0:0/4.7.0::gentoo, installed) USE="contrib
contribdnn eigen features2d ffmpeg gphoto2 java jpeg jpeg2k opengl
openmp png python qt5 tiff webp -contribcvv -contribfreetype -contribhdf
(-contribovis) -contribsfm -contribxfeatures2d -cuda -debug -dnnsamples
-download -examples -gdal -gflags -glog -gstreamer -gtk3 -ieee1394
-lapack -lto -opencl -opencvapps -openexr -tesseract -testprograms
-threads -v4l -vaapi -vtk -xine" ABI_X86="(64) -32 (-x32)"
CPU_FLAGS_X86="avx f16c fma3 popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3
-avx2 -avx512f" PYTHON_TARGETS="python3_11 -python3_10"
                      ^^^^^^^^^^^^     
And MUCH MUCH more.  O_O

If someone happens to have seen this and knows a fix, I'd appreciate a
hint.  ;-)  Again, the whole output is huge.  If I can't sort it and no
one recognizes that little snippet, may start another thread.  Then beat
it into submission.  ROFL

Thanks much.

One problem down, one more to beat up on. 

Dale

:-)  :-) 
Re: Klayout and ruby target problem. [ In reply to ]
On Sun, 25 Jun 2023 at 19:24, Dale <rdalek1967@gmail.com> wrote:
> WARNING: One or more updates/rebuilds have been skipped due to a
> dependency conflict:
>
> media-video/ffmpeg:0
>
> (media-video/ffmpeg-6.0-r1:0/58.60.60::gentoo, ebuild scheduled for
> merge) USE="X alsa bluray bzip2 dav1d encode fdk fontconfig frei0r
> gnutls gpl iconv jpeg2k lcms libass lzma mp3 network opengl openh264
> postproc pulseaudio sdl svg theora threads truetype vorbis vpx vulkan
> webp x264 x265 xvid zlib -amf -amr -amrenc (-appkit) -bs2b -cdio
> -chromaprint -chromium -codec2 -cpudetection -cuda -debug -doc -flite
> -fribidi -gcrypt -gme -gmp -gsm -hardcoded-tables -iec61883 -ieee1394
> -jack -jpegxl -kvazaar -ladspa -libaom -libaribb24 -libcaca -libdrm
> -libilbc -libplacebo -librtmp -libsoxr -libtesseract -libv4l -libxml2
> -lv2 (-mipsdspr1) (-mipsdspr2) (-mipsfpu) (-mmal) -modplug -nvenc
> -openal -opencl -openssl -opus -oss -pic -qsv -rav1e -rubberband -samba
> -snappy -sndio -speex -srt -ssh -static-libs -svt-av1 -test -twolame
> -v4l -vaapi -vdpau -verify-sig -vidstab -vmaf -zeromq -zimg -zvbi"
> ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="aes avx fma3 fma4 mmx mmxext
> sse sse2 sse3 sse4_1 sse4_2 ssse3 xop -3dnow -3dnowext -avx2"
> FFTOOLS="aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot
> ismindex pktdumper qt-faststart sidxindex trasher" conflicts with
> media-video/ffmpeg:0/56.58.58= required by
> (sci-libs/vtk-9.2.5:0/9.2::gentoo, installed) USE="ffmpeg java logging
> mysql openmp qt5 rendering sdl threads -all-modules -boost -cuda
> (-debug) -doc -examples -freetype -gdal -imaging -las -mpi -odbc
> -openvdb -pdal -postgres -python -qt6 -tbb -test -tk -views -vtkm -web"
> ABI_X86="(64)" PYTHON_SINGLE_TARGET="python3_11 -python3_10"
> VIDEO_CARDS="-nvidia"
> ^^^^^^^^^^^^
> media-video/ffmpeg:0/56.58.58=[abi_x86_64(-)] required by
> (media-libs/opencv-4.7.0:0/4.7.0::gentoo, installed) USE="contrib
> contribdnn eigen features2d ffmpeg gphoto2 java jpeg jpeg2k opengl
> openmp png python qt5 tiff webp -contribcvv -contribfreetype -contribhdf
> (-contribovis) -contribsfm -contribxfeatures2d -cuda -debug -dnnsamples
> -download -examples -gdal -gflags -glog -gstreamer -gtk3 -ieee1394
> -lapack -lto -opencl -opencvapps -openexr -tesseract -testprograms
> -threads -v4l -vaapi -vtk -xine" ABI_X86="(64) -32 (-x32)"
> CPU_FLAGS_X86="avx f16c fma3 popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3
> -avx2 -avx512f" PYTHON_TARGETS="python3_11 -python3_10"
> ^^^^^^^^^^^^
> And MUCH MUCH more. O_O
>
> If someone happens to have seen this and knows a fix, I'd appreciate a
> hint. ;-) Again, the whole output is huge. If I can't sort it and no
> one recognizes that little snippet, may start another thread. Then beat
> it into submission. ROFL

It seems like ffmpeg 6 has been unmasked? Haven't synced my tree in a
few days, but it seems right according to packages.gentoo.org.

Your two examples, sci-libs/vtk and media-libs/opencv, requires the
older subslot version. These things tend to sort themselves out with
world rebuilding, unless they really require something older. There
probably is a tracker bug for ffmpeg 6 unmasking, where you could see
if your packages are not supported for ffmpeg 6 yet.

Regards,
Arve
Re: Klayout and ruby target problem. [ In reply to ]
Matt Connell wrote:
> On Sun, 2023-06-25 at 11:19 -0500, Dale wrote:
>> By default, it has no ruby target it seems, although it used to.  The
>> on/off status changes.  Setting to match the old way made it worse,
>> as
>> mentioned above.  I can't figure out how to make this work. 
>>
>> Any ideas?  Thoughts? 
>>
>> Dale
>>
>> :-)  :-) 
>>
> Not the same problem I had, but I ran into some "portage wants to do
> strange things" issues after the Ruby upgrade. A --depclean fixed this
> up for me by removing ruby30 which was no longer required anywhere.
>
> Might give that a go and see if it shakes things out right.
>
> .
>


I seem to recall seeing that somewhere and I ran --depclean after my
next update.  I don't always run it but I try to run it about once a
month, I do updates weekly, generally. 

I ran it and nothing about ruby in it but it is a good idea to check
it.  Ruby, python and such can sometimes get weird. 

Thanks.

Dale

:-)  :-) 
Re: Klayout and ruby target problem. [ In reply to ]
Arve Barsnes wrote:
> On Sun, 25 Jun 2023 at 19:24, Dale <rdalek1967@gmail.com> wrote:
>> WARNING: One or more updates/rebuilds have been skipped due to a
>> dependency conflict:
>>
>> media-video/ffmpeg:0
>>
>> (media-video/ffmpeg-6.0-r1:0/58.60.60::gentoo, ebuild scheduled for
>> merge) USE="X alsa bluray bzip2 dav1d encode fdk fontconfig frei0r
>> gnutls gpl iconv jpeg2k lcms libass lzma mp3 network opengl openh264
>> postproc pulseaudio sdl svg theora threads truetype vorbis vpx vulkan
>> webp x264 x265 xvid zlib -amf -amr -amrenc (-appkit) -bs2b -cdio
>> -chromaprint -chromium -codec2 -cpudetection -cuda -debug -doc -flite
>> -fribidi -gcrypt -gme -gmp -gsm -hardcoded-tables -iec61883 -ieee1394
>> -jack -jpegxl -kvazaar -ladspa -libaom -libaribb24 -libcaca -libdrm
>> -libilbc -libplacebo -librtmp -libsoxr -libtesseract -libv4l -libxml2
>> -lv2 (-mipsdspr1) (-mipsdspr2) (-mipsfpu) (-mmal) -modplug -nvenc
>> -openal -opencl -openssl -opus -oss -pic -qsv -rav1e -rubberband -samba
>> -snappy -sndio -speex -srt -ssh -static-libs -svt-av1 -test -twolame
>> -v4l -vaapi -vdpau -verify-sig -vidstab -vmaf -zeromq -zimg -zvbi"
>> ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="aes avx fma3 fma4 mmx mmxext
>> sse sse2 sse3 sse4_1 sse4_2 ssse3 xop -3dnow -3dnowext -avx2"
>> FFTOOLS="aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot
>> ismindex pktdumper qt-faststart sidxindex trasher" conflicts with
>> media-video/ffmpeg:0/56.58.58= required by
>> (sci-libs/vtk-9.2.5:0/9.2::gentoo, installed) USE="ffmpeg java logging
>> mysql openmp qt5 rendering sdl threads -all-modules -boost -cuda
>> (-debug) -doc -examples -freetype -gdal -imaging -las -mpi -odbc
>> -openvdb -pdal -postgres -python -qt6 -tbb -test -tk -views -vtkm -web"
>> ABI_X86="(64)" PYTHON_SINGLE_TARGET="python3_11 -python3_10"
>> VIDEO_CARDS="-nvidia"
>> ^^^^^^^^^^^^
>> media-video/ffmpeg:0/56.58.58=[abi_x86_64(-)] required by
>> (media-libs/opencv-4.7.0:0/4.7.0::gentoo, installed) USE="contrib
>> contribdnn eigen features2d ffmpeg gphoto2 java jpeg jpeg2k opengl
>> openmp png python qt5 tiff webp -contribcvv -contribfreetype -contribhdf
>> (-contribovis) -contribsfm -contribxfeatures2d -cuda -debug -dnnsamples
>> -download -examples -gdal -gflags -glog -gstreamer -gtk3 -ieee1394
>> -lapack -lto -opencl -opencvapps -openexr -tesseract -testprograms
>> -threads -v4l -vaapi -vtk -xine" ABI_X86="(64) -32 (-x32)"
>> CPU_FLAGS_X86="avx f16c fma3 popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3
>> -avx2 -avx512f" PYTHON_TARGETS="python3_11 -python3_10"
>> ^^^^^^^^^^^^
>> And MUCH MUCH more. O_O
>>
>> If someone happens to have seen this and knows a fix, I'd appreciate a
>> hint. ;-) Again, the whole output is huge. If I can't sort it and no
>> one recognizes that little snippet, may start another thread. Then beat
>> it into submission. ROFL
> It seems like ffmpeg 6 has been unmasked? Haven't synced my tree in a
> few days, but it seems right according to packages.gentoo.org.
>
> Your two examples, sci-libs/vtk and media-libs/opencv, requires the
> older subslot version. These things tend to sort themselves out with
> world rebuilding, unless they really require something older. There
> probably is a tracker bug for ffmpeg 6 unmasking, where you could see
> if your packages are not supported for ffmpeg 6 yet.
>
> Regards,
> Arve
>
>


It was unmasked here but I had done that.  I removed it from the keyword
file, and some other entries elsewhere, and the stable version appears
to be version 4.  Version 5 and 6 are not marked stable, they're
keyworded, masked or both. 

I don't run a strictly stable or unstable system here.  I suspect this
is due to one package being unstable and me marking it for use and
another is not.  I'll just have to dig around until I figure out which
one is offending emerge so badly.  It's quite a list but I bet it is in
there, somewhere.  lol 

Thanks.

Dale

:-)  :-) 
Re: Klayout and ruby target problem. [ In reply to ]
Yeah this is a bit stupid from the ruby side, see below...

> root@fireball / # emerge -auDN world
>
> These are the packages that would be merged, in order:
>
> Calculating dependencies |
>
> !!! Problem resolving dependencies for sci-electronics/klayout from
> @selected
> ... done!
> Dependency resolution took 4.79 s.
>
>
> !!! The ebuild selected to satisfy "sci-electronics/klayout" has unmet
> requirements.
> - sci-electronics/klayout-0.28.5::gentoo USE="" ABI_X86="(64)"
> PYTHON_SINGLE_TARGET="python3_11 -python3_10" RUBY_TARGETS="-ruby30"
>
> The following REQUIRED_USE flag constraints are unsatisfied:
> ruby_targets_ruby30
>
> The above constraints are a subset of the following complete expression:
> exactly-one-of ( python_single_target_python3_10
> python_single_target_python3_11 ) any-of ( ruby_targets_ruby30 )

^ Essentially, it wants "ruby_targets_ruby30" to be enabled, but the default
switched to 3.1.
The ruby eclass misses the feature of the python eclasses that you can build
against "one of the following"...

As you already noticed, 0.28.9 wants "ruby_targets_ruby31" and is thus fine
with the new default.
(And it's also stable since now.)



--
Andreas K. H?ttel
dilfridge@gentoo.org
Gentoo Linux developer
(council, toolchain, base-system, perl, libreoffice)