Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 621728 - >=media-video/ffmpeg-3.2.5 fails to configure on MIPS due to Unknown option "--disable-mipsdspr1"
Summary: >=media-video/ffmpeg-3.2.5 fails to configure on MIPS due to Unknown option "...
Status: RESOLVED FIXED
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: PATCH
Depends on:
Blocks:
 
Reported: 2017-06-14 09:07 UTC by Stuart Longland
Modified: 2017-06-19 16:56 UTC (History)
1 user (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 Stuart Longland 2017-06-14 09:07:09 UTC
Seems upstream have re-worked some of their configure flags, and that breaks things on MIPS.  When trying to build, one sees the following:

---
>>> Configuring source in /var/tmp/portage/media-video/ffmpeg-3.2.5/work/ffmpeg-3.2.5 ...                                   * abi_mips_n64.n64: running multilib-minimal_abi_src_configure                                                            /var/tmp/portage/media-video/ffmpeg-3.2.5/work/ffmpeg-3.2.5/configure --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/share/doc/ffmpeg-3.2.5/html --mandir=/usr/share/man --enable-shared --cc=mips64el-unknown-linux-gnu-gcc --cxx=mips64el-unknown-linux-gnu-g++ --ar=mips64el-unknown-linux-gnu-ar --optflags=-O2 -mabi=64 -pipe -Wa,-mfix-loongson2f-nop -march=loongson2f --disable-static --enable-avfilter --enable-avresample --disable-stripping --disable-indev=v4l2 --disable-outdev=v4l2 --disable-indev=alsa --disable-indev=oss --disable-indev=jack --disable-outdev=alsa --disable-outdev=oss --disable-outdev=sdl --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --disable-gnutls --disable-gmp --enable-gpl --enable-hardcoded-tables --enable-iconv --disable-lzma --enable-network --disable-openssl --enable-postproc --disable-libsmbclient --disable-ffplay --disable-sdl2 --disable-vaapi --disable-vdpau --disable-xlib --disable-libxcb --disable-libxcb-shm --disable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --disable-libcaca --disable-openal --disable-opengl --disable-libv4l2 --disable-libpulse --disable-libopencore-amrwb --disable-libopencore-amrnb --disable-libfdk-aac --disable-libopenjpeg --disable-libbluray --disable-libcelt --disable-libgme --disable-libgsm --disable-mmal --disable-libmodplug --disable-libopus --disable-libilbc --disable-librtmp --disable-libssh --disable-libschroedinger --disable-libspeex --disable-libvorbis --disable-libvpx --disable-libzvbi --disable-libbs2b --disable-chromaprint --disable-libebur128 --disable-libflite --disable-frei0r --disable-libfribidi --disable-fontconfig --disable-ladspa --disable-libass --disable-libfreetype --disable-librubberband --disable-libzimg --disable-libsoxr --enable-pthreads --disable-libvo-amrwbenc --disable-libmp3lame --disable-libkvazaar --disable-nvenc --disable-libopenh264 --disable-libsnappy --disable-libtheora --disable-libtwolame --disable-libwavpack --disable-libwebp --disable-libx264 --disable-libx265 --disable-libxvid --disable-x11grab --disable-mipsdspr1 --disable-mipsdspr2 --disable-mipsfpu --cpu=loongson2f --disable-doc --disable-htmlpages --enable-manpages                                                                                              Unknown option "--disable-mipsdspr1".                                                                                      See /var/tmp/portage/media-video/ffmpeg-3.2.5/work/ffmpeg-3.2.5/configure --help for available options.                     * ERROR: media-video/ffmpeg-3.2.5::gentoo failed (configure phase):   
---

The cause is down to some changes made upstream, made in 2015:
https://ffmpeg.org/pipermail/ffmpeg-devel/2015-November/183375.html
https://ffmpeg.org/pipermail/ffmpeg-cvslog/2015-March/087111.html

The fix, is to tweak the ebuild:
---
zhouman stuartl # diff -u /usr/portage/media-video/ffmpeg/ffmpeg-3.3.1.ebuild /home/portage/overlays/local/media-video/ffmpeg/ffmpeg-3.3.1.ebuild
--- /usr/portage/media-video/ffmpeg/ffmpeg-3.3.1.ebuild 2017-05-16 01:51:22.000000000 +1000
+++ /home/portage/overlays/local/media-video/ffmpeg/ffmpeg-3.3.1.ebuild 2017-06-10 09:13:03.702786694 +1000
@@ -120,7 +120,7 @@
        cpu_flags_arm_thumb2? ( cpu_flags_arm_v6 )
        cpu_flags_arm_v6? ( cpu_flags_arm_thumb )
 "
-MIPS_CPU_FEATURES=( mipsdspr1 mipsdspr2 mipsfpu )
+MIPS_CPU_FEATURES=( mipsdsp mipsfpu )
 PPC_CPU_FEATURES=( altivec )
 X86_CPU_FEATURES_RAW=( 3dnow:amd3dnow 3dnowext:amd3dnowext aes:aesni avx:avx avx2:avx2 fma3:fma3 fma4:fma4 mmx:mmx mmxext:mmxext sse:sse sse2:sse2 sse3:sse3 ssse3:ssse3 sse4_1:sse4 sse4_2:sse42 xop:xop )
 X86_CPU_FEATURES=( ${X86_CPU_FEATURES_RAW[@]/#/cpu_flags_x86_} )
---
Comment 1 Alexis Ballier gentoo-dev 2017-06-19 16:56:07 UTC
commit d82760ae9edbe52b0907078059262fc946cd0805 (HEAD -> master, origin/master, origin/HEAD)
Author: Alexis Ballier <aballier@gentoo.org>
Date:   Mon Jun 19 18:54:53 2017 +0200

    media-video/ffmpeg: Backport mipdsp fix to latest ~arch, bug #621728
    



thx


more permanent check for that kind of bug added to -9999 in a previous commit