[meta-virtualization] [m-c-s][PATCH 1/3] python-*: Set permissive perms
Mark Asselstine
mark.asselstine at windriver.com
Wed Nov 22 08:08:44 PST 2017
Keystone will fail with permission denied if we don't set more
permissive permissions for the PGK-INFO files in these packages.
Signed-off-by: Mark Asselstine <mark.asselstine at windriver.com>
---
meta-openstack/recipes-devtools/python/python-happybase_1.1.0.bb | 3 ++-
meta-openstack/recipes-devtools/python/python-oauth2_1.5.211.bb | 8 ++++++++
meta-openstack/recipes-devtools/python/python-oauthlib_0.7.2.bb | 1 +
3 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/meta-openstack/recipes-devtools/python/python-happybase_1.1.0.bb b/meta-openstack/recipes-devtools/python/python-happybase_1.1.0.bb
index 7b3c7d8..0981c27 100644
--- a/meta-openstack/recipes-devtools/python/python-happybase_1.1.0.bb
+++ b/meta-openstack/recipes-devtools/python/python-happybase_1.1.0.bb
@@ -10,7 +10,8 @@ SRC_URI[sha256sum] = "e20376e2e32291798d2226502994134c1c4e175136d8375b3c517a234f
inherit setuptools pypi
do_install_append() {
- perm_files=`find "${D}${PYTHON_SITEPACKAGES_DIR}/" -name "top_level.txt"`
+ perm_files=$(find "${D}${PYTHON_SITEPACKAGES_DIR}/" -name "top_level.txt")
+ perm_files="$perm_files "$(find "${D}${PYTHON_SITEPACKAGES_DIR}/" -name "PKG-INFO")
for f in $perm_files; do
chmod 644 "${f}"
done
diff --git a/meta-openstack/recipes-devtools/python/python-oauth2_1.5.211.bb b/meta-openstack/recipes-devtools/python/python-oauth2_1.5.211.bb
index 21a0585..aa04663 100644
--- a/meta-openstack/recipes-devtools/python/python-oauth2_1.5.211.bb
+++ b/meta-openstack/recipes-devtools/python/python-oauth2_1.5.211.bb
@@ -15,3 +15,11 @@ RDEPENDS_${PN} += "python-prettytable \
python-mccabe \
python-pep8 \
python-pyflakes"
+
+
+do_install_append() {
+ perm_files=$(find "${D}${PYTHON_SITEPACKAGES_DIR}/" -name "PKG-INFO")
+ for f in $perm_files; do
+ chmod 644 "${f}"
+ done
+}
diff --git a/meta-openstack/recipes-devtools/python/python-oauthlib_0.7.2.bb b/meta-openstack/recipes-devtools/python/python-oauthlib_0.7.2.bb
index fe4560b..3b5d38f 100644
--- a/meta-openstack/recipes-devtools/python/python-oauthlib_0.7.2.bb
+++ b/meta-openstack/recipes-devtools/python/python-oauthlib_0.7.2.bb
@@ -21,6 +21,7 @@ RDEPENDS_${PN} += " \
do_install_append() {
perm_files=`find "${D}${PYTHON_SITEPACKAGES_DIR}/" -name "top_level.txt" -o -name "requires.txt"`
+ perm_files="$perm_files "$(find "${D}${PYTHON_SITEPACKAGES_DIR}/" -name "PKG-INFO")
for f in $perm_files; do
chmod 644 "${f}"
done
--
2.7.4
More information about the meta-virtualization
mailing list