Skip to contentSkip to conversation

docker-registry: Make version dependence compatible with opkg

PATCH In review Fabio Berton 2 participants 2 messages Jun 14, 2016 – Jun 17, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docker-registry: Make version dependence compatible with opkg

Some recipes in RDEPENDS are installing specific version of package, for example:
gunicorn (= 19.1.1)

If usigin ipk for PACKAGE_CLASSES, opkg prints error:

Collected errors:
* satisfy_dependencies_for: Cannot satisfy the following dependencies for docker:
* gunicorn (= 19.1.1) *
* opkg_install: Cannot install package docker.

This error is caused because opkg appends package revision to version. In this case:
gunicorn_19.1.1-r0.1

If we use comparator >= this error doesn't appear.

---
 .../docker-registry/docker-registry_git.bb         | 26 +++++++++++-----------
 1 file changed, 13 insertions(+), 13 deletions(-)
recipes-containers/docker-registry/docker-registry_git.bb +13 -13
index 3d8d74b..0320440 100644
@@ -24,27 +24,27 @@ PV = "0.9.1+git${SRCREV}"
 
 RDEPENDS_${PN} += "\
   docker \
-  gunicorn (= 19.1.1) \
+  gunicorn (>= 19.1.1) \
   python-pip \
   python-distribute \
-  python-m2crypto (= 0.22.3) \
-  python-pyyaml (= 3.11) \
-  python-flask (= 0.10.1) \
-  python-gevent (= 1.0.1) \
+  python-m2crypto (>= 0.22.3) \
+  python-pyyaml (>= 3.11) \
+  python-flask (>= 0.10.1) \
+  python-gevent (>= 1.0.1) \
   python-requests \
   python-sqlalchemy (>= 0.9.4) \
-  python-blinker (= 1.3) \
-  python-backports-lzma (= 0.0.3) \
-  python-flask-cors (= 1.10.3) \
-  python-bugsnag (= 2.0.2) \
-  python-docker-registry-core (= 2.0.3) \
-  python-newrelic (= 2.22.0.19) \
+  python-blinker (>= 1.3) \
+  python-backports-lzma (>= 0.0.3) \
+  python-flask-cors (>= 1.10.3) \
+  python-bugsnag (>= 2.0.2) \
+  python-docker-registry-core (>= 2.0.3) \
+  python-newrelic (>= 2.22.0.19) \
   python-itsdangerous (>= 0.21) \
   python-jinja2 (>= 2.4) \
   python-werkzeug (>= 0.7) \
   python-simplejson (>= 3.6.2) \
-  python-redis (= 2.10.3) \
-  python-boto (= 2.34.0) \
+  python-redis (>= 2.10.3) \
+  python-boto (>= 2.34.0) \
   python-webob \
   "
 # OFFICIAL REQ:
Signature · 1 line
2.1.4
#1 lore raw

On Tue, Jun 14, 2016 at 1:59 PM, Fabio Berton <[email protected]

Quoted 14 lines

wrote:

Some recipes in RDEPENDS are installing specific version of package, for example:
gunicorn (= 19.1.1)

If usigin ipk for PACKAGE_CLASSES, opkg prints error:

Collected errors:
* satisfy_dependencies_for: Cannot satisfy the following dependencies for docker:
* gunicorn (= 19.1.1) *
* opkg_install: Cannot install package docker.

Quoted 4 lines

This error is caused because opkg appends package revision to version. In this case:
gunicorn_19.1.1-r0.1

merged (to master and krogoth).

I'm about to remove and completely re-work the registry recipe in master .. but there's no harm in carrying this until that is in the tree.

Bruce

Quoted 64 lines

If we use comparator >= this error doesn't appear.

---
 .../docker-registry/docker-registry_git.bb         | 26
+++++++++++-----------
 1 file changed, 13 insertions(+), 13 deletions(-)
recipes-containers/docker-registry/docker-registry_git.bb +13 -14
index 3d8d74b..0320440 100644
@@ -24,27 +24,27 @@ PV = "0.9.1+git${SRCREV}"
 
 RDEPENDS_${PN} += "\
   docker \
-  gunicorn (= 19.1.1) \
+  gunicorn (>= 19.1.1) \
   python-pip \
   python-distribute \
-  python-m2crypto (= 0.22.3) \
-  python-pyyaml (= 3.11) \
-  python-flask (= 0.10.1) \
-  python-gevent (= 1.0.1) \
+  python-m2crypto (>= 0.22.3) \
+  python-pyyaml (>= 3.11) \
+  python-flask (>= 0.10.1) \
+  python-gevent (>= 1.0.1) \
   python-requests \
   python-sqlalchemy (>= 0.9.4) \
-  python-blinker (= 1.3) \
-  python-backports-lzma (= 0.0.3) \
-  python-flask-cors (= 1.10.3) \
-  python-bugsnag (= 2.0.2) \
-  python-docker-registry-core (= 2.0.3) \
-  python-newrelic (= 2.22.0.19) \
+  python-blinker (>= 1.3) \
+  python-backports-lzma (>= 0.0.3) \
+  python-flask-cors (>= 1.10.3) \
+  python-bugsnag (>= 2.0.2) \
+  python-docker-registry-core (>= 2.0.3) \
+  python-newrelic (>= 2.22.0.19) \
   python-itsdangerous (>= 0.21) \
   python-jinja2 (>= 2.4) \
   python-werkzeug (>= 0.7) \
   python-simplejson (>= 3.6.2) \
-  python-redis (= 2.10.3) \
-  python-boto (= 2.34.0) \
+  python-redis (>= 2.10.3) \
+  python-boto (>= 2.34.0) \
   python-webob \
   "
 # OFFICIAL REQ:
--

2.1.4

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