Bug 12814 - python2-manifest.json is missing xmlrpclib.py for xmlrpc package
Summary: python2-manifest.json is missing xmlrpclib.py for xmlrpc package
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 2.5.1
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 2.7
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2018-06-25 12:58 UTC by Mikhail
Modified: 2019-02-04 12:41 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
pathc for missing xmlrpclib.py for xmlrpc package (1.03 KB, patch)
2018-11-09 08:16 UTC, Mikhail
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.