PR #24375 opened by Kacper Michajłow (kasper93)
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24375
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24375.patch

When configure fails, currently there is no information provided in the
FATE report. We can at least show the command line, which is always
available.


From 9df38d42b8dfb06c3cdd02d414828c1c4ae853bf Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= <[email protected]>
Date: Sat, 5 Sep 2026 10:13:34 +0200
Subject: [PATCH] configure: write config.fate as soon as the command line is
 known
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

When configure fails, currently there is no information provided in the
FATE report. We can at least show the command line, which is always
available.

Signed-off-by: Kacper Michajłow <[email protected]>
---
 configure | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/configure b/configure
index 5fecdfd898..512192bec5 100755
--- a/configure
+++ b/configure
@@ -4588,6 +4588,12 @@ for v in "$@"; do
     FFMPEG_CONFIGURATION="${FFMPEG_CONFIGURATION# } ${l}${r}"
 done
 
+esc(){
+    echo "$*" | sed 's/%/%25/g;s/:/%3a/g'
+}
+
+echo "config::::::$(esc $FFMPEG_CONFIGURATION)" > ffbuild/config.fate
+
 find_things_extern(){
     thing=$1
     pattern=$2
@@ -8589,10 +8595,6 @@ fi
 
 test -e Makefile || echo "include $source_path/Makefile" > Makefile
 
-esc(){
-    echo "$*" | sed 's/%/%25/g;s/:/%3a/g'
-}
-
 echo "config:$arch:$subarch:$cpu:$target_os:$(esc $cc_ident):$(esc 
$FFMPEG_CONFIGURATION)" > ffbuild/config.fate
 
 enabled stripping || striptype="nostrip"
-- 
2.52.0

_______________________________________________
ffmpeg-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to