Add python linker patch
https://github.com/DreamSourceLab/DSView/issues/258
This commit is contained in:
parent
f8bb78641a
commit
39dd440d45
3 changed files with 36 additions and 1 deletions
2
.SRCINFO
2
.SRCINFO
|
@ -16,10 +16,12 @@ pkgbase = dsview
|
|||
source = udev.rules
|
||||
source = dsview.desktop
|
||||
source = 0001-workaround-configure-failure-due-to-boost-cmake.patch
|
||||
source = 0002-cmake-python-link.patch
|
||||
sha384sums = b8bf646f8c599cb8adfa2ab1363f36592a1ecb10b819617cecc970ac7a30b8d5ef912e9af5c1d55a9282478d8a55b80e
|
||||
sha384sums = cb8d28e4f0e20d81bccb7f81d3c2df9df13e13a45556bce9cbf0303f12d23564271bcc6afacf6a2801114dec50000729
|
||||
sha384sums = 832521f6e13705d7abc99a94ab2a6cb8e1d8087444cdc283b9adc9ec2011da9a16242994af2ba6f339c7e455ba5df4ad
|
||||
sha384sums = 338763e008464bebb1f11e62d3a4839d7af43c800f772be6d51a345f6e1e83fa4d5929c1e4b363dd9af2073dda420821
|
||||
sha384sums = b3c355692709a1d9f4a1712f963ab87b1437e8d40fe0bb43dbc433f29ff9b06cc630bff357d33e5da6a351bee9dbd98f
|
||||
|
||||
pkgname = dsview
|
||||
|
||||
|
|
29
0002-cmake-python-link.patch
Normal file
29
0002-cmake-python-link.patch
Normal file
|
@ -0,0 +1,29 @@
|
|||
From d5ad3518afd82c68af9a1e8364668c41c40341d1 Mon Sep 17 00:00:00 2001
|
||||
From: Abdelhak Bougouffa <abougouffa@fedoraproject.org>
|
||||
Date: Tue, 19 Nov 2019 15:14:15 +0100
|
||||
Subject: [PATCH] Add PythonLibs to link libraries in CMake, Fix #258
|
||||
|
||||
---
|
||||
DSView/CMakeLists.txt | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/DSView/CMakeLists.txt b/DSView/CMakeLists.txt
|
||||
index 1a844a4..16ef406 100755
|
||||
--- a/DSView/CMakeLists.txt
|
||||
+++ b/DSView/CMakeLists.txt
|
||||
@@ -92,6 +92,7 @@ endif()
|
||||
|
||||
find_package(Threads)
|
||||
|
||||
+find_package(PythonLibs 3 EXACT)
|
||||
find_package(Boost 1.42 COMPONENTS filesystem system thread REQUIRED)
|
||||
find_package(libusb-1.0 REQUIRED)
|
||||
find_package(libzip REQUIRED)
|
||||
@@ -390,6 +391,7 @@ else()
|
||||
list(APPEND DSVIEW_LINK_LIBS ${PKGDEPS_LIBRARIES})
|
||||
endif()
|
||||
|
||||
+list(APPEND DSVIEW_LINK_LIBS ${PYTHON_LIBRARIES})
|
||||
|
||||
add_executable(${PROJECT_NAME}
|
||||
${DSView_SOURCES}
|
6
PKGBUILD
6
PKGBUILD
|
@ -17,11 +17,13 @@ source=(
|
|||
'udev.rules'
|
||||
'dsview.desktop'
|
||||
'0001-workaround-configure-failure-due-to-boost-cmake.patch'
|
||||
'0002-cmake-python-link.patch'
|
||||
)
|
||||
sha384sums=('b8bf646f8c599cb8adfa2ab1363f36592a1ecb10b819617cecc970ac7a30b8d5ef912e9af5c1d55a9282478d8a55b80e'
|
||||
'cb8d28e4f0e20d81bccb7f81d3c2df9df13e13a45556bce9cbf0303f12d23564271bcc6afacf6a2801114dec50000729'
|
||||
'832521f6e13705d7abc99a94ab2a6cb8e1d8087444cdc283b9adc9ec2011da9a16242994af2ba6f339c7e455ba5df4ad'
|
||||
'338763e008464bebb1f11e62d3a4839d7af43c800f772be6d51a345f6e1e83fa4d5929c1e4b363dd9af2073dda420821')
|
||||
'338763e008464bebb1f11e62d3a4839d7af43c800f772be6d51a345f6e1e83fa4d5929c1e4b363dd9af2073dda420821'
|
||||
'b3c355692709a1d9f4a1712f963ab87b1437e8d40fe0bb43dbc433f29ff9b06cc630bff357d33e5da6a351bee9dbd98f')
|
||||
|
||||
_wdir() {
|
||||
cd "$srcdir/DSView-$pkgver/DSView"
|
||||
|
@ -30,6 +32,8 @@ _wdir() {
|
|||
prepare() {
|
||||
cd "$srcdir/DSView-$pkgver"
|
||||
patch -Np1 -i "$srcdir"/'0001-workaround-configure-failure-due-to-boost-cmake.patch'
|
||||
patch -Np1 -i "$srcdir"/'0002-cmake-python-link.patch'
|
||||
|
||||
cd DSView
|
||||
sed -i 's#install(FILES icons/logo.png DESTINATION share/${PROJECT_NAME} RENAME logo.png)##;
|
||||
s#install(FILES DreamSourceLab.rules DESTINATION /etc/udev/rules.d/)##' \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue