Bug#612735: imvirt misses pciutils dependency

2011-02-15 Thread Stefan Bühler

Hi again,

On 02/10/2011 12:45 PM, Thomas Liske wrote:

Re,

On 02/10/2011 12:21 PM, Stefan Bühler wrote:

On 02/10/2011 12:16 PM, Thomas Liske wrote:

Hi,

IMHO imvirt should not depend on pciutils (I would prefer a Suggests or
Recommends) as this might be useless for some virtualization containers.


I am not sure what the goal of the project is; but if you already know
which container you are on (and therefore don't install some packages
needed for some detections), the detection is not that useful.



imvirt is to be used on (large scale) setups with (Debian) hosts running
on virtual and physical machines. With apt-dater + imvirt you are able
to filter the hosts by virtualization containers and do special actions
on them. Other software might use it to behave different depending on
the container.


Well, so i think the point of imvirt is, that it produces the expected 
results (detecting the correct container) in every container in every 
valid setup - oh sry, for xen detection you need to install 1 (or 10) 
other packages breaks this idea, and makes the package useless imho (as 
i already mentioned: if i have to know the container in order to install 
the correct dependencies, i don't need detection).



There are also some metaphysic aspects as in Stanislaw Lem's short story
Professor Corcorana’s Boxes, The Matrix and others - it tells you if you
should get a red pill ;-)


hehe :D

- stefan



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#612735: imvirt misses pciutils dependency

2011-02-10 Thread Stefan Bühler

Package: imvirt
Version: 0.9.0-2

Without pciutils i got the following error on a xen guest:

# imvirt
Can't exec lspci: No such file or directory at 
/usr/share/perl5/ImVirt/Utils/pcidevs.pm line 68.

Error loading ImVirt::VMD::KVM: Cannot exec lspci: No such file or directory
Compilation failed in require at /usr/share/perl5/ImVirt/VMD/KVM.pm line 35.
BEGIN failed--compilation aborted at /usr/share/perl5/ImVirt/VMD/KVM.pm 
line 35.

Compilation failed in require at (eval 16) line 1.
BEGIN failed--compilation aborted at (eval 16) line 1.

Compilation failed in require at /usr/bin/imvirt line 31.
BEGIN failed--compilation aborted at /usr/bin/imvirt line 31.
Xen PV 3.2


So either it shouldn't handle missing lspci or depend on pciutils.

- stefan



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#612735: imvirt misses pciutils dependency

2011-02-10 Thread Thomas Liske

Hi,

On 02/10/2011 11:29 AM, Stefan Bühler wrote:

Package: imvirt
Version: 0.9.0-2

Without pciutils i got the following error on a xen guest:

# imvirt
Can't exec lspci: No such file or directory at
/usr/share/perl5/ImVirt/Utils/pcidevs.pm line 68.
Error loading ImVirt::VMD::KVM: Cannot exec lspci: No such file or
directory
Compilation failed in require at /usr/share/perl5/ImVirt/VMD/KVM.pm line
35.
BEGIN failed--compilation aborted at /usr/share/perl5/ImVirt/VMD/KVM.pm
line 35.
Compilation failed in require at (eval 16) line 1.
BEGIN failed--compilation aborted at (eval 16) line 1.

Compilation failed in require at /usr/bin/imvirt line 31.
BEGIN failed--compilation aborted at /usr/bin/imvirt line 31.
Xen PV 3.2


So either it shouldn't handle missing lspci or depend on pciutils.


IMHO imvirt should not depend on pciutils (I would prefer a Suggests or 
Recommends) as this might be useless for some virtualization containers. 
The upstream fix is:


Index: perl/lib/ImVirt/Utils/pcidevs.pm
===
--- perl/lib/ImVirt/Utils/pcidevs.pm(revision 521)
+++ perl/lib/ImVirt/Utils/pcidevs.pm(working copy)
@@ -67,7 +67,7 @@

 exec('lspci', '-m');

-die(Cannot exec lspci: $!\n);
+exit;
 }

 sub pcidevs_get() {


HTH,
Thomas


- stefan






--
supp...@ibh.de  Tel. +49 351 477 77 30
www.ibh.de  Fax  +49 351 477 77 39

---
Dipl.-Ing. Thomas Liske
Netzwerk- und System-Design


IBH IT-Service GmbH Amtsgericht Dresden
Gostritzer Str. 67a HRB 13626
D-01217 Dresden GF: Prof. Dr. Thomas Horn
Germany VAT DE182302907
---
Ihr Partner für: LAN, WAN IP-Quality, Security, VoIP, SAN, Backup, USV
---
   professioneller IT-Service - kompetent und zuverlässig
---



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#612735: imvirt misses pciutils dependency

2011-02-10 Thread Stefan Bühler

On 02/10/2011 12:16 PM, Thomas Liske wrote:

Hi,

IMHO imvirt should not depend on pciutils (I would prefer a Suggests or
Recommends) as this might be useless for some virtualization containers.


I am not sure what the goal of the project is; but if you already know 
which container you are on (and therefore don't install some packages 
needed for some detections), the detection is not that useful.




--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#612735: imvirt misses pciutils dependency

2011-02-10 Thread Thomas Liske

Re,

On 02/10/2011 12:21 PM, Stefan Bühler wrote:

On 02/10/2011 12:16 PM, Thomas Liske wrote:

Hi,

IMHO imvirt should not depend on pciutils (I would prefer a Suggests or
Recommends) as this might be useless for some virtualization containers.


I am not sure what the goal of the project is; but if you already know
which container you are on (and therefore don't install some packages
needed for some detections), the detection is not that useful.



imvirt is to be used on (large scale) setups with (Debian) hosts running 
on virtual and physical machines. With apt-dater + imvirt you are able 
to filter the hosts by virtualization containers and do special actions 
on them. Other software might use it to behave different depending on 
the container.


There are also some metaphysic aspects as in Stanislaw Lem's short story 
Professor Corcorana’s Boxes, The Matrix and others - it tells you if you 
should get a red pill ;-)



Regards,
Thomas

--
supp...@ibh.de  Tel. +49 351 477 77 30
www.ibh.de  Fax  +49 351 477 77 39

---
Dipl.-Ing. Thomas Liske
Netzwerk- und System-Design


IBH IT-Service GmbH Amtsgericht Dresden
Gostritzer Str. 67a HRB 13626
D-01217 Dresden GF: Prof. Dr. Thomas Horn
Germany VAT DE182302907
---
Ihr Partner für: LAN, WAN IP-Quality, Security, VoIP, SAN, Backup, USV
---
   professioneller IT-Service - kompetent und zuverlässig
---



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org