[vlc-devel] [PATCH 1/4] Add rustup to extras/tools

Kartik Ohri kartikohri13 at gmail.com
Tue Jul 21 12:42:22 CEST 2020


On Tue, Jul 21, 2020 at 4:06 PM Alexandre Janniaux <ajanni at videolabs.io>
wrote:

> Hi,
>
> Thank you for the contribution!
>
> On Tue, Jul 21, 2020 at 03:04:05PM +0530, rustyc wrote:
> > From: rustyc <kartikohri13 at gmail.com>
>
> We're expecting real names here. I guess by the name and email
> that it's not your? :)
>
> Yes, I forgot that :). Should I submit a new patchset or wait for
comments, resolve if any and then submit with my name ?

> >
> > ---
> >  extras/tools/SHA512SUMS   |  1 +
> >  extras/tools/bootstrap    |  1 +
> >  extras/tools/packages.mak |  3 +++
> >  extras/tools/tools.mak    | 24 ++++++++++++++++++++++++
> >  4 files changed, 29 insertions(+)
> >
> > diff --git a/extras/tools/SHA512SUMS b/extras/tools/SHA512SUMS
> > index f41238c45e..67c102d9e8 100644
> > --- a/extras/tools/SHA512SUMS
> > +++ b/extras/tools/SHA512SUMS
> > @@ -20,3 +20,4 @@
> d24849b93de58b20f518c071687e7bfa653a96600382f36c4cf7fc1047656458f75f093b911b786b
> >
> 8d23dde18525dccaa648ca01df40151e7f00cec4846bd611c8970dbcfc1fb57a453facfe4d41462e7c3c8bb548d44b961a04e4fc3073ab6b65063e53f42bf6fd
> nasm-2.14.tar.gz
> >
> e3c97ffd9409a543e45c8be7b12d4e8437de8dbd0cd236fbe092952d7d0833728d46ff6b679c8a73dae4c4016fdf38b43b56f3959a95968a29db109ebfe254e7
> meson-0.54.0.tar.gz
> >
> 1650bf9e3eddeb0b0fbb415c2b8e0a7c094421e991fa8139fd77fae0f6ee7ee980b7cf5e98d883c3a884f99abcb06fa26e3980af3a3a5bb6dd655124755782c2
> ninja-1.8.2.tar.gz
> >
> +14a978a3cf699956722d8443070b9f8a043f1252cc1a7ed300b14637a0e6d654f34088d4403790c676500cbab327e30fdb7f81be0b9bde29e552143f26912ac7
> rustup-1.22.1.tar.gz
> > \ No newline at end of file
> > diff --git a/extras/tools/bootstrap b/extras/tools/bootstrap
> > index a22ddb1b4e..f47758a434 100755
> > --- a/extras/tools/bootstrap
> > +++ b/extras/tools/bootstrap
> > @@ -148,6 +148,7 @@ check gettext
> >  check help2man
> >  check meson 0.54.0
> >  check ninja
> > +check rustup
> >
> >  DEPS_ONLY="help2man"
> >
> > diff --git a/extras/tools/packages.mak b/extras/tools/packages.mak
> > index b151f7846f..e4ea1341a7 100644
> > --- a/extras/tools/packages.mak
> > +++ b/extras/tools/packages.mak
> > @@ -65,3 +65,6 @@ MESON_URL=
> https://github.com/mesonbuild/meson/releases/download/$(MESON_VERSION)
> >
> >  NINJA_VERSION=1.8.2
> >  NINJA_URL=
> https://github.com/ninja-build/ninja/archive/v$(NINJA_VERSION).tar.gz
> > +
> > +RUSTUP_VERSION=1.22.1
> > +RUSTUP_URL=
> https://github.com/rust-lang/rustup/archive/$(RUSTUP_VERSION).tar.gz
> > \ No newline at end of file
> > diff --git a/extras/tools/tools.mak b/extras/tools/tools.mak
> > index db3a79c688..2191f70394 100644
> > --- a/extras/tools/tools.mak
> > +++ b/extras/tools/tools.mak
> > @@ -439,6 +439,30 @@ CLEAN_PKG += ninja
> >  DISTCLEAN_PKG += ninja-$(NINJA_VERSION).tar.gz
> >  CLEAN_FILE += .buildninja
> >
> > +#
> > +# rustup installation
> > +#
> > +
> > +rustup-$(RUSTUP_VERSION).tar.gz:
> > +     $(call download_pkg,$(RUSTUP_URL),rustup)
> > +
> > +rustup: rustup-$(RUSTUP_VERSION).tar.gz
> > +     $(UNPACK)
> > +     $(MOVE)
> > +
> > +.buildrustup: rustup
> > +     cd $< && RUSTUP_HOME=$(PREFIX) CARGO_HOME=$(PREFIX)
> ./rustup-init.sh --no-modify-path -y
> > +     rustup default stable
> > +     rustup target add x86_64-pc-windows-gnu i686-pc-windows-gnu
> aarch64-linux-android\
> > +             arm-linux-androideabi i686-linux-android
> x86_64-linux-android aarch64-apple-ios\
> > +             x86_64-apple-ios x86_64-unknown-linux-gnu
> i686-unknown-linux-gnu
> > +     cargo install cargo-c
> > +     touch $@
> > +
> > +CLEAN_PKG += rustup
> > +DISTCLEAN_PKG += rustup-$(RUSTUP_VERSION).tar.gz
> > +CLEAN_FILE += .buildrustup
> > +
> >  #
> >  #
> >  #
> > --
> > 2.25.1
> >
> > _______________________________________________
> > vlc-devel mailing list
> > To unsubscribe or modify your subscription options:
> > https://mailman.videolan.org/listinfo/vlc-devel
> _______________________________________________
> 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/20200721/f2d38b78/attachment.html>


More information about the vlc-devel mailing list