From 87587c4ddb734d66b3310b6ca946a5e6f7e6d3aa Mon Sep 17 00:00:00 2001 From: Bruce Ashfield Date: Wed, 26 Feb 2014 14:19:39 -0500 Subject: nova: update top_level.txt permissions in supporting packages When starting nova as a non-root user, we need to be able to read the site-packages/egg-info top_level.txt file. These files are sometimes installed as root-read only. To ensure we are always capable of reading them, we'll change them to 644 in the post install rules. Signed-off-by: Bruce Ashfield --- meta-openstack/recipes-devtools/python/python-happybase_0.6.bb | 7 +++++++ meta-openstack/recipes-devtools/python/python-httplib2_0.8.bb | 7 +++++++ meta-openstack/recipes-devtools/python/python-prettytable_0.7.2.bb | 7 +++++++ 3 files changed, 21 insertions(+) (limited to 'meta-openstack/recipes-devtools/python') diff --git a/meta-openstack/recipes-devtools/python/python-happybase_0.6.bb b/meta-openstack/recipes-devtools/python/python-happybase_0.6.bb index 0db492b..95ce2ad 100644 --- a/meta-openstack/recipes-devtools/python/python-happybase_0.6.bb +++ b/meta-openstack/recipes-devtools/python/python-happybase_0.6.bb @@ -15,3 +15,10 @@ SRC_URI[sha256sum] = "74312a83c7f67d8a362649a822259fcf5983ea9b9e5f2e4e17d6710943 S = "${WORKDIR}/${SRCNAME}-${PV}" inherit setuptools + +do_install_append() { + perm_files=`find "${D}${PYTHON_SITEPACKAGES_DIR}/" -name "top_level.txt"` + for f in $perm_files; do + chmod 644 "${f}" + done +} \ No newline at end of file diff --git a/meta-openstack/recipes-devtools/python/python-httplib2_0.8.bb b/meta-openstack/recipes-devtools/python/python-httplib2_0.8.bb index b0eaaab..98fc9a5 100644 --- a/meta-openstack/recipes-devtools/python/python-httplib2_0.8.bb +++ b/meta-openstack/recipes-devtools/python/python-httplib2_0.8.bb @@ -15,3 +15,10 @@ SRC_URI[sha256sum] = "af689bc3cb10a95721eb0d0cf806202a699e7799dacd3497f63b48b2ba S = "${WORKDIR}/${SRCNAME}-${PV}" inherit setuptools + +do_install_append() { + perm_files=`find "${D}${PYTHON_SITEPACKAGES_DIR}/" -name "top_level.txt"` + for f in $perm_files; do + chmod 644 "${f}" + done +} \ No newline at end of file diff --git a/meta-openstack/recipes-devtools/python/python-prettytable_0.7.2.bb b/meta-openstack/recipes-devtools/python/python-prettytable_0.7.2.bb index ccf3e93..5242bfc 100644 --- a/meta-openstack/recipes-devtools/python/python-prettytable_0.7.2.bb +++ b/meta-openstack/recipes-devtools/python/python-prettytable_0.7.2.bb @@ -15,3 +15,10 @@ SRC_URI[sha256sum] = "a53da3b43d7a5c229b5e3ca2892ef982c46b7923b51e98f0db49956531 S = "${WORKDIR}/${SRCNAME}-${PV}" inherit setuptools + +do_install_append() { + perm_files=`find "${D}${PYTHON_SITEPACKAGES_DIR}/" -name "top_level.txt"` + for f in $perm_files; do + chmod 644 "${f}" + done +} \ No newline at end of file -- cgit v1.2.3-54-g00ecf