summaryrefslogtreecommitdiff
path: root/kde-base/pykde4/files
diff options
context:
space:
mode:
authorJohannes Huber <johu@gentoo.org>2015-08-18 01:48:22 +0200
committerJohannes Huber <johu@gentoo.org>2015-08-18 01:48:22 +0200
commitc4d16ecddc53a2d91e6df310da21562ebbf62808 (patch)
tree0dad84c01814ade852ae103050440f4a4a6bfd78 /kde-base/pykde4/files
parentc3b96463005c48ed5a0438f9e8770337577e3d5b (diff)
downloadkde-c4d16ecddc53a2d91e6df310da21562ebbf62808.tar.gz
kde-c4d16ecddc53a2d91e6df310da21562ebbf62808.tar.bz2
kde-c4d16ecddc53a2d91e6df310da21562ebbf62808.zip
kde-base: Remove KDE bindings live
No releases since 4.14.3. Package-Manager: portage-2.2.20.1
Diffstat (limited to 'kde-base/pykde4/files')
-rw-r--r--kde-base/pykde4/files/kpythonpluginfactorywrapper.c-r160
-rw-r--r--kde-base/pykde4/files/pykde4-4.14.0-arm-sip.patch23
2 files changed, 0 insertions, 83 deletions
diff --git a/kde-base/pykde4/files/kpythonpluginfactorywrapper.c-r1 b/kde-base/pykde4/files/kpythonpluginfactorywrapper.c-r1
deleted file mode 100644
index b5d152f4b5c..00000000000
--- a/kde-base/pykde4/files/kpythonpluginfactorywrapper.c-r1
+++ /dev/null
@@ -1,60 +0,0 @@
-#include <dlfcn.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-
-#define VERSION_LEN 10
-
-#define FORMAT EPREFIX PLUGIN_DIR "/kpython%spluginfactory.so"
-
-static void *handle;
-static void *(*wrapped_qt_plugin_instance)();
-
-static void get_python_version(char* out) {
- int pipefd[2];
- pipe(pipefd);
- pid_t cpid = fork();
- if (cpid == 0) {
- close(pipefd[1]);
- read(pipefd[0], out, VERSION_LEN);
- } else {
- close(pipefd[0]);
- close(1);
- dup2(pipefd[1], 1);
- close(pipefd[1]);
- close(0);
- char *args[] = { "eselect", "python", "show", "--ABI", "--python2", 0 };
- execv(EPREFIX "/usr/bin/eselect", args);
- }
-}
-
-__attribute__((constructor))
-static void init() {
- char buf[VERSION_LEN + 1];
- memset(buf, 0, VERSION_LEN + 1);
- get_python_version(buf);
- char *s = buf;
- while(*s != '\0') {
- if(*s == '\n') {
- *s = '\0';
- break;
- }
- ++s;
- }
- int length = strlen(FORMAT) + strlen(buf) + 1;
- char *name = malloc(length + 1);
- snprintf(name, length, FORMAT, buf);
- handle = dlopen(name, RTLD_NOW);
- free(name);
- wrapped_qt_plugin_instance = dlsym(handle, "qt_plugin_instance");
-}
-
-__attribute__((destructor))
-static void fini() {
- dlclose(handle);
-}
-
-void *qt_plugin_instance() {
- return wrapped_qt_plugin_instance();
-}
diff --git a/kde-base/pykde4/files/pykde4-4.14.0-arm-sip.patch b/kde-base/pykde4/files/pykde4-4.14.0-arm-sip.patch
deleted file mode 100644
index f6391a8ec71..00000000000
--- a/kde-base/pykde4/files/pykde4-4.14.0-arm-sip.patch
+++ /dev/null
@@ -1,23 +0,0 @@
-See Gentoo bug #322351.
-
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -99,6 +99,9 @@ include_directories(
- ${KDEPIMLIBS_INCLUDE_DIRS}
- )
-
-+# Pull in ARM configuration options if needed
-+STRING(REGEX MATCH "PyQt_qreal_double" SIP_ARM_HACK ${PYQT4_SIP_FLAGS} "")
-+
- set(SIP_INCLUDES ${CMAKE_BINARY_DIR} ${PYQT4_SIP_DIR} sip)
- set(SIP_CONCAT_PARTS 8)
- if (WIN32)
-@@ -106,7 +109,7 @@ if (WIN32)
- else ()
- set(SIP_TAGS ALL WS_X11 ${PYQT4_VERSION_TAG})
- endif ()
--set(SIP_DISABLE_FEATURES VendorID PyQt_NoPrintRangeBug)
-+set(SIP_DISABLE_FEATURES VendorID PyQt_NoPrintRangeBug ${SIP_ARM_HACK})
-
- set(SIP_FILES_INSTALL_DIR ${SHARE_INSTALL_PREFIX}/sip)
-