<html><head></head><body>Hi,<br><br>Indeed. Also it wouldn't only be shared by all VLC versions, it would be shared by all LibVLC plugin trees. If there is an app that ships its own LibVLC or its own extra plugins, it breaks too.<br><br><div class="gmail_quote">Le 7 décembre 2020 09:10:50 GMT+02:00, Steve Lhomme <robux4@ycbcr.xyz> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">On 2020-12-06 17:43, Felix Paul Kühne wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;">Hello,<br><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #ad7fa8; padding-left: 1ex;"> Am 30.11.2020 um 19:06 schrieb David Fuhrmann <david.fuhrmann@gmail.com>:<br><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #8ae234; padding-left: 1ex;"> Am 29.11.2020 um 20:12 schrieb Felix Paul Kühne <fkuehne@videolan.org>:<br><br> From: Felix Paul Kühne <felix@feepk.net><hr> extras/package/macosx/package.mak | 6 +++++-<br> 1 file changed, 5 insertions(+), 1 deletion(-)<br><br> diff --git a/extras/package/macosx/package.mak b/extras/package/macosx/package.mak<br> index 1423d7874e..0e60cc838a 100644<br> --- a/extras/package/macosx/package.mak<br> +++ b/extras/package/macosx/package.mak<br> @@ -61,7 +61,11 @@ endif<br>      ## Install binary<br>     cp $(prefix)/bin/vlc $@/Contents/MacOS/VLC<br>    ## Generate plugin cache<br> -    bin/vlc-cache-gen $@/Contents/MacOS/plugins<br> + if test "$(build)" = "$(host)"; then \<br> +          bin/vlc-cache-gen $@/Contents/MacOS/plugins \<br></blockquote> This patch has syntax issues (missing ";" ).<br><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #8ae234; padding-left: 1ex;"> + else \<br> +              echo "Cross-compilation: cache generation skipped!" ; \<br> +   fi<br>    find $@ -type d -exec chmod ugo+rx '{}' \;<br>    find $@ -type f -exec chmod ugo+r '{}' \;<br><br></blockquote>Also, we need to generate the plugin cache, in my opinion, prior / during the release signing process. Otherwise the bundle might get corrupted (and has an invalid signature) once a plugin cache is (maybe) added later.<br></blockquote>Ideally, the plugin cache should not be stored in the plugins folder within the application bundle but some place else such as ~/Library/Caches.<br></blockquote><br>That means the plugin cache would be shared among all versions of VLC <br>you run on your system. That doesn't seem right.<br><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #ad7fa8; padding-left: 1ex;">Is there a way to build vlc-cache-gen as a build-tool, so it can be executed on x86?<br></blockquote>No, because vlc-cache-gen needs to load the plugins to generate the cache. When executing a x86 binary on plugins compiled for ARM on a x86 Mac, it will tell "No plugins in $PATH“ and create an empty cache as it cannot run the plugins.<br><br><br>FYI, I ran a small test on my ARM Mac:<br>time vlc vlc://quit is 0,33s with a cache and 0,38s without. so yes, there is a speed advantage, but it’s small, so shipping the first VLC-Mac for ARM without a cache could be „fast enough“. (FYI, in translation mode, the x86_64 binary takes 0,47s.)<br><br>The other alternative is would be to ship an ARM binary that is compiled natively on an ARM Mac and therefore includes a cache.<br><br>If we decide to ship a binary without a cache, it seems to be generated never (and therefore the package will not be invalidated) unless the user decides to execute the app with —reset-plugins-cache.<br></blockquote><br>It might be possible to detect the first run (or a missing cache) and <br>generate the cache then.<hr>vlc-devel mailing list<br>To unsubscribe or modify your subscription options:<br><a href="https://mailman.videolan.org/listinfo/vlc-devel">https://mailman.videolan.org/listinfo/vlc-devel</a></pre></blockquote></div><br>-- <br>Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</body></html>