Skip to contentSkip to conversation

Fix python install in multilib case.

PATCH In review Jeremy Puhlman 2 participants 2 messages Aug 1, 2016 – Aug 5, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix python install in multilib case.

Currently libvirt python builds in the multilib case, but fails to install. Switch from PN to BPN, and fix compile to be consistent.

---
 recipes-extended/libvirt/libvirt-python.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
recipes-extended/libvirt/libvirt-python.inc +2 -2
index 405d5f7..7a7a4cc 100644
@@ -42,14 +42,14 @@ python __anonymous () {
 
 do_compile_append() {
 	if [ "${LIBVIRT_PYTHON_ENABLE}" = "1" ]; then
-		cd ${WORKDIR}/libvirt-python-${PV} && \
+		cd ${WORKDIR}/${BPN}-python-${PV} && \
 		  ${STAGING_BINDIR_NATIVE}/python-native/python setup.py build
 	fi
 }
 
 do_install_append() {
 	if [ "${LIBVIRT_PYTHON_ENABLE}" = "1" ]; then
-		cd ${WORKDIR}/${PN}-python-${PV} && \
+		cd ${WORKDIR}/${BPN}-python-${PV} && \
 		  ${STAGING_BINDIR_NATIVE}/python-native/python setup.py install \
                        --install-lib=${D}/${PYTHON_SITEPACKAGES_DIR} ${LIBVIRT_INSTALL_ARGS}
 	fi
Signature · 1 line
2.6.2
#1 lore raw

merged.

Bruce

Quoted 40 lines · Jeremy Puhlman

Currently libvirt python builds in the multilib case, but fails to install. Switch from PN to BPN, and fix compile to be consistent.

---
 recipes-extended/libvirt/libvirt-python.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
recipes-extended/libvirt/libvirt-python.inc +1 -1
index 405d5f7..7a7a4cc 100644
@@ -42,14 +42,14 @@ python __anonymous () {
 
 do_compile_append() {
        if [ "${LIBVIRT_PYTHON_ENABLE}" = "1" ]; then
-               cd ${WORKDIR}/libvirt-python-${PV} && \
+               cd ${WORKDIR}/${BPN}-python-${PV} && \
                  ${STAGING_BINDIR_NATIVE}/python-native/python setup.py

build
fi
}

 do_install_append() {
        if [ "${LIBVIRT_PYTHON_ENABLE}" = "1" ]; then
recipes-extended/libvirt/libvirt-python.inc +1 -1
-               cd ${WORKDIR}/${PN}-python-${PV} && \
+               cd ${WORKDIR}/${BPN}-python-${PV} && \
                  ${STAGING_BINDIR_NATIVE}/python-native/python setup.py
install \
                        --install-lib=${D}/${PYTHON_SITEPACKAGES_DIR}

${LIBVIRT_INSTALL_ARGS}
fi
--
2.6.2

--
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"