rdp/ffmpeg-windows-build-helpers

Script switches to wrong branch

Closed this issue · 2 comments

Script is running from a branch cloned from original (this repo). At some point script switches to master (which is outdated in my case) changing itself on-the-fly and everything goes wrong. How to make it stay in the same branch?

Build log
Already used meson glib-2.64.3
already did ninja glib-2.64.3
doing git checkout origin/master
HEAD is now at 889de184 changed model names for some GF lenses and GFX100S
fetched no code changes, not forcing reconfigure for that...
Already made /home/user/ffmpeg-windows-build-helpers/sandbox/win32 lensfun_git ...
doing git checkout origin/main
M       vp8/common/threading.h
HEAD is now at 73cdc9fd1 Merge "Enable some speed features on speed 0" into main
fetched no code changes, not forcing reconfigure for that...
Already made /home/user/ffmpeg-windows-build-helpers/sandbox/win32 libvpx_git ...
doing git checkout origin/stable
HEAD is now at ce882936d Update x265Version.txt
fetched no code changes, not forcing reconfigure for that...
Already made /home/user/ffmpeg-windows-build-helpers/sandbox/win32/x265_all_bitdepth 12bit ...
Already made /home/user/ffmpeg-windows-build-helpers/sandbox/win32/x265_all_bitdepth 10bit ...
Already made /home/user/ffmpeg-windows-build-helpers/sandbox/win32/x265_all_bitdepth 8bit ...
[ 20%] Built target encoder
[ 84%] Built target common
[ 85%] Built target x265-static
[ 86%] Linking CXX executable x265.exe
[100%] Built target cli
Install the project...
-- Install configuration: "Release"
-- Installing: /home/user/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32/lib/libx265.a
-- Up-to-date: /home/user/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32/include/x265.h
-- Up-to-date: /home/user/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32/include/x265_config.h
-- Up-to-date: /home/user/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32/lib/pkgconfig/x265.pc
-- Installing: /home/user/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32/bin/x265.exe
doing git checkout 75b9fcd2669c75a99791
M       codec/encoder/core/inc/param_svc.h
HEAD is now at 75b9fcd2 meson: fix broken shared library with no contents (#3477)
fetched no code changes, not forcing reconfigure for that...
Already made /home/user/ffmpeg-windows-build-helpers/sandbox/win32 openh264_git ...
doing git checkout origin/master
HEAD is now at 402e264b9 hadamard: Add 4x4 test.
fetched no code changes, not forcing reconfigure for that...
Already made /home/user/ffmpeg-windows-build-helpers/sandbox/win32/aom_git aom_build ...
doing git checkout origin/master
M       meson_options.txt
HEAD is now at 77b3955 checkasm: Add an --affinity= option for selecting a CPU core
fetched no code changes, not forcing reconfigure for that...
Already used meson libdav1d
already did ninja libdav1d
doing git checkout origin/master
HEAD is now at 8f4c40a0 Merge pull request #331 from Enyium/feature/issue-314/get-avs-value-type-letter
fetched no code changes, not forcing reconfigure for that...
Already made /home/user/ffmpeg-windows-build-helpers/sandbox/win32/avisynth_git avisynth-build ...
doing git checkout origin/stable
M       configure
HEAD is now at baee400f CI: Fix vlc-contrib processing on macos
fetched no code changes, not forcing reconfigure for that...
Already made /home/user/ffmpeg-windows-build-helpers/sandbox/win32 x264_all_bitdepth ...
install -d /home/user/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32/bin
install x264.exe /home/user/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32/bin
install -d /home/user/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32/include
install -d /home/user/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32/lib/pkgconfig
install -m 644 ./x264.h x264_config.h /home/user/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32/include
install -m 644 x264.pc /home/user/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32/lib/pkgconfig
install -d /home/user/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32/lib
install -m 644 libx264.a /home/user/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32/lib
/home/user/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/bin/i686-w64-mingw32-gcc-ranlib /home/user/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32/lib/libx264.a
doing git checkout master
M       libavfilter/vf_frei0r.c
Already on 'master'
Your branch is up to date with 'origin/master'.
Already up to date.
fetched no code changes, not forcing reconfigure for that...
configuring ffmpeg_git (/home/user/ffmpeg-windows-build-helpers/sandbox/win32/ffmpeg_git) as $ PKG_CONFIG_PATH=/home/user/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32/lib/pkgconfig PATH=/home/user/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/bin:$PATH ./configure --pkg-config=pkg-config --pkg-config-flags=--static --extra-version=ffmpeg-windows-build-helpers --enable-version3 --disable-debug --disable-w32threads --arch=x86 --target-os=mingw32 --cross-prefix=/home/user/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/bin/i686-w64-mingw32- --enable-libcaca --enable-gray --enable-libtesseract --enable-fontconfig --enable-gmp --enable-libass --enable-libbluray --enable-libbs2b --enable-libflite --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopus --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libvorbis --enable-libwebp --enable-libzimg --enable-libzvbi --enable-libmysofa --enable-libopenjpeg  --enable-libopenh264  --enable-libvmaf --enable-libsrt --enable-libxml2 --enable-opengl --enable-libdav1d --enable-cuda-llvm  --enable-gnutls --enable-libaom --enable-nvenc --enable-nvdec --extra-libs=-lharfbuzz --extra-libs=-lm --extra-libs=-lshlwapi --extra-libs=-lmpg123 --extra-libs=-lpthread --extra-cflags=-DLIBTWOLAME_STATIC --extra-cflags=-DMODPLUG_STATIC --extra-cflags=-DCACA_STATIC --enable-amf --enable-libmfx --enable-gpl --enable-frei0r --enable-librubberband --enable-libvidstab --enable-libx264 --enable-libx265 --enable-avisynth --enable-libaribb24 --enable-libxvid --enable-libdavs2 --enable-libxavs --extra-cflags=-mtune=generic --extra-cflags=-O3 --enable-static --disable-shared --prefix=/home/user/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32 
all touch files already_configured* touchname= already_configured_39d3a396943daeffac30e8838df02e3e-
config options --pkg-config=pkg-config --pkg-config-flags=--static --extra-version=ffmpeg-windows-build-helpers --enable-version3 --disable-debug --disable-w32threads --arch=x86 --target-os=mingw32 --cross-prefix=/home/user/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/bin/i686-w64-mingw32- --enable-libcaca --enable-gray --enable-libtesseract --enable-fontconfig --enable-gmp --enable-libass --enable-libbluray --enable-libbs2b --enable-libflite --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopus --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libvorbis --enable-libwebp --enable-libzimg --enable-libzvbi --enable-libmysofa --enable-libopenjpeg --enable-libopenh264 --enable-libvmaf --enable-libsrt --enable-libxml2 --enable-opengl --enable-libdav1d --enable-cuda-llvm --enable-gnutls --enable-libaom --enable-nvenc --enable-nvdec --extra-libs=-lharfbuzz --extra-libs=-lm --extra-libs=-lshlwapi --extra-libs=-lmpg123 --extra-libs=-lpthread --extra-cflags=-DLIBTWOLAME_STATIC --extra-cflags=-DMODPLUG_STATIC --extra-cflags=-DCACA_STATIC --enable-amf --enable-libmfx --enable-gpl --enable-frei0r --enable-librubberband --enable-libvidstab --enable-libx264 --enable-libx265 --enable-avisynth --enable-libaribb24 --enable-libxvid --enable-libdavs2 --enable-libxavs --extra-cflags=-mtune=generic --extra-cflags=-O3 --enable-static --disable-shared --prefix=/home/user/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32 ./configure
ERROR: amf requested but not found

If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.libera.chat.
Include the log file "ffbuild/config.log" produced by configure as this will help
solve the problem.
failed configure ffmpeg_git
rdp commented

Yeah, it used to reset script's branch. Can't reproduce or add options, because I deleted sandbox, tried again and everything builds just fine.