diff options
| author | Bruce Ashfield <bruce.ashfield@windriver.com> | 2014-02-26 14:19:39 -0500 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2014-02-26 14:19:39 -0500 |
| commit | 87587c4ddb734d66b3310b6ca946a5e6f7e6d3aa (patch) | |
| tree | fe0f48f7cc1be1f5cd5b8e5c6e9b3807707550da | |
| parent | 1a7ac38723059420debad0b9813bbba8095eb895 (diff) | |
| download | meta-cloud-services-87587c4ddb734d66b3310b6ca946a5e6f7e6d3aa.tar.gz | |
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 <bruce.ashfield@windriver.com>
3 files changed, 21 insertions, 0 deletions
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 | |||
| 15 | S = "${WORKDIR}/${SRCNAME}-${PV}" | 15 | S = "${WORKDIR}/${SRCNAME}-${PV}" |
| 16 | 16 | ||
| 17 | inherit setuptools | 17 | inherit setuptools |
| 18 | |||
| 19 | do_install_append() { | ||
| 20 | perm_files=`find "${D}${PYTHON_SITEPACKAGES_DIR}/" -name "top_level.txt"` | ||
| 21 | for f in $perm_files; do | ||
| 22 | chmod 644 "${f}" | ||
| 23 | done | ||
| 24 | } \ 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 | |||
| 15 | S = "${WORKDIR}/${SRCNAME}-${PV}" | 15 | S = "${WORKDIR}/${SRCNAME}-${PV}" |
| 16 | 16 | ||
| 17 | inherit setuptools | 17 | inherit setuptools |
| 18 | |||
| 19 | do_install_append() { | ||
| 20 | perm_files=`find "${D}${PYTHON_SITEPACKAGES_DIR}/" -name "top_level.txt"` | ||
| 21 | for f in $perm_files; do | ||
| 22 | chmod 644 "${f}" | ||
| 23 | done | ||
| 24 | } \ 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 | |||
| 15 | S = "${WORKDIR}/${SRCNAME}-${PV}" | 15 | S = "${WORKDIR}/${SRCNAME}-${PV}" |
| 16 | 16 | ||
| 17 | inherit setuptools | 17 | inherit setuptools |
| 18 | |||
| 19 | do_install_append() { | ||
| 20 | perm_files=`find "${D}${PYTHON_SITEPACKAGES_DIR}/" -name "top_level.txt"` | ||
| 21 | for f in $perm_files; do | ||
| 22 | chmod 644 "${f}" | ||
| 23 | done | ||
| 24 | } \ No newline at end of file | ||
