Skip to contentSkip to conversation

neo-ai-dlr: fix dlr runtime problem

PATCH In review Jianzhong Xu 2 participants 3 messages Nov 20, 2019 – Nov 25, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 neo-ai-dlr: fix dlr runtime problem

* move dlr shared library to python sitepackages dlr folder

---
 recipes-support/neo-ai/neo-ai-dlr_git.bb | 1 +
 1 file changed, 1 insertion(+)
recipes-support/neo-ai/neo-ai-dlr_git.bb +1 -0
index cbf4447..e81a939 100644
@@ -57,6 +57,7 @@ do_install() {
 
     # setup.py install some libs under datadir, but we don't need them, so remove.
     rm ${D}${datadir}/dlr/*.so
+    mv ${D}${libdir}/libdlr.so ${D}${PYTHON_SITEPACKAGES_DIR}/dlr
 
     # Now install python test scripts
     install -d ${D}${datadir}/dlr/tests
Signature · 1 line
2.17.1
#1 lore raw

Denys,

Any issue with this patch?

Thanks,
Jianzhong

-----Original Message-----
From: Xu, Jianzhong
Sent: Wednesday, November 20, 2019 11:54 AM
To: [email protected]
Cc: Xu, Jianzhong
Subject: [meta-processor-sdk][PATCH] neo-ai-dlr: fix dlr runtime problem

* move dlr shared library to python sitepackages dlr folder

---
 recipes-support/neo-ai/neo-ai-dlr_git.bb | 1 +
 1 file changed, 1 insertion(+)
recipes-support/neo-ai/neo-ai-dlr_git.bb +1 -0
index cbf4447..e81a939 100644
@@ -57,6 +57,7 @@ do_install() {
 
     # setup.py install some libs under datadir, but we don't need them, so remove.
     rm ${D}${datadir}/dlr/*.so
+    mv ${D}${libdir}/libdlr.so ${D}${PYTHON_SITEPACKAGES_DIR}/dlr
 
     # Now install python test scripts
     install -d ${D}${datadir}/dlr/tests
Signature · 1 line
2.17.1
#2 lore raw
In reply to Jianzhong Xu
Quoted 12 lines · Jianzhong Xu

* move dlr shared library to python sitepackages dlr folder

---
  recipes-support/neo-ai/neo-ai-dlr_git.bb | 1 +
  1 file changed, 1 insertion(+)
recipes-support/neo-ai/neo-ai-dlr_git.bb +0 -0
index cbf4447..e81a939 100644

recipes-support/neo-ai/neo-ai-dlr_git.bb do_install() { · line 58

Quoted 2 lines
recipes-support/neo-ai/neo-ai-dlr_git.bb +0 -0
@@ -57,6 +57,7 @@ do_install() {
 
      # setup.py install some libs under datadir, but we don't need them, so remove.

Can you also update the above comment as it is no longer relevant?

Quoted 5 lines
recipes-support/neo-ai/neo-ai-dlr_git.bb +1 -0
      rm ${D}${datadir}/dlr/*.so
+    mv ${D}${libdir}/libdlr.so ${D}${PYTHON_SITEPACKAGES_DIR}/dlr
 
      # Now install python test scripts
      install -d ${D}${datadir}/dlr/tests