commit: a223d624533a05e320ea4a34644cebb61b0a0950 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> AuthorDate: Thu Sep 11 20:31:47 2025 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Thu Sep 11 22:29:17 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a223d624
media-video/vlc: live+snapshots need bison+flex Bug: https://bugs.gentoo.org/944778 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> media-video/vlc/vlc-3.0.9999.ebuild | 8 +++++++- media-video/vlc/vlc-9999.ebuild | 9 ++++++--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/media-video/vlc/vlc-3.0.9999.ebuild b/media-video/vlc/vlc-3.0.9999.ebuild index 94a2681394b0..53923dfbd20c 100644 --- a/media-video/vlc/vlc-3.0.9999.ebuild +++ b/media-video/vlc/vlc-3.0.9999.ebuild @@ -54,7 +54,10 @@ REQUIRED_USE=" vaapi? ( ffmpeg X ) vdpau? ( ffmpeg X ) " +# live+snapshots need bison+flex BDEPEND=" + sys-devel/bison + sys-devel/flex >=sys-devel/gettext-0.19.8 virtual/pkgconfig lua? ( ${LUA_DEPS} ) @@ -254,7 +257,7 @@ src_prepare() { eapply "${FILESDIR}"/${PN}-2.2.8-libupnp-slot-1.8.patch # Bootstrap when we are on a git checkout. - if [[ ${PV} = *9999 ]] ; then + if [[ ${PV} == *9999* || ${PV} == *_p[0-9]* ]] ; then ./bootstrap fi @@ -283,6 +286,9 @@ src_prepare() { } src_configure() { + # live+snapshots need bison+flex + unset LEX YACC + local -x BUILDCC="$(tc-getBUILD_CC)" local myeconfargs=( diff --git a/media-video/vlc/vlc-9999.ebuild b/media-video/vlc/vlc-9999.ebuild index a026bc8627a7..31fab379ad34 100644 --- a/media-video/vlc/vlc-9999.ebuild +++ b/media-video/vlc/vlc-9999.ebuild @@ -55,7 +55,10 @@ REQUIRED_USE=" vaapi? ( ffmpeg X ) vdpau? ( ffmpeg X ) " +# live+snapshots need bison+flex BDEPEND=" + sys-devel/bison + sys-devel/flex >=sys-devel/gettext-0.19.8 sys-devel/flex virtual/pkgconfig @@ -254,7 +257,7 @@ src_prepare() { eapply "${FILESDIR}"/${P}-libupnp-slot-1.8.patch # Bootstrap when we are on a git checkout. - if [[ ${PV} = *9999 ]] ; then + if [[ ${PV} == *9999* || ${PV} == *_p[0-9]* ]] ; then ./bootstrap fi @@ -283,8 +286,8 @@ src_prepare() { } src_configure() { - # bug #944778 - unset LEX + # live+snapshots need bison+flex + unset LEX YACC local -x BUILDCC="$(tc-getBUILD_CC)"
