I try use vdpau. I enabled vdpau by global USE flag. And I run emerge -uDN world. Then I found that the vlc build fails when vdpau is enabled. I thought about investigating further, but the error was not clear at first glance, so I decided to file a bug report anyway. Reproducible: Always Steps to Reproduce: 1. enable vdpau USE flag 2. sudo emerge -1 vlc Actual Results: build is failed. Expected Results: installed. The results are too long to paste into this form, so I will post the emerge --info results and build log as an attachment.
Created attachment 870741 [details] emerge --info
Created attachment 870742 [details] Compressed build.log
I can successfully build 3.0.18-r3(0/5-9) with the following USE flags: X a52 alsa bluray cddb chromaprint dav1d dbus dts dvbpsi dvd encode fdk ffmpeg flac fontconfig gcrypt gstreamer gui jpeg keyring libass libnotify libsamplerate mad matroska mp3 mpeg ncurses ogg opus png pulseaudio srt ssl svg theora truetype twolame udev vaapi vdpau vpx wayland x264 x265 xml
I have the same Problem with media-video/vlc-3.0.20 there are two options to build vlc successful, deaktivate the "xattr" useflag for portage or disable the "vdpau" useflag for vlc.
Does it eventually build fine if you try a couple of times? See also: https://code.videolan.org/videolan/vlc/-/issues/28374
No it doesn't build fine when i try to build it a couple of times.
Created attachment 875264 [details] Vlc 3.0.20-r1 build log with USE="vdpau" I have added a compressed logfile for vlc-3.0.20-r1.
Created attachment 875265 [details] This is the build.log when i disable xattr in portage This logfile is successful when i disable the useflag "xattr" in portage and uninstall sys-apps/install-xattr (When this is installed the error in vlc will occur even when the useflag "xattr" for portage is deactivated) so it looks like the problem is in the package sys-apps/install-xattr.
I have tried it with sys-apps/install-xattr-9999 and it compiles fine, no more error so it looks like the package sys-apps/install-xattr was the problem.
(In reply to Oliver Hildebrandt from comment #9) > I have tried it with sys-apps/install-xattr-9999 and it compiles fine, no > more error so it looks like the package sys-apps/install-xattr was the > problem. You can see the recent changes to install-xattr at https://github.com/gentoo/elfix/commits/master/misc/install-xattr. The only change I didn't backport in =sys-apps/install-xattr-0.8-r1 was https://github.com/gentoo/elfix/commit/09f9b61bdfa488d78bdba4562eb208bd1f062eaf (and another test-only fix). Does it consistently fail with install-xattr-0.8-r1, then start to work consistnetly if you apply that patch in /etc/portage/patches to install-xattr? It's interesting if that does it and unexpected. The error also very much looks like a race.
(For completeness, forums discussion: https://forums.gentoo.org/viewtopic-t-1165962.html).
How do i get this patch ?
Created attachment 875325 [details, diff] Patch for sys-apps/install-xattr-0.8-r1 I have made a patch from https://github.com/gentoo/elfix/commit/09f9b61bdfa488d78bdba4562eb208bd1f062eaf and it works, with this change vlc build with vdpau and portage xattr enabled.