[vlc-commits] [Git][videolan/vlc][master] Revert "contrib: rav1e: do the vendoring untar/build during the build phase"

Steve Lhomme (@robUx4) gitlab at videolan.org
Sat Jul 13 08:53:29 UTC 2024



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
3af8a660 by Steve Lhomme at 2024-07-13T08:01:17+00:00
Revert "contrib: rav1e: do the vendoring untar/build during the build phase"

This reverts commit 325123084b2529634bb5e203416712e21f91bf25.

The optional dependency doesn't work.
But in the end we can just create the tarball right after the download failed.
So the rav1e-$(RAV1E_VERSION)-vendor.tar.bz2 is guaranteed to create a usable tarball (or the build will fail).

Ultimately it should be the job of the download_vendor macro to create it if the download fails.

- - - - -


1 changed file:

- contrib/src/rav1e/rules.mak


Changes:

=====================================
contrib/src/rav1e/rules.mak
=====================================
@@ -30,7 +30,8 @@ DEPS_rav1e = rav1e-vendor $(DEPS_rav1e-vendor) cargo $(DEPS_cargo)
 
 # rav1e-vendor
 
-rav1e-vendor-build: .sum-rav1e
+rav1e-vendor-build: .cargo
+	$(RM) -R $@
 	mkdir -p $@
 	tar xzfo $(TARBALLS)/rav1e-$(RAV1E_VERSION).tar.gz -C $@ --strip-components=1
 	cd $@ && $(CARGO) vendor --locked rav1e-$(RAV1E_VERSION)-vendor
@@ -40,8 +41,10 @@ rav1e-vendor-build: .sum-rav1e
 	# install $@/SHA512SUMS $(SRC)/rav1e-vendor/SHA512SUMS
 	$(RM) -R $@
 
-$(TARBALLS)/rav1e-$(RAV1E_VERSION)-vendor.tar.bz2:
+$(TARBALLS)/rav1e-$(RAV1E_VERSION)-vendor.tar.bz2: .sum-rav1e
 	-$(call download_vendor,rav1e-$(RAV1E_VERSION)-vendor.tar.bz2,rav1e)
+	# if the vendor tarball doesn't exist yet, we build it
+	if test ! -s "$@"; then $(RM) -R rav1e-vendor-build; $(MAKE) rav1e-vendor-build; fi
 
 .sum-rav1e-vendor: rav1e-$(RAV1E_VERSION)-vendor.tar.bz2
 	touch $@
@@ -50,13 +53,7 @@ rav1e-vendor: rav1e-$(RAV1E_VERSION)-vendor.tar.bz2 .sum-rav1e-vendor
 	$(UNPACK)
 	$(MOVE)
 
-.rav1e-vendor: $(if $(shell test -s "$(TARBALLS)/rav1e-$(RAV1E_VERSION)-vendor.tar.bz2"), rav1e-vendor)
-	# if the vendor tarball doesn't exist yet, we build it and extract it
-	if test ! -s "$(TARBALLS)/rav1e-$(RAV1E_VERSION)-vendor.tar.bz2"; then \
-		$(RM) -R rav1e-vendor-build; \
-		$(MAKE) rav1e-vendor-build; \
-		$(MAKE) rav1e-vendor; \
-	fi
+.rav1e-vendor: rav1e-vendor
 	touch $@
 
 # rav1e



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/3af8a660f6078f808c37fb2fc22afb4d3f20b7d7

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/3af8a660f6078f808c37fb2fc22afb4d3f20b7d7
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