[vlc-devel] [PATCH 3/7] package/macosx: skip cache generation when cross-compiling

Rémi Denis-Courmont remi at remlab.net
Mon Nov 30 19:02:38 CET 2020


Le sunnuntaina 29. marraskuuta 2020, 21.12.35 EET Felix Paul Kühne a écrit :
> From: Felix Paul Kühne <felix at feepk.net>
> 
> ---
>  extras/package/macosx/package.mak | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/extras/package/macosx/package.mak
> b/extras/package/macosx/package.mak index 1423d7874e..0e60cc838a 100644
> --- a/extras/package/macosx/package.mak
> +++ b/extras/package/macosx/package.mak
> @@ -61,7 +61,11 @@ endif
>  	## Install binary
>  	cp $(prefix)/bin/vlc $@/Contents/MacOS/VLC
>  	## Generate plugin cache
> -	bin/vlc-cache-gen $@/Contents/MacOS/plugins
> +	if test "$(build)" = "$(host)"; then \
> +		bin/vlc-cache-gen $@/Contents/MacOS/plugins \
> +	else \
> +		echo "Cross-compilation: cache generation skipped!" ; \
> +	fi
>  	find $@ -type d -exec chmod ugo+rx '{}' \;
>  	find $@ -type f -exec chmod ugo+r '{}' \;

When and how are you planning to generate it instead?

On *cough* Windows *cough* operating systems without PIC, VLC takes forever to 
load without a plug-in cache. But even on operating systems from the nineties 
and later, the lack of a plug-in cache will cause noticeable delay in starting 
VLC...

So if you don't generate it during the build, you'll have to generate it 
during the installation - which precludes shipping VLC as a read-only 
filesystem image.

-- 
レミ・デニ-クールモン
http://www.remlab.net/





More information about the vlc-devel mailing list