Skip to contentSkip to conversation

Dependency on pbr

PATCH In review Josep Puigdemont 3 participants 6 messages Sep 21, 2015 – Sep 23, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Dependency on pbr

I've been hitting build issues every now and then due to python packages that depend on python-pbr but have not properly declared this dependency in their respective recipes. I have fixed some of them as soon as they popped up, but that wouldn't catch all packages missing this dependency.
In order to fix this, I looked att the packages that declare a dependency on "pbr" in their setup.py file, and made it a dependency also in their respective recipe.

I hope this is the proper way to solve this.

Josep Puigdemont (1):
python packages: add build dependency on python-pbr

 meta-openstack/recipes-devtools/python/python-glanceclient_git.bb | 4 ++++
 .../recipes-devtools/python/python-heat-cfntools_1.2.8.bb         | 8 ++++++++
 meta-openstack/recipes-devtools/python/python-mox3_0.7.0.bb       | 4 ++++
 .../recipes-devtools/python/python-openstackclient_1.0.3.bb       | 8 ++++++++
 .../recipes-devtools/python/python-oslo.concurrency_1.5.0.bb      | 2 ++
 meta-openstack/recipes-devtools/python/python-oslo.context_git.bb | 2 ++
 meta-openstack/recipes-devtools/python/python-oslo.db_1.5.0.bb    | 2 ++
 meta-openstack/recipes-devtools/python/python-oslo.i18n_1.4.0.bb  | 2 ++
 meta-openstack/recipes-devtools/python/python-oslo.log_git.bb     | 1 +
 .../recipes-devtools/python/python-oslo.messaging_git.bb          | 2 ++
 .../recipes-devtools/python/python-oslo.middleware_0.4.0.bb       | 2 ++
 .../recipes-devtools/python/python-oslo.rootwrap_1.5.0.bb         | 2 ++
 .../recipes-devtools/python/python-oslo.serialization_git.bb      | 2 ++
 meta-openstack/recipes-devtools/python/python-oslo.utils_git.bb   | 2 ++
 meta-openstack/recipes-devtools/python/python-oslotest_1.4.0.bb   | 5 +++++
 meta-openstack/recipes-devtools/python/python-osprofiler_0.3.0.bb | 2 ++
 meta-openstack/recipes-devtools/python/python-pycadf_0.6.0.bb     | 2 ++
 meta-openstack/recipes-devtools/python/python-tooz_0.4.bb         | 2 ++
 18 files changed, 54 insertions(+)
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 python packages: add build dependency on python-pbr

Some packages fail to build because their dependency on python-pbr during built time is not properly stated in the recipe. Sometimes the build succeeds anyway because the python-pbr package has already been built previously. To avoid the occasional build failure, this patch adds a dependency on python-pbr to all those packages that declare it as a dependency in their setup.py file.

---
 meta-openstack/recipes-devtools/python/python-glanceclient_git.bb | 4 ++++
 .../recipes-devtools/python/python-heat-cfntools_1.2.8.bb         | 8 ++++++++
 meta-openstack/recipes-devtools/python/python-mox3_0.7.0.bb       | 4 ++++
 .../recipes-devtools/python/python-openstackclient_1.0.3.bb       | 8 ++++++++
 .../recipes-devtools/python/python-oslo.concurrency_1.5.0.bb      | 2 ++
 meta-openstack/recipes-devtools/python/python-oslo.context_git.bb | 2 ++
 meta-openstack/recipes-devtools/python/python-oslo.db_1.5.0.bb    | 2 ++
 meta-openstack/recipes-devtools/python/python-oslo.i18n_1.4.0.bb  | 2 ++
 meta-openstack/recipes-devtools/python/python-oslo.log_git.bb     | 1 +
 .../recipes-devtools/python/python-oslo.messaging_git.bb          | 2 ++
 .../recipes-devtools/python/python-oslo.middleware_0.4.0.bb       | 2 ++
 .../recipes-devtools/python/python-oslo.rootwrap_1.5.0.bb         | 2 ++
 .../recipes-devtools/python/python-oslo.serialization_git.bb      | 2 ++
 meta-openstack/recipes-devtools/python/python-oslo.utils_git.bb   | 2 ++
 meta-openstack/recipes-devtools/python/python-oslotest_1.4.0.bb   | 5 +++++
 meta-openstack/recipes-devtools/python/python-osprofiler_0.3.0.bb | 2 ++
 meta-openstack/recipes-devtools/python/python-pycadf_0.6.0.bb     | 2 ++
 meta-openstack/recipes-devtools/python/python-tooz_0.4.bb         | 2 ++
 18 files changed, 54 insertions(+)
meta-openstack/recipes-devtools/python/python-glanceclient_git.bb +4 -0
index a8ba1ed..5435b06 100644
@@ -25,6 +25,10 @@ inherit setuptools monitor
 
 FILES_${PN} += "${datadir}/${SRCNAME}"
 
+DEPENDS += " \
+   python-pbr \
+   "
+
 RDEPENDS_${PN} = "gmp \
    python-warlock \
    python-pyopenssl \
meta-openstack/recipes-devtools/python/python-heat-cfntools_1.2.8.bb +8 -0
index 3d6756a..383a76c 100644
@@ -15,3 +15,11 @@ SRC_URI[sha256sum] = "de7d93338d3afb71cc4c53d713740316ead0af3a9c869b1231617347e9
 S = "${WORKDIR}/${SRCNAME}-${PV}"
 
 inherit setuptools
+
+DEPENDS += "\
+    python-pbr \
+    "
+
+RDEPENDS_${PN} += "\
+    python-pbr \
+    "
meta-openstack/recipes-devtools/python/python-mox3_0.7.0.bb +4 -0
index 9e40686..bd1c9aa 100644
@@ -16,6 +16,10 @@ S = "${WORKDIR}/${SRCNAME}-${PV}"
 
 inherit setuptools
 
+DEPENDS += "\
+    python-pbr \
+"
+
 RDEPENDS_${PN} += " \
     python-pbr \
     python-fixtures \
meta-openstack/recipes-devtools/python/python-openstackclient_1.0.3.bb +8 -0
index ae8e82c..77cb5d2 100644
@@ -14,3 +14,11 @@ SRC_URI[sha256sum] = "d39a2e6cf98d409f8545b9d3a207eb8cbf3b2fc5ea17b0f8d9bed52326
 S = "${WORKDIR}/${SRCNAME}-${PV}"
 
 inherit setuptools
+
+DEPENDS += "\
+    python-pbr \
+    "
+
+RDEPENDS_${PN} += "\
+    python-pbr \
+    "
meta-openstack/recipes-devtools/python/python-oslo.concurrency_1.5.0.bb +2 -0
index 50136ae..bdd3559 100644
@@ -20,8 +20,10 @@ inherit setuptools
 
 DEPENDS += " \
         python-pip \
+        python-pbr \
         "
 
 # RDEPENDS_default: 
 RDEPENDS_${PN} += " \
+        python-pbr \
         "
meta-openstack/recipes-devtools/python/python-oslo.context_git.bb +2 -0
index 05034f9..d48abe5 100644
@@ -18,9 +18,11 @@ inherit setuptools
 DEPENDS += " \
         python-pip \
         python-babel \
+        python-pbr \
         "
 
 # RDEPENDS_default: 
 RDEPENDS_${PN} += " \
+        python-pbr \
         bash \
         "
meta-openstack/recipes-devtools/python/python-oslo.db_1.5.0.bb +2 -0
index 04b5dd3..1c3a7b4 100644
@@ -18,6 +18,7 @@ inherit setuptools
 
 DEPENDS += " \
         python-pip \
+        python-pbr \
         "
 
 RDEPENDS_${PN} += " \
@@ -29,4 +30,5 @@ RDEPENDS_${PN} += " \
        python-sqlalchemy \
        python-sqlalchemy-migrate \
        python-stevedore \
+       python-pbr \
         "
meta-openstack/recipes-devtools/python/python-oslo.i18n_1.4.0.bb +2 -0
index fa710d0..d2bc53b 100644
@@ -20,9 +20,11 @@ inherit setuptools
 
 DEPENDS += " \
         python-pip \
+        python-pbr \
         "
 
 # RDEPENDS_default: 
 RDEPENDS_${PN} += " \
         python-babel \
+        python-pbr \
         "
meta-openstack/recipes-devtools/python/python-oslo.log_git.bb +1 -0
index 974578b..bfcbe31 100644
@@ -18,6 +18,7 @@ inherit setuptools
 DEPENDS += " \
         python-pip \
         python-babel \
+        python-pbr \
         "
 
 # RDEPENDS_default: 
meta-openstack/recipes-devtools/python/python-oslo.messaging_git.bb +2 -0
index 8bb85cb..8841ec0 100644
@@ -19,9 +19,11 @@ inherit setuptools
 
 DEPENDS += " \
         python-pip \
+        python-pbr \
         "
 
 # RDEPENDS_default: 
 RDEPENDS_${PN} += " \
         bash \
+        python-pbr \
         "
meta-openstack/recipes-devtools/python/python-oslo.middleware_0.4.0.bb +2 -0
index 7f18179..6affd47 100644
@@ -20,8 +20,10 @@ inherit setuptools
 
 DEPENDS += " \
         python-pip \
+        python-pbr \
         "
 
 # RDEPENDS_default: 
 RDEPENDS_${PN} += " \
+        python-pbr \
         "
meta-openstack/recipes-devtools/python/python-oslo.rootwrap_1.5.0.bb +2 -0
index 3a2477b..e3a47fa 100644
@@ -20,8 +20,10 @@ inherit setuptools
 
 DEPENDS += " \
         python-pip \
+        python-pbr \
         "
 
 # RDEPENDS_default: 
 RDEPENDS_${PN} += " \
+        python-pbr \
         "
meta-openstack/recipes-devtools/python/python-oslo.serialization_git.bb +2 -0
index 451c6b9..db2869c 100644
@@ -19,8 +19,10 @@ inherit setuptools
 
 DEPENDS += " \
         python-pip \
+        python-pbr \
         "
 
 # RDEPENDS_default: 
 RDEPENDS_${PN} += " \
+        python-pbr \
         "
meta-openstack/recipes-devtools/python/python-oslo.utils_git.bb +2 -0
index 27a80b6..33c7e53 100644
@@ -19,8 +19,10 @@ inherit setuptools
 
 DEPENDS += " \
         python-pip \
+        python-pbr \
         "
 
 # RDEPENDS_default: 
 RDEPENDS_${PN} += " \
+        python-pbr \
         "
meta-openstack/recipes-devtools/python/python-oslotest_1.4.0.bb +5 -0
index b3819e4..fae73cc 100644
@@ -19,6 +19,10 @@ S = "${WORKDIR}/${SRCNAME}-${PV}"
 
 inherit setuptools
 
+DEPENDS += " \
+    python-pbr \
+"
+
 RDEPENDS_${PN} = "python-fixtures \
                   python-subunit \
                   python-testrepository \
@@ -26,5 +30,6 @@ RDEPENDS_${PN} = "python-fixtures \
                   python-testtools \
                   python-mock \
                   python-mox \
+                  python-pbr \
                   bash \
 "
meta-openstack/recipes-devtools/python/python-osprofiler_0.3.0.bb +2 -0
index 7e1fc09..1883dbb 100644
@@ -20,10 +20,12 @@ inherit setuptools
 
 DEPENDS += " \
         python-pip \
+        python-pbr \
         "
 
 # RDEPENDS_default: 
 RDEPENDS_${PN} += " \
         python-six \
         python-webob \
+        python-pbr \
         "
meta-openstack/recipes-devtools/python/python-pycadf_0.6.0.bb +2 -0
index 6762b6c..1857063 100644
@@ -20,6 +20,7 @@ FILES_${PN} += "${datadir}/etc/${SRCNAME}/*"
 
 DEPENDS += " \
         python-pip \
+        python-pbr \
         "
 
 RDEPENDS_${PN} += " \
@@ -30,4 +31,5 @@ RDEPENDS_${PN} += " \
       python-pytz \
       python-six \
       python-webob \
+      python-pbr \
         "
meta-openstack/recipes-devtools/python/python-tooz_0.4.bb +2 -0
index 1237f47..9ea75c3 100644
@@ -20,6 +20,7 @@ inherit setuptools
 
 DEPENDS += " \
         python-pip \
+        python-pbr \
         "
 
 # RDEPENDS_default: 
@@ -28,4 +29,5 @@ RDEPENDS_${PN} += " \
         python-zake \
         python-sysv-ipc \
         python-memcache \
+        python-pbr \
         "
Signature · 1 line
1.9.1
#2 lore raw

Re: [meta-cloud-services][fido-kilo][PATCH] python packages: add build dependency on python-pbr

Quoted 7 lines · Josep Puigdemont

Some packages fail to build because their dependency on python-pbr during built time is not properly stated in the recipe. Sometimes the build succeeds anyway because the python-pbr package has already been built previously. To avoid the occasional build failure, this patch adds a dependency on python-pbr to all those packages that declare it as a dependency in their setup.py file.

I have been using the dependencies listed in setup.py as a general guideline for determining package dependencies, especially those related to 'pbr'. So I would say the approach is sane and doing this in bulk sure beats a piecemeal approach.

I would guess that a similar patch is also needed for master? Would you be able to provide something for master as well?

Thanks,
Mark

Quoted 321 lines
---
 meta-openstack/recipes-devtools/python/python-glanceclient_git.bb | 4 ++++
 .../recipes-devtools/python/python-heat-cfntools_1.2.8.bb         | 8 ++++++++
 meta-openstack/recipes-devtools/python/python-mox3_0.7.0.bb       | 4 ++++
 .../recipes-devtools/python/python-openstackclient_1.0.3.bb       | 8 ++++++++
 .../recipes-devtools/python/python-oslo.concurrency_1.5.0.bb      | 2 ++
 meta-openstack/recipes-devtools/python/python-oslo.context_git.bb | 2 ++
 meta-openstack/recipes-devtools/python/python-oslo.db_1.5.0.bb    | 2 ++
 meta-openstack/recipes-devtools/python/python-oslo.i18n_1.4.0.bb  | 2 ++
 meta-openstack/recipes-devtools/python/python-oslo.log_git.bb     | 1 +
 .../recipes-devtools/python/python-oslo.messaging_git.bb          | 2 ++
 .../recipes-devtools/python/python-oslo.middleware_0.4.0.bb       | 2 ++
 .../recipes-devtools/python/python-oslo.rootwrap_1.5.0.bb         | 2 ++
 .../recipes-devtools/python/python-oslo.serialization_git.bb      | 2 ++
 meta-openstack/recipes-devtools/python/python-oslo.utils_git.bb   | 2 ++
 meta-openstack/recipes-devtools/python/python-oslotest_1.4.0.bb   | 5 +++++
 meta-openstack/recipes-devtools/python/python-osprofiler_0.3.0.bb | 2 ++
 meta-openstack/recipes-devtools/python/python-pycadf_0.6.0.bb     | 2 ++
 meta-openstack/recipes-devtools/python/python-tooz_0.4.bb         | 2 ++
 18 files changed, 54 insertions(+)
meta-openstack/recipes-devtools/python/python-glanceclient_git.bb +4 -0
index a8ba1ed..5435b06 100644
@@ -25,6 +25,10 @@ inherit setuptools monitor
 
 FILES_${PN} += "${datadir}/${SRCNAME}"
 
+DEPENDS += " \
+   python-pbr \
+   "
+
 RDEPENDS_${PN} = "gmp \
    python-warlock \
    python-pyopenssl \
meta-openstack/recipes-devtools/python/python-heat-cfntools_1.2.8.bb +8 -0
index 3d6756a..383a76c 100644
@@ -15,3 +15,11 @@ SRC_URI[sha256sum] = "de7d93338d3afb71cc4c53d713740316ead0af3a9c869b1231617347e9
 S = "${WORKDIR}/${SRCNAME}-${PV}"
 
 inherit setuptools
+
+DEPENDS += "\
+    python-pbr \
+    "
+
+RDEPENDS_${PN} += "\
+    python-pbr \
+    "
meta-openstack/recipes-devtools/python/python-mox3_0.7.0.bb +4 -0
index 9e40686..bd1c9aa 100644
@@ -16,6 +16,10 @@ S = "${WORKDIR}/${SRCNAME}-${PV}"
 
 inherit setuptools
 
+DEPENDS += "\
+    python-pbr \
+"
+
 RDEPENDS_${PN} += " \
     python-pbr \
     python-fixtures \
meta-openstack/recipes-devtools/python/python-openstackclient_1.0.3.bb +8 -0
index ae8e82c..77cb5d2 100644
@@ -14,3 +14,11 @@ SRC_URI[sha256sum] = "d39a2e6cf98d409f8545b9d3a207eb8cbf3b2fc5ea17b0f8d9bed52326
 S = "${WORKDIR}/${SRCNAME}-${PV}"
 
 inherit setuptools
+
+DEPENDS += "\
+    python-pbr \
+    "
+
+RDEPENDS_${PN} += "\
+    python-pbr \
+    "
meta-openstack/recipes-devtools/python/python-oslo.concurrency_1.5.0.bb +2 -0
index 50136ae..bdd3559 100644
@@ -20,8 +20,10 @@ inherit setuptools
 
 DEPENDS += " \
         python-pip \
+        python-pbr \
         "
 
 # RDEPENDS_default:
 RDEPENDS_${PN} += " \
+        python-pbr \
         "
meta-openstack/recipes-devtools/python/python-oslo.context_git.bb +2 -0
index 05034f9..d48abe5 100644
@@ -18,9 +18,11 @@ inherit setuptools
 DEPENDS += " \
         python-pip \
         python-babel \
+        python-pbr \
         "
 
 # RDEPENDS_default:
 RDEPENDS_${PN} += " \
+        python-pbr \
         bash \
         "
meta-openstack/recipes-devtools/python/python-oslo.db_1.5.0.bb +2 -0
index 04b5dd3..1c3a7b4 100644
@@ -18,6 +18,7 @@ inherit setuptools
 
 DEPENDS += " \
         python-pip \
+        python-pbr \
         "
 
 RDEPENDS_${PN} += " \
@@ -29,4 +30,5 @@ RDEPENDS_${PN} += " \
        python-sqlalchemy \
        python-sqlalchemy-migrate \
        python-stevedore \
+       python-pbr \
         "
meta-openstack/recipes-devtools/python/python-oslo.i18n_1.4.0.bb +2 -0
index fa710d0..d2bc53b 100644
@@ -20,9 +20,11 @@ inherit setuptools
 
 DEPENDS += " \
         python-pip \
+        python-pbr \
         "
 
 # RDEPENDS_default:
 RDEPENDS_${PN} += " \
         python-babel \
+        python-pbr \
         "
meta-openstack/recipes-devtools/python/python-oslo.log_git.bb +1 -0
index 974578b..bfcbe31 100644
@@ -18,6 +18,7 @@ inherit setuptools
 DEPENDS += " \
         python-pip \
         python-babel \
+        python-pbr \
         "
 
 # RDEPENDS_default:
meta-openstack/recipes-devtools/python/python-oslo.messaging_git.bb +2 -0
index 8bb85cb..8841ec0 100644
@@ -19,9 +19,11 @@ inherit setuptools
 
 DEPENDS += " \
         python-pip \
+        python-pbr \
         "
 
 # RDEPENDS_default:
 RDEPENDS_${PN} += " \
         bash \
+        python-pbr \
         "
meta-openstack/recipes-devtools/python/python-oslo.middleware_0.4.0.bb +2 -0
index 7f18179..6affd47 100644
@@ -20,8 +20,10 @@ inherit setuptools
 
 DEPENDS += " \
         python-pip \
+        python-pbr \
         "
 
 # RDEPENDS_default:
 RDEPENDS_${PN} += " \
+        python-pbr \
         "
meta-openstack/recipes-devtools/python/python-oslo.rootwrap_1.5.0.bb +2 -0
index 3a2477b..e3a47fa 100644
@@ -20,8 +20,10 @@ inherit setuptools
 
 DEPENDS += " \
         python-pip \
+        python-pbr \
         "
 
 # RDEPENDS_default:
 RDEPENDS_${PN} += " \
+        python-pbr \
         "
meta-openstack/recipes-devtools/python/python-oslo.serialization_git.bb +2 -0
index 451c6b9..db2869c 100644
@@ -19,8 +19,10 @@ inherit setuptools
 
 DEPENDS += " \
         python-pip \
+        python-pbr \
         "
 
 # RDEPENDS_default:
 RDEPENDS_${PN} += " \
+        python-pbr \
         "
meta-openstack/recipes-devtools/python/python-oslo.utils_git.bb +2 -0
index 27a80b6..33c7e53 100644
@@ -19,8 +19,10 @@ inherit setuptools
 
 DEPENDS += " \
         python-pip \
+        python-pbr \
         "
 
 # RDEPENDS_default:
 RDEPENDS_${PN} += " \
+        python-pbr \
         "
meta-openstack/recipes-devtools/python/python-oslotest_1.4.0.bb +5 -0
index b3819e4..fae73cc 100644
@@ -19,6 +19,10 @@ S = "${WORKDIR}/${SRCNAME}-${PV}"
 
 inherit setuptools
 
+DEPENDS += " \
+    python-pbr \
+"
+
 RDEPENDS_${PN} = "python-fixtures \
                   python-subunit \
                   python-testrepository \
@@ -26,5 +30,6 @@ RDEPENDS_${PN} = "python-fixtures \
                   python-testtools \
                   python-mock \
                   python-mox \
+                  python-pbr \
                   bash \
 "
meta-openstack/recipes-devtools/python/python-osprofiler_0.3.0.bb +2 -0
index 7e1fc09..1883dbb 100644
@@ -20,10 +20,12 @@ inherit setuptools
 
 DEPENDS += " \
         python-pip \
+        python-pbr \
         "
 
 # RDEPENDS_default:
 RDEPENDS_${PN} += " \
         python-six \
         python-webob \
+        python-pbr \
         "
meta-openstack/recipes-devtools/python/python-pycadf_0.6.0.bb +2 -0
index 6762b6c..1857063 100644
@@ -20,6 +20,7 @@ FILES_${PN} += "${datadir}/etc/${SRCNAME}/*"
 
 DEPENDS += " \
         python-pip \
+        python-pbr \
         "
 
 RDEPENDS_${PN} += " \
@@ -30,4 +31,5 @@ RDEPENDS_${PN} += " \
       python-pytz \
       python-six \
       python-webob \
+      python-pbr \
         "
meta-openstack/recipes-devtools/python/python-tooz_0.4.bb +2 -1
index 1237f47..9ea75c3 100644
@@ -20,6 +20,7 @@ inherit setuptools
 
 DEPENDS += " \
         python-pip \
+        python-pbr \
         "
 
 # RDEPENDS_default:
@@ -28,4 +29,5 @@ RDEPENDS_${PN} += " \
         python-zake \
         python-sysv-ipc \
         python-memcache \
+        python-pbr \
         "
--

1.9.1

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

#3 lore raw

Re: [meta-cloud-services][fido-kilo][PATCH] python packages: add build dependency on python-pbr

Quoted 10 lines · Mark Asselstine
Quoted 7 lines · Josep Puigdemont

Some packages fail to build because their dependency on python-pbr during built time is not properly stated in the recipe. Sometimes the build succeeds anyway because the python-pbr package has already been built previously. To avoid the occasional build failure, this patch adds a dependency on python-pbr to all those packages that declare it as a dependency in their setup.py file.

Quoted 7 lines

I have been using the dependencies listed in setup.py as a general guideline for determining package dependencies, especially those related to 'pbr'. So I would say the approach is sane and doing this in bulk sure beats a piecemeal approach.

I would guess that a similar patch is also needed for master? Would you be able to provide something for master as well?

Yes, certainly, already on it :-)

/Josep

Quoted 325 lines

Thanks,
Mark

Quoted 321 lines
---
 meta-openstack/recipes-devtools/python/python-glanceclient_git.bb | 4 ++++
 .../recipes-devtools/python/python-heat-cfntools_1.2.8.bb         | 8 ++++++++
 meta-openstack/recipes-devtools/python/python-mox3_0.7.0.bb       | 4 ++++
 .../recipes-devtools/python/python-openstackclient_1.0.3.bb       | 8 ++++++++
 .../recipes-devtools/python/python-oslo.concurrency_1.5.0.bb      | 2 ++
 meta-openstack/recipes-devtools/python/python-oslo.context_git.bb | 2 ++
 meta-openstack/recipes-devtools/python/python-oslo.db_1.5.0.bb    | 2 ++
 meta-openstack/recipes-devtools/python/python-oslo.i18n_1.4.0.bb  | 2 ++
 meta-openstack/recipes-devtools/python/python-oslo.log_git.bb     | 1 +
 .../recipes-devtools/python/python-oslo.messaging_git.bb          | 2 ++
 .../recipes-devtools/python/python-oslo.middleware_0.4.0.bb       | 2 ++
 .../recipes-devtools/python/python-oslo.rootwrap_1.5.0.bb         | 2 ++
 .../recipes-devtools/python/python-oslo.serialization_git.bb      | 2 ++
 meta-openstack/recipes-devtools/python/python-oslo.utils_git.bb   | 2 ++
 meta-openstack/recipes-devtools/python/python-oslotest_1.4.0.bb   | 5 +++++
 meta-openstack/recipes-devtools/python/python-osprofiler_0.3.0.bb | 2 ++
 meta-openstack/recipes-devtools/python/python-pycadf_0.6.0.bb     | 2 ++
 meta-openstack/recipes-devtools/python/python-tooz_0.4.bb         | 2 ++
 18 files changed, 54 insertions(+)
meta-openstack/recipes-devtools/python/python-glanceclient_git.bb +4 -0
index a8ba1ed..5435b06 100644
@@ -25,6 +25,10 @@ inherit setuptools monitor
 
 FILES_${PN} += "${datadir}/${SRCNAME}"
 
+DEPENDS += " \
+   python-pbr \
+   "
+
 RDEPENDS_${PN} = "gmp \
    python-warlock \
    python-pyopenssl \
meta-openstack/recipes-devtools/python/python-heat-cfntools_1.2.8.bb +8 -0
index 3d6756a..383a76c 100644
@@ -15,3 +15,11 @@ SRC_URI[sha256sum] = "de7d93338d3afb71cc4c53d713740316ead0af3a9c869b1231617347e9
 S = "${WORKDIR}/${SRCNAME}-${PV}"
 
 inherit setuptools
+
+DEPENDS += "\
+    python-pbr \
+    "
+
+RDEPENDS_${PN} += "\
+    python-pbr \
+    "
meta-openstack/recipes-devtools/python/python-mox3_0.7.0.bb +4 -0
index 9e40686..bd1c9aa 100644
@@ -16,6 +16,10 @@ S = "${WORKDIR}/${SRCNAME}-${PV}"
 
 inherit setuptools
 
+DEPENDS += "\
+    python-pbr \
+"
+
 RDEPENDS_${PN} += " \
     python-pbr \
     python-fixtures \
meta-openstack/recipes-devtools/python/python-openstackclient_1.0.3.bb +8 -0
index ae8e82c..77cb5d2 100644
@@ -14,3 +14,11 @@ SRC_URI[sha256sum] = "d39a2e6cf98d409f8545b9d3a207eb8cbf3b2fc5ea17b0f8d9bed52326
 S = "${WORKDIR}/${SRCNAME}-${PV}"
 
 inherit setuptools
+
+DEPENDS += "\
+    python-pbr \
+    "
+
+RDEPENDS_${PN} += "\
+    python-pbr \
+    "
meta-openstack/recipes-devtools/python/python-oslo.concurrency_1.5.0.bb +2 -0
index 50136ae..bdd3559 100644
@@ -20,8 +20,10 @@ inherit setuptools
 
 DEPENDS += " \
         python-pip \
+        python-pbr \
         "
 
 # RDEPENDS_default:
 RDEPENDS_${PN} += " \
+        python-pbr \
         "
meta-openstack/recipes-devtools/python/python-oslo.context_git.bb +2 -0
index 05034f9..d48abe5 100644
@@ -18,9 +18,11 @@ inherit setuptools
 DEPENDS += " \
         python-pip \
         python-babel \
+        python-pbr \
         "
 
 # RDEPENDS_default:
 RDEPENDS_${PN} += " \
+        python-pbr \
         bash \
         "
meta-openstack/recipes-devtools/python/python-oslo.db_1.5.0.bb +2 -0
index 04b5dd3..1c3a7b4 100644
@@ -18,6 +18,7 @@ inherit setuptools
 
 DEPENDS += " \
         python-pip \
+        python-pbr \
         "
 
 RDEPENDS_${PN} += " \
@@ -29,4 +30,5 @@ RDEPENDS_${PN} += " \
        python-sqlalchemy \
        python-sqlalchemy-migrate \
        python-stevedore \
+       python-pbr \
         "
meta-openstack/recipes-devtools/python/python-oslo.i18n_1.4.0.bb +2 -0
index fa710d0..d2bc53b 100644
@@ -20,9 +20,11 @@ inherit setuptools
 
 DEPENDS += " \
         python-pip \
+        python-pbr \
         "
 
 # RDEPENDS_default:
 RDEPENDS_${PN} += " \
         python-babel \
+        python-pbr \
         "
meta-openstack/recipes-devtools/python/python-oslo.log_git.bb +1 -0
index 974578b..bfcbe31 100644
@@ -18,6 +18,7 @@ inherit setuptools
 DEPENDS += " \
         python-pip \
         python-babel \
+        python-pbr \
         "
 
 # RDEPENDS_default:
meta-openstack/recipes-devtools/python/python-oslo.messaging_git.bb +2 -0
index 8bb85cb..8841ec0 100644
@@ -19,9 +19,11 @@ inherit setuptools
 
 DEPENDS += " \
         python-pip \
+        python-pbr \
         "
 
 # RDEPENDS_default:
 RDEPENDS_${PN} += " \
         bash \
+        python-pbr \
         "
meta-openstack/recipes-devtools/python/python-oslo.middleware_0.4.0.bb +2 -0
index 7f18179..6affd47 100644
@@ -20,8 +20,10 @@ inherit setuptools
 
 DEPENDS += " \
         python-pip \
+        python-pbr \
         "
 
 # RDEPENDS_default:
 RDEPENDS_${PN} += " \
+        python-pbr \
         "
meta-openstack/recipes-devtools/python/python-oslo.rootwrap_1.5.0.bb +2 -0
index 3a2477b..e3a47fa 100644
@@ -20,8 +20,10 @@ inherit setuptools
 
 DEPENDS += " \
         python-pip \
+        python-pbr \
         "
 
 # RDEPENDS_default:
 RDEPENDS_${PN} += " \
+        python-pbr \
         "
meta-openstack/recipes-devtools/python/python-oslo.serialization_git.bb +2 -0
index 451c6b9..db2869c 100644
@@ -19,8 +19,10 @@ inherit setuptools
 
 DEPENDS += " \
         python-pip \
+        python-pbr \
         "
 
 # RDEPENDS_default:
 RDEPENDS_${PN} += " \
+        python-pbr \
         "
meta-openstack/recipes-devtools/python/python-oslo.utils_git.bb +2 -0
index 27a80b6..33c7e53 100644
@@ -19,8 +19,10 @@ inherit setuptools
 
 DEPENDS += " \
         python-pip \
+        python-pbr \
         "
 
 # RDEPENDS_default:
 RDEPENDS_${PN} += " \
+        python-pbr \
         "
meta-openstack/recipes-devtools/python/python-oslotest_1.4.0.bb +5 -0
index b3819e4..fae73cc 100644
@@ -19,6 +19,10 @@ S = "${WORKDIR}/${SRCNAME}-${PV}"
 
 inherit setuptools
 
+DEPENDS += " \
+    python-pbr \
+"
+
 RDEPENDS_${PN} = "python-fixtures \
                   python-subunit \
                   python-testrepository \
@@ -26,5 +30,6 @@ RDEPENDS_${PN} = "python-fixtures \
                   python-testtools \
                   python-mock \
                   python-mox \
+                  python-pbr \
                   bash \
 "
meta-openstack/recipes-devtools/python/python-osprofiler_0.3.0.bb +2 -0
index 7e1fc09..1883dbb 100644
@@ -20,10 +20,12 @@ inherit setuptools
 
 DEPENDS += " \
         python-pip \
+        python-pbr \
         "
 
 # RDEPENDS_default:
 RDEPENDS_${PN} += " \
         python-six \
         python-webob \
+        python-pbr \
         "
meta-openstack/recipes-devtools/python/python-pycadf_0.6.0.bb +2 -0
index 6762b6c..1857063 100644
@@ -20,6 +20,7 @@ FILES_${PN} += "${datadir}/etc/${SRCNAME}/*"
 
 DEPENDS += " \
         python-pip \
+        python-pbr \
         "
 
 RDEPENDS_${PN} += " \
@@ -30,4 +31,5 @@ RDEPENDS_${PN} += " \
       python-pytz \
       python-six \
       python-webob \
+      python-pbr \
         "
meta-openstack/recipes-devtools/python/python-tooz_0.4.bb +2 -1
index 1237f47..9ea75c3 100644
@@ -20,6 +20,7 @@ inherit setuptools
 
 DEPENDS += " \
         python-pip \
+        python-pbr \
         "
 
 # RDEPENDS_default:
@@ -28,4 +29,5 @@ RDEPENDS_${PN} += " \
         python-zake \
         python-sysv-ipc \
         python-memcache \
+        python-pbr \
         "
--

1.9.1

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

#4 lore raw
In reply to Josep Puigdemont
Quoted 10 lines · Josep Puigdemont

I've been hitting build issues every now and then due to python packages that depend on python-pbr but have not properly declared this dependency in their respective recipes. I have fixed some of them as soon as they popped up, but that wouldn't catch all packages missing this dependency.
In order to fix this, I looked att the packages that declare a dependency on "pbr" in their setup.py file, and made it a dependency also in their respective recipe.

I hope this is the proper way to solve this.

In the latest incarnations of the layers and oe-core, it is. A while about ~ a year to a year and a half ago, adding pbr as a dependency was causing build issues with colliding packages and some built in routines.

That no longer seems to be the case, so I've merged this, and the one to master.

Bruce

Quoted 32 lines

Josep Puigdemont (1):
python packages: add build dependency on python-pbr

 meta-openstack/recipes-devtools/python/python-glanceclient_git.bb | 4 ++++
 .../recipes-devtools/python/python-heat-cfntools_1.2.8.bb         | 8 ++++++++
 meta-openstack/recipes-devtools/python/python-mox3_0.7.0.bb       | 4 ++++
 .../recipes-devtools/python/python-openstackclient_1.0.3.bb       | 8 ++++++++
 .../recipes-devtools/python/python-oslo.concurrency_1.5.0.bb      | 2 ++
 meta-openstack/recipes-devtools/python/python-oslo.context_git.bb | 2 ++
 meta-openstack/recipes-devtools/python/python-oslo.db_1.5.0.bb    | 2 ++
 meta-openstack/recipes-devtools/python/python-oslo.i18n_1.4.0.bb  | 2 ++
 meta-openstack/recipes-devtools/python/python-oslo.log_git.bb     | 1 +
 .../recipes-devtools/python/python-oslo.messaging_git.bb          | 2 ++
 .../recipes-devtools/python/python-oslo.middleware_0.4.0.bb       | 2 ++
 .../recipes-devtools/python/python-oslo.rootwrap_1.5.0.bb         | 2 ++
 .../recipes-devtools/python/python-oslo.serialization_git.bb      | 2 ++
 meta-openstack/recipes-devtools/python/python-oslo.utils_git.bb   | 2 ++
 meta-openstack/recipes-devtools/python/python-oslotest_1.4.0.bb   | 5 +++++
 meta-openstack/recipes-devtools/python/python-osprofiler_0.3.0.bb | 2 ++
 meta-openstack/recipes-devtools/python/python-pycadf_0.6.0.bb     | 2 ++
 meta-openstack/recipes-devtools/python/python-tooz_0.4.bb         | 2 ++
 18 files changed, 54 insertions(+)

--
1.9.1

--
_______________________________________________
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"
#5 lore raw
Quoted 11 lines · Bruce Ashfield
Quoted 9 lines · Josep Puigdemont

I've been hitting build issues every now and then due to python packages that depend on python-pbr but have not properly declared this dependency in their respective recipes. I have fixed some of them as soon as they popped up, but that wouldn't catch all packages missing this dependency.
In order to fix this, I looked att the packages that declare a dependency on "pbr" in their setup.py file, and made it a dependency also in their respective recipe.

Quoted 5 lines
Quoted 1 line

I hope this is the proper way to solve this.

In the latest incarnations of the layers and oe-core, it is. A while about ~ a year to a year and a half ago, adding pbr as a dependency was causing build issues with colliding packages and some built in routines.

Aha, I understand, I wasn't aware of that, it's good to know.

Quoted 3 lines

That no longer seems to be the case, so I've merged this, and the one to master.

Thanks!

/Josep

Quoted 41 lines

Bruce

Quoted 32 lines

Josep Puigdemont (1):
python packages: add build dependency on python-pbr

 meta-openstack/recipes-devtools/python/python-glanceclient_git.bb | 4 ++++
 .../recipes-devtools/python/python-heat-cfntools_1.2.8.bb         | 8 ++++++++
 meta-openstack/recipes-devtools/python/python-mox3_0.7.0.bb       | 4 ++++
 .../recipes-devtools/python/python-openstackclient_1.0.3.bb       | 8 ++++++++
 .../recipes-devtools/python/python-oslo.concurrency_1.5.0.bb      | 2 ++
 meta-openstack/recipes-devtools/python/python-oslo.context_git.bb | 2 ++
 meta-openstack/recipes-devtools/python/python-oslo.db_1.5.0.bb    | 2 ++
 meta-openstack/recipes-devtools/python/python-oslo.i18n_1.4.0.bb  | 2 ++
 meta-openstack/recipes-devtools/python/python-oslo.log_git.bb     | 1 +
 .../recipes-devtools/python/python-oslo.messaging_git.bb          | 2 ++
 .../recipes-devtools/python/python-oslo.middleware_0.4.0.bb       | 2 ++
 .../recipes-devtools/python/python-oslo.rootwrap_1.5.0.bb         | 2 ++
 .../recipes-devtools/python/python-oslo.serialization_git.bb      | 2 ++
 meta-openstack/recipes-devtools/python/python-oslo.utils_git.bb   | 2 ++
 meta-openstack/recipes-devtools/python/python-oslotest_1.4.0.bb   | 5 +++++
 meta-openstack/recipes-devtools/python/python-osprofiler_0.3.0.bb | 2 ++
 meta-openstack/recipes-devtools/python/python-pycadf_0.6.0.bb     | 2 ++
 meta-openstack/recipes-devtools/python/python-tooz_0.4.bb         | 2 ++
 18 files changed, 54 insertions(+)

--
1.9.1

--
_______________________________________________
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"