Bug 12814

Summary: python2-manifest.json is missing xmlrpclib.py for xmlrpc package
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Mikhail <mvanyulin>
Component: devtools / tool chainAssignee: Richard Purdie <richard.purdie>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: meta.mr.watcher, meta.watcher, poky.bs.watcher, poky.watcher, ross.burton
Version: 2.5.1   
Target Milestone: 2.7   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
pathc for missing xmlrpclib.py for xmlrpc package none

Description Mikhail 2018-06-25 12:58:44 UTC
File in question:
meta/recipes-devtools/python/python/python2-manifest.json

File was created by commit: 8d94b9db221d1def42f091b991903faa2d1651ce

"xmlrpclib" was in xmlrpc package before:

-FILES_${PN}-xmlrpc=" \
-    ${libdir}/python2.7/xmlrpclib.* \
-    ${libdir}/python2.7/SimpleXMLRPCServer.* \
-    ${libdir}/python2.7/DocXMLRPCServer.* \
-"

And was not added:

+    "xmlrpc": {
+        "files": [
+            "${libdir}/python2.7/DocXMLRPCServer.py",
+            "${libdir}/python2.7/SimpleXMLRPCServer.py"
+        ],

As a result I`m receiving a following error:
  File "/usr/lib64/python2.7/SimpleXMLRPCServer.py", line 102, in <module>
    import xmlrpclib
ImportError: No module named xmlrpclib


Following change works for me:
jenkins@obs-lxc-44:~/orig/poky-yocto-2.5/meta/recipes-devtools/python/python$ git diff
diff --git a/meta/recipes-devtools/python/python/python2-manifest.json b/meta/re
index 723e513..408e4f4 100644
--- a/meta/recipes-devtools/python/python/python2-manifest.json
+++ b/meta/recipes-devtools/python/python/python2-manifest.json
@@ -1010,7 +1010,8 @@
     "xmlrpc": {
         "files": [
             "${libdir}/python2.7/DocXMLRPCServer.py",
-            "${libdir}/python2.7/SimpleXMLRPCServer.py"
+            "${libdir}/python2.7/SimpleXMLRPCServer.py",
+            "${libdir}/python2.7/xmlrpclib.py"
         ],
         "rdepends": [
             "codecs",
jenkins@obs-lxc-44:~/orig/poky-yocto-2.5/meta/recipes-devtools/python/python$
Comment 1 Richard Purdie 2018-06-28 14:47:23 UTC
Hi, the fix looks good, could you send a patch to the mailing list please?
Comment 2 Mikhail 2018-06-28 15:22:45 UTC
(In reply to comment #1)
> Hi, the fix looks good, could you send a patch to the mailing list please?

Done.
You should be in CC.
Comment 3 Ross Burton 2018-11-08 16:24:09 UTC
Can't seem to find this patch, can you paste a link to it on the list?
Comment 4 Mikhail 2018-11-09 08:16:14 UTC
Created attachment 4390 [details]
pathc for missing xmlrpclib.py for xmlrpc package

(In reply to comment #3)
> Can't seem to find this patch, can you paste a link to it on the list?

I guess you meant this list:
https://lists.yoctoproject.org/pipermail/poky/2018-June/date.html
Could not find it either.

Attaching the patch.
Or I need to resend it to the list?
Comment 5 Ross Burton 2018-11-09 17:05:53 UTC
Yes, please resend to the list.  Not the poky list, but openembedded-core@lists.openembedded.org.
Comment 6 Mikhail 2018-11-12 07:00:18 UTC
(In reply to comment #5)
> Yes, please resend to the list.  Not the poky list, but
> openembedded-core@lists.openembedded.org.

Done.
You should be in CC.
If this one does not come either tell me and I`ll resend it from gmail account.
Comment 7 Richard Purdie 2019-01-31 17:19:05 UTC
Sorry for the delay in this. We ended up needing to fix the manifest file generation code. Now that is done we can regenerate the manifest and fix this bug.