From f4805d1a11e324a53d17202464ba2bcad677b1f7 Mon Sep 17 00:00:00 2001 From: newbluemoon Date: Sun, 18 Feb 2018 11:06:49 +0100 Subject: [PATCH] vlc: do not install precompiled lua scripts when cross compiling install uncompiled version instead Closes: #11720 [via git-merge-pr] --- srcpkgs/vlc/template | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/srcpkgs/vlc/template b/srcpkgs/vlc/template index d572c6cc278..78b95f0e97f 100644 --- a/srcpkgs/vlc/template +++ b/srcpkgs/vlc/template @@ -1,7 +1,7 @@ # Template file for 'vlc' pkgname=vlc version=2.2.8 -revision=7 +revision=8 build_style=gnu-configure configure_args="--disable-gme --disable-libtar --enable-jack --disable-live555 --disable-fluidsynth --enable-dvdread @@ -79,6 +79,14 @@ pre_build() { # at tree-vect-data-refs.c:2567 sed -i 's,-O4,-O2,g' -i modules/video_filter/Makefile } +pre_install() { + if [ -n "$CROSS_BUILD" ]; then + # install .lua files instead of precompiled .luac ones + # scripts precompiled with 64 bit host compiler won’t run on 32 bit target + # same with respect to endianess + sed -i -e "s/\(@list='\$(nobase_vlclib_DATA\)/\1:.luac=.lua/" share/Makefile + fi +} post_install() { # Remove unused stuff rm -f ${DESTDIR}/usr/lib/vlc/plugins/plugins.dat