Skip to contentSkip to conversation

python-html5lib: import recipe from meta-openstack

PATCH Superseded Dan McGregor 2 participants 6 messages Nov 5, 2015

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 python-html5lib: import recipe from meta-openstack

From: Dan McGregor <[email protected]>

This recipe is needed for GateOne.

---
 .../python/python-html5lib_0.999.bb                | 27 ++++++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python-html5lib_0.999.bb
meta-python/recipes-devtools/python/python-html5lib_0.999.bb new file +27 -0
new file mode 100644
index 0000000..9ad84e8
@@ -0,0 +1,27 @@
+DESCRIPTION = "HTML parser based on the WHATWG HTML specifcation"
+HOMEPAGE = "https://github.com/html5lib/html5lib-python"
+SECTION = "devel/python"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=1ba5ada9e6fead1fdc32f43c9f10ba7c"
+
+PR = "r0"
+
+SRCNAME = "html5lib"
+SRC_URI = "http://pypi.python.org/packages/source/h/${SRCNAME}/${SRCNAME}-${PV}.tar.gz"
+
+SRC_URI[md5sum] = "acb8ba4d6db5637360a07859192eb7f8"
+SRC_URI[sha256sum] = "c3887f7e2875d7666107fa8bee761ff95b9391acdcc7cd1b5fd57a23b5fbc49e"
+
+S = "${WORKDIR}/${SRCNAME}-${PV}"
+
+inherit setuptools
+
+# DEPENDS_default: python-pip
+
+DEPENDS += " \
+        python-pip \
+        "
+
+# RDEPENDS_default: 
+RDEPENDS_${PN} += " \
+        "
Signature · 1 line
2.6.2.11.gb05c2f9
#1 lore raw

PATCH 2/2 gateone: update to latest git

From: Dan McGregor <[email protected]>

This version works with pyton-tornado 4.2 as currently distributed with OE.

---
 ...on.py-Hack-around-broken-gethostname-thin.patch | 26 ----------------------
 .../recipes-connectivity/gateone/gateone/80oe.conf |  1 +
 .../recipes-connectivity/gateone/gateone_git.bb    |  7 +++---
 3 files changed, 5 insertions(+), 29 deletions(-)
 delete mode 100644 meta-python/recipes-connectivity/gateone/gateone/0001-configuration.py-Hack-around-broken-gethostname-thin.patch
meta-python/recipes-connectivity/gateone/gateone/0001-configuration.py-Hack-around-broken-gethostname-thin.patch deleted +0 -26
deleted file mode 100644
index 5f5fa91..0000000
@@ -1,26 +0,0 @@
-From d811d3bdf06d78c93c48bef762c19c392c879077 Mon Sep 17 00:00:00 2001
-From: Koen Kooi <[email protected]>
-Date: Tue, 26 Nov 2013 15:54:10 +0100
-Subject: [PATCH] configuration.py: Hack around broken gethostname thingy
-
-Signed-off-by: Koen Kooi <[email protected]>
----
- gateone/core/configuration.py | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/gateone/core/configuration.py b/gateone/core/configuration.py
-index da41cbd..d1c8222 100644
---- a/gateone/core/configuration.py
-+++ b/gateone/core/configuration.py
-@@ -162,7 +162,7 @@ def define_options(installed=True):
-     ]
-     # Used both http and https above to demonstrate that both are acceptable
-     try:
--        additional_origins = socket.gethostbyname_ex(socket.gethostname())
-+        additional_origins = [] # additional_origins = socket.gethostbyname_ex(socket.gethostname())
-     except socket.gaierror:
-         # Couldn't get any IPs from the hostname
-         additional_origins = []
--- 
-1.8.4.2
-
meta-python/recipes-connectivity/gateone/gateone/80oe.conf +1 -0
index cde98bc..09cdbfa 100644
@@ -2,6 +2,7 @@
 {
     "*": {
         "gateone": { // These settings apply to all of Gate One
+            "log_file_prefix": "/var/log/gateone.log", // default would be /var/log/gateone/gateone.log
             "log_file_max_size": 5242880, // 5 megabyte logs for OE by default (default would normally be 100Mb)
             "log_file_num_backups": 2, // Default is normally 10
             "origins": ["*"], // Every device has a unique origin
meta-python/recipes-connectivity/gateone/gateone_git.bb +4 -3
index 7eae12a..80bbae8 100644
@@ -4,9 +4,8 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=834cbc6995db88433db17cdf8953a428"
 HOMEPAGE = "http://liftoffsoftware.com/Products/GateOne"
 
 PV = "1.2"
-SRCREV = "1528d324088fc1c180b7fdf50f5b5c1af057eef6"
-SRC_URI = "git://github.com/liftoff/GateOne.git \
-           file://0001-configuration.py-Hack-around-broken-gethostname-thin.patch \
+SRCREV = "17fbf85753f4d9c317950a3ef14f811188a51cb7"
+SRC_URI = "git://github.com/liftoff/GateOne.git;branch=master \
            file://gateone-avahi.service \
            file://80oe.conf \
            file://gateone.service \
@@ -49,6 +48,7 @@ FILES_${PN} = "${localstatedir}/lib ${bindir} ${base_libdir} ${sysconfdir} ${PYT
 RDEPENDS_${PN} = "mime-support \
                   openssh-ssh \
                   python-compression \
+                  python-contextlib \
                   python-crypt \
                   python-datetime \
                   python-email \
@@ -76,6 +76,7 @@ RDEPENDS_${PN} = "mime-support \
                   python-tornado \
                   python-unixadmin \
                   python-xml \
+                  python-html5lib \
                   bash \
 "
 
Signature · 1 line
2.6.2.11.gb05c2f9
#2 lore raw

Re: [meta-python][PATCH 2/2] gateone: update to latest git

Quoted 53 lines · Dan McGregor

From: Dan McGregor <[email protected]>

This version works with pyton-tornado 4.2 as currently distributed with OE.

---

...on.py-Hack-around-broken-gethostname-thin.patch | 26 ----------------------
.../recipes-connectivity/gateone/gateone/80oe.conf |  1 +
.../recipes-connectivity/gateone/gateone_git.bb    |  7 +++---
3 files changed, 5 insertions(+), 29 deletions(-)

delete mode 100644 meta-python/recipes-connectivity/gateone/gateone/0001-configuration.py-Hack-around-broken-gethostname-thin.patch

meta-python/recipes-connectivity/gateone/gateone/0001-configuration.py-Hack-around-broken-gethostname-thin.patch deleted +0 -26
deleted file mode 100644
index 5f5fa91..0000000
@@ -1,26 +0,0 @@
-From d811d3bdf06d78c93c48bef762c19c392c879077 Mon Sep 17 00:00:00 2001
-From: Koen Kooi <[email protected]>
-Date: Tue, 26 Nov 2013 15:54:10 +0100
-Subject: [PATCH] configuration.py: Hack around broken gethostname thingy
-
-Signed-off-by: Koen Kooi <[email protected]>
----
- gateone/core/configuration.py | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/gateone/core/configuration.py b/gateone/core/configuration.py
-index da41cbd..d1c8222 100644
---- a/gateone/core/configuration.py
-+++ b/gateone/core/configuration.py
-@@ -162,7 +162,7 @@ def define_options(installed=True):
-     ]
-     # Used both http and https above to demonstrate that both are acceptable
-     try:
--        additional_origins = socket.gethostbyname_ex(socket.gethostname())
-+        additional_origins = [] # additional_origins = socket.gethostbyname_ex(socket.gethostname())
-     except socket.gaierror:
-         # Couldn't get any IPs from the hostname
-         additional_origins = []
---
-1.8.4.2
-
meta-python/recipes-connectivity/gateone/gateone/80oe.conf +0 -0
index cde98bc..09cdbfa 100644

meta-python/recipes-connectivity/gateone/gateone/80oe.conf line 5

Quoted 4 lines
meta-python/recipes-connectivity/gateone/gateone/80oe.conf +1 -0
@@ -2,6 +2,7 @@
 {
    "*": {
        "gateone": { // These settings apply to all of Gate One
+            "log_file_prefix": "/var/log/gateone.log", // default would be /var/log/gateone/gateone.log

Can this use ${localstatedir} some how instead of /var

Quoted 11 lines
meta-python/recipes-connectivity/gateone/gateone/80oe.conf +0 -0
            "log_file_max_size": 5242880, // 5 megabyte logs for OE by default (default would normally be 100Mb)
            "log_file_num_backups": 2, // Default is normally 10
            "origins": ["*"], // Every device has a unique origin
meta-python/recipes-connectivity/gateone/gateone_git.bb +0 -0
index 7eae12a..80bbae8 100644
@@ -4,9 +4,8 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=834cbc6995db88433db17cdf8953a428"

HOMEPAGE = "http://liftoffsoftware.com/Products/GateOne"

PV = “1.2"

Should this have SRCPV in PV

Quoted 32 lines
meta-python/recipes-connectivity/gateone/gateone_git.bb +4 -3
-SRCREV = "1528d324088fc1c180b7fdf50f5b5c1af057eef6"
-SRC_URI = "git://github.com/liftoff/GateOne.git \
-           file://0001-configuration.py-Hack-around-broken-gethostname-thin.patch \
+SRCREV = "17fbf85753f4d9c317950a3ef14f811188a51cb7"
+SRC_URI = "git://github.com/liftoff/GateOne.git;branch=master \
           file://gateone-avahi.service \
           file://80oe.conf \
           file://gateone.service \
@@ -49,6 +48,7 @@ FILES_${PN} = "${localstatedir}/lib ${bindir} ${base_libdir} ${sysconfdir} ${PYT
 RDEPENDS_${PN} = "mime-support \
                  openssh-ssh \
                  python-compression \
+                  python-contextlib \
                  python-crypt \
                  python-datetime \
                  python-email \
@@ -76,6 +76,7 @@ RDEPENDS_${PN} = "mime-support \
                  python-tornado \
                  python-unixadmin \
                  python-xml \
+                  python-html5lib \
                  bash \

"

--
2.6.2.11.gb05c2f9

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#3 lore raw

Re: [meta-python][PATCH 2/2] gateone: update to latest git

Quoted 51 lines · Khem Raj
Quoted 51 lines · Dan McGregor

From: Dan McGregor <[email protected]>

This version works with pyton-tornado 4.2 as currently distributed with OE.

---

...on.py-Hack-around-broken-gethostname-thin.patch | 26 ----------------------
.../recipes-connectivity/gateone/gateone/80oe.conf |  1 +
.../recipes-connectivity/gateone/gateone_git.bb    |  7 +++---
3 files changed, 5 insertions(+), 29 deletions(-)

delete mode 100644 meta-python/recipes-connectivity/gateone/gateone/0001-configuration.py-Hack-around-broken-gethostname-thin.patch

meta-python/recipes-connectivity/gateone/gateone/0001-configuration.py-Hack-around-broken-gethostname-thin.patch deleted +0 -26
deleted file mode 100644
index 5f5fa91..0000000
@@ -1,26 +0,0 @@
-From d811d3bdf06d78c93c48bef762c19c392c879077 Mon Sep 17 00:00:00 2001
-From: Koen Kooi <[email protected]>
-Date: Tue, 26 Nov 2013 15:54:10 +0100
-Subject: [PATCH] configuration.py: Hack around broken gethostname thingy
-
-Signed-off-by: Koen Kooi <[email protected]>
----
- gateone/core/configuration.py | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/gateone/core/configuration.py b/gateone/core/configuration.py
-index da41cbd..d1c8222 100644
---- a/gateone/core/configuration.py
-+++ b/gateone/core/configuration.py
-@@ -162,7 +162,7 @@ def define_options(installed=True):
-     ]
-     # Used both http and https above to demonstrate that both are acceptable
-     try:
--        additional_origins = socket.gethostbyname_ex(socket.gethostname())
-+        additional_origins = [] # additional_origins = socket.gethostbyname_ex(socket.gethostname())
-     except socket.gaierror:
-         # Couldn't get any IPs from the hostname
-         additional_origins = []
---
-1.8.4.2
-
meta-python/recipes-connectivity/gateone/gateone/80oe.conf +0 -1
index cde98bc..09cdbfa 100644
--- a/meta-python/recipes-connectivity/gateone/gateone/80oe.conf
Quoted 8 lines

meta-python/recipes-connectivity/gateone/gateone/80oe.conf line 5

Quoted 6 lines

+++ b/meta-python/recipes-connectivity/gateone/gateone/80oe.conf

meta-python/recipes-connectivity/gateone/gateone/80oe.conf +1 -0
@@ -2,6 +2,7 @@
 {
    "*": {
        "gateone": { // These settings apply to all of Gate One
+            "log_file_prefix": "/var/log/gateone.log", // default would be /var/log/gateone/gateone.log

Can this use ${localstatedir} some how instead of /var

I think so. That's what sed is for.

Quoted 11 lines
Quoted 11 lines
meta-python/recipes-connectivity/gateone/gateone/80oe.conf +0 -0
            "log_file_max_size": 5242880, // 5 megabyte logs for OE by default (default would normally be 100Mb)
            "log_file_num_backups": 2, // Default is normally 10
            "origins": ["*"], // Every device has a unique origin
meta-python/recipes-connectivity/gateone/gateone_git.bb +0 -0
index 7eae12a..80bbae8 100644
@@ -4,9 +4,8 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=834cbc6995db88433db17cdf8953a428"

HOMEPAGE = "http://liftoffsoftware.com/Products/GateOne"

Quoted 3 lines
Quoted 1 line

PV = “1.2"

Should this have SRCPV in PV

Yes, this is not a release.

Quoted 41 lines
Quoted 25 lines
meta-python/recipes-connectivity/gateone/gateone_git.bb +4 -3
-SRCREV = "1528d324088fc1c180b7fdf50f5b5c1af057eef6"
-SRC_URI = "git://github.com/liftoff/GateOne.git \
-           file://0001-configuration.py-Hack-around-broken-gethostname-thin.patch \
+SRCREV = "17fbf85753f4d9c317950a3ef14f811188a51cb7"
+SRC_URI = "git://github.com/liftoff/GateOne.git;branch=master \
           file://gateone-avahi.service \
           file://80oe.conf \
           file://gateone.service \
@@ -49,6 +48,7 @@ FILES_${PN} = "${localstatedir}/lib ${bindir} ${base_libdir} ${sysconfdir} ${PYT
 RDEPENDS_${PN} = "mime-support \
                  openssh-ssh \
                  python-compression \
+                  python-contextlib \
                  python-crypt \
                  python-datetime \
                  python-email \
@@ -76,6 +76,7 @@ RDEPENDS_${PN} = "mime-support \
                  python-tornado \
                  python-unixadmin \
                  python-xml \
+                  python-html5lib \
                  bash \

"

Quoted 8 lines

--
2.6.2.11.gb05c2f9

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#4 lore raw
In reply to Dan McGregor
Quoted 19 lines · Dan McGregor

From: Dan McGregor <[email protected]>

This recipe is needed for GateOne.

---
.../python/python-html5lib_0.999.bb | 27 ++++++++++++++++++++++

1 file changed, 27 insertions(+)

create mode 100644 meta-python/recipes-devtools/python/python-html5lib_0.999.bb

meta-python/recipes-devtools/python/python-html5lib_0.999.bb new file +0 -0
new file mode 100644
index 0000000..9ad84e8

meta-python/recipes-devtools/python/python-html5lib_0.999.bb line 7

Quoted 7 lines
meta-python/recipes-devtools/python/python-html5lib_0.999.bb new file +7 -0
@@ -0,0 +1,27 @@
+DESCRIPTION = "HTML parser based on the WHATWG HTML specifcation"
+HOMEPAGE = "https://github.com/html5lib/html5lib-python"
+SECTION = "devel/python"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=1ba5ada9e6fead1fdc32f43c9f10ba7c"
+
+PR = “r0"

drop it.

Quoted 10 lines
meta-python/recipes-devtools/python/python-html5lib_0.999.bb new file +10 -0
+
+SRCNAME = "html5lib"
+SRC_URI = "http://pypi.python.org/packages/source/h/${SRCNAME}/${SRCNAME}-${PV}.tar.gz"
+
+SRC_URI[md5sum] = "acb8ba4d6db5637360a07859192eb7f8"
+SRC_URI[sha256sum] = "c3887f7e2875d7666107fa8bee761ff95b9391acdcc7cd1b5fd57a23b5fbc49e"
+
+S = "${WORKDIR}/${SRCNAME}-${PV}"
+
+inherit setuptools

meta-python/recipes-devtools/python/python-html5lib_0.999.bb

Quoted 10 lines
meta-python/recipes-devtools/python/python-html5lib_0.999.bb new file +10 -0
+
+# DEPENDS_default: python-pip
+
+DEPENDS += " \
+        python-pip \
+        "
+
+# RDEPENDS_default:
+RDEPENDS_${PN} += " \
+        “

why is this needed.

Quoted 8 lines

--
2.6.2.11.gb05c2f9

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#5 lore raw
Quoted 13 lines · Khem Raj
Quoted 13 lines · Dan McGregor

From: Dan McGregor <[email protected]>

This recipe is needed for GateOne.

---
.../python/python-html5lib_0.999.bb | 27 ++++++++++++++++++++++

1 file changed, 27 insertions(+)

create mode 100644 meta-python/recipes-devtools/python/python-html5lib_0.999.bb

Quoted 15 lines

meta-python/recipes-devtools/python/python-html5lib_0.999.bb line 7

Quoted 13 lines
meta-python/recipes-devtools/python/python-html5lib_0.999.bb new file +7 -0
new file mode 100644
index 0000000..9ad84e8
@@ -0,0 +1,27 @@
+DESCRIPTION = "HTML parser based on the WHATWG HTML specifcation"
+HOMEPAGE = "https://github.com/html5lib/html5lib-python"
+SECTION = "devel/python"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=1ba5ada9e6fead1fdc32f43c9f10ba7c"
+
+PR = “r0"

drop it.

Will do.

Quoted 15 lines
Quoted 15 lines
meta-python/recipes-devtools/python/python-html5lib_0.999.bb new file +14 -0
+
+SRCNAME = "html5lib"
+SRC_URI = "http://pypi.python.org/packages/source/h/${SRCNAME}/${SRCNAME}-${PV}.tar.gz"
+
+SRC_URI[md5sum] = "acb8ba4d6db5637360a07859192eb7f8"
+SRC_URI[sha256sum] = "c3887f7e2875d7666107fa8bee761ff95b9391acdcc7cd1b5fd57a23b5fbc49e"
+
+S = "${WORKDIR}/${SRCNAME}-${PV}"
+
+inherit setuptools
+
+# DEPENDS_default: python-pip
+
+DEPENDS += " \
Quoted 8 lines

meta-python/recipes-devtools/python/python-html5lib_0.999.bb

Quoted 6 lines
meta-python/recipes-devtools/python/python-html5lib_0.999.bb new file +6 -0
+        python-pip \
+        "
+
+# RDEPENDS_default:
+RDEPENDS_${PN} += " \
+        “

why is this needed.

It possibly isn't. This was a verbatim import from what's in meta-openstack. I'll look into it.

Quoted 17 lines
Quoted 9 lines

--
2.6.2.11.gb05c2f9

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel