Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 914298 - media-video/vlc-3.0.18-r3:0/5-9: build failed when enable vdpau
Summary: media-video/vlc-3.0.18-r3:0/5-9: build failed when enable vdpau
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-16 17:13 UTC by ncaq
Modified: 2023-11-22 10:09 UTC (History)
3 users (show)

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


Attachments
emerge --info (emerge-info.txt,22.91 KB, text/plain)
2023-09-16 17:13 UTC, ncaq
Details
Compressed build.log (build.log.gz,170.58 KB, application/gzip)
2023-09-16 17:16 UTC, ncaq
Details
Vlc 3.0.20-r1 build log with USE="vdpau" (vlc-3.0.20-r1.log.gz,193.96 KB, application/gzip)
2023-11-21 06:03 UTC, Oliver Hildebrandt
Details
This is the build.log when i disable xattr in portage (vlc-3.0.20-r1-without-xattr.log.gz,197.57 KB, application/gzip)
2023-11-21 06:12 UTC, Oliver Hildebrandt
Details
Patch for sys-apps/install-xattr-0.8-r1 (install-xattr.patch,423 bytes, patch)
2023-11-22 10:09 UTC, Oliver Hildebrandt
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description ncaq 2023-09-16 17:13:15 UTC
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.
Comment 1 ncaq 2023-09-16 17:13:46 UTC
Created attachment 870741 [details]
emerge --info
Comment 2 ncaq 2023-09-16 17:16:24 UTC
Created attachment 870742 [details]
Compressed build.log
Comment 3 Jesusaur 2023-09-27 02:10:14 UTC
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
Comment 4 Oliver Hildebrandt 2023-11-16 17:44:15 UTC
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.
Comment 5 Kostadin Shishmanov 2023-11-16 20:29:16 UTC
Does it eventually build fine if you try a couple of times?

See also: https://code.videolan.org/videolan/vlc/-/issues/28374
Comment 6 Oliver Hildebrandt 2023-11-17 06:35:15 UTC
No it doesn't build fine when i try to build it a couple of times.
Comment 7 Oliver Hildebrandt 2023-11-21 06:03:03 UTC
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.
Comment 8 Oliver Hildebrandt 2023-11-21 06:12:35 UTC
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.
Comment 9 Oliver Hildebrandt 2023-11-21 06:22:07 UTC
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.
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-11-21 22:30:21 UTC
(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.
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-11-21 22:30:36 UTC
(For completeness, forums discussion: https://forums.gentoo.org/viewtopic-t-1165962.html).
Comment 12 Oliver Hildebrandt 2023-11-22 05:14:42 UTC
How do i get this patch ?
Comment 13 Oliver Hildebrandt 2023-11-22 10:09:39 UTC
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.