Gentoo Archives: gentoo-commits

From: James Le Cuirot <chewi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-wm/xpra/files/, x11-wm/xpra/
Date: Fri, 28 Jan 2022 13:44:57
Message-Id: 1643377446.3c2f164da33dc769f29e3587ab891d78b50957dd.chewi@gentoo
1 commit: 3c2f164da33dc769f29e3587ab891d78b50957dd
2 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jan 28 13:44:06 2022 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 28 13:44:06 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c2f164d
7
8 x11-wm/xpra: Drop old 4.2.3
9
10 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
11
12 x11-wm/xpra/files/xpra-4.2.2-bad-tests.patch | 36 ----
13 .../files/xpra-4.2.2-true-false-bin-path.patch | 38 ----
14 x11-wm/xpra/files/xpra-4.2.3-dup-ip.patch | 30 ----
15 x11-wm/xpra/xpra-4.2.3.ebuild | 199 ---------------------
16 4 files changed, 303 deletions(-)
17
18 diff --git a/x11-wm/xpra/files/xpra-4.2.2-bad-tests.patch b/x11-wm/xpra/files/xpra-4.2.2-bad-tests.patch
19 deleted file mode 100644
20 index 0d34ab0ef2fa..000000000000
21 --- a/x11-wm/xpra/files/xpra-4.2.2-bad-tests.patch
22 +++ /dev/null
23 @@ -1,36 +0,0 @@
24 -diff --git a/tests/unittests/unit/net/compression_test.py b/tests/unittests/unit/net/compression_test.py
25 -index 29ac7f2d2..89b68fdbf 100755
26 ---- a/tests/unittests/unit/net/compression_test.py
27 -+++ b/tests/unittests/unit/net/compression_test.py
28 -@@ -11,7 +11,6 @@ from xpra.net import compression
29 - class TestCompression(unittest.TestCase):
30 -
31 - def test_main(self):
32 -- compression.sanity_checks()
33 - compression.init_all()
34 - assert compression.use("zlib")
35 - assert compression.get_compression_caps()
36 -diff --git a/tests/unittests/unit/net/packet_encoding_test.py b/tests/unittests/unit/net/packet_encoding_test.py
37 -index 69ef95c65..eead158b0 100755
38 ---- a/tests/unittests/unit/net/packet_encoding_test.py
39 -+++ b/tests/unittests/unit/net/packet_encoding_test.py
40 -@@ -12,7 +12,6 @@ class TestPacketEncoding(unittest.TestCase):
41 -
42 - def test_env_log(self):
43 - packet_encoding.init_all()
44 -- packet_encoding.sanity_checks()
45 - assert packet_encoding.get_packet_encoding_caps()
46 - assert packet_encoding.get_enabled_encoders()
47 - for x in packet_encoding.get_enabled_encoders():
48 -diff --git a/tests/unittests/unit/scripts/main_test.py b/tests/unittests/unit/scripts/main_test.py
49 -index 6dd54069c..f9478c2ab 100755
50 ---- a/tests/unittests/unit/scripts/main_test.py
51 -+++ b/tests/unittests/unit/scripts/main_test.py
52 -@@ -121,7 +121,6 @@ class TestMain(unittest.TestCase):
53 - t("tcp://fe80::c1:ac45:7351:ea69%eth1:14500", {"host" : "fe80::c1:ac45:7351:ea69%eth1", "port" : 14500})
54 - t("tcp://[fe80::c1:ac45:7351:ea69]:14500", {"host" : "fe80::c1:ac45:7351:ea69", "port" : 14500})
55 - t("tcp://host/100,key1=value1", {"key1" : "value1"})
56 -- t("tcp://host/key1=value1", {"key1" : "value1"})
57 - try:
58 - from xpra.net.vsock import CID_ANY, PORT_ANY #@UnresolvedImport
59 - t("vsock://any:any/", {"vsock" : (CID_ANY, PORT_ANY)})
60
61 diff --git a/x11-wm/xpra/files/xpra-4.2.2-true-false-bin-path.patch b/x11-wm/xpra/files/xpra-4.2.2-true-false-bin-path.patch
62 deleted file mode 100644
63 index 255e80738616..000000000000
64 --- a/x11-wm/xpra/files/xpra-4.2.2-true-false-bin-path.patch
65 +++ /dev/null
66 @@ -1,38 +0,0 @@
67 -From 6e9ef70facfcc280e4c98892d2af6636d122c762 Mon Sep 17 00:00:00 2001
68 -From: James Le Cuirot <chewi@g.o>
69 -Date: Tue, 24 Aug 2021 09:56:26 +0100
70 -Subject: [PATCH] Execute true and false from /bin, not /usr/bin
71 -
72 -Some distributions now have /bin symlinked to /usr/bin, but not all of
73 -them. /bin should work everywhere.
74 ----
75 - tests/unittests/unit/server/auth_test.py | 6 +++---
76 - 1 file changed, 3 insertions(+), 3 deletions(-)
77 -
78 -diff --git a/tests/unittests/unit/server/auth_test.py b/tests/unittests/unit/server/auth_test.py
79 -index 373db96e5..8e6be8e20 100755
80 ---- a/tests/unittests/unit/server/auth_test.py
81 -+++ b/tests/unittests/unit/server/auth_test.py
82 -@@ -73,7 +73,7 @@ class TestAuth(unittest.TestCase):
83 - kwargs["connection"] = "fake-connection-data"
84 - #exec auth would fail during rpmbuild without a default command:
85 - if "command" not in kwargs:
86 -- kwargs["command"] = "/usr/bin/true"
87 -+ kwargs["command"] = "/bin/true"
88 - return c(username, **kwargs)
89 -
90 - def _test_module(self, module):
91 -@@ -380,8 +380,8 @@ class TestAuth(unittest.TestCase):
92 - a = self._init_auth("exec", **kwargs)
93 - assert not a.requires_challenge(), "%s should not require a challenge" % a
94 - assert self.capsauth(a)==success, "%s should have %s using cmd=%s" % (a, ["failed", "succeeded"][success], cmd)
95 -- exec_cmd("/usr/bin/true", True)
96 -- exec_cmd("/usr/bin/false", False)
97 -+ exec_cmd("/bin/true", True)
98 -+ exec_cmd("/bin/false", False)
99 -
100 -
101 - def main():
102 ---
103 -2.32.0
104 -
105
106 diff --git a/x11-wm/xpra/files/xpra-4.2.3-dup-ip.patch b/x11-wm/xpra/files/xpra-4.2.3-dup-ip.patch
107 deleted file mode 100644
108 index 337527305ecc..000000000000
109 --- a/x11-wm/xpra/files/xpra-4.2.3-dup-ip.patch
110 +++ /dev/null
111 @@ -1,30 +0,0 @@
112 -diff --git a/tests/unittests/unit/net/net_util_test.py b/tests/unittests/unit/net/net_util_test.py
113 -index 5c6e3096c..870801666 100755
114 ---- a/tests/unittests/unit/net/net_util_test.py
115 -+++ b/tests/unittests/unit/net/net_util_test.py
116 -@@ -27,11 +27,8 @@ class TestVersionUtilModule(unittest.TestCase):
117 - ifaces = get_interfaces()
118 - if not ifaces:
119 - return
120 -+ ip_ifaces = defaultdict(list)
121 - for iface in ifaces:
122 -- ipmasks = do_get_bind_ifacemask(iface)
123 -- for ip, _ in ipmasks:
124 -- assert get_iface(ip)==iface, "expected interface %s for ip %s but got %s" % (
125 -- iface, ip, get_iface(ip))
126 - if if_nametoindex:
127 - try:
128 - i = if_nametoindex(iface)
129 -@@ -41,6 +38,12 @@ class TestVersionUtilModule(unittest.TestCase):
130 - if if_indextoname:
131 - assert if_indextoname(i)==iface, "expected interface %s for index %i but got %s" % (
132 - iface, i, if_indextoname(i))
133 -+ ipmasks = do_get_bind_ifacemask(iface)
134 -+ for ip, _ in ipmasks:
135 -+ ip_ifaces[ip].append(iface)
136 -+ for ip, ifaces in ip_ifaces.items():
137 -+ assert get_iface(ip) in ifaces, "expected interface for ip %s to be one of %s but got %s" % (
138 -+ ip, ifaces, get_iface(ip))
139 - ia = get_interfaces_addresses()
140 - assert ia
141 - #for iface, address in ia.items():
142
143 diff --git a/x11-wm/xpra/xpra-4.2.3.ebuild b/x11-wm/xpra/xpra-4.2.3.ebuild
144 deleted file mode 100644
145 index 6280862e546a..000000000000
146 --- a/x11-wm/xpra/xpra-4.2.3.ebuild
147 +++ /dev/null
148 @@ -1,199 +0,0 @@
149 -# Copyright 1999-2021 Gentoo Authors
150 -# Distributed under the terms of the GNU General Public License v2
151 -
152 -EAPI=7
153 -
154 -PYTHON_COMPAT=( python3_{7,8,9} )
155 -DISTUTILS_SINGLE_IMPL=yes
156 -DISTUTILS_USE_SETUPTOOLS=no
157 -inherit xdg xdg-utils distutils-r1 tmpfiles udev
158 -
159 -DESCRIPTION="X Persistent Remote Apps (xpra) and Partitioning WM (parti) based on wimpiggy"
160 -HOMEPAGE="https://xpra.org/"
161 -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
162 -
163 -LICENSE="GPL-2 BSD"
164 -SLOT="0"
165 -KEYWORDS="~amd64 ~x86"
166 -IUSE="brotli +client +clipboard csc cups dbus doc ffmpeg jpeg html ibus +lz4 lzo minimal opengl pillow pinentry pulseaudio +server sound systemd test vpx webcam webp xdg xinerama"
167 -
168 -REQUIRED_USE="${PYTHON_REQUIRED_USE}
169 - || ( client server )
170 - cups? ( dbus )
171 - opengl? ( client )
172 - test? ( client clipboard dbus html server sound xdg xinerama )
173 -"
174 -
175 -TDEPEND="
176 - $(python_gen_cond_dep '
177 - dev-python/netifaces[${PYTHON_USEDEP}]
178 - dev-python/pillow[jpeg?,${PYTHON_USEDEP}]
179 - dev-python/rencode[${PYTHON_USEDEP}]
180 - dbus? ( dev-python/dbus-python[${PYTHON_USEDEP}] )
181 - xdg? ( dev-python/pyxdg[${PYTHON_USEDEP}] )
182 - ')
183 - html? ( www-apps/xpra-html5 )
184 - server? (
185 - x11-base/xorg-server[-minimal,xvfb]
186 - x11-drivers/xf86-input-void
187 - )
188 - xinerama? ( x11-libs/libfakeXinerama )
189 -"
190 -DEPEND="
191 - ${PYTHON_DEPS}
192 - $(python_gen_cond_dep '
193 - dev-python/pygobject:3[${PYTHON_USEDEP},cairo]
194 - opengl? ( dev-python/pyopengl[${PYTHON_USEDEP}] )
195 - sound? ( dev-python/gst-python:1.0[${PYTHON_USEDEP}] )
196 - ')
197 - x11-libs/gtk+:3[introspection]
198 - x11-libs/libX11
199 - x11-libs/libXcomposite
200 - x11-libs/libXdamage
201 - x11-libs/libXfixes
202 - x11-libs/libXrandr
203 - x11-libs/libXtst
204 - x11-libs/libxkbfile
205 - brotli? ( app-arch/brotli )
206 - csc? ( >=media-video/ffmpeg-1.2.2:0= )
207 - ffmpeg? ( >=media-video/ffmpeg-3.2.2:0=[x264,x265] )
208 - jpeg? ( media-libs/libjpeg-turbo )
209 - pulseaudio? (
210 - media-sound/pulseaudio
211 - media-plugins/gst-plugins-pulse:1.0
212 - )
213 - sound? (
214 - media-libs/gstreamer:1.0
215 - media-libs/gst-plugins-base:1.0
216 - )
217 - vpx? ( media-libs/libvpx media-video/ffmpeg )
218 - webp? ( media-libs/libwebp )
219 -"
220 -RDEPEND="
221 - ${DEPEND}
222 - ${TDEPEND}
223 - $(python_gen_cond_dep '
224 - cups? ( dev-python/pycups[${PYTHON_USEDEP}] )
225 - lz4? ( dev-python/lz4[${PYTHON_USEDEP}] )
226 - lzo? ( >=dev-python/python-lzo-0.7.0[${PYTHON_USEDEP}] )
227 - opengl? (
228 - client? ( dev-python/pyopengl_accelerate[${PYTHON_USEDEP}] )
229 - )
230 - webcam? (
231 - dev-python/numpy[${PYTHON_USEDEP}]
232 - dev-python/pyinotify[${PYTHON_USEDEP}]
233 - media-libs/opencv[${PYTHON_USEDEP},python]
234 - )
235 - ')
236 - acct-group/xpra
237 - virtual/ssh
238 - x11-apps/xauth
239 - x11-apps/xmodmap
240 - ibus? ( app-i18n/ibus )
241 - pinentry? ( app-crypt/pinentry )
242 -"
243 -DEPEND+="
244 - test? ( ${TDEPEND} )
245 -"
246 -BDEPEND="
247 - $(python_gen_cond_dep '
248 - >=dev-python/cython-0.16[${PYTHON_USEDEP}]
249 - ')
250 - virtual/pkgconfig
251 - doc? ( app-text/pandoc )
252 -"
253 -
254 -RESTRICT="!test? ( test )"
255 -
256 -PATCHES=(
257 - "${FILESDIR}"/${PN}-3.0.2_ignore-gentoo-no-compile.patch
258 - "${FILESDIR}"/${PN}-4.2-suid-warning.patch
259 - "${FILESDIR}"/${PN}-4.2.2-true-false-bin-path.patch
260 - "${FILESDIR}"/${PN}-4.2.3-dup-ip.patch
261 - "${FILESDIR}"/${PN}-4.2.2-bad-tests.patch
262 -)
263 -
264 -python_prepare_all() {
265 - distutils-r1_python_prepare_all
266 -
267 - # FIXME: There are hardcoded paths all over the place but the following
268 - # double-prefixes some files under /etc. Looks tricky to fix. :(
269 - #hprefixify $(find -type f \( -name "*.py" -o -name "*.conf" \))
270 -
271 - sed -r -e "/\bdoc_dir =/s:/${PN}\":/${PF}/html\":" \
272 - -i setup.py || die
273 -
274 - if use minimal; then
275 - sed -r -e 's/^(pam|scripts|xdg_open)_ENABLED.*/\1_ENABLED=False/' \
276 - -i setup.py || die
277 - fi
278 -
279 - # Upstream says these tests are currently broken.
280 - rm tests/unittests/unit/net/subprocess_wrapper_test.py tests/unittests/unit/net/protocol_test.py || die
281 -}
282 -
283 -python_configure_all() {
284 - sed -e "/'pulseaudio'/s:DEFAULT_PULSEAUDIO:$(usex pulseaudio True False):" \
285 - -i setup.py || die
286 -
287 - mydistutilsargs=(
288 - --without-PIC
289 - --without-Xdummy
290 - $(use_with client)
291 - $(use_with clipboard)
292 - $(use_with csc csc_swscale)
293 - --without-csc_libyuv
294 - --without-cuda_rebuild
295 - --without-cuda_kernels
296 - $(use_with cups printing)
297 - --without-debug
298 - $(use_with dbus)
299 - $(use_with doc docs)
300 - $(use_with ffmpeg dec_avcodec2)
301 - $(use_with ffmpeg enc_ffmpeg)
302 - $(use_with ffmpeg enc_x264)
303 - $(use_with ffmpeg enc_x265)
304 - --with-gtk3
305 - $(use_with jpeg jpeg_encoder)
306 - $(use_with jpeg jpeg_decoder)
307 - --without-mdns
308 - $(use_with opengl)
309 - $(use_with server shadow)
310 - $(use_with server)
311 - $(use_with sound)
312 - --with-strict
313 - $(use_with vpx)
314 - --with-warn
315 - $(use_with webcam)
316 - $(use_with webp)
317 - --with-x11
318 - )
319 -
320 - export XPRA_SOCKET_DIRS="${EPREFIX}/run/xpra"
321 -}
322 -
323 -python_test() {
324 - export XAUTHORITY=${HOME}/.Xauthority
325 - touch "${XAUTHORITY}" || die
326 -
327 - distutils_install_for_testing
328 - xdg_environment_reset
329 -
330 - PYTHONPATH=${S}/tests/unittests:${BUILD_DIR}/test/lib \
331 - XPRA_SYSTEMD_RUN=$(usex systemd) XPRA_TEST_COVERAGE=0 \
332 - "${PYTHON}" tests/unittests/unit/run.py || die
333 -}
334 -
335 -python_install_all() {
336 - distutils-r1_python_prepare_all
337 -
338 - # Move udev dir to the right place.
339 - local dir=$(get_udevdir)
340 - dodir "${dir%/*}"
341 - mv -vnT "${ED}"/usr/lib/udev "${ED}${dir}" || die
342 -}
343 -
344 -pkg_postinst() {
345 - tmpfiles_process xpra.conf
346 - xdg_pkg_postinst
347 -}