Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 472976 - app-emulation/xen-tools-4.2.2-r1 installs files into /usr/local
Summary: app-emulation/xen-tools-4.2.2-r1 installs files into /usr/local
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ian Delaney (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-11 12:16 UTC by Andreas Kinzler
Modified: 2013-08-15 10:57 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
new initd script (xenstored.initd,1.23 KB, text/plain)
2013-07-29 16:40 UTC, Andreas Kinzler
Details
patch to fix invalid installs (xen-tools-4.2-qemu-prefix.patch,450 bytes, patch)
2013-07-29 16:41 UTC, Andreas Kinzler
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Kinzler 2013-06-11 12:16:39 UTC
# qlist xen-tools | grep local
/usr/local/share/doc/qemu/qemu-doc.html
/usr/local/share/doc/qemu/qemu-tech.html
/usr/local/share/man/man1/qemu-img.1
/usr/local/share/man/man1/qemu.1
/usr/local/share/man/man8/qemu-nbd.8
/usr/local/etc/qemu/target-x86_64.conf

is there a link to the texinfo problem? I removed the dependency on ">=sys-apps/texinfo-5" and it works.

BTW: Xen 4.2.2 release/ebuilds look good to me. See my report: http://www.gossamer-threads.com/lists/xen/devel/285755
Comment 1 Ian Delaney (RETIRED) gentoo-dev 2013-06-27 13:22:24 UTC
hmm wow thx. My regrets for the delay but I'm the only one who maintains xen and I tend to such bugs intermittently. I'm a python team member which takes several people the full spare time to maintain, while xen is but one package in 3 ebuilds.

<is there a link to the texinfo problem? I removed the dependency on ">=sys-apps/texinfo-5" and it works.>

I had a brief search, not offhand.  You could trawl old xen bugs.  I simply can't remember when that cropped up and when if and I fixed it.  What comes to memory is that texino-5 broke something some months back when I did an extensive system update, so essentially the texinfo-5 release broke something that wasn't broken before, but I think it wasn't in xen.

  27 Jun 2013; Ian Delaney <idella4@gentoo.org> xen-tools-4.2.1-r3.ebuild,
  xen-tools-4.2.1-r4.ebuild, xen-tools-4.2.2-r1.ebuild,
  xen-tools-4.2.2-r2.ebuild:
  drop dep texinfo-5, fixes faulty install, Bug #472976 by Andreas Kinzler
Comment 2 Andreas Kinzler 2013-06-27 16:00:51 UTC
I think there is a misunderstanding. In my tests I found the dependency on ">=sys-apps/texinfo-5" is unnecessary. It did not solve the problem of the invalid install into /usr/local.

I use Xen quite alot and I am involved in occasional (but intensive) testing for the Xen community. If my time allows, I'll contact you for feedback/patches if you like to help Xen on Gentoo a bit.
Comment 3 Ian Delaney (RETIRED) gentoo-dev 2013-06-28 02:21:04 UTC
(In reply to Andreas Kinzler from comment #2)
> I think there is a misunderstanding. In my tests I found the dependency on
> ">=sys-apps/texinfo-5" is unnecessary. It did not solve the problem of the
> invalid install into /usr/local.

hmm, well this it seems is a gift horse. 

$ qlist xen-tools | grep local
yields blank where it didn't before.

$ ls /usr/local/share/doc/qemu/
ls: cannot access /usr/local/share/doc/qemu/: No such file or directory

$ ls /usr/share/doc/xen-tools-4.2.2-r1/
html  pdf  ps

$ PYTHON_SINGLE_TARGET=python2_7 USE="doc" ebuild xen-tools-4.2.2-r2.ebuild clean install
========================================

ls /mnt/gen2/TmpDir/portage/app-emulation/xen-tools-4.2.2-r2/image/usr/
bin  include  lib  lib64  sbin  share

no local. What more can I say?
Comment 4 Ian Delaney (RETIRED) gentoo-dev 2013-06-28 05:49:05 UTC
no local. What more can I say?

Well that would be; I'm puzzled since I can't even replicate it again.  How did you build to get this again???
Comment 5 Ian Delaney (RETIRED) gentoo-dev 2013-06-28 14:09:29 UTC
I've refrained from re-installing texinfo-5 which supports it's an unexpected fix.
On that topic, see Bug 471122.
Comment 6 Andreas Kinzler 2013-06-28 14:26:51 UTC
I think use flags are important: I use +hvm +qemu for app-emulation/xen-tools. This is really needed because without you cannot run HVMs. Everything works fine (with dep on ">=sys-apps/texinfo-5") removed. Since the /usr/local files are all related to qemu this might be the missing clue.
Comment 7 Ian Delaney (RETIRED) gentoo-dev 2013-06-29 04:30:14 UTC
(In reply to Andreas Kinzler from comment #6)
> I think use flags are important: I use +hvm +qemu for
> app-emulation/xen-tools. This is really needed because without you cannot
> run HVMs. Everything works fine (with dep on ">=sys-apps/texinfo-5")
> removed. Since the /usr/local files are all related to qemu this might be
> the missing clue.

Yes use flags are important.  wiping out texinfo appears to have taken this bug with it.  So could you re-close it seeing I can't even replicate it now.
Andreas do you have any idea or suggestions of a other ebuilds to make up in light of the extra capabilities xen has recently tacked on?  The prime example has to be efi.
Comment 8 Andreas Kinzler 2013-07-01 10:59:55 UTC
Sorry, the problem still exists. I emerged app-emulation/xen-4.2.2-r1 and app-emulation/xen-tools-4.2.2-r3 into an empty and fresh/new Gentoo system.

# qlist xen-tools | grep local
/usr/local/share/man/man8/qemu-nbd.8
/usr/local/share/man/man1/qemu-img.1
/usr/local/share/man/man1/qemu.1
/usr/local/share/doc/qemu/qemu-tech.html
/usr/local/share/doc/qemu/qemu-doc.html
/usr/local/etc/qemu/target-x86_64.conf

use flags:
app-emulation/xen-tools hvm qemu
Comment 9 Ian Delaney (RETIRED) gentoo-dev 2013-07-21 13:53:33 UTC
Andreas;

version bump 4.3.0 features a switch to /usr/local, except if you configure with
--prefix=/usr; hence in the bumped 4.3.0;

src_configure() {
        econf --prefix=/usr
}
from which, with USE="flask hvm qemu ocaml pygrub screen", I get NO instance of the /usr/local/ anything in  .....xen-tools-4.3.0/image/usr/.

Possibly this was started in 4.2.2 and fully declared in release notes of 4.3.0. However, can you at least run the bumped 4.3.0 after firstly purging all traces of xen and tell me the result here.
Comment 10 Ian Delaney (RETIRED) gentoo-dev 2013-07-21 15:44:34 UTC
This does persist, with USE qemu the qemu build's Makefile(s) direct install dir to /usr/local.  There are 2 ways to do this, however in light of this appearing to be 'set right' by use of configure --prefix=/usr in new version, I've gone for moving them to the right spot after installed to the wrong spot within /image, or ${D}.

*xen-tools-4.2.2-r4 (21 Jul 2013)

  21 Jul 2013; Ian Delaney <idella4@gentoo.org> +xen-tools-4.2.2-r4.ebuild,
  files/xen-4-fix_dotconfig-gcc.patch, files/xen-4.2.0-anti-download.patch,
  xen-tools-4.2.2-r3.ebuild, xen-tools-4.3.0.ebuild:
  revbump; correct install of qemu files folders with IUSE qemu, fixes Bug
  #472976, upgrade instances of ED to D in revbumped & 4.3.0
Comment 11 Andreas Kinzler 2013-07-29 16:40:13 UTC
Created attachment 354528 [details]
new initd script
Comment 12 Andreas Kinzler 2013-07-29 16:41:54 UTC
Created attachment 354530 [details, diff]
patch to fix invalid installs
Comment 13 Andreas Kinzler 2013-07-29 16:47:22 UTC
Manually moving files might cause problems if their location is somehow referenced by the program (for example if qemu-dm internally references /usr/local/etc/qemu/target-x86_64.conf). My patch solves the problem for Xen 4.2.2 by giving the right paths to configure of qemu-xen (non-traditional).

I also added a completely new init script for xenstored (I know: wrong bug). This script has quite a bit of error checking and some nice console printing (waits 3 seconds before it starts a waiting (...) line). The current script easily ends as endless loop (during Gentoo startup) on nearly every error (not running on dom0, ...).
Comment 14 Ian Delaney (RETIRED) gentoo-dev 2013-07-30 07:09:42 UTC
(In reply to Andreas Kinzler from comment #13)
> Manually moving files might cause problems if their location is somehow
> referenced by the program (for example if qemu-dm internally references
> /usr/local/etc/qemu/target-x86_64.conf). My patch solves the problem for Xen
> 4.2.2 by giving the right paths to configure of qemu-xen (non-traditional).
> 
This is basically thate other way. While 4.2.2 is in portage sure, let's try it

> I also added a completely new init script for xenstored (I know: wrong bug).
> This script has quite a bit of error checking and some nice console printing
> (waits 3 seconds before it starts a waiting (...) line). The current script
> easily ends as endless loop (during Gentoo startup) 

it shouldn't 

< on nearly every error (not running on dom0, ...) >

This warrants a fresh bug

  30 Jul 2013; Ian Delaney <idella4@gentoo.org>
  +files/xen-tools-4.2.2-install.patch, xen-tools-4.2.2-r4.ebuild:
  alternate fix to Bug #472976 by patch by Andreas Kinzler wrt to Bug #472976 by
  Andreas Kinzler
Comment 15 Another Mortal 2013-07-31 13:53:40 UTC
I tried this with 4.2.2-r3 and the patch works as expected.


Comments on the initscript went to the new bug.
Comment 16 Ian Delaney (RETIRED) gentoo-dev 2013-08-01 07:55:30 UTC
right that makes for 2 capable testers giving the (y) which is emoticon for thumbs up