summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Schneider <->2015-10-05 10:59:03 +0200
committerSven Schneider <->2015-10-05 10:59:03 +0200
commit2d29c75f70e72aad161589c0ac4fe04c5462298e (patch)
tree32643092e8af63554254dc4d29156fdd7264e665
parent6f5a982b4c21ea08609abd6d70436de86d590867 (diff)
workaround for python executable path
cyrozap (https://aur.archlinux.org/account/cyrozap/): "This is the error I got: CMake Error at /usr/share/cmake-3.3/Modules/FindPythonLibs.cmake:63 (get_filename_component): get_filename_component called with incorrect number of arguments Call Stack (most recent call first): wrappers/python/CMakeLists.txt:6 (include) The root cause of the issue is in CMake's FindPythonLibs on line 63. When PYTHON_EXECUTABLE is set to "python2" by CMakeLists.txt and FindPythonLibs tries to get its path a second time, it fails because the original path returned was empty/NOTFOUND. I'm not sure at what point it stopped accepting just the executable name and not its full path, but it must have been some time before CMake 3.3.2 was released since that's what I'm using. In any case, the CMake script in the source should be modified to honor the PYTHON_EXECUTABLE definition if it's set somewhere else-- this patch is just a quick hack to get it to build."
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD9
2 files changed, 8 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index b732e31..317d913 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = libfreenect
pkgdesc = Drivers and libraries for the Xbox Kinect device on Linux
pkgver = 0.5.2
- pkgrel = 1
+ pkgrel = 2
url = http://openkinect.org
arch = i686
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index 0fcaf74..04a275e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=libfreenect
pkgver=0.5.2
-pkgrel=1
+pkgrel=2
pkgdesc="Drivers and libraries for the Xbox Kinect device on Linux"
arch=('i686' 'x86_64')
url="http://openkinect.org"
@@ -17,10 +17,15 @@ sha256sums=('91af5c09b7eae217c4be69234ae5a6371f24da8ff6986f98c2db19f1993f2a71')
sha384sums=('e0723886adea009e290318ae59a9a7ea1ff82d2b369ed0646a58d59a6ce1bfa30b5eb7c66e0909ee48a6165ba74cfc79')
sha512sums=('26224a8d4cb0c57ce058754d691631fa14fe4547b3a6b9afbcc9b0fd29577e7b767e65abcfff9bad72e32d1bb9723dd9fc3d41f076a0e0b1cf87b5855faf4b41')
-build() {
+prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
+ sed '/set(PYTHON_EXECUTABLE "python2")/d' -i CMakeLists.txt
sed 's/systemupdate\/FFFE07DF00000001/SystemUpdate\/FFFE07DF00000001/g' -i src/fwfetcher.py
+}
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DPROJECT_INCLUDE_INSTALL_DIR=/usr/include -DLIB_SUFFIX="" \