Skip to contentSkip to conversation

python2-manifest.json: add logging to rdepends

PATCH In review [email protected] 1 participant 3 messages Jan 17, 2019 – Jan 23, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 python2-manifest.json: add logging to rdepends

From: Mingli Yu <[email protected]>

Add loggging to rdepends for python-2to3
and python-multiprocessing.

before patch:

 # python
 Python 2.7.15 (default, Jan 15 2019, 03:09:01)
 [GCC 8.2.0] on linux2
 Type "help", "copyright", "credits" or "license" for more information.
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

from multiprocessing import util
util.get_logger()

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/multiprocessing/util.py", line 89, in get_logger
import logging, atexit
ImportError: No module named logging

Quoted 1 line
Quoted 1 line
Quoted 1 line

After patch:

 # python
 Python 2.7.15 (default, Jan 15 2019, 09:05:49)
 [GCC 8.2.0] on linux2
 Type "help", "copyright", "credits" or "license" for more information.
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

from multiprocessing import util
util.get_logger()

<logging.Logger object at 0xb78cf86c>

Quoted 1 line
Quoted 1 line
Quoted 1 line

Steps to reproduce:
1, add below line to local.conf IMAGE_INSTALL_append += " python-multiprocessing" 2, bitbake core-image-base
3, runqemu qemux86 slirp nographic core-image-base

---
 meta/recipes-devtools/python/python/python2-manifest.json | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta/recipes-devtools/python/python/python2-manifest.json +3 -1
index 4fff54a95bf..abaa10dbd2e 100644
@@ -106,7 +106,8 @@
     "2to3": {
         "summary": "Python automated Python 2 to 3 code translator", 
         "rdepends": [
-            "core"
+            "core",
+            "logging"
         ], 
         "files": [
             "${bindir}/2to3", 
@@ -728,6 +729,7 @@
             "core", 
             "fcntl", 
             "io", 
+            "logging",
             "pickle", 
             "subprocess", 
             "threading"
Signature · 1 line
2.17.1
#1 lore raw

PATCH 2/2 python3-manifest.json: add logging to rdepends

From: Mingli Yu <[email protected]>

Add loggging to rdepends for python3-2to3
and python3-multiprocessing.

before patch:

 # python3
 Python 3.5.6 (default, Jan 15 2019, 03:09:16)
 [GCC 8.2.0] on linux
 Type "help", "copyright", "credits" or "license" for more information.
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

from multiprocessing import util
util.get_logger()

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.5/multiprocessing/util.py", line 65, in get_logger
import logging
ImportError: No module named 'logging'

Quoted 1 line
Quoted 1 line
Quoted 1 line

after patch:

 # python3
 Python 3.5.6 (default, Jan 15 2019, 09:26:38)
 [GCC 8.2.0] on linux
 Type "help", "copyright", "credits" or "license" for more information.
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

from multiprocessing import util
util.get_logger()

<logging.Logger object at 0xb792d94c>

Quoted 1 line
Quoted 1 line
Quoted 1 line

Steps to reproduce:
1, add below line to local.conf IMAGE_INSTALL_append += " python3-multiprocessing" 2, bitbake core-image-base
3, runqemu qemux86 slirp nographic core-image-base

---
 meta/recipes-devtools/python/python3/python3-manifest.json | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
meta/recipes-devtools/python/python3/python3-manifest.json +4 -2
index 3641d5bd7b1..174eac63d0c 100644
@@ -106,7 +106,8 @@
     "2to3": {
         "summary": "Python automated Python 2 to 3 code translator",
         "rdepends": [
-            "core"
+            "core",
+            "logging"
         ],
         "files": [
             "${bindir}/2to3-*",
@@ -820,7 +821,8 @@
     "multiprocessing": {
         "summary": "Python multiprocessing support",
         "rdepends": [
-            "core"
+            "core",
+            "logging"
         ],
         "files": [
             "${libdir}/python${PYTHON_MAJMIN}/lib-dynload/_multiprocessing.*.so",
Signature · 1 line
2.17.1
author
#2 lore raw
In reply to [email protected]

Ping.

Quoted 63 lines · On 2019年01月17日 10:26, [email protected] wrote:

From: Mingli Yu <[email protected]>

Add loggging to rdepends for python-2to3
and python-multiprocessing.

before patch:

  # python
  Python 2.7.15 (default, Jan 15 2019, 03:09:01)
  [GCC 8.2.0] on linux2
  Type "help", "copyright", "credits" or "license" for more information.
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

from multiprocessing import util
util.get_logger()

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/multiprocessing/util.py", line 89, in get_logger
import logging, atexit
ImportError: No module named logging

Quoted 1 line
Quoted 1 line
Quoted 1 line

After patch:

  # python
  Python 2.7.15 (default, Jan 15 2019, 09:05:49)
  [GCC 8.2.0] on linux2
  Type "help", "copyright", "credits" or "license" for more information.
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

from multiprocessing import util
util.get_logger()

<logging.Logger object at 0xb78cf86c>

Quoted 1 line
Quoted 1 line
Quoted 1 line

Steps to reproduce:
1, add below line to local.conf IMAGE_INSTALL_append += " python-multiprocessing" 2, bitbake core-image-base
3, runqemu qemux86 slirp nographic core-image-base

---
  meta/recipes-devtools/python/python/python2-manifest.json | 4 +++-
  1 file changed, 3 insertions(+), 1 deletion(-)
meta/recipes-devtools/python/python/python2-manifest.json +3 -1
index 4fff54a95bf..abaa10dbd2e 100644
@@ -106,7 +106,8 @@
      "2to3": {
          "summary": "Python automated Python 2 to 3 code translator",
          "rdepends": [
-            "core"
+            "core",
+            "logging"
          ],
          "files": [
              "${bindir}/2to3",
@@ -728,6 +729,7 @@
              "core",
              "fcntl",
              "io",
+            "logging",
              "pickle",
              "subprocess",
              "threading"