[vlc-commits] [Git][videolan/vlc][master] tools: fix libtool version check for Debian
Steve Lhomme (@robUx4)
gitlab at videolan.org
Sun Sep 7 07:49:16 UTC 2025
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
42e32fb7 by Romain Vimont at 2025-09-07T06:43:38+00:00
tools: fix libtool version check for Debian
On Debian, the libtool version is prefixed by "Debian-":
$ libtool --version | head -1
libtool (GNU libtool) 2.5.4 Debian-2.5.4-4
As a consequence, the extracted version is incorrect:
$ libtool --version | head -1 | sed s/'.* '//
Debian-2.5.4-4
causing the bootstrap script to fail:
./bootstrap: 31: [: Illegal number: Debian-2
./bootstrap: 32: [: Illegal number: Debian-2
./bootstrap: 33: [: Illegal number: Debian-2
Extract the first pattern matching NUM.NUM or NUM.NUM.NUM.
- - - - -
1 changed file:
- extras/tools/bootstrap
Changes:
=====================================
extras/tools/bootstrap
=====================================
@@ -128,7 +128,7 @@ else
if [ -z "$2" ];then
FOUND="$FOUND $1"
else
- gotver=`$1 --version | head -1 | sed s/'.* '//`
+ gotver=`$1 --version | head -1 | grep -o '[0-9]\+\.[0-9]\+\(\.[0-9]\+\)\?' | head -1`
check_version $1 $gotver $2
fi
fi
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/42e32fb792a7d9962e35a1cc6e2e4d96c9bf7708
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/42e32fb792a7d9962e35a1cc6e2e4d96c9bf7708
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