[FFmpeg-cvslog] Deprecate oldabi branch by adding a warning to configure

Timothy Gu git at videolan.org
Mon Jul 15 03:30:06 CEST 2013


ffmpeg | branch: oldabi | Timothy Gu <timothygu99 at gmail.com> | Sun Jul 14 15:25:43 2013 -0700| [ea4e8e642acc8c192a129470cb58c45beb62940b] | committer: Michael Niedermayer

Deprecate oldabi branch by adding a warning to configure

In order to build, users must now explicitly pass --enable-building to
configure.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ea4e8e642acc8c192a129470cb58c45beb62940b
---

 configure |   20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/configure b/configure
index 25cea23..ed345da 100755
--- a/configure
+++ b/configure
@@ -72,6 +72,9 @@ Standard options:
   --mandir=DIR             install man page in DIR [PREFIX/share/man]
 
 Configuration options:
+  --enable-building        enable building ONLY if you understand the
+                           potential security risk posed by using this
+                           branch (oldabi)
   --disable-static         do not build static libraries [no]
   --enable-shared          build shared libraries [no]
   --enable-gpl             allow use of GPL code, the resulting libs
@@ -910,6 +913,7 @@ CONFIG_LIST="
     avfilter
     avformat
     avisynth
+    building
     bzlib
     crystalhd
     dct
@@ -1936,6 +1940,22 @@ filter_cflags=echo
 filter_cppflags=echo
 filter_asflags=echo
 
+if ! enabled building; then
+    cat <<EOF
+!!!! WARNING !!!!
+
+This branch is NOT actively maintained and CAN contain serious security
+issues. This branch is only provided for historical interest.
+
+For a newer branch with the old API/ABI, please use release/0.5 or
+release/0.7.
+
+If you really want to build this, pass --enable-building to configure.
+EOF
+    log --enable-building not enabled. Aborting.
+    exit 1;
+fi
+
 if   $cc -v 2>&1 | grep -q '^gcc.*LLVM'; then
     cc_type=llvm_gcc
     cc_version=__VERSION__



More information about the ffmpeg-cvslog mailing list