Skip to contentSkip to conversation

fixup danglers

PATCH In review Mark Asselstine 3 participants 22 messages Aug 5, 2015 – Aug 6, 2015

lore
Share & tools
lore
#0 lore raw

cover fixup danglers

The primary goal of this patch series was to address the numerous dangling bbappends that exist on the the 'master' branch (I suspect the other branches have danglers too but master is what I have been building lately and my goal is to get these on to master where they can then be propagated to any applicable branches).

The first set of patches therefor address the danglers. Through inspection some of the danglers can be deemed no longer needed and have been removed. Others appear to still be relevant and thus were re-attached (using wildcards when possible). I tried to capture details in the commit logs as I looked at each dangler, for some of the obvious ones I did do some grouping to avoid multiple repetitive commits. For most of the re-attached danglers no changes were needed but again details of any required changes were captured in the associated commit logs.

The series grew a bit beyond just addressing the danglers as the main images - openstack-image-compute and openstack-image-controller - were not build-able. So some of this series introduces changes that were required to get these images build-able again. Once I had build-able images I was able to poke around to ensure that my dangler removal/re-attachments didn't cause any immediate runtime issues. I was able to do some validation but due to issues with the openstack dashboard I wasn't able to perform the minimal openstack tests (spinning up an instance, interacting with the dashboard...).

Obviously I would like to be able to validate with the base usecase but the series has already grown beyond the initial goal. With the images previously being unbuild-able I can only assume the issues with the dashboard etc. were preexisting. I will continue to work on getting 'master' to a working state but please consider merging this series so that the changes can be available to anyone else who would like to work on 'master' but currently can't even build it.

Regards,
Mark

P.S. The "[m-c-s]" in the subject line is obviously for 'meta-cloud-services'. I had to use the abbreviation as git was truncating things otherwise. Looking at the mailing list it seems I am the first one to send more than a single patch and thus the first to run in to the truncation.

#1 lore raw

PATCH 1/11 meta-openstack: remove unneeded dangling bbappends

Several bbappends are now dangling as the base recipes have moved to different versions. These specific danglers have been reviewed and don't have any demonstrable purpose any longer and can therefor be removed.

For example the busybox default config now enables CONFIG_WHICH so there is no reason to continue to 'patch' this config setting.

For recipes which used brokensep in order to work around S != B build issues the fact that the bbappend was dangling and the recipe was building successfully is enough to demonstrate that the bbappend was no longer needed.

---
 meta-openstack/recipes-containers/lxc/lxc_1.0.7.bbappend          | 1 -
 meta-openstack/recipes-core/busybox/busybox/horizon.cfg           | 1 -
 meta-openstack/recipes-core/busybox/busybox_1.23.1.bbappend       | 5 -----
 meta-openstack/recipes-devtools/python/python-nose_1.2.1.bbappend | 2 --
 meta-openstack/recipes-graphics/xorg-lib/libxaw_1.0.10.bbappend   | 1 -
 meta-openstack/recipes-support/ntp/ntp_4.2.8.bbappend             | 1 -
 6 files changed, 11 deletions(-)
 delete mode 100644 meta-openstack/recipes-containers/lxc/lxc_1.0.7.bbappend
 delete mode 100644 meta-openstack/recipes-core/busybox/busybox/horizon.cfg
 delete mode 100644 meta-openstack/recipes-core/busybox/busybox_1.23.1.bbappend
 delete mode 100644 meta-openstack/recipes-devtools/python/python-nose_1.2.1.bbappend
 delete mode 100644 meta-openstack/recipes-graphics/xorg-lib/libxaw_1.0.10.bbappend
 delete mode 100644 meta-openstack/recipes-support/ntp/ntp_4.2.8.bbappend
meta-openstack/recipes-containers/lxc/lxc_1.0.7.bbappend deleted +0 -1
deleted file mode 100644
index 7447c56..0000000
@@ -1 +0,0 @@
-inherit autotools-brokensep
meta-openstack/recipes-core/busybox/busybox/horizon.cfg deleted +0 -1
deleted file mode 100644
index 52ec794..0000000
@@ -1 +0,0 @@
-CONFIG_WHICH=y
meta-openstack/recipes-core/busybox/busybox_1.23.1.bbappend deleted +0 -5
deleted file mode 100644
index 569bd30..0000000
@@ -1,5 +0,0 @@
-FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
-
-SRC_URI += " \
-            file://horizon.cfg \
-           "
meta-openstack/recipes-devtools/python/python-nose_1.2.1.bbappend deleted +0 -2
deleted file mode 100644
index 353fa3a..0000000
@@ -1,2 +0,0 @@
-# repair the install location to be site-packages/nose/*
-inherit setuptools
meta-openstack/recipes-graphics/xorg-lib/libxaw_1.0.10.bbappend deleted +0 -1
deleted file mode 100644
index 7447c56..0000000
@@ -1 +0,0 @@
-inherit autotools-brokensep
meta-openstack/recipes-support/ntp/ntp_4.2.8.bbappend deleted +0 -1
deleted file mode 100644
index 7447c56..0000000
@@ -1 +0,0 @@
-inherit autotools-brokensep
Signature · 1 line
2.1.4
#2 lore raw

PATCH 2/11 meta-openstack: add wildcard to libvirt bbappend

In reply to Mark Asselstine

This is currently a dangling bbappend as libvirt is now version 1.2.15. The content of the file appears to still be relevant so simply renaming this bbappend to apply to a range of releases. This will throw a warning as no 'sanlock' PKGCONFIG currently exists in the base recipe, a commit will be sent for meta-virtualizaiton to add this.

---
 .../recipes-extended/libvirt/libvirt_1.%.bbappend           | 13 +++++++++++++
 .../recipes-extended/libvirt/libvirt_1.2.12.bbappend        | 13 -------------
 2 files changed, 13 insertions(+), 13 deletions(-)
 create mode 100644 meta-openstack/recipes-extended/libvirt/libvirt_1.%.bbappend
 delete mode 100644 meta-openstack/recipes-extended/libvirt/libvirt_1.2.12.bbappend
meta-openstack/recipes-extended/libvirt/libvirt_1.%.bbappend new file +13 -0
new file mode 100644
index 0000000..195633b
@@ -0,0 +1,13 @@
+PACKAGECONFIG ?= "qemu lxc test remote macvtap libvirtd udev yajl \
+	 	 python sanlock ebtables \
+		 ${@base_contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)} \
+		"
+
+inherit useradd
+USERADD_PACKAGES = "${PN}"
+GROUPADD_PARAM_${PN} = "--system libvirt"
+
+do_install_append() {
+	sed -e "s:^#unix_sock_group =:unix_sock_group =:g" -i ${D}/etc/libvirt/libvirtd.conf
+	sed -e "s:^#unix_sock_rw_perms =:unix_sock_rw_perms =:g" -i ${D}/etc/libvirt/libvirtd.conf
+}
meta-openstack/recipes-extended/libvirt/libvirt_1.2.12.bbappend deleted +0 -13
deleted file mode 100644
index 195633b..0000000
@@ -1,13 +0,0 @@
-PACKAGECONFIG ?= "qemu lxc test remote macvtap libvirtd udev yajl \
-	 	 python sanlock ebtables \
-		 ${@base_contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)} \
-		"
-
-inherit useradd
-USERADD_PACKAGES = "${PN}"
-GROUPADD_PARAM_${PN} = "--system libvirt"
-
-do_install_append() {
-	sed -e "s:^#unix_sock_group =:unix_sock_group =:g" -i ${D}/etc/libvirt/libvirtd.conf
-	sed -e "s:^#unix_sock_rw_perms =:unix_sock_rw_perms =:g" -i ${D}/etc/libvirt/libvirtd.conf
-}
Signature · 1 line
2.1.4
#3 lore raw

Re: [m-c-s][PATCH 02/11] meta-openstack: add wildcard to libvirt bbappend

Quoted 5 lines · On August 5, 2015 16:29:43 Mark Asselstine wrote:

This is currently a dangling bbappend as libvirt is now version 1.2.15. The content of the file appears to still be relevant so simply renaming this bbappend to apply to a range of releases. This will throw a warning as no 'sanlock' PKGCONFIG currently exists in the base recipe, a commit will be sent for meta-virtualizaiton to add this.

I might still send a commit for meta-virt to add the sanlock PKGCONFIG but there is yet to exist a recipe for sanlock so I might just do a V2 of this patch and remove 'sanlock' from the PACKAGECONFIG. Obviously this dangler has been dangling for a long time.

Mark

Quoted 52 lines
---
 .../recipes-extended/libvirt/libvirt_1.%.bbappend           | 13
+++++++++++++ .../recipes-extended/libvirt/libvirt_1.2.12.bbappend        |
13 ------------- 2 files changed, 13 insertions(+), 13 deletions(-)
 create mode 100644

meta-openstack/recipes-extended/libvirt/libvirt_1.%.bbappend delete mode 100644 meta-openstack/recipes-extended/libvirt/libvirt_1.2.12.bbappend

(quoted diff) +0 -0

b/meta-openstack/recipes-extended/libvirt/libvirt_1.%.bbappend new file mode 100644
index 0000000..195633b

meta-openstack/recipes-extended/libvirt/libvirt_1.%.bbappend new file +11 -0
@@ -0,0 +1,13 @@
+PACKAGECONFIG ?= "qemu lxc test remote macvtap libvirtd udev yajl \
+	 	 python sanlock ebtables \
+		 ${@base_contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)} \
+		"
+
+inherit useradd
+USERADD_PACKAGES = "${PN}"
+GROUPADD_PARAM_${PN} = "--system libvirt"
+
+do_install_append() {
+	sed -e "s:^#unix_sock_group =:unix_sock_group =:g" -i

${D}/etc/libvirt/libvirtd.conf + sed -e "s:^#unix_sock_rw_perms
=:unix_sock_rw_perms =:g" -i ${D}/etc/libvirt/libvirtd.conf +}

(quoted diff) +0 -0

b/meta-openstack/recipes-extended/libvirt/libvirt_1.2.12.bbappend deleted file mode 100644
index 195633b..0000000

meta-openstack/recipes-extended/libvirt/libvirt_1.2.12.bbappend deleted +0 -11
@@ -1,13 +0,0 @@
-PACKAGECONFIG ?= "qemu lxc test remote macvtap libvirtd udev yajl \
-	 	 python sanlock ebtables \
-		 ${@base_contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)} \
-		"
-
-inherit useradd
-USERADD_PACKAGES = "${PN}"
-GROUPADD_PARAM_${PN} = "--system libvirt"
-
-do_install_append() {
-	sed -e "s:^#unix_sock_group =:unix_sock_group =:g" -i

${D}/etc/libvirt/libvirtd.conf - sed -e "s:^#unix_sock_rw_perms
=:unix_sock_rw_perms =:g" -i ${D}/etc/libvirt/libvirtd.conf -} --
2.1.4

#4 lore raw

Re: [m-c-s][PATCH 02/11] meta-openstack: add wildcard to libvirt bbappend

Quoted 7 lines · Mark Asselstine
Quoted 5 lines · On August 5, 2015 16:29:43 Mark Asselstine wrote:

This is currently a dangling bbappend as libvirt is now version 1.2.15. The content of the file appears to still be relevant so simply renaming this bbappend to apply to a range of releases. This will throw a warning as no 'sanlock' PKGCONFIG currently exists in the base recipe, a commit will be sent for meta-virtualizaiton to add this.

Quoted 5 lines

I might still send a commit for meta-virt to add the sanlock PKGCONFIG but there is yet to exist a recipe for sanlock so I might just do a V2 of this patch and remove 'sanlock' from the PACKAGECONFIG. Obviously this dangler has been dangling for a long time.

I just pushed the series. So rebase and send a fixup patch!

Bruce

Quoted 60 lines

Mark

Quoted 48 lines
---
 .../recipes-extended/libvirt/libvirt_1.%.bbappend           | 13
+++++++++++++ .../recipes-extended/libvirt/libvirt_1.2.12.bbappend        |
13 ------------- 2 files changed, 13 insertions(+), 13 deletions(-)
 create mode 100644

meta-openstack/recipes-extended/libvirt/libvirt_1.%.bbappend delete mode 100644 meta-openstack/recipes-extended/libvirt/libvirt_1.2.12.bbappend

(quoted diff) +0 -0

b/meta-openstack/recipes-extended/libvirt/libvirt_1.%.bbappend new file mode 100644
index 0000000..195633b

meta-openstack/recipes-extended/libvirt/libvirt_1.%.bbappend new file +11 -0
@@ -0,0 +1,13 @@
+PACKAGECONFIG ?= "qemu lxc test remote macvtap libvirtd udev yajl \
+              python sanlock ebtables \
+              ${@base_contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)} \
+             "
+
+inherit useradd
+USERADD_PACKAGES = "${PN}"
+GROUPADD_PARAM_${PN} = "--system libvirt"
+
+do_install_append() {
+     sed -e "s:^#unix_sock_group =:unix_sock_group =:g" -i

${D}/etc/libvirt/libvirtd.conf + sed -e "s:^#unix_sock_rw_perms
=:unix_sock_rw_perms =:g" -i ${D}/etc/libvirt/libvirtd.conf +}

(quoted diff) +0 -0

b/meta-openstack/recipes-extended/libvirt/libvirt_1.2.12.bbappend deleted file mode 100644
index 195633b..0000000

meta-openstack/recipes-extended/libvirt/libvirt_1.2.12.bbappend deleted +0 -11
@@ -1,13 +0,0 @@
-PACKAGECONFIG ?= "qemu lxc test remote macvtap libvirtd udev yajl \
-              python sanlock ebtables \
-              ${@base_contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)} \
-             "
-
-inherit useradd
-USERADD_PACKAGES = "${PN}"
-GROUPADD_PARAM_${PN} = "--system libvirt"
-
-do_install_append() {
-     sed -e "s:^#unix_sock_group =:unix_sock_group =:g" -i
Quoted 4 lines

${D}/etc/libvirt/libvirtd.conf - sed -e "s:^#unix_sock_rw_perms
=:unix_sock_rw_perms =:g" -i ${D}/etc/libvirt/libvirtd.conf -} --
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"
#5 lore raw

PATCH 3/11 meta-openstack: add wildcard to qemu bbappend

In reply to Mark Asselstine

This is currently a dangling bbappend as qemu is now version 2.4.0. The content of the bbappend appears to still be relevant, with some minor cleanup, so simply renaming this bbappend to apply to a range of releases. 'virtfs' enables 'attr' and 'attr' is not a standalone pkgconfig so drop this. Pkgconfig 'cap-ng' has been renamed to 'libcap-ng', so follow suit.

---
 meta-openstack/recipes-devtools/qemu/qemu_2.%.bbappend   | 5 +++++
 meta-openstack/recipes-devtools/qemu/qemu_2.2.0.bbappend | 5 -----
 2 files changed, 5 insertions(+), 5 deletions(-)
 create mode 100644 meta-openstack/recipes-devtools/qemu/qemu_2.%.bbappend
 delete mode 100644 meta-openstack/recipes-devtools/qemu/qemu_2.2.0.bbappend
meta-openstack/recipes-devtools/qemu/qemu_2.%.bbappend new file +5 -0
new file mode 100644
index 0000000..ca8274e
@@ -0,0 +1,5 @@
+PACKAGECONFIG[spice] = "--enable-spice,--disable-spice,spice,"
+
+PACKAGECONFIG ?= "fdt spice virtfs libcap-ng"
+PACKAGECONFIG_class-native = "fdt"
+PACKAGECONFIG_class-nativesdk = "fdt"
meta-openstack/recipes-devtools/qemu/qemu_2.2.0.bbappend deleted +0 -5
deleted file mode 100644
index 1c8c682..0000000
@@ -1,5 +0,0 @@
-PACKAGECONFIG[spice] = "--enable-spice,--disable-spice,spice,"
-
-PACKAGECONFIG ?= "fdt spice virtfs attr cap-ng"
-PACKAGECONFIG_class-native = "fdt"
-PACKAGECONFIG_class-nativesdk = "fdt"
Signature · 1 line
2.1.4
#6 lore raw

PATCH 4/11 meta-openstack: add wildcard to lighttpd bbappend

In reply to Mark Asselstine

This is currently a dangling bbappend as lighttpd is now version 1.4.36. The changes found in this bbappend only apply to the sysvinit scripts and should most likely be replicated in systemd. For the sake of keeping this series focused on dealing with dangling bbappends I am simply renaming the bbappend for now, without modifying its content.

---
 meta-openstack/recipes-extended/lighttpd/lighttpd_1.4.%.bbappend  | 3 +++
 meta-openstack/recipes-extended/lighttpd/lighttpd_1.4.35.bbappend | 3 ---
 2 files changed, 3 insertions(+), 3 deletions(-)
 create mode 100644 meta-openstack/recipes-extended/lighttpd/lighttpd_1.4.%.bbappend
 delete mode 100644 meta-openstack/recipes-extended/lighttpd/lighttpd_1.4.35.bbappend
meta-openstack/recipes-extended/lighttpd/lighttpd_1.4.%.bbappend new file +3 -0
new file mode 100644
index 0000000..33b1f61
@@ -0,0 +1,3 @@
+do_install_append() {
+	sed -i '2i port=`grep "^server.port" /etc/lighttpd.conf`; if [ -z $port ]; then echo "server port not configured, not running lighttpd..."; exit 0; fi' ${D}/etc/init.d/lighttpd
+}
meta-openstack/recipes-extended/lighttpd/lighttpd_1.4.35.bbappend deleted +0 -3
deleted file mode 100644
index 33b1f61..0000000
@@ -1,3 +0,0 @@
-do_install_append() {
-	sed -i '2i port=`grep "^server.port" /etc/lighttpd.conf`; if [ -z $port ]; then echo "server port not configured, not running lighttpd..."; exit 0; fi' ${D}/etc/init.d/lighttpd
-}
Signature · 1 line
2.1.4
#7 lore raw

PATCH 5/11 meta-openstack: fix dangling bbappends by adding wildcard

In reply to Mark Asselstine

Several bbappends were raising 'dangling' warnings since the base recipe version has changed without a similar change being made in this repo. The following are renames that include a wildcard to broaden the versions to which these bbappends will be applied to. This will address the 'dangling' warnings while ensuring the changes made in this repo are properly applied to the associated recipes.

For the most part the files remain unchanged, in the case of postgresql the 'brokensep' has been removed as there exists no more S != B issues in the base recipe.

---
 .../openssh/openssh_6.%.bbappend                   | 11 ++++
 .../openssh/openssh_6.7p1.bbappend                 | 11 ----
 .../recipes-extended/libpam/libpam_1.%.bbappend    | 21 +++++++
 .../recipes-extended/libpam/libpam_1.1.6.bbappend  | 21 -------
 .../recipes-httpd/apache2/apache2_2.4.%.bbappend   | 13 +++++
 .../recipes-httpd/apache2/apache2_2.4.10.bbappend  | 13 -----
 .../postgresql/postgresql_9.%.bbappend             | 65 ++++++++++++++++++++++
 .../postgresql/postgresql_9.2.4.bbappend           | 65 ----------------------
 8 files changed, 110 insertions(+), 110 deletions(-)
 create mode 100644 meta-openstack/recipes-connectivity/openssh/openssh_6.%.bbappend
 delete mode 100644 meta-openstack/recipes-connectivity/openssh/openssh_6.7p1.bbappend
 create mode 100644 meta-openstack/recipes-extended/libpam/libpam_1.%.bbappend
 delete mode 100644 meta-openstack/recipes-extended/libpam/libpam_1.1.6.bbappend
 create mode 100644 meta-openstack/recipes-httpd/apache2/apache2_2.4.%.bbappend
 delete mode 100644 meta-openstack/recipes-httpd/apache2/apache2_2.4.10.bbappend
 create mode 100644 meta-openstack/recipes-support/postgresql/postgresql_9.%.bbappend
 delete mode 100644 meta-openstack/recipes-support/postgresql/postgresql_9.2.4.bbappend
meta-openstack/recipes-connectivity/openssh/openssh_6.%.bbappend new file +11 -0
new file mode 100644
index 0000000..bfc543a
@@ -0,0 +1,11 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
+
+SRC_URI += "file://mcs-sshd"
+SRC_URI += "file://mcs-sshd_config"
+
+do_install_append() {
+    if ${@base_contains('DISTRO_FEATURES', 'OpenLDAP', 'true', 'false', d)}; then
+        install -D -m 644 ${WORKDIR}/mcs-sshd ${D}/etc/pam.d/sshd
+        install -D -m 644 ${WORKDIR}/mcs-sshd_config ${D}/etc/ssh/sshd_config
+    fi
+}
meta-openstack/recipes-connectivity/openssh/openssh_6.7p1.bbappend deleted +0 -11
deleted file mode 100644
index bfc543a..0000000
@@ -1,11 +0,0 @@
-FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
-
-SRC_URI += "file://mcs-sshd"
-SRC_URI += "file://mcs-sshd_config"
-
-do_install_append() {
-    if ${@base_contains('DISTRO_FEATURES', 'OpenLDAP', 'true', 'false', d)}; then
-        install -D -m 644 ${WORKDIR}/mcs-sshd ${D}/etc/pam.d/sshd
-        install -D -m 644 ${WORKDIR}/mcs-sshd_config ${D}/etc/ssh/sshd_config
-    fi
-}
meta-openstack/recipes-extended/libpam/libpam_1.%.bbappend new file +21 -0
new file mode 100644
index 0000000..0e93ace
@@ -0,0 +1,21 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
+
+SRC_URI += "file://common-account"
+SRC_URI += "file://common-auth"
+SRC_URI += "file://common-password"
+SRC_URI += "file://common-session"
+SRC_URI += "file://common-session-noninteractive"
+
+PACKAGECONFIG ?= "${@base_contains('DISTRO_FEATURES', 'OpenLDAP', 'OpenLDAP', '', d)}"
+PACKAGECONFIG[OpenLDAP] = ",,,pam-plugin-mkhomedir nss-pam-ldapd"
+
+do_install_append() {
+    if ${@base_contains('DISTRO_FEATURES', 'OpenLDAP', 'true', 'false', d)}; then
+        install -m 755 -d ${D}/etc/pam.d/
+        install -m 644 ${WORKDIR}/common-account ${D}/etc/pam.d/
+        install -m 644 ${WORKDIR}/common-auth ${D}/etc/pam.d/
+        install -m 644 ${WORKDIR}/common-password ${D}/etc/pam.d/
+        install -m 644 ${WORKDIR}/common-session ${D}/etc/pam.d/
+        install -m 644 ${WORKDIR}/common-session-noninteractive ${D}/etc/pam.d/
+    fi
+}
meta-openstack/recipes-extended/libpam/libpam_1.1.6.bbappend deleted +0 -21
deleted file mode 100644
index 0e93ace..0000000
@@ -1,21 +0,0 @@
-FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
-
-SRC_URI += "file://common-account"
-SRC_URI += "file://common-auth"
-SRC_URI += "file://common-password"
-SRC_URI += "file://common-session"
-SRC_URI += "file://common-session-noninteractive"
-
-PACKAGECONFIG ?= "${@base_contains('DISTRO_FEATURES', 'OpenLDAP', 'OpenLDAP', '', d)}"
-PACKAGECONFIG[OpenLDAP] = ",,,pam-plugin-mkhomedir nss-pam-ldapd"
-
-do_install_append() {
-    if ${@base_contains('DISTRO_FEATURES', 'OpenLDAP', 'true', 'false', d)}; then
-        install -m 755 -d ${D}/etc/pam.d/
-        install -m 644 ${WORKDIR}/common-account ${D}/etc/pam.d/
-        install -m 644 ${WORKDIR}/common-auth ${D}/etc/pam.d/
-        install -m 644 ${WORKDIR}/common-password ${D}/etc/pam.d/
-        install -m 644 ${WORKDIR}/common-session ${D}/etc/pam.d/
-        install -m 644 ${WORKDIR}/common-session-noninteractive ${D}/etc/pam.d/
-    fi
-}
meta-openstack/recipes-httpd/apache2/apache2_2.4.%.bbappend new file +13 -0
new file mode 100644
index 0000000..7af8143
@@ -0,0 +1,13 @@
+do_install_append() {
+    sed -i -e 's/#ServerName.*$/ServerName 127.0.0.1:80/' ${D}${sysconfdir}/apache2/httpd.conf
+
+    # default layout for htdocsdir in 2.4.7 is different, create the following for
+    # backward compatibility reasons
+
+    mkdir -p ${D}${datadir}/${BPN}/default-site
+    ln -sf ../htdocs ${D}${datadir}/${BPN}/default-site/htdocs
+    
+    sed -i '30i if [ ! -e /var/log/apache2 ]; then ln -sf /var/apache2/logs/ /var/log/apache2; fi' ${D}/etc/init.d/apache2
+}
+
+FILES_${PN} += "${datadir}/${BPN}/default-site"
meta-openstack/recipes-httpd/apache2/apache2_2.4.10.bbappend deleted +0 -13
deleted file mode 100644
index 7af8143..0000000
@@ -1,13 +0,0 @@
-do_install_append() {
-    sed -i -e 's/#ServerName.*$/ServerName 127.0.0.1:80/' ${D}${sysconfdir}/apache2/httpd.conf
-
-    # default layout for htdocsdir in 2.4.7 is different, create the following for
-    # backward compatibility reasons
-
-    mkdir -p ${D}${datadir}/${BPN}/default-site
-    ln -sf ../htdocs ${D}${datadir}/${BPN}/default-site/htdocs
-    
-    sed -i '30i if [ ! -e /var/log/apache2 ]; then ln -sf /var/apache2/logs/ /var/log/apache2; fi' ${D}/etc/init.d/apache2
-}
-
-FILES_${PN} += "${datadir}/${BPN}/default-site"
meta-openstack/recipes-support/postgresql/postgresql_9.%.bbappend new file +65 -0

65 lines not on this page · raw message

meta-openstack/recipes-support/postgresql/postgresql_9.2.4.bbappend deleted +0 -65

65 lines not on this page · raw message

Signature · 1 line
2.1.4
#8 lore raw

PATCH 6/11 python-testtools: fix build error

In reply to Mark Asselstine

Ran in to a build error:
distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('pbr')
ERROR: python setup.py build execution failed.

Fix by DEPENDing on python-pbr.

---
 meta-openstack/recipes-devtools/python/python-testtools_1.8.0.bb | 4 ++++
 1 file changed, 4 insertions(+)
meta-openstack/recipes-devtools/python/python-testtools_1.8.0.bb +4 -0
index 80a7489..a58c91a 100644
@@ -17,4 +17,8 @@ S = "${WORKDIR}/${SRCNAME}-${PV}"
 
 inherit setuptools
 
+DEPENDS += " \
+    python-pbr \
+"
+
 RDEPENDS_${PN} += "python-extras"
Signature · 1 line
2.1.4
#9 lore raw

Re: [m-c-s][PATCH 06/11] python-testtools: fix build error

Quoted 6 lines · Mark Asselstine

Ran in to a build error:
distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('pbr')
ERROR: python setup.py build execution failed.

Fix by DEPENDing on python-pbr.

This used to be on purpose. If you added python-pbr to DEPENDS the images would fail to assemble due to QA errors and overlapping files.

If you say that you've successfully assembled and booted the images and pbr isn't acting up, I'll merge this .. but otherwise, I'm eyeing the change for more
testing.

Bruce

Quoted 26 lines
---
 meta-openstack/recipes-devtools/python/python-testtools_1.8.0.bb | 4 ++++
 1 file changed, 4 insertions(+)
meta-openstack/recipes-devtools/python/python-testtools_1.8.0.bb +4 -1
index 80a7489..a58c91a 100644
@@ -17,4 +17,8 @@ S = "${WORKDIR}/${SRCNAME}-${PV}"
 
 inherit setuptools
 
+DEPENDS += " \
+    python-pbr \
+"
+
 RDEPENDS_${PN} += "python-extras"
--

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"
#10 lore raw

Re: [m-c-s][PATCH 06/11] python-testtools: fix build error

Hi,

Quoted 9 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Bruce Ashfield
Sent: Thursday, August 06, 2015 9:12 AM
To: Mark Asselstine
Cc: [email protected]
Subject: Re: [meta-virtualization] [m-c-s][PATCH 06/11] python-testtools: fix build error

Quoted 9 lines
Quoted 7 lines · Mark Asselstine

Ran in to a build error:
distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('pbr')
ERROR: python setup.py build execution failed.

Fix by DEPENDing on python-pbr.

If you build python-pbr first, and then build python-testtools, The error will not happen.

Cherrs,
Li

#11 lore raw

Re: [m-c-s][PATCH 06/11] python-testtools: fix build error

Quoted 19 lines · Xin

Hi,

Quoted 17 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Bruce Ashfield Sent: Thursday, August 06, 2015 9:12 AM
To: Mark Asselstine
Cc: [email protected]
Subject: Re: [meta-virtualization] [m-c-s][PATCH 06/11] python-testtools:
fix build error

Quoted 5 lines · Mark Asselstine

Ran in to a build error:
distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('pbr')
ERROR: python setup.py build execution failed.

Quoted 4 lines
Quoted 1 line
Quoted 1 line

Fix by DEPENDing on python-pbr.

If you build python-pbr first, and then build python-testtools, The error will not happen.

This is by definition a DEPENDS.

Mark

Quoted 3 lines

Cherrs,
Li

#12 lore raw

Re: [m-c-s][PATCH 06/11] python-testtools: fix build error

In reply to Bruce Ashfield
Quoted 9 lines · On August 5, 2015 21:11:35 Bruce Ashfield wrote:

On Wed, Aug 5, 2015 at 4:29 PM, Mark Asselstine

Quoted 5 lines · <[email protected]> wrote:

Ran in to a build error:
distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('pbr') ERROR: python setup.py build execution failed.

Fix by DEPENDing on python-pbr.

Quoted 7 lines

This used to be on purpose. If you added python-pbr to DEPENDS the images would fail to assemble due to QA errors and overlapping files.

If you say that you've successfully assembled and booted the images and pbr isn't acting up, I'll merge this .. but otherwise, I'm eyeing the change for more
testing.

Some quick build testing this morning and I can confirm that both this package and the python-oslo.serialization packages *will not* build without pbr. For this package we can see that upstream has converted to building with pbr so the build failure in the absence of pbr is easily explained:

---
commit 915b2b604c0e9b97e813711c035dfd13682fb6df

Author: Robert Collins <[email protected]>
Date:   Tue May 5 10:45:22 2015 +1200

Switch to pbr as a build system
...
---

Similarly for python-oslo.serialization we can see commits in the upstream repo which point to the required pbr dependency:

---
commit a7bade117a8f8297955c0cb8adb6757d30f02e1b

Author: Doug Hellmann <[email protected]>
Date:   Fri Oct 24 09:29:18 2014 -0400

Add pbr to installation requirements

Add pbr to the list of installation requirements so that it is installed via pip before this library is installed, instead of with easy_install. This avoids issues like Bug #1384919, and ensures that projects that use this library as a dependency are properly installed.

Change-Id: I6c155370dbd01fe4748d5137bdf288e8d3e1a67e
---
I can't easily identify the change that made pbr mandatory but the build failure is 100% reproducible so there is definitely a change which prevents us from treating this as optional.

I can also confirm that with these changes there exists no QA errors that prevent the images from being constructed. I did builds from scratch and others out of sstate without issue. I would be more than happy if Li would like to confirm this by doing a build with this series applied.

Mark

Quoted 38 lines

Bruce

Quoted 23 lines

---

 meta-openstack/recipes-devtools/python/python-testtools_1.8.0.bb | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta-openstack/recipes-devtools/python/python-testtools_1.8.0.bb b/meta-openstack/recipes-devtools/python/python-testtools_1.8.0.bb index 80a7489..a58c91a 100644

meta-openstack/recipes-devtools/python/python-testtools_1.8.0.bb +4 -0
@@ -17,4 +17,8 @@ S = "${WORKDIR}/${SRCNAME}-${PV}"
 
 inherit setuptools
 
+DEPENDS += " \
+    python-pbr \
+"
+
 

RDEPENDS_${PN} += "python-extras"

Quoted 8 lines

--
2.1.4

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

--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"

#13 lore raw

Re: [m-c-s][PATCH 06/11] python-testtools: fix build error

Quoted 53 lines · Mark Asselstine
Quoted 9 lines · On August 5, 2015 21:11:35 Bruce Ashfield wrote:

On Wed, Aug 5, 2015 at 4:29 PM, Mark Asselstine

Quoted 5 lines · <[email protected]> wrote:

Ran in to a build error:
distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('pbr') ERROR: python setup.py build execution failed.

Fix by DEPENDing on python-pbr.

Quoted 7 lines

This used to be on purpose. If you added python-pbr to DEPENDS the images would fail to assemble due to QA errors and overlapping files.

If you say that you've successfully assembled and booted the images and pbr isn't acting up, I'll merge this .. but otherwise, I'm eyeing the change for more
testing.

Some quick build testing this morning and I can confirm that both this package and the python-oslo.serialization packages *will not* build without pbr. For this package we can see that upstream has converted to building with pbr so the build failure in the absence of pbr is easily explained:

---
commit 915b2b604c0e9b97e813711c035dfd13682fb6df

Author: Robert Collins <[email protected]>
Date:   Tue May 5 10:45:22 2015 +1200

Switch to pbr as a build system
...
---

Similarly for python-oslo.serialization we can see commits in the upstream repo which point to the required pbr dependency:

---
commit a7bade117a8f8297955c0cb8adb6757d30f02e1b

Author: Doug Hellmann <[email protected]>
Date:   Fri Oct 24 09:29:18 2014 -0400

Add pbr to installation requirements

Add pbr to the list of installation requirements so that it is installed via pip before this library is installed, instead of with easy_install. This avoids issues like Bug #1384919, and ensures that projects that use this library as a dependency are properly installed.

Change-Id: I6c155370dbd01fe4748d5137bdf288e8d3e1a67e
---
I can't easily identify the change that made pbr mandatory but the build failure is 100% reproducible so there is definitely a change which prevents us from treating this as optional.

Quoted 4 lines

I can also confirm that with these changes there exists no QA errors that prevent the images from being constructed. I did builds from scratch and others out of sstate without issue. I would be more than happy if Li would like to confirm this by doing a build with this series applied.

Good enough for me. I've staged the series here and will push it shortly. It can't make things worse .. so in it goes!

Bruce

Quoted 42 lines

Mark

Quoted 38 lines

Bruce

Quoted 23 lines

---

 meta-openstack/recipes-devtools/python/python-testtools_1.8.0.bb | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta-openstack/recipes-devtools/python/python-testtools_1.8.0.bb b/meta-openstack/recipes-devtools/python/python-testtools_1.8.0.bb index 80a7489..a58c91a 100644

meta-openstack/recipes-devtools/python/python-testtools_1.8.0.bb +4 -0
@@ -17,4 +17,8 @@ S = "${WORKDIR}/${SRCNAME}-${PV}"
 
 inherit setuptools
 
+DEPENDS += " \
+    python-pbr \
+"
+
 

RDEPENDS_${PN} += "python-extras"

Quoted 8 lines

--
2.1.4

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

--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"
#14 lore raw

Re: [m-c-s][PATCH 06/11] python-testtools: fix build error

Quoted 64 lines · On August 6, 2015 09:27:02 Bruce Ashfield wrote:

On Thu, Aug 6, 2015 at 9:01 AM, Mark Asselstine

Quoted 61 lines · <[email protected]> wrote:
Quoted 10 lines · On August 5, 2015 21:11:35 Bruce Ashfield wrote:

On Wed, Aug 5, 2015 at 4:29 PM, Mark Asselstine

Quoted 6 lines · <[email protected]> wrote:

Ran in to a build error:
distutils.errors.DistutilsError: Could not find suitable distribution for
Requirement.parse('pbr') ERROR: python setup.py build execution failed.

Fix by DEPENDing on python-pbr.

Quoted 8 lines

This used to be on purpose. If you added python-pbr to DEPENDS the images would fail to assemble due to QA errors and overlapping files.

If you say that you've successfully assembled and booted the images and pbr
isn't acting up, I'll merge this .. but otherwise, I'm eyeing the change for more
testing.

Some quick build testing this morning and I can confirm that both this package and the python-oslo.serialization packages *will not* build without pbr. For this package we can see that upstream has converted to building with pbr so the build failure in the absence of pbr is easily explained:

---
commit 915b2b604c0e9b97e813711c035dfd13682fb6df

Author: Robert Collins <[email protected]>
Date:   Tue May 5 10:45:22 2015 +1200

Switch to pbr as a build system
...

---

Similarly for python-oslo.serialization we can see commits in the upstream repo which point to the required pbr dependency:

---
commit a7bade117a8f8297955c0cb8adb6757d30f02e1b

Author: Doug Hellmann <[email protected]>
Date:   Fri Oct 24 09:29:18 2014 -0400

Add pbr to installation requirements

Add pbr to the list of installation requirements so that it is installed
via pip before this library is installed, instead of with easy_install.
This avoids issues like Bug #1384919, and ensures that projects that use
this library as a dependency are properly installed.

Change-Id: I6c155370dbd01fe4748d5137bdf288e8d3e1a67e

---
I can't easily identify the change that made pbr mandatory but the build failure is 100% reproducible so there is definitely a change which prevents us from treating this as optional.

Quoted 7 lines
Quoted 4 lines

I can also confirm that with these changes there exists no QA errors that prevent the images from being constructed. I did builds from scratch and others out of sstate without issue. I would be more than happy if Li would like to confirm this by doing a build with this series applied.

Good enough for me. I've staged the series here and will push it shortly. It can't make things worse .. so in it goes!

Agreed. If anything this stages things for me to continue to bang through things to get master working again. Note that if you do push this you can drop 'sanlock' from PACKAGECONFIG in patch 2/11.

Playing with the cmdline interface, nova-manage etc. I am finding more missing dependencies (sqlparse ...) so will create more recipes and send another series once I get more things working.

Mark

Quoted 48 lines

Bruce

Quoted 41 lines

Mark

Quoted 39 lines

Bruce

Quoted 25 lines

---

 meta-openstack/recipes-devtools/python/python-testtools_1.8.0.bb | 4
 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta-openstack/recipes-devtools/python/python-testtools_1.8.0.bb b/meta-openstack/recipes-devtools/python/python-testtools_1.8.0.bb index
80a7489..a58c91a 100644

meta-openstack/recipes-devtools/python/python-testtools_1.8.0.bb +4 -0
@@ -17,4 +17,8 @@ S = "${WORKDIR}/${SRCNAME}-${PV}"
 
 inherit setuptools
 
+DEPENDS += " \
+    python-pbr \
+"
+
 

RDEPENDS_${PN} += "python-extras"

Quoted 8 lines

--
2.1.4

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

--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"

--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"

#15 lore raw

PATCH 7/11 python-psycopg2: reinstate patch to avoid pg_config

In reply to Mark Asselstine

When building we get an error:
Error: pg_config executable not found.

Previously there was a patch that removed references to pg_config. This patch was dropped during the version uprev for an unknown reason. Reinstate this patch with minor updates to allow it to patch the new version of python-psycopg2 and get the build working again.

---
 .../python/python-psycopg2/remove-pg-config.patch  | 63 ++++++++++++++--------
 .../python/python-psycopg2_2.6.1.bb                |  5 ++
 2 files changed, 47 insertions(+), 21 deletions(-)
meta-openstack/recipes-devtools/python/python-psycopg2/remove-pg-config.patch +42 -21
index 6b72ef7..b2f94dd 100644
@@ -1,14 +1,37 @@
-Upstream-status: Inappropriate [embedded specific]
+From 392c4581da49f133938e70f6215bfebba28ecc56 Mon Sep 17 00:00:00 2001
+From: Mark Asselstine <[email protected]>
+Date: Tue, 4 Aug 2015 20:59:18 -0400
+Subject: [PATCH] setup: don't use pg_config
 
-The package uses the pg_config command to detect the libdir and includedir path.
-Commented the lines because the command is not available at buildtime and the
-package succesfully build without them.
+The package uses the pg_config command to detect the libdir and
+includedir path.  Commented the lines because the command is not
+available at buildtime and the package succesfully build without them.
 
-Index: psycopg2-2.5/setup.py
-===================================================================
---- psycopg2-2.5.orig/setup.py
-+++ psycopg2-2.5/setup.py
-@@ -377,9 +377,6 @@
+Signed-off-by: Mark Asselstine <[email protected]>
+Signed-off-by: Mark Asselstine <[email protected]>
+---
+ setup.cfg | 2 +-
+ setup.py  | 5 +----
+ 2 files changed, 2 insertions(+), 5 deletions(-)
+
+diff --git a/setup.cfg b/setup.cfg
+index 90a47dd..986871b 100644
+--- a/setup.cfg
++++ b/setup.cfg
+@@ -9,7 +9,7 @@ define=
+ # build psycopg2. If pg_config is not in the path or is installed under a
+ # different name uncomment the following option and set it to the pg_config
+ # full path.
+-#pg_config=
++pg_config="/bin/true"
+ 
+ # Set to 1 to use Python datetime objects for default date/time representation.
+ use_pydatetime=1
+diff --git a/setup.py b/setup.py
+index 975fe10..85502ca 100644
+--- a/setup.py
++++ b/setup.py
+@@ -389,16 +389,13 @@ class psycopg_build_ext(build_ext):
              self.libraries.append("pq")
  
          try:
@@ -18,16 +41,14 @@ Index: psycopg2-2.5/setup.py
              try:
                  # Here we take a conservative approach: we suppose that
                  # *at least* PostgreSQL 7.4 is available (this is the only
-Index: psycopg2-2.5/setup.cfg
-===================================================================
---- psycopg2-2.5.orig/setup.cfg
-+++ psycopg2-2.5/setup.cfg
-@@ -11,7 +11,7 @@
- # build psycopg2. If pg_config is not in the path or is installed under a
- # different name uncomment the following option and set it to the pg_config
- # full path.
--#pg_config=
-+pg_config="/bin/true"
+                 # 7.x series supported by psycopg 2)
+                 pgversion = pg_config_helper.query("version").split()[1]
+             except:
+-                pgversion = "7.4.0"
++                pgversion = "9.4.4"
  
- # Set to 1 to use Python datetime objects for default date/time representation.
- use_pydatetime=1
+             verre = re.compile(
+                 r"(\d+)\.(\d+)(?:(?:\.(\d+))|(devel|(alpha|beta|rc)\d+))")
+-- 
+2.1.4
+
meta-openstack/recipes-devtools/python/python-psycopg2_2.6.1.bb +5 -0
index 8882903..1d78afa 100644
@@ -9,6 +9,7 @@ PR = "r0"
 SRCNAME = "psycopg2"
 
 SRC_URI = "https://pypi.python.org/packages/source/p/${SRCNAME}/${SRCNAME}-${PV}.tar.gz \
+           file://remove-pg-config.patch \
           "
 
 SRC_URI[md5sum] = "842b44f8c95517ed5b792081a2370da1"
@@ -17,3 +18,7 @@ SRC_URI[sha256sum] = "6acf9abbbe757ef75dc2ecd9d91ba749547941abaffbe69ff2086a9e37
 S = "${WORKDIR}/${SRCNAME}-${PV}"
 
 inherit distutils
+
+DEPENDS += " \
+    postgresql \
+"
Signature · 1 line
2.1.4
#16 lore raw

PATCH 8/11 python-pbr: uprev to 1.4.0

In reply to Mark Asselstine

The uprev to to python-testtools references VersionInfo semantic_version which wasn't introduced until pbr version 1.3.0. So we are uprev'ing pbr to a more suitable and recent version.

---
 .../recipes-devtools/python/python-pbr_0.10.8.bb   | 27 ----------------------
 .../recipes-devtools/python/python-pbr_1.4.0.bb    | 27 ++++++++++++++++++++++
 2 files changed, 27 insertions(+), 27 deletions(-)
 delete mode 100644 meta-openstack/recipes-devtools/python/python-pbr_0.10.8.bb
 create mode 100644 meta-openstack/recipes-devtools/python/python-pbr_1.4.0.bb
meta-openstack/recipes-devtools/python/python-pbr_0.10.8.bb deleted +0 -27
deleted file mode 100644
index ec5c589..0000000
@@ -1,27 +0,0 @@
-DESCRIPTION = "Python Build Reasonableness: PBR is a library that injects some useful and sensible default behaviors into your setuptools run"
-HOMEPAGE = "https://pypi.python.org/pypi/pbr"
-SECTION = "devel/python"
-LICENSE = "Apache-2.0"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=1dece7821bf3fd70fe1309eaa37d52a2"
-
-PR = "r0"
-SRCNAME = "pbr"
-
-SRC_URI = "https://pypi.python.org/packages/source/p/${SRCNAME}/${SRCNAME}-${PV}.tar.gz"
-
-SRC_URI[md5sum] = "ccef0c0fa2ad7ee2c9997322a83d7e45"
-SRC_URI[sha256sum] = "a741650c697abe9dd3da00039a57a45a15a6eed017a16f6b7e4c0161fae2b4b2"
-
-S = "${WORKDIR}/${SRCNAME}-${PV}"
-
-inherit setuptools
-
-# DEPENDS_default: python-pip
-
-DEPENDS += " \
-        python-pip \
-        "
-
-# RDEPENDS_default:
-RDEPENDS_${PN} += " \
-        "
meta-openstack/recipes-devtools/python/python-pbr_1.4.0.bb new file +27 -0
new file mode 100644
index 0000000..273fdd4
@@ -0,0 +1,27 @@
+DESCRIPTION = "Python Build Reasonableness: PBR is a library that injects some useful and sensible default behaviors into your setuptools run"
+HOMEPAGE = "https://pypi.python.org/pypi/pbr"
+SECTION = "devel/python"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=1dece7821bf3fd70fe1309eaa37d52a2"
+
+PR = "r0"
+SRCNAME = "pbr"
+
+SRC_URI = "https://pypi.python.org/packages/source/p/${SRCNAME}/${SRCNAME}-${PV}.tar.gz"
+
+SRC_URI[md5sum] = "21f847dd9d3f9bd37db402067024be98"
+SRC_URI[sha256sum] = "f080232fb6b208615b4c1854bf4277bb097d19c9ef89f94f203c1436fe600e92"
+
+S = "${WORKDIR}/${SRCNAME}-${PV}"
+
+inherit setuptools
+
+# DEPENDS_default: python-pip
+
+DEPENDS += " \
+        python-pip \
+        "
+
+# RDEPENDS_default:
+RDEPENDS_${PN} += " \
+        "
Signature · 1 line
2.1.4
#17 lore raw

PATCH 9/11 python-oslo.serialization: add pbr to DEPEND

In reply to Mark Asselstine

Per the package's setup.py we need to depend on python-pbr. Failing to do so results in a build failure:
Could not find suitable distribution for Requirement.parse('pbr')

---
 meta-openstack/recipes-devtools/python/python-oslo.serialization_git.bb | 1 +
 1 file changed, 1 insertion(+)
meta-openstack/recipes-devtools/python/python-oslo.serialization_git.bb +1 -0
index 451c6b9..7f0fb9c 100644
@@ -19,6 +19,7 @@ inherit setuptools
 
 DEPENDS += " \
         python-pip \
+        python-pbr \
         "
 
 # RDEPENDS_default: 
Signature · 1 line
2.1.4
#18 lore raw

Re: [m-c-s][PATCH 09/11] python-oslo.serialization: add pbr to DEPEND

Quoted 4 lines · Mark Asselstine

Per the package's setup.py we need to depend on python-pbr. Failing to do so results in a build failure:
Could not find suitable distribution for Requirement.parse('pbr')

My same comment applies. You'll find 15 or 20 packages that depend on pbr, but that didn't specify it.

We used to get errors if it was specified, since pbr was also coming from the base python package.

Sounds like this is no longer the case.

Bruce

Quoted 25 lines
---
 meta-openstack/recipes-devtools/python/python-oslo.serialization_git.bb | 1 +
 1 file changed, 1 insertion(+)
meta-openstack/recipes-devtools/python/python-oslo.serialization_git.bb +1 -1
index 451c6b9..7f0fb9c 100644
@@ -19,6 +19,7 @@ inherit setuptools
 
 DEPENDS += " \
         python-pip \
+        python-pbr \
         "
 
 # RDEPENDS_default:
--

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"
#19 lore raw

Re: [m-c-s][PATCH 09/11] python-oslo.serialization: add pbr to DEPEND

Quoted 5 lines · On August 5, 2015 21:14:36 Bruce Ashfield wrote:

On Wed, Aug 5, 2015 at 4:29 PM, Mark Asselstine

Quoted 2 lines · <[email protected]> wrote:

Per the package's setup.py we need to depend on python-pbr. Failing to

Quoted 8 lines
Quoted 2 lines

do so results in a build failure:
Could not find suitable distribution for Requirement.parse('pbr')

My same comment applies. You'll find 15 or 20 packages that depend on pbr, but that didn't specify it.

We used to get errors if it was specified, since pbr was also coming from the base python package.

Were we not pushing our luck a little bit by not addressing the QA errors? By luck I mean that without anti-DEPENDS we simply relied on the fact that nothing else was causing pbr to be present in the sysroot before these packages were built (far from a guarantee).

Quoted 2 lines

Sounds like this is no longer the case.

I believe this is the case but will look to backup this statement with further testing today. My current view is:

- Previously => some pkgs _could_ build without pbr DEPENDS => building with pbr will/could cause QA issues

- Currently => some pkgs _will_ fail to build without pbr DEPENDS => building with pbr does cause QA issues

Since the previous approach was somewhat 'lucky' as described previously I would say that this shift in being able to build with pbr and not have QA issues is a shift in our favor.

I will follow up with some further test findings.

Mark

Quoted 40 lines

Bruce

Quoted 28 lines

---

meta-openstack/recipes-devtools/python/python-oslo.serialization_git.bb | 1 + 1 file changed, 1 insertion(+)

diff --git a/meta-openstack/recipes-devtools/python/python-oslo.serialization_git.bb b/meta-openstack/recipes-devtools/python/python-oslo.serialization_git.bb index 451c6b9..7f0fb9c 100644
---
a/meta-openstack/recipes-devtools/python/python-oslo.serialization_git.bb
+++
b/meta-openstack/recipes-devtools/python/python-oslo.serialization_git.bb

(quoted diff) +1 -0
@@ -19,6 +19,7 @@ inherit setuptools
 
 DEPENDS += " \
 
         python-pip \
 
+        python-pbr \
 
         "

# RDEPENDS_default:
--
2.1.4

Quoted 5 lines

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

--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"

#20 lore raw

PATCH 10/11 python-mox3: uprev to version 0.9.0

In reply to Mark Asselstine

Because we updated the version of python-pbr we need to uprev python-mox3 as the version that was present only works with python-pbr versions <1.0.

---
 .../recipes-devtools/python/python-mox3_0.7.0.bb   | 22 ----------------------
 .../recipes-devtools/python/python-mox3_0.9.0.bb   | 22 ++++++++++++++++++++++
 2 files changed, 22 insertions(+), 22 deletions(-)
 delete mode 100644 meta-openstack/recipes-devtools/python/python-mox3_0.7.0.bb
 create mode 100644 meta-openstack/recipes-devtools/python/python-mox3_0.9.0.bb
meta-openstack/recipes-devtools/python/python-mox3_0.7.0.bb deleted +0 -22
deleted file mode 100644
index 9e40686..0000000
@@ -1,22 +0,0 @@
-DESCRIPTION = "mox3: mock object framework for Python"
-HOMEPAGE = "https://pypi.python.org/pypi/mox3/0.7.0"
-SECTION = "devel/python"
-LICENSE = "Apache-2.0"
-LIC_FILES_CHKSUM = "file://COPYING.txt;md5=3b83ef96387f14655fc854ddc3c6bd57"
-
-PR = "r0"
-
-SRCNAME = "mox3"
-SRC_URI = "https://pypi.python.org/packages/source/m/${SRCNAME}/${SRCNAME}-${PV}.tar.gz"
-
-SRC_URI[md5sum] = "3235d9fc504aee015576ca784c16f3ff"
-SRC_URI[sha256sum] = "7cc2ffac72d55816bbf670b03cf636b4abdc089c3d8b31a6760b22fc1eeedde2"
-
-S = "${WORKDIR}/${SRCNAME}-${PV}"
-
-inherit setuptools
-
-RDEPENDS_${PN} += " \
-    python-pbr \
-    python-fixtures \
-"
meta-openstack/recipes-devtools/python/python-mox3_0.9.0.bb new file +22 -0
new file mode 100644
index 0000000..7ef5276
@@ -0,0 +1,22 @@
+DESCRIPTION = "mox3: mock object framework for Python"
+HOMEPAGE = "https://pypi.python.org/pypi/mox3/0.9.0"
+SECTION = "devel/python"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://COPYING.txt;md5=3b83ef96387f14655fc854ddc3c6bd57"
+
+PR = "r0"
+
+SRCNAME = "mox3"
+SRC_URI = "https://pypi.python.org/packages/source/m/${SRCNAME}/${SRCNAME}-${PV}.tar.gz"
+
+SRC_URI[md5sum] = "7574eabaa0f1d8f83289f33aaf2c4884"
+SRC_URI[sha256sum] = "8469f35690077f888fbb49a7e31251de9f78bd319ebd4e1af0bbb1349c1ad1be"
+
+S = "${WORKDIR}/${SRCNAME}-${PV}"
+
+inherit setuptools
+
+RDEPENDS_${PN} += " \
+    python-pbr \
+    python-fixtures \
+"
Signature · 1 line
2.1.4
#21 lore raw

PATCH 11/11 horizon: add missing dependencies to address startup errors

In reply to Mark Asselstine

Horizon requires python-xstatic-angular-lrdragndrop and xstatic-magic-search otherwise errors will prevent the dashboard from being accessed. The depencies are spelled out clearly in the openstack-dashboard-error.log, as per the following error:

ImportError: Could not import settings 'openstack_dashboard.settings' (Is it on sys.path? Is there an import error in the settings file?):
No module named angular_lrdragndrop

Even with these added dependencies there are other issues that prevent the dashboard from being accessed but at least with these dependencies satisfied we can move on to fixing the remaining runtime issues.

---
 .../recipes-devtools/python/python-horizon_git.bb  |  4 +++-
 .../python-xstatic-angular-lrdragndrop_1.0.2.2.bb  | 22 ++++++++++++++++++++++
 .../python/python-xstatic-magic-search_0.2.5.1.bb  | 21 +++++++++++++++++++++
 3 files changed, 46 insertions(+), 1 deletion(-)
 create mode 100644 meta-openstack/recipes-devtools/python/python-xstatic-angular-lrdragndrop_1.0.2.2.bb
 create mode 100644 meta-openstack/recipes-devtools/python/python-xstatic-magic-search_0.2.5.1.bb
meta-openstack/recipes-devtools/python/python-horizon_git.bb +3 -1
index 9dd764f..f5c6c03 100644
@@ -40,6 +40,8 @@ RDEPENDS_${PN} += " python-django \
     python-xstatic-angular-mock \
     python-xstatic-angular-bootstrap \
     python-xstatic-angular-irdragndrop \
+    python-xstatic-angular-lrdragndrop \
+    python-xstatic-magic-search \
     python-xstatic-d3 \
     python-xstatic-hogan \
     python-xstatic-jasmine \
@@ -71,7 +73,7 @@ SRC_URI = "git://github.com/openstack/${SRCNAME}.git;branch=stable/kilo \
     "
 
 SRCREV = "b99cf48ff346494198fb9740495eacc14fa406bf"
-PV = "2015.1.0+git${SRCPV}"
+PV = "2015.1.0+git${SRCPV}p1"
 S = "${WORKDIR}/git"
 
 inherit setuptools update-rc.d python-dir default_configs openstackchef monitor
meta-openstack/recipes-devtools/python/python-xstatic-angular-lrdragndrop_1.0.2.2.bb new file +22 -0
new file mode 100644
index 0000000..1bc71a3
@@ -0,0 +1,22 @@
+DESCRIPTION = "LrDragNDrop javascript library packaged for setuptools"
+HOMEPAGE = "https://pypi.python.org/pypi/XStatic-Angular-lrdragndrop"
+SECTION = "devel/python"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://PKG-INFO;md5=92d5d5d8e51c0c2f4f6db4a084a59173"
+
+SRCNAME = "XStatic-Angular-lrdragndrop"
+SRC_URI = "http://pypi.python.org/packages/source/X/${SRCNAME}/${SRCNAME}-${PV}.tar.gz"
+
+SRC_URI[md5sum] = "afd682cab9f436cf22b025dfcabaa225"
+SRC_URI[sha256sum] = "1cf04495981db5dfd5536441e17ec69bb18d624f847ddc203f3259d81b10a77e"
+
+S = "${WORKDIR}/${SRCNAME}-${PV}"
+
+inherit setuptools
+
+DEPENDS += " \
+        python-pip \
+        "
+
+RDEPENDS_${PN} += " \
+        "
meta-openstack/recipes-devtools/python/python-xstatic-magic-search_0.2.5.1.bb new file +21 -0
new file mode 100644
index 0000000..23fb832
@@ -0,0 +1,21 @@
+DESCRIPTION = "An AngularJS directive that provides a UI for both faceted filtering and as-you-type filtering"
+HOMEPAGE = "https://pypi.python.org/pypi/XStatic-Magic-Search"
+SECTION = "devel/python"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://PKG-INFO;md5=e3d8469611ec04e52d71f2e293d54e9c"
+
+SRCNAME = "XStatic-Magic-Search"
+SRC_URI = "http://pypi.python.org/packages/source/X/${SRCNAME}/${SRCNAME}-${PV}.tar.gz"
+
+SRC_URI[md5sum] = "cfb8a82129fffbe1f5c6339240cb6139"
+SRC_URI[sha256sum] = "9b2f35a5792f4e763e6dc319036e3676f3e18f46153096f3ab5e507177ec007e"
+
+S = "${WORKDIR}/${SRCNAME}-${PV}"
+
+inherit setuptools
+
+DEPENDS += " \
+        "
+
+RDEPENDS_${PN} += " \
+        "
Signature · 1 line
2.1.4