Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xen-tools-4.2.2-r3 and hardware virtualization
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Atom2
Apprentice
Apprentice


Joined: 01 Aug 2011
Posts: 185

PostPosted: Fri Jul 05, 2013 1:24 pm    Post subject: xen-tools-4.2.2-r3 and hardware virtualization Reply with quote

Hallo Forum,
I have installed xen-tools using the latest stable version 4.2.2-r3. I do require hvm and qemu, but those USE flags are obviously masked somewhere:
Code:
vm-host base # USE="hvm qemu" emerge -av xen-tools

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] app-misc/screen-4.0.3-r6  USE="pam -debug -multiuser -nethack (-selinux)" 821 kB
[ebuild   R    ] app-emulation/xen-tools-4.2.2-r3  USE="screen* -api -custom-cflags -debug -doc -flask (-hvm) (-ocaml) -pygrub (-qemu) -static-libs -xend" PYTHON_SINGLE_TARGET="python2_7 -python2_6" PYTHON_TARGETS="python2_7 -python2_6" 0 kB

Total: 2 packages (1 new, 1 reinstall), Size of downloads: 821 kB

Would you like to merge these packages? [Yes/No]


In the previous stable release 4.2.1-r3 the masking of USE-Flags hvm and qemu seemed to be linked to a dependency on texinfo-5 (which is unstable and which I therefore did not want to pull in) if I read the ebuild (xen-tools-4.2.1-r3.ebuild) correctly:
Code:
REQUIRED_USE="hvm? ( qemu )"

[...]

DEPEND="${CDEPEND}
   sys-devel/bin86
   sys-devel/dev86
   dev-lang/perl
   app-misc/pax-utils
   doc? (
      app-doc/doxygen
      dev-tex/latex2html[png,gif]
      media-gfx/transfig
      media-gfx/graphviz
      dev-tex/xcolor
      dev-texlive/texlive-latexextra
      virtual/latex-base
      dev-tex/latexmk
      dev-texlive/texlive-latex
      dev-texlive/texlive-pictures
      dev-texlive/texlive-latexrecommended
   )
   hvm? ( x11-proto/xproto )
   qemu? ( >=sys-apps/texinfo-5 )"


In the latest ebuild (xen-tools-4.2.2-r3.ebuild), this dependency however seems to have gone, but nevertheless qemu and subsequently hvm are still masked resulting in hardware virtualization not working:
Code:
REQUIRED_USE="hvm? ( qemu )"

[...]

DEPEND="${CDEPEND}
   sys-devel/bin86
   sys-devel/dev86
   dev-lang/perl
   app-misc/pax-utils
   doc? (
      app-doc/doxygen
      dev-tex/latex2html[png,gif]
      media-gfx/transfig
      media-gfx/graphviz
      dev-tex/xcolor
      dev-texlive/texlive-latexextra
      virtual/latex-base
      dev-tex/latexmk
      dev-texlive/texlive-latex
      dev-texlive/texlive-pictures
      dev-texlive/texlive-latexrecommended
   )
   hvm? (  x11-proto/xproto )"


Could anybody provide me some help in tracking down the culprit that prevents the USE-Flags qemu and hvm to be honoured. Clearly I am happy to provide further details.

Many thanks Atom2
Back to top
View user's profile Send private message
Atom2
Apprentice
Apprentice


Joined: 01 Aug 2011
Posts: 185

PostPosted: Sun Jul 07, 2013 11:57 am    Post subject: Reply with quote

O.K., I have managed to find a way around the problem as follows:

I created a file under /etc/portage/profile/use.mask
Code:
-hvm
-qemu


I don't know whether that's the recommended way to overcome the issues and I still do not understand, why qemu and hvm have been hardmasked during the emerge process in the first instance.

Clearly I am still interested in an explanation of emerge's reasoning to hardmask use flags. So if somebody could shed some light on that, I might be able to tackle the problem from the root and not solving it through a workaround.

Atom2
Back to top
View user's profile Send private message
Flow__
n00b
n00b


Joined: 10 Jul 2007
Posts: 25

PostPosted: Tue Sep 10, 2013 7:13 pm    Post subject: Reply with quote

app-emulation/xen-tools qemu depends on sys-apps/texinfo-5.1 with is not stable yet. Therefore USE=qemu was masked and since hvm depends on qemu it was masked to. More info can be found at https://bugs.gentoo.org/show_bug.cgi?id=471122 and in the bugs marked as duplicate of this one.
Back to top
View user's profile Send private message
Atom2
Apprentice
Apprentice


Joined: 01 Aug 2011
Posts: 185

PostPosted: Tue Sep 10, 2013 7:47 pm    Post subject: Reply with quote

Thanks for your reply.

Your bug-report seems to refer to the previous version 4.2.1-r3 which indeed had that dependency in its ebuild: That is what I quoted in one of my posts above.

The ebuild for latest stable version (xen-tools-4.2.2-r3.ebuild) seems to have dropped that dependency (the relevant ebuild code is also quoted in the same post above) and that's what confused me and to be honest, it still does. To me it looks as if sys-apps/texinfo-5.1 is no longer a dependency for xen-tools-4.2.2-r3

I might however be missing something though ...
Back to top
View user's profile Send private message
Flow__
n00b
n00b


Joined: 10 Jul 2007
Posts: 25

PostPosted: Tue Sep 10, 2013 8:28 pm    Post subject: Reply with quote

I didn't report that bug. Anyway, you seem to be right, xen-tools-4.2.1-r3 ( http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/app-emulation/xen-tools/xen-tools-4.2.1-r3.ebuild?hideattic=0&view=markup ) has

qemu? ( >=sys-apps/texinfo-5 )

which is no longer present in the current stable ebuild. But still /usr/portage/profiles/eapi-5-files/package.use.stable.mask reads

# Agostino Sarubbo <ago@gentoo.org> (24 May 2013)
# Justin Lecher <jlec@gentoo.org> (30 May 2313)
# Temporary mask because it needs texinfo-5
# hvm needs qemu #471122
>=app-emulation/xen-tools-4.2.1-r3 qemu hvm ocaml

I wonder if this is a bug in package.use.stable.mask, since it looks like these can be dropped.

Edit: Reported https://bugs.gentoo.org/show_bug.cgi?id=484524
Back to top
View user's profile Send private message
Dr Croubie
Apprentice
Apprentice


Joined: 21 Nov 2006
Posts: 159

PostPosted: Tue Jan 06, 2015 3:47 am    Post subject: Reply with quote

Atom2 wrote:
O.K., I have managed to find a way around the problem as follows:

I created a file under /etc/portage/profile/use.mask
Code:
-hvm
-qemu


FYI: This problem still exists in Xen 4.3.3-*. I got no HVM until fixing it with that use.mask kludge-around.

Code:

> cat /etc/portage/profile/use.mask
-hvm
> grep -i hvm /etc/portage/make.conf
hvm qemu xen"
> equery l xen-tools
 * Searching for xen-tools ...
[IP-] [  ] app-emulation/xen-tools-4.3.3-r1:0
> equery l xen
 * Searching for xen ...
[IP-] [  ] app-emulation/xen-4.3.3-r3:0
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum