[vlc-devel] [PATCH] Fixes the extras/tools/bootstrap that was broken when ProtoBuf 3.1 was installed system-wide.

Pyry Kontio pyry.kontio at drasa.eu
Fri Oct 21 22:22:24 CEST 2016


Hi Sean,

Well, can't say for sure about the version numbering systems that are being
used in different projects, but I think that at least nothing will break
spuriously if the projects bump the major version and we'll continue using
locally the possibly older version that's specified in the bootstrap file,
and bump them manually sometimes. Major bump happens very rarely anyway.

All the best,
Pyry

2016-10-21 23:08 GMT+03:00 Sean McGovern <gseanmcg at gmail.com>:

> Hi Pyry,
>
> On Oct 21, 2016 15:32, "Pyry Kontio" <pyry.kontio at drasa.eu> wrote:
> >
> > The bootstrap script that outputs which binary tools need to be
> installed, incorrectly
> > detects that Protocol Buffers 3.1 is a compatible version with 2.6. I
> changed the
> > check on the major version number to require it to be same, not just
> bigger,
> > since changes on the major version numbers might be breaking changes, as
> was the case
> > here.
> > ---
> >  extras/tools/bootstrap | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/extras/tools/bootstrap b/extras/tools/bootstrap
> > index 9666436..95870fa 100755
> > --- a/extras/tools/bootstrap
> > +++ b/extras/tools/bootstrap
> > @@ -60,7 +60,7 @@ else
> >      needminor=`echo $2|cut -d. -f2`
> >      needmicro=`echo $2|cut -d. -f3`
> >      [ -z "$needmicro" ] && needmicro=0
> > -    if [ "$needmajor" -gt "$gotmajor" \
> > +    if [ "$needmajor" -ne "$gotmajor" \
> >           -o "$needmajor" -eq "$gotmajor" -a "$needminor" -gt
> "$gotminor" \
> >           -o "$needmajor" -eq "$gotmajor" -a "$needminor" -eq
> "$gotminor" -a "$needmicro" -gt "$gotmicro" ]
> >      then
> > --
>
> Oooh! Nice catch!
>
> Can we be sure that all the other tools only bump major for a breaking
> change, though? If so, LGTM.
>
> ----
> Sean McGovern -  +1 613 862 6507
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20161021/fb7580ae/attachment.html>


More information about the vlc-devel mailing list