Date: Saturday, March 4, 2023 @ 22:15:44
Author: arojas
Revision: 1412573
archrelease: copy trunk to community-staging-x86_64
Added:
xpra/repos/community-staging-x86_64/
xpra/repos/community-staging-x86_64/PKGBUILD
(from rev 1412572, xpra/trunk/PKGBUILD)
xpra/repos/community-staging-x86_64/ffmpeg6.patch
(from rev 1412572, xpra/trunk/ffmpeg6.patch)
xpra/repos/community-staging-x86_64/keys/
---------------+
PKGBUILD | 74 +++++++++++++++++++++++++++++++++++++++++++
ffmpeg6.patch | 95 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 169 insertions(+)
Copied: xpra/repos/community-staging-x86_64/PKGBUILD (from rev 1412572,
xpra/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2023-03-04 22:15:44 UTC (rev 1412573)
@@ -0,0 +1,74 @@
+# Maintainer: Giancarlo Razzolini <[email protected]>
+# Contributor: Bug <[email protected]>
+
+pkgname=xpra
+pkgver=4.4.3
+pkgrel=2
+pkgdesc="multi-platform screen and application forwarding system screen for
X11"
+arch=('x86_64')
+url='https://www.xpra.org'
+license=('GPL2')
+depends=('gtk3' 'python' 'libxtst' 'python-cairo' 'python-gobject'
'python-pillow' 'python-lz4'
+ 'ffmpeg' 'libvpx' 'xf86-video-dummy' 'libxkbfile' 'libxres'
+ 'python-netifaces' 'python-rencode' 'python-opengl'
+ 'python-lz4')
+optdepends=('x264: Codec' 'python-dbus: dbus features'
+ 'python-pycups: Printing support'
+ 'python-cryptography: Cryptography'
+ 'python-numpy: GPU accelerated capture and compression for NVIDIA
cards'
+ 'gst-python: Sound Forwarding'
+ 'opencv: Webcam Forwarding')
+makedepends=('pkgconf' 'pygobject-devel' 'python-setuptools' 'cython'
'uglify-js' 'pandoc')
+backup=('etc/xpra/xpra.conf' 'etc/xpra/xorg.conf'
+ 'etc/xpra/conf.d/05_features.conf'
+ 'etc/xpra/conf.d/10_network.conf'
+ 'etc/xpra/conf.d/12_ssl.conf'
+ 'etc/xpra/conf.d/15_file_transfers.conf'
+ 'etc/xpra/conf.d/16_printing.conf'
+ 'etc/xpra/conf.d/20_sound.conf'
+ 'etc/xpra/conf.d/30_picture.conf'
+ 'etc/xpra/conf.d/35_webcam.conf'
+ 'etc/xpra/conf.d/40_client.conf'
+ 'etc/xpra/conf.d/42_client_keyboard.conf'
+ 'etc/xpra/conf.d/50_server_network.conf'
+ 'etc/xpra/conf.d/55_server_x11.conf'
+ 'etc/xpra/conf.d/60_server.conf'
+ 'etc/xpra/conf.d/65_proxy.conf'
+ 'etc/pam.d/xpra')
+source=($pkgname-$pkgver.tar.xz::$url/src/$pkgname-$pkgver.tar.xz
+ $pkgname-$pkgver.tar.xz.asc::$url/src/$pkgname-$pkgver.tar.xz.gpg
+ ffmpeg6.patch)
+
+md5sums=('856b0a39b61360e740b9d85cc374169d'
+ 'SKIP'
+ '80fdd373202346789d79819ecdcd63b4')
+sha1sums=('c9c078fa4296eee752aa3471578e56add7a07933'
+ 'SKIP'
+ '6b792bbb73f902dc79ef27873916387870b06b5e')
+sha256sums=('8fbb474f8f3aca5c96026477e01056c3df876c33e760cbc753cf0757e0acd70f'
+ 'SKIP'
+ '93611b74af5ed243874e5e8a67910cc8cc1febd33ef4f2ebf9f33deba765c175')
+validpgpkeys=('C11C0A4DF702EDF6C04F458C18ADB31CF18AD6BB') # Antoine Martin
<[email protected]>
+
+prepare() {
+ cd $pkgname-$pkgver
+ patch -p1 -i ../ffmpeg6.patch # Fix build with FFmpeg 6
+}
+
+build() {
+ cd "${srcdir}/$pkgname-$pkgver"
+ python setup.py build
+}
+
+package() {
+ cd "${srcdir}/$pkgname-$pkgver"
+ python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+ sed -i 's|/build/xpra/pkg/xpra/etc/xpra/xorg.conf|/etc/xpra/xorg.conf|'
"${pkgdir}"/etc/xpra/conf.d/55_server_x11.conf
+ mv "${pkgdir}"/lib/* "${pkgdir}"/usr/lib/
+ rmdir "${pkgdir}/lib"
+ mkdir -p "${pkgdir}"/usr/share/dbus-1
+ #Move D-BUS Policy
+ mv "${pkgdir}"/{etc,usr/share}/dbus-1/system.d
+ #Fix for FS#69804
+ chmod +x "${pkgdir}"/usr/bin/*
+}
Copied: xpra/repos/community-staging-x86_64/ffmpeg6.patch (from rev 1412572,
xpra/trunk/ffmpeg6.patch)
===================================================================
--- community-staging-x86_64/ffmpeg6.patch (rev 0)
+++ community-staging-x86_64/ffmpeg6.patch 2023-03-04 22:15:44 UTC (rev
1412573)
@@ -0,0 +1,95 @@
+From a12c75a65f8fe686837aefbd133274f4089f14ea Mon Sep 17 00:00:00 2001
+From: totaam <[email protected]>
+Date: Tue, 28 Feb 2023 14:58:17 +0700
+Subject: [PATCH] ffmpeg 6.0 compatibility: these enums have been removed
+
+---
+ xpra/codecs/enc_ffmpeg/encoder.pyx | 24 ++++++++++++------------
+ 1 file changed, 12 insertions(+), 12 deletions(-)
+
+diff --git a/xpra/codecs/enc_ffmpeg/encoder.pyx
b/xpra/codecs/enc_ffmpeg/encoder.pyx
+index b2b4b1e39..0cf90bde0 100644
+--- a/xpra/codecs/enc_ffmpeg/encoder.pyx
++++ b/xpra/codecs/enc_ffmpeg/encoder.pyx
+@@ -165,7 +165,7 @@ cdef extern from "libavcodec/avcodec.h":
+ int AV_CODEC_FLAG_PASS2
+ int AV_CODEC_FLAG_GRAY
+ int AV_CODEC_FLAG_PSNR
+- int AV_CODEC_FLAG_TRUNCATED
++ #int AV_CODEC_FLAG_TRUNCATED
+ int AV_CODEC_FLAG_INTERLACED_DCT
+ int AV_CODEC_FLAG_GLOBAL_HEADER
+
+@@ -173,7 +173,7 @@ cdef extern from "libavcodec/avcodec.h":
+
+ int AV_CODEC_CAP_DRAW_HORIZ_BAND
+ int AV_CODEC_CAP_DR1
+- int AV_CODEC_CAP_TRUNCATED
++ #int AV_CODEC_CAP_TRUNCATED
+ int AV_CODEC_CAP_DELAY
+ int AV_CODEC_CAP_SMALL_LAST_FRAME
+ int AV_CODEC_CAP_SUBFRAMES
+@@ -182,10 +182,10 @@ cdef extern from "libavcodec/avcodec.h":
+ int AV_CODEC_CAP_FRAME_THREADS
+ int AV_CODEC_CAP_SLICE_THREADS
+ int AV_CODEC_CAP_PARAM_CHANGE
+- int AV_CODEC_CAP_AUTO_THREADS
++ #int AV_CODEC_CAP_AUTO_THREADS
+ int AV_CODEC_CAP_VARIABLE_FRAME_SIZE
+- int AV_CODEC_CAP_INTRA_ONLY
+- int AV_CODEC_CAP_LOSSLESS
++ #int AV_CODEC_CAP_INTRA_ONLY
++ #int AV_CODEC_CAP_LOSSLESS
+
+ ctypedef struct AVFrame:
+ uint8_t **data
+@@ -541,7 +541,7 @@ cdef extern from "libavformat/avformat.h":
+ int AVFMT_FLAG_FLUSH_PACKETS #Flush the AVIOContext every packet
+ int AVFMT_FLAG_BITEXACT
+ int AVFMT_FLAG_SORT_DTS #try to interleave outputted packets by
dts (using this flag can slow demuxing down)
+- int AVFMT_FLAG_PRIV_OPT #Enable use of private options by
delaying codec open (this could be made default once all code is converted)
++ #int AVFMT_FLAG_PRIV_OPT #Enable use of private options by
delaying codec open (this could be made default once all code is converted)
+ int AVFMT_FLAG_FAST_SEEK #Enable fast, but inaccurate seeks for
some formats
+
+ int AVFMT_NOFILE #Demuxer will use avio_open, no opened
file should be provided by the caller
+@@ -728,7 +728,7 @@ CODEC_FLAGS = {
+ AV_CODEC_FLAG_PASS2 : "PASS2",
+ AV_CODEC_FLAG_GRAY : "GRAY",
+ AV_CODEC_FLAG_PSNR : "PSNR",
+- AV_CODEC_FLAG_TRUNCATED : "TRUNCATED",
++ #AV_CODEC_FLAG_TRUNCATED : "TRUNCATED",
+ AV_CODEC_FLAG_INTERLACED_DCT : "INTERLACED_DCT",
+ AV_CODEC_FLAG_GLOBAL_HEADER : "GLOBAL_HEADER",
+ }
+@@ -750,7 +750,7 @@ FMT_FLAGS = {
+ AVFMT_FLAG_FLUSH_PACKETS : "FLUSH_PACKETS",
+ AVFMT_FLAG_BITEXACT : "BITEXACT",
+ AVFMT_FLAG_SORT_DTS : "SORT_DTS",
+- AVFMT_FLAG_PRIV_OPT : "PRIV_OPT",
++ #AVFMT_FLAG_PRIV_OPT : "PRIV_OPT",
+ AVFMT_FLAG_FAST_SEEK : "FAST_SEEK",
+ }
+
+@@ -778,7 +778,7 @@ AVFMT = {
+ CAPS = {
+ AV_CODEC_CAP_DRAW_HORIZ_BAND : "DRAW_HORIZ_BAND",
+ AV_CODEC_CAP_DR1 : "DR1",
+- AV_CODEC_CAP_TRUNCATED : "TRUNCATED",
++ #AV_CODEC_CAP_TRUNCATED : "TRUNCATED",
+ AV_CODEC_CAP_DELAY : "DELAY",
+ AV_CODEC_CAP_SMALL_LAST_FRAME : "SMALL_LAST_FRAME",
+ AV_CODEC_CAP_SUBFRAMES : "SUBFRAMES",
+@@ -787,10 +787,10 @@ CAPS = {
+ AV_CODEC_CAP_FRAME_THREADS : "FRAME_THREADS",
+ AV_CODEC_CAP_SLICE_THREADS : "SLICE_THREADS",
+ AV_CODEC_CAP_PARAM_CHANGE : "PARAM_CHANGE",
+- AV_CODEC_CAP_AUTO_THREADS : "AUTO_THREADS",
++ #AV_CODEC_CAP_AUTO_THREADS : "AUTO_THREADS",
+ AV_CODEC_CAP_VARIABLE_FRAME_SIZE : "VARIABLE_FRAME_SIZE",
+- AV_CODEC_CAP_INTRA_ONLY : "INTRA_ONLY",
+- AV_CODEC_CAP_LOSSLESS : "LOSSLESS",
++ #AV_CODEC_CAP_INTRA_ONLY : "INTRA_ONLY",
++ #AV_CODEC_CAP_LOSSLESS : "LOSSLESS",
+ }
+ log("CODEC_CAP:")
+ print_nested_dict(dict((hex(abs(k)),v) for k,v in CAPS.items()),
print_fn=log.debug)