Wind River Support Network

HomeDefectsOVP-1379
Fixed

OVP-1379 : libvirt installs target python files containing host paths

Created: Aug 8, 2013    Updated: Mar 11, 2016
Resolved Date: Sep 4, 2013
Found In Version: 5.0.1
Fix Version: 5.0.1.7
Severity: Standard
Applicable for: Wind River Linux 5
Component/s: Userspace

Description

# head /usr/lib64/python2.7/site-packages/libvirt.py
#! /home/donn/c/5.x/ovp-projects/intel-xeon-core-preempt-rt-ovp-ovirt-node/bitbake_build/tmp/sysroots/x86_64-linux/usr/bin/python-native/python -i
#
# WARNING WARNING WARNING WARNING
#
# This file is automatically written by generator.py. Any changes
# made here will be lost.
#
# To change the manually written methods edit libvirt-override.py
# To change the automatically written methods edit generator.py
#

This also affects libvirt_lxc.py and libvirt_qemu.py.

Workaround

Edit the 3 files to use "#!/usr/bin/env python -i" instead of the broken script header.

Steps to Reproduce

.../configure --enable-board=intel-xeon-core --enable-kernel=preempt-rt+xfs --enable-rootfs=ovp-ovirt-node+third-party-engine+gdb --enable-addons=wr-ovp ...
make all
cd export/dist
head usr/lib64/python2.7/site-packages/libvirt.py
head usr/lib64/python2.7/site-packages/libvirt_lxc.py
head usr/lib64/python2.7/site-packages/libvirt_qemu.py
Live chat
Online