0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-11-21 20:56:19 +00:00
termux-packages/disabled-packages/pypanel/PyPanel-2.4_ppmodule.c.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

22 lines
853 B
Diff

diff -uNr PyPanel-2.4/ppmodule.c PyPanel-2.4.mod/ppmodule.c
--- PyPanel-2.4/ppmodule.c 2005-06-27 02:24:43.000000000 +0300
+++ PyPanel-2.4.mod/ppmodule.c 2017-12-12 17:52:46.256911457 +0200
@@ -18,7 +18,7 @@
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-#include <Python.h>
+#include <@TERMUX_PREFIX@/include/python2.7/Python.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <Imlib2.h>
@@ -265,7 +265,7 @@
attempting to open them later with the RTLD_NOW flag which fails. If
you're reading this and know of a proper solution, please let me know ..
*/
- handle = dlopen("/usr/lib/libImlib2.so.1", RTLD_NOW|RTLD_GLOBAL);
+ handle = dlopen("@TERMUX_PREFIX@/lib/libImlib2.so", RTLD_NOW|RTLD_GLOBAL);
if (!handle) {
printf("Imlib2 dlopen failed: %s\n", dlerror());