[vlc-commits] [Git][videolan/vlc][master] tools: allow newer major versions

Steve Lhomme (@robUx4) gitlab at videolan.org
Fri Dec 5 11:20:31 UTC 2025



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
6b95cfb4 by Steve Lhomme at 2025-12-05T10:43:17+00:00
tools: allow newer major versions

When the user has CMake 4.x we should not build CMake 3.x
because we require at least 3.21.0.

This matching major version was introduced for protoc in ee5fad6a354d4fde1bb98f715e0455c603599554. But
it has moved to contribs and other tools (not matching a library)
should be backward compatible.

If there is another tool that needs to match the major version exactly,
we should at a special check for that.

- - - - -


1 changed file:

- extras/tools/bootstrap


Changes:

=====================================
extras/tools/bootstrap
=====================================
@@ -44,7 +44,7 @@ check_version() {
     needminor=`echo $3|cut -d. -f2`
     needmicro=`echo $3|cut -d. -f3`
     [ -z "$needmicro" ] && needmicro=0
-    if [ "$needmajor" -ne "$gotmajor" ] ||
+    if [ "$needmajor" -gt "$gotmajor" ] ||
        [ "$needmajor" -eq "$gotmajor" -a "$needminor" -gt "$gotminor" ] ||
        [ "$needmajor" -eq "$gotmajor" -a "$needminor" -eq "$gotminor" -a "$needmicro" -gt "$gotmicro" ];
     then



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/6b95cfb4a6aef7176ca0e8312b45998e17c040d0

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/6b95cfb4a6aef7176ca0e8312b45998e17c040d0
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list