0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-11-21 20:56:19 +00:00
termux-packages/disabled-packages/python2-xlib/python-xlib-0.20_Xlib_support_unix_connect.py.patch
Tee KOBAYASHI 235c11e73e pypanel, python2-{six,xlib}: Disabled
due to run-time dependency on python2.

Python 2 is long since EOL and has a bunch of known vulnerabilities now.
It should not be used other than in some restricted cases such as build
dependency of pypy{,3}.
2023-02-12 04:18:33 +00:00

13 lines
592 B
Diff

diff -uNr python-xlib-0.20/Xlib/support/unix_connect.py python-xlib-0.20.mod/Xlib/support/unix_connect.py
--- python-xlib-0.20/Xlib/support/unix_connect.py 2017-09-07 15:22:58.000000000 +0300
+++ python-xlib-0.20.mod/Xlib/support/unix_connect.py 2017-12-11 22:06:18.231860274 +0200
@@ -96,7 +96,7 @@
# Else use Unix socket
else:
- address = '/tmp/.X11-unix/X%d' % dno
+ address = '@TERMUX_PREFIX@/tmp/.X11-unix/X%d' % dno
if not os.path.exists(address):
# Use abstract address.
address = '\0' + address