[vlc-devel] [PATCH 2/8] contrib: specify the .sum- prefix in the checksum function

Steve Lhomme robux4 at ycbcr.xyz
Wed Aug 26 08:26:51 CEST 2020


On 2020-08-25 16:45, Thomas Guillem wrote:
> This will be used for .cargo-vendor-*-sum

This naming will prevent "make fetch" from downloading the Rust code. Is 
it intentional ?

The rule is
   fetch: $(PKGS:%=.sum-%)

> ---
>   contrib/src/main.mak | 6 +++---
>   1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/contrib/src/main.mak b/contrib/src/main.mak
> index 0266e2a1199..d0df860a954 100644
> --- a/contrib/src/main.mak
> +++ b/contrib/src/main.mak
> @@ -363,10 +363,10 @@ check_githash = \
>   checksum = \
>   	$(foreach f,$(filter $(TARBALLS)/%,$^), \
>   		grep -- " $(f:$(TARBALLS)/%=%)$$" \
> -			"$(SRC)/$(patsubst .sum-%,%,$@)/$(2)SUMS" &&) \
> +			"$(SRC)/$(patsubst $(3)-%,%,$@)/$(2)SUMS" &&) \
>   	(cd $(TARBALLS) && $(1) /dev/stdin) < \
> -		"$(SRC)/$(patsubst .sum-%,%,$@)/$(2)SUMS"
> -CHECK_SHA512 = $(call checksum,$(SHA512SUM),SHA512)
> +		"$(SRC)/$(patsubst $(3)-%,%,$@)/$(2)SUMS"
> +CHECK_SHA512 = $(call checksum,$(SHA512SUM),SHA512,.sum)
>   UNPACK = $(RM) -R $@ \
>   	$(foreach f,$(filter %.tar.gz %.tgz,$^), && tar xvzfo $(f)) \
>   	$(foreach f,$(filter %.tar.bz2,$^), && tar xvjfo $(f)) \
> -- 
> 2.28.0
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
> 


More information about the vlc-devel mailing list