Browse Source

build: update gstreamer to 1.19.1

pull/2715/head
osy 4 years ago
parent
commit
ade2d3a1ab
  1. 12
      patches/gst-plugins-base-1.15.2.patch
  2. 6
      patches/sources
  3. 20
      scripts/build_dependencies.sh

12
patches/gst-plugins-base-1.15.2.patch

@ -1,12 +0,0 @@
diff -aur a/gst-libs/gst/rtp/gstrtcpbuffer.c b/gst-libs/gst/rtp/gstrtcpbuffer.c
--- a/gst-libs/gst/rtp/gstrtcpbuffer.c 2019-01-26 10:51:01.000000000 -0800
+++ b/gst-libs/gst/rtp/gstrtcpbuffer.c 2019-04-01 14:27:21.000000000 -0700
@@ -564,7 +564,7 @@
* start a compount packet. Next we figure out if we have enough free space in
* the buffer to continue. */
len = rtcp_packet_min_length (type);
- if (type == -1)
+ if ((int)type == -1)
goto unknown_type;
if (packet->offset + len >= maxsize)
goto no_space;

6
patches/sources

@ -23,9 +23,9 @@ QEMU_SRC="https://download.qemu.org/qemu-6.0.0.tar.xz"
# Source files for spice-client
JSON_GLIB_SRC="https://ftp.gnome.org/pub/GNOME/sources/json-glib/1.2/json-glib-1.2.8.tar.xz"
GST_SRC="https://gstreamer.freedesktop.org/src/gstreamer/gstreamer-1.15.2.tar.xz"
GST_BASE_SRC="https://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-base-1.15.2.tar.xz"
GST_GOOD_SRC="https://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-1.15.2.tar.xz"
GST_SRC="https://gstreamer.freedesktop.org/src/gstreamer/gstreamer-1.19.1.tar.xz"
GST_BASE_SRC="https://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-base-1.19.1.tar.xz"
GST_GOOD_SRC="https://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-1.19.1.tar.xz"
XML2_SRC="http://xmlsoft.org/sources/libxml2-2.9.10.tar.gz"
SOUP_SRC="https://ftp.gnome.org/pub/GNOME/sources/libsoup/2.65/libsoup-2.65.1.tar.xz"
PHODAV_SRC="http://ftp.gnome.org/pub/GNOME/sources/phodav/2.2/phodav-2.2.tar.xz"

20
scripts/build_dependencies.sh

@ -353,7 +353,7 @@ meson_build () {
cd "$SRCDIR"
echo "${GREEN}Configuring ${NAME}...${NC}"
meson utm_build --prefix="$PREFIX" --buildtype=plain --cross-file "$MESON_CROSS" -Dtests=false $@
meson utm_build --prefix="$PREFIX" --buildtype=plain --cross-file "$MESON_CROSS" $@
echo "${GREEN}Building ${NAME}...${NC}"
meson compile -C utm_build
echo "${GREEN}Installing ${NAME}...${NC}"
@ -413,7 +413,7 @@ build_qemu_dependencies () {
build $GETTEXT_SRC --disable-java
build $PNG_SRC
build $JPEG_TURBO_SRC
meson_build $GLIB_SRC
meson_build $GLIB_SRC -Dtests=false
build $GPG_ERROR_SRC
build $GCRYPT_SRC
build $PIXMAN_SRC
@ -428,8 +428,8 @@ build_qemu_dependencies () {
fi
# GPU support
build_angle
meson_build $EPOXY_REPO
meson_build $VIRGLRENDERER_REPO
meson_build $EPOXY_REPO -Dtests=false
meson_build $VIRGLRENDERER_REPO -Dtests=false
}
build_qemu () {
@ -445,11 +445,11 @@ build_qemu () {
}
build_spice_client () {
meson_build "$QEMU_DIR/subprojects/libucontext" -Ddefault_library=static -Dfreestanding=true
meson_build "$QEMU_DIR/subprojects/libucontext" -Ddefault_library=static -Dtests=false -Dfreestanding=true
build $JSON_GLIB_SRC
build $GST_SRC --enable-static --enable-static-plugins --disable-registry
build $GST_BASE_SRC --enable-static --disable-fatal-warnings --disable-cocoa
build $GST_GOOD_SRC --enable-static --disable-osx_video
meson_build $GST_SRC -Dtests=disabled -Ddefault_library=both -Dregistry=false
meson_build $GST_BASE_SRC -Dtests=disabled -Ddefault_library=both
meson_build $GST_GOOD_SRC -Dtests=disabled -Ddefault_library=both
build $XML2_SRC --enable-shared=no --without-python
build $SOUP_SRC --without-gnome --without-krb5-config --enable-shared=no --disable-tls-check
build $PHODAV_SRC
@ -512,7 +512,7 @@ fixup () {
fixup_all () {
OLDIFS=$IFS
IFS=$'\n'
FILES=$(find "$SYSROOT_DIR/lib" -type f -name "*.dylib")
FILES=$(find "$SYSROOT_DIR/lib" -type f -maxdepth 1 -name "*.dylib")
for f in $FILES
do
fixup $f
@ -521,7 +521,7 @@ fixup_all () {
}
remove_shared_gst_plugins () {
find "$SYSROOT_DIR/lib/gstreamer-1.0" \( -name '*.so' -or -name '*.la' \) -exec rm \{\} \;
find "$SYSROOT_DIR/lib/gstreamer-1.0" -name '*.dylib' -exec rm \{\} \;
}
generate_qapi () {

Loading…
Cancel
Save