Skip to content

Commit 79ed4a6

Browse files
author
Gijs Peskens
committed
rpidistro-vlc: Upgrade to latest, 3.22.0, upstream
Recipe has been changed to better reflect OE VLC recipe Signed-off-by: Gijs Peskens <gijs.peskens@munisense.com>
1 parent cc66524 commit 79ed4a6

63 files changed

Lines changed: 24193 additions & 1554 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

dynamic-layers/multimedia-layer/recipes-multimedia/rpidistro-vlc/files/0001-configure-fix-linking-on-RISC-V-ISA.patch

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,20 @@ From: =?utf-8?q?R=C3=A9mi_Denis-Courmont?= <remi@remlab.net>
22
Date: Sat, 16 Jun 2018 21:31:45 +0300
33
Subject: configure: fix linking on RISC-V ISA
44

5+
6+
57
Upstream-Status: Inappropriate
68

79
RPI-Distro repo forks original vlc and applies patches
8-
to enable raspiberry pi support.
910

11+
to enable raspiberry pi support.
1012
---
13+
1114
configure.ac | 1 +
1215
1 file changed, 1 insertion(+)
1316

1417
diff --git a/configure.ac b/configure.ac
15-
index 2037a9e..df26367 100644
18+
index 8fa2a87..079a00d 100644
1619
--- a/configure.ac
1720
+++ b/configure.ac
1821
@@ -113,6 +113,7 @@ case "${host_os}" in
Lines changed: 252 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,252 @@
1+
From 3d04b9bc7c777725938b8b3100797bf15b8500f7 Mon Sep 17 00:00:00 2001
2+
From: John Cox <jc@kynesim.co.uk>
3+
Date: Mon, 19 Aug 2024 17:42:02 +0100
4+
Subject: [PATCH 01/41] pi-util: Add useful scripts
5+
6+
7+
8+
Upstream-Status: Inappropriate
9+
10+
RPI-Distro repo forks original vlc and applies patches
11+
12+
to enable raspiberry pi support.
13+
---
14+
15+
pi-util/conf_native.sh | 124 +++++++++++++++++++++++++++++++++++++
16+
pi-util/genpatch.sh | 60 ++++++++++++++++++
17+
pi-util/rebase_liblinks.py | 37 +++++++++++
18+
3 files changed, 221 insertions(+)
19+
create mode 100755 pi-util/conf_native.sh
20+
create mode 100755 pi-util/genpatch.sh
21+
create mode 100755 pi-util/rebase_liblinks.py
22+
23+
--- /dev/null
24+
+++ b/pi-util/conf_native.sh
25+
@@ -0,0 +1,124 @@
26+
+set -e
27+
+BASE=`pwd`
28+
+OUT_BASE=$BASE/out
29+
+
30+
+DO_BOOTSTRAP=
31+
+DO_MAKE=
32+
+DO_INSTALL=
33+
+SUDO_INSTALL=
34+
+DO_CONFIGURE=1
35+
+USR_PREFIX=
36+
+
37+
+while [ "$1" != "" ] ; do
38+
+ case $1 in
39+
+ --make)
40+
+ DO_MAKE=1
41+
+ DO_CONFIGURE=
42+
+ ;;
43+
+ --install)
44+
+ DO_INSTALL=1
45+
+ DO_MAKE=1
46+
+ DO_CONFIGURE=
47+
+ ;;
48+
+ --bootstrap)
49+
+ DO_BOOTSTRAP=1
50+
+ ;;
51+
+ --usr)
52+
+ USR_PREFIX=/usr
53+
+ SUDO_INSTALL=sudo
54+
+ ;;
55+
+ *)
56+
+ echo "Usage $0: [--bootstrap] [--make|--install] [--usr]"
57+
+ echo " bootstrap Clean <build dir> then bootstrap before configure"
58+
+ echo " Will happen automatically if already clean"
59+
+ echo " make Do make after configure"
60+
+ echo " install Do make and install after configure"
61+
+ echo " usr Set install dir to /usr"
62+
+ echo " Default is <build dir>/install for testing"
63+
+ exit 1
64+
+ ;;
65+
+ esac
66+
+ shift
67+
+done
68+
+
69+
+if [ ! -f $BASE/configure ]; then
70+
+ echo "configure not found - will bootstrap"
71+
+ DO_BOOTSTRAP=1
72+
+fi
73+
+
74+
+CONF_MMAL=--disable-mmal
75+
+
76+
+# uname -m gives kernel type which may not have the same
77+
+# 32/64bitness as userspace :-( getconf shoudl provide the answer
78+
+# but use uname to check we are on the right processor
79+
+MC=`uname -m`
80+
+LB=`getconf LONG_BIT`
81+
+if [ "$MC" == "armv7l" ] || [ "$MC" == "aarch64" ]; then
82+
+ if [ "$LB" == "32" ]; then
83+
+ # CONF_MMAL=--enable-mmal-avcodec
84+
+ CONF_MMAL=
85+
+ A=arm-linux-gnueabihf
86+
+ ARM=armv7
87+
+ elif [ "$LB" == "64" ]; then
88+
+ A=aarch64-linux-gnu
89+
+ ARM=arm64
90+
+ else
91+
+ echo "Unknown LONG_BIT name: $LB"
92+
+ exit 1
93+
+ fi
94+
+elif [ "$MC" == "x86_64" ]; then
95+
+ A=x86_64-linux-gnu
96+
+ ARM=x86_64
97+
+else
98+
+ echo "Unknown machine name: $MC"
99+
+ exit 1
100+
+fi
101+
+OUT=$OUT_BASE/$ARM-`lsb_release -sc`-rel
102+
+
103+
+if [ $DO_BOOTSTRAP ]; then
104+
+ echo "==== Bootstrapping & cleaning $OUT"
105+
+ rm -rf $OUT
106+
+ ./bootstrap
107+
+fi
108+
+
109+
+if [ ! -f $OUT/Makefile ]; then
110+
+ DO_CONFIGURE=1
111+
+fi
112+
+
113+
+if [ "$USR_PREFIX" == "" ]; then
114+
+ USR_PREFIX=$OUT/install
115+
+fi
116+
+LIB_PREFIX=$USR_PREFIX/lib/$A
117+
+INC_PREFIX=$USR_PREFIX/include/$A
118+
+
119+
+echo "==== Configuring in $OUT"
120+
+mkdir -p $OUT
121+
+# Nothing under here need worry git - including this .gitignore!
122+
+echo "**" > $OUT_BASE/.gitignore
123+
+
124+
+cd $OUT
125+
+if [ $DO_CONFIGURE ]; then
126+
+ $BASE/configure \
127+
+ --build=$A \
128+
+ --prefix=$USR_PREFIX\
129+
+ --libdir=$LIB_PREFIX\
130+
+ --includedir=$INC_PREFIX\
131+
+ --disable-vdpau\
132+
+ --enable-wayland\
133+
+ --enable-gles2\
134+
+ $CONF_MMAL
135+
+ echo "==== Configured in $OUT"
136+
+fi
137+
+
138+
+if [ $DO_MAKE ]; then
139+
+ echo "==== Making $OUT"
140+
+ make -j8
141+
+ echo "==== Made $OUT"
142+
+fi
143+
+
144+
+if [ $DO_INSTALL ]; then
145+
+ echo "==== Installing to $USR_PREFIX"
146+
+ $SUDO_INSTALL make -j8 install
147+
+ echo "==== Installed in $USR_PREFIX"
148+
+fi
149+
+
150+
--- /dev/null
151+
+++ b/pi-util/genpatch.sh
152+
@@ -0,0 +1,60 @@
153+
+set -e
154+
+
155+
+NOTAG=
156+
+if [ "$1" == "--notag" ]; then
157+
+ shift
158+
+ NOTAG=1
159+
+fi
160+
+
161+
+if [ "$1" == "" ] || [ "$2" != "" ]; then
162+
+ echo Usage: $0 [--notag] \<patch_tag\>
163+
+ echo e.g.: $0 mmal_4
164+
+ exit 1
165+
+fi
166+
+REF=$1
167+
+
168+
+CONFIG_VERSION=`awk '/AC_INIT/{match($0,/[0-9]+(\.[0-9]+)+/);print substr($0,RSTART,RLENGTH)}' configure.ac`
169+
+if [ "$CONFIG_VERSION" == "" ]; then
170+
+ echo Config version not found
171+
+ exit 1
172+
+fi
173+
+
174+
+# Config substitution here really should have escaped '.'s but it isn't
175+
+# really worth it. There is little chance they will cause false +ves
176+
+BRANCH=$(git branch --show-current)
177+
+BRANCH_VERSION=$(echo $BRANCH | awk "{match(\$0, /test\\/(${CONFIG_VERSION}.+)\\/.+/, a); print a[1];}")
178+
+
179+
+if [ "$BRANCH_VERSION" == "" ]; then
180+
+ echo Branch $BRANCH not expected format \(test/${CONFIG_VERSION}*/*\)
181+
+ exit 1
182+
+fi
183+
+
184+
+VERSION=$BRANCH_VERSION
185+
+echo VERSION=$VERSION
186+
+
187+
+if [ $NOTAG ]; then
188+
+ echo Not tagged
189+
+else
190+
+ # Only continue if we are all comitted
191+
+ git diff --name-status --exit-code
192+
+
193+
+ PATCHTAG=pi/$VERSION/$REF
194+
+ echo Tagging: $PATCHTAG
195+
+
196+
+ git tag $PATCHTAG
197+
+fi
198+
+
199+
+DSTDIR=..
200+
+PATCHNAME=vlc-$VERSION-$REF
201+
+DIFFBASE=$DSTDIR/$PATCHNAME
202+
+ZIPNAME=$PATCHNAME-patch.zip
203+
+
204+
+# We seem to sometimes gain add
205+
+echo Generating patches in: $DSTDIR/$ZIPNAME
206+
+
207+
+REFNAME=refs/tags/$VERSION
208+
+PATCHTMP=/tmp/vlc-patches
209+
+rm -rf $PATCHTMP
210+
+mkdir -p $PATCHTMP
211+
+git format-patch --output-directory $PATCHTMP $REFNAME
212+
+zip -j $DSTDIR/$ZIPNAME $PATCHTMP/*
213+
--- /dev/null
214+
+++ b/pi-util/rebase_liblinks.py
215+
@@ -0,0 +1,37 @@
216+
+#!/usr/bin/env python3
217+
+
218+
+import os, sys
219+
+from stat import *
220+
+
221+
+def walktree(top, callback, n, prefix):
222+
+ '''recursively descend the directory tree rooted at top,
223+
+ calling the callback function for each regular file'''
224+
+
225+
+ for f in os.listdir(top):
226+
+ pathname = os.path.join(top, f)
227+
+ mode = os.lstat(pathname).st_mode
228+
+ if S_ISDIR(mode):
229+
+ # It's a directory, recurse into it
230+
+ walktree(pathname, callback, n+1, prefix)
231+
+ elif S_ISLNK(mode):
232+
+ # It's a file, call the callback function
233+
+ callback(pathname, os.readlink(pathname), n, prefix)
234+
+
235+
+def visitfile(file, linkname, n, prefix):
236+
+ if (linkname.startswith(prefix + 'lib/')):
237+
+ newlink = "../" * n + linkname[len(prefix):]
238+
+ print('relinking', file, "->", newlink)
239+
+ os.remove(file)
240+
+ os.symlink(newlink, file)
241+
+
242+
+if __name__ == '__main__':
243+
+ argc = len(sys.argv)
244+
+ if argc == 2:
245+
+ walktree(sys.argv[1], visitfile, 0, "/")
246+
+ elif argc == 3:
247+
+ walktree(sys.argv[1], visitfile, 0, sys.argv[2])
248+
+ else:
249+
+ print("rebase_liblinks.py <local root> [<old sysroot>]")
250+
+
251+
+
252+
+
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
From: Sebastian Ramacher <sramacher@debian.org>
2+
Date: Tue, 7 Jul 2020 00:18:39 +0200
3+
Subject: Do not generate cache during build
4+
5+
The generated cache is not used in the package. It causes spurious build
6+
failures on the arm64 and ppc64el builds, that are not reproducible
7+
elsewhere.
8+
9+
10+
Upstream-Status: Inappropriate
11+
12+
RPI-Distro repo forks original vlc and applies patches
13+
14+
to enable raspiberry pi support.
15+
---
16+
17+
Makefile.am | 16 ----------------
18+
bin/Makefile.am | 18 ------------------
19+
2 files changed, 34 deletions(-)
20+
21+
diff --git a/Makefile.am b/Makefile.am
22+
index ba1d4fc..9d00f51 100644
23+
--- a/Makefile.am
24+
+++ b/Makefile.am
25+
@@ -162,22 +162,6 @@ endif
26+
TESTS = test/run_vlc.sh
27+
dist_noinst_SCRIPTS += test/run_vlc.sh
28+
29+
-if BUILD_VLC
30+
-###############################################################################
31+
-# Installing plugins cache
32+
-###############################################################################
33+
-install-exec-hook:
34+
- if test "$(build)" = "$(host)"; then \
35+
- PATH="$(DESTDIR)$(bindir):$$PATH" \
36+
- LD_LIBRARY_PATH="$(DESTDIR)$(libdir):$$LD_LIBRARY_PATH" \
37+
- DYLD_LIBRARY_PATH="$(DESTDIR)$(libdir):$$DYLD_LIBRARY_PATH" \
38+
- "$(DESTDIR)$(vlclibdir)/vlc-cache-gen$(EXEEXT)" \
39+
- "$(DESTDIR)$(vlclibdir)/plugins" ; \
40+
- else \
41+
- echo "Cross-compilation: cache generation skipped!" ; \
42+
- fi
43+
-endif
44+
-
45+
uninstall-hook:
46+
rm -f -- "$(DESTDIR)$(vlclibdir)/plugins/plugins.dat"
47+
48+
diff --git a/bin/Makefile.am b/bin/Makefile.am
49+
index 4de299d..a2acc3c 100644
50+
--- a/bin/Makefile.am
51+
+++ b/bin/Makefile.am
52+
@@ -124,14 +124,6 @@ vlc_cache_gen_LDFLAGS = -Wc,-static
53+
vlc_cache_gen_DEPENDENCIES = vlc_win32_rc.$(OBJEXT)
54+
endif
55+
56+
-#
57+
-# Plug-ins cache
58+
-#
59+
-if HAVE_DYNAMIC_PLUGINS
60+
-noinst_DATA = ../modules/plugins.dat
61+
-endif
62+
-MOSTLYCLEANFILES = $(noinst_DATA)
63+
-
64+
if HAVE_OSX
65+
if BUILD_VLC
66+
install-data-local:
67+
@@ -139,13 +131,3 @@ install-data-local:
68+
69+
endif
70+
endif
71+
-
72+
-.PHONY: ../modules/plugins.dat
73+
-
74+
-../modules/plugins.dat: vlc-cache-gen$(EXEEXT)
75+
- $(AM_V_at)rm -f ../modules/plugins.dat
76+
- $(AM_V_GEN)if test "$(build)" = "$(host)"; then \
77+
- ./vlc-cache-gen$(EXEEXT) `realpath ../modules` ; \
78+
- else \
79+
- echo "Cross-compilation: cache generation skipped!" ; \
80+
- fi

dynamic-layers/multimedia-layer/recipes-multimedia/rpidistro-vlc/files/0002-Revert-configure-Require-libmodplug-0.8.9.patch

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)