Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 946086 - media-video/obs-studio-31.0.0 requires ffmpeg >= 6.1
Summary: media-video/obs-studio-31.0.0 requires ffmpeg >= 6.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Chiitoo
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-08 07:06 UTC by Adam
Modified: 2024-12-14 11:55 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 Adam 2024-12-08 07:06:45 UTC
obs-studio 31.0.0 shouldn't be trying to emerge on systems that don't meet the ffmpeg requirement.

Reproducible: Always
Comment 1 Greg Kubaryk 2024-12-08 07:28:57 UTC
got an emerge --info, for the record?
Comment 2 Adam 2024-12-08 16:30:24 UTC
Sorry, here it is:

# emerge --info
Portage 3.0.66.1 (python 3.12.7-final-0, default/linux/amd64/23.0/split-usr/desktop/plasma, gcc-14, glibc-2.40-r5, 6.11.10-gentoo-x86_64 x86_64)
=================================================================
System uname: Linux-6.11.10-gentoo-x86_64-x86_64-AMD_Ryzen_5_5600_6-Core_Processor-with-glibc2.40
KiB Mem:    32801148 total,  27142252 free
KiB Swap:   33554424 total,  33554424 free
Timestamp of repository gentoo: Sun, 08 Dec 2024 07:00:00 +0000
Head commit of repository gentoo: ce05faf0d823debcbd2f8637010da2a0eefe94df
Timestamp of repository qownnotes-overlay: Thu, 05 Dec 2024 19:03:16 +0000
Head commit of repository qownnotes-overlay: 2ac14986b80bf0cea257d49927781a967b5ed2f1

Timestamp of repository steam-overlay: Sat, 07 Dec 2024 21:03:17 +0000
Head commit of repository steam-overlay: ddff9b96a103af62bbd78b6a87dfc883c2da2608

sh bash 5.2_p37
ld GNU ld (Gentoo 2.43 p3) 2.43.1
distcc 3.4 x86_64-pc-linux-gnu [disabled]
app-misc/pax-utils:        1.3.8::gentoo
app-shells/bash:           5.2_p37::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.72-r1::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.30.6::gentoo
dev-build/libtool:         2.4.7-r4::gentoo
dev-build/make:            4.4.1-r100::gentoo
dev-build/meson:           1.5.2::gentoo
dev-java/java-config:      2.3.4::gentoo
dev-lang/perl:             5.40.0::gentoo
dev-lang/python:           3.12.7_p1::gentoo
dev-lang/rust:             1.81.0-r100::gentoo, 1.82.0-r100::gentoo
sys-apps/baselayout:       2.17::gentoo
sys-apps/openrc:           0.55.1::gentoo
sys-apps/sandbox:          2.39::gentoo
sys-devel/binutils:        2.43-r2::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/clang:           18.1.8::gentoo, 19.1.4::gentoo
sys-devel/gcc:             14.2.1_p20241116::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/lld:             18.1.8::gentoo
sys-devel/llvm:            18.1.8-r1::gentoo, 19.1.4::gentoo
sys-kernel/linux-headers:  6.6-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.40-r5::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://192.168.24.254/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-extra-opts: 
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes

qownnotes-overlay
    location: /var/db/repos/qownnotes-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/qownnotes-overlay.git
    masters: gentoo
    volatile: False

steam-overlay
    location: /var/db/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
    masters: gentoo
    volatile: False

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -march=native -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=native -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X a52 aac acl acpi activities alsa amd64 bluetooth branding brightness-control bzip2 cairo cdda cdr chromecast codec2 cpudetection crypt cups dbus declarative dia dolphin dri dts dvd dvdr egl elogind encode epub exif faad ffmpeg flac fontconfig frei0r gdbm gif gles2 gmp gpg gpm grub gsm gtk gui heif iconv icu id3tag ipv6 jpeg kate kde kf6compat kwallet lcms libnotify libtirpc live lm-sensors lto mad matroska minizip mng mp3 mp4 mpeg multilib ncurses networkmanager nfs nls ogg opencl opengl openmp opus pam pango pcre pcre16 pdf pgo pipewire plasma png policykit postscript ppds pulseaudio qml qrcode qt5 qt6 rdp readline savedconfig scanner screencast sddm sdl seccomp semantic-desktop shout sip sound speex spell split-usr ssl startup-notification svg svg2 taglib test-rust text theora tiff truetype udev udisks unicode upower usb v4l vaapi visio vorbis vpx vulkan wayland webengine webp widgets wxwidgets x264 x265 xattr xcb xft xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PERL_FEATURES="ithreads" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby32" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, MAKEOPTS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 3 Alexey Min 2024-12-08 22:08:57 UTC
+1, error is:

>> Emerging (8 of 21) media-video/obs-studio-31.0.0::gentoo
 * obs-studio-31.0.0.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                                                                             [ ok ]
 * obs-browser-a76b4d8810a0a33e91ac5b76a0b1af2f22bf8efd.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                                          [ ok ]
 * obs-websocket-eed8a49933786383d11f4868a4e5604a9ee303c6.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                                        [ ok ]
>>> Unpacking source...
>>> Unpacking obs-studio-31.0.0.tar.gz to /var/tmp/portage/media-video/obs-studio-31.0.0/work
>>> Unpacking obs-browser-a76b4d8810a0a33e91ac5b76a0b1af2f22bf8efd.tar.gz to /var/tmp/portage/media-video/obs-studio-31.0.0/work
>>> Unpacking obs-websocket-eed8a49933786383d11f4868a4e5604a9ee303c6.tar.gz to /var/tmp/portage/media-video/obs-studio-31.0.0/work
>>> Source unpacked in /var/tmp/portage/media-video/obs-studio-31.0.0/work
>>> Preparing source in /var/tmp/portage/media-video/obs-studio-31.0.0/work/obs-studio-31.0.0 ...
 * Source directory (CMAKE_USE_DIR): "/var/tmp/portage/media-video/obs-studio-31.0.0/work/obs-studio-31.0.0"
 * Build directory  (BUILD_DIR):     "/var/tmp/portage/media-video/obs-studio-31.0.0/work/obs-studio-31.0.0_build"
 * Applying json11-1.0.0-include-cstdint.patch ...                                                                                                                                                  [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/media-video/obs-studio-31.0.0/work/obs-studio-31.0.0 ...
 * Source directory (CMAKE_USE_DIR): "/var/tmp/portage/media-video/obs-studio-31.0.0/work/obs-studio-31.0.0"
 * Build directory  (BUILD_DIR):     "/var/tmp/portage/media-video/obs-studio-31.0.0/work/obs-studio-31.0.0_build"
cmake -C /var/tmp/portage/media-video/obs-studio-31.0.0/work/obs-studio-31.0.0_build/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DENABLE_ALSA=yes -DENABLE_AJA=OFF -DENABLE_BROWSER=no -DENABLE_CCACHE=OFF -DENABLE_DECKLINK=no -DENABLE_FFMPEG_NVENC=no -DENABLE_FREETYPE=yes -DENABLE_JACK=no -DENABLE_LIBFDK=no -DENABLE_NEW_MPEGTS_OUTPUT=no -DENABLE_NVENC=no -DENABLE_PIPEWIRE=yes -DENABLE_PULSEAUDIO=yes -DENABLE_QSV11=no -DENABLE_RNNOISE=ON -DENABLE_SNDIO=no -DENABLE_SPEEXDSP=yes -DENABLE_TEST_INPUT=no -DENABLE_V4L2=yes -DENABLE_VLC=no -DENABLE_VST=ON -DENABLE_WAYLAND=yes -DENABLE_WEBRTC=OFF -DENABLE_WEBSOCKET=no -DOBS_VERSION_OVERRIDE=31.0.0 -DENABLE_SCRIPTING=OFF -DENABLE_WHATSNEW=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/media-video/obs-studio-31.0.0/work/obs-studio-31.0.0_build/gentoo_toolchain.cmake /var/tmp/portage/media-video/obs-studio-31.0.0/work/obs-studio-31.0.0
loading initial cache file /var/tmp/portage/media-video/obs-studio-31.0.0/work/obs-studio-31.0.0_build/gentoo_common_config.cmake
-- The C compiler identification is GNU 14.2.1
-- The CXX compiler identification is GNU 14.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:233 (message):
  Could NOT find FFmpeg: Found unsuitable version "4.4", but required is at
  least "6.1" (found
  /usr/lib64/libavformat.so;/usr/lib64/libavutil.so;/usr/lib64/libswscale.so;/usr/lib64/libswresample.so;/usr/lib64/libavcodec.so,
  found components: avformat avutil swscale swresample avcodec)

      Reason given by package: Ensure that required FFmpeg libraries are installed on the system.

Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:601 (_FPHSA_FAILURE_MESSAGE)
  cmake/finders/FindFFmpeg.cmake:313 (find_package_handle_standard_args)
  libobs/CMakeLists.txt:12 (find_package)


-- Configuring incomplete, errors occurred!
 * ERROR: media-video/obs-studio-31.0.0::gentoo failed (configure phase):
 *   cmake failed
Comment 4 Michał Dec 2024-12-13 09:34:29 UTC
I've got this bug today. The log says:
```
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:233 (message):
  Could NOT find FFmpeg: Found unsuitable version "4.4", but required is at                                                                                                                                                                  
  least "6.1" (found                                                                                                                                                                                                                         
  /usr/lib64/libavformat.so;/usr/lib64/libavutil.so;/usr/lib64/libswscale.so;/usr/lib64/libswresample.so;/usr/lib64/libavcodec.so,                                                                                                           
  found components: avformat avutil swscale swresample avcodec)                                                                                                                                                                              
                                                                                                                                                                                                                                             
      Reason given by package: Ensure that required FFmpeg libraries are installed on the system.                                                                                                                                            
                                                                                                                                                                                                                                             
Call Stack (most recent call first):                                                                                                                                                                                                         
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:601 (_FPHSA_FAILURE_MESSAGE)                                                                                                                                                  
  cmake/finders/FindFFmpeg.cmake:313 (find_package_handle_standard_args)                                                                                                                                                                     
  libobs/CMakeLists.txt:12 (find_package)
```

If there's 1 person able to repro, I don't think it's unreasonable to remove the unconfirmed label.

What I fail to understand is why the output emerge --info and other habitual outputs are even needed when the error states abundantly clearly what is the root cause?

I can't remember why, but I've put >=media-video/ffmpeg-5.0.0 into my personal mask list under the file "broken_packages". I might have to start commenting why and how each entry is qualified.

I'll wait until all the packages that require a rebuild after bumping ffmpeg to 6.1.1-r8 square out and report my findings.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-12-13 09:37:28 UTC
(In reply to Michał Dec from comment #4)
> If there's 1 person able to repro, I don't think it's unreasonable to remove
> the unconfirmed label.

We don't generally use UNCO/CONF in Gentoo.

> 
> What I fail to understand is why the output emerge --info and other habitual
> outputs are even needed when the error states abundantly clearly what is the
> root cause?

Because it allows people who triage to quickly figure out if it's before/after a potential commit and so on.
Comment 6 Michał Dec 2024-12-13 11:57:50 UTC
Everything works fine after upgrading ffmpeg. Here's a little patch that should make sure other people don't run into this bug:

--- obs-studio-31.0.0.ebuild    2024-12-08 05:42:07.846977763 +0100
+++ obs-studio-31.0.0-r1.ebuild 2024-12-13 12:51:59.803202942 +0100
@@ -67,7 +67,7 @@
        media-libs/libva
        media-libs/rnnoise
        media-libs/x264:=
-       media-video/ffmpeg:=[nvenc?,opus,x264]
+       >=media-video/ffmpeg-6.1.0:=[nvenc?,opus,x264]
        net-misc/curl
        net-libs/mbedtls:=
        sys-apps/dbus
Comment 7 Alexey Min 2024-12-13 16:23:19 UTC
You can also workaround this by temporary adding =media-video/obs-studio-31.0.0 to package.mask to prevent portage from trying to upgrade to this version, thus allowing all other packages to upgrade normally.
Comment 8 Michał Dec 2024-12-13 16:39:16 UTC
Yeah, but it still leaves us with a broken package. Version requirements in the package's selected build system (CMake in this case) should be communicated clearly in the ebuild.
Comment 9 Larry the Git Cow gentoo-dev 2024-12-13 22:06:12 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=15dc6118d4c31784511fdbee895ba234fb5d3a47

commit 15dc6118d4c31784511fdbee895ba234fb5d3a47
Author:     Jimi Huotari <chiitoo@gentoo.org>
AuthorDate: 2024-12-13 21:56:49 +0000
Commit:     Jimi Huotari <chiitoo@gentoo.org>
CommitDate: 2024-12-13 22:05:32 +0000

    media-video/obs-studio: add 'media-video/ffmpeg' version requirement
    
    Closes: https://bugs.gentoo.org/946086
    Signed-off-by: Jimi Huotari <chiitoo@gentoo.org>

 media-video/obs-studio/obs-studio-31.0.0-r1.ebuild | 277 +++++++++++++++++++++
 media-video/obs-studio/obs-studio-9999.ebuild      |   2 +-
 2 files changed, 278 insertions(+), 1 deletion(-)
Comment 10 Chiitoo gentoo-dev 2024-12-13 22:09:54 UTC
Thought I added this a while ago to the 9999, but I suppose I forgot to push it or something...

Thanks for the report!

As for ffmpeg-4 VS anything higher, a common reason (if not only these days) is 'media-video/vlc' with USE="vaapi" if I remember/see things right-like.
Comment 11 Timo Ollech 2024-12-14 11:55:48 UTC
(In reply to Chiitoo from comment #10)
> As for ffmpeg-4 VS anything higher, a common reason (if not only these days)
> is 'media-video/vlc' with USE="vaapi" if I remember/see things right-like.

Correct, see Bug 864721.