Skip to contentSkip to conversation

recipes-extended/xen/xen.inc: Add RDEPENDS_${PN}-pygrub

PATCH Norbert Kaminski 1 participant 1 message Nov 18, 2019 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 18 lines · Christopher Clark
Quoted 17 lines · Bruce Ashfield
Quoted 4 lines · Norbert Kaminski

From ea86f97c347f6637d85a6fdbf36943d43adfa18e Mon Sep 17 00:00:00 2001
From: Norbert Kaminski <[email protected]>
Date: Tue, 12 Nov 2019 11:25:29 +0100
Subject: [PATCH] recipes-extended/xen/xen.inc: Add RDEPENDS_${PN}-pygrub

Maybe: "xen: fix pygrub runtime by adding xen-python to xen-pygrub RDEPENDS" as the shortlog ?

Quoted 2 lines

The patch fixes a problem with importing the package xen.lowlevel.xc. RDEPENDS add the xen-python tool, which contains the package.

Can we expand on this message a bit ?

I assume that something from xen.lowlevel.xc is pulling in pygrub, and that in turn requires xen-python? What is the actual on-target or boot issue this then triggers ?

Quoted 7 lines
Quoted 3 lines

I'm not currently able to do Xen runtime tests (and hence can't see this for myself), so I'm trying to understand the issue just from the commit message (and failing at the moment).

One issue that Norbert's patch fixes is: when xen-pygrub is added to an image, it doesn't pull in the xen-python package that it needs which contains the support
library xen.lowlevel.xc .

That issue happened to me, while I was building an ipfire vm guest. The image is splited into three parts and therefore needs a pygrub to work as a vm. Pygrub imports the xen.lowlevel.xc, which is included in the xen-python package. Therefore I'm adding a xen-python in the patch.

Norbert

Quoted 52 lines

I've build-tested a similar patch in a related environment and I think the patch should also have this too:

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

Christopher

Quoted 41 lines

Cheers,

Bruce

Quoted 21 lines

---
recipes-extended/xen/xen.inc | 2 ++

1 file changed, 2 insertions(+)
recipes-extended/xen/xen.inc +0 -0
index 628e52b..ba00d2a 100644
@@ -151,6 +151,8 @@ RDEPENDS_${PN}-xentrace = "python"
 

RDEPENDS_${PN}-xen-watchdog = "bash"

recipes-extended/xen/xen.inc +2 -0
+RDEPENDS_${PN}-pygrub = "${PN}-python"
+

PACKAGES = "\
${PN}-base \
${PN}-blktap \
--
2.17.1

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
- "Use the force Harry" - Gandalf, Star Trek II
--
_______________________________________________
meta-virtualization mailing list [email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization