Re: [gentoo-user] lm_sensors: dependency problem...

2009-08-23 Thread Albert Hopkins
On Sun, 2009-08-23 at 09:42 +0200, Jarry wrote:
 Hi,
 
 I'm trying to install lm_sensors using gentoo-wiki, but I came
 accros some dependency problem:
 
 
 # emerge --pretend lm_sensors
 These are the packages that would be merged, in order:
 Calculating dependencies... done!
 [ebuild  N] sys-fs/sysfsutils-2.1.0
 [ebuild  N] x11-misc/read-edid-1.4.2
 [ebuild  N] sys-apps/lm_sensors-2.10.7  USE=-sensord
 
 
 What is that x11-misc/read-edid good for? I do not want to pull
 the whole x11 stuff with it, as this is a server with no graphics.
 

http://bugs.gentoo.org/181029

 Next, I want to use sensord for monitoring, so I modified
 package.use and tried it once more:
 
 
 # echo sys-apps/lm_sensors sensord  /etc/portage/package.use
 # emerge --pretend lm_sensors
 These are the packages that would be merged, in order:
 Calculating dependencies... done!
 
 emerge: there are no ebuilds built with USE flags to satisfy 
 =x11-libs/cairo-1.4.6[svg].
 !!! One of the following packages is required to complete your request:
 - x11-libs/cairo-1.8.6-r1 (Change USE: +svg)
 (dependency required by net-analyzer/rrdtool-1.3.8 [ebuild])
 (dependency required by sys-apps/lm_sensors-2.10.7 [ebuild])
 (dependency required by lm_sensors [argument])
 
 
 Now I do not understand it at all. Why rrdtool? All I want
 to use sensord for is to have some status messages recorded
 to syslog. Why should I install that x11-libs/cairo graphics
 library and rrdtool stuff???

Likely sensord does a lot more than recording to syslog.

rrdtools is used as a database but also used to build graphs from its
database, which probably explains cairo.  Cairo is a graphics library
that can render to multiple devices including X11.

If you want you can submit a patched ebuild for rrdtool that maybe uses
a cairo USE flag and clearly separates the graphics system from the
database system.  You'll probably need to work closely with upstream for
that.

If you want you can submit a patched ebuild for cairo that maybe uses an
X use flag that clearly separates the X11 rendering backend from the
others.  You'll probably need to work closely with upstream for that.

-a




Re: [gentoo-user] lm_sensors: dependency problem...

2009-08-23 Thread Jarry

Albert Hopkins wrote:

On Sun, 2009-08-23 at 09:42 +0200, Jarry wrote:



# emerge --pretend lm_sensors
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild  N] sys-fs/sysfsutils-2.1.0
[ebuild  N] x11-misc/read-edid-1.4.2
[ebuild  N] sys-apps/lm_sensors-2.10.7  USE=-sensord


What is that x11-misc/read-edid good for? I do not want to pull
the whole x11 stuff with it, as this is a server with no graphics.


http://bugs.gentoo.org/181029




ChangeLog:
03 Jun 2007; Doug Goldstein car...@gentoo.org 
lm_sensors-2.10.3.ebuild: Add missing depend.

decode-edid.pl needs parse-edid from x11-misc/read-edid


I agree with the original poster of this resolved bug:
pulling in x11-stuff to server just to be able to monitor
its temperatures is simply dangerous and risky...


Next, I want to use sensord for monitoring, so I modified
package.use and tried it once more:


# echo sys-apps/lm_sensors sensord  /etc/portage/package.use
# emerge --pretend lm_sensors
These are the packages that would be merged, in order:
Calculating dependencies... done!

emerge: there are no ebuilds built with USE flags to satisfy 
=x11-libs/cairo-1.4.6[svg].

!!! One of the following packages is required to complete your request:
- x11-libs/cairo-1.8.6-r1 (Change USE: +svg)
(dependency required by net-analyzer/rrdtool-1.3.8 [ebuild])
(dependency required by sys-apps/lm_sensors-2.10.7 [ebuild])
(dependency required by lm_sensors [argument])


Now I do not understand it at all. Why rrdtool? All I want
to use sensord for is to have some status messages recorded
to syslog. Why should I install that x11-libs/cairo graphics
library and rrdtool stuff???


Likely sensord does a lot more than recording to syslog.


man sensord:

DESCRIPTION
Sensord is a daemon that can be used to periodically log
sensor readings from hardware health-monitoring chips to
syslog(3) ***OR*** a round-robin database (RRD) and to alert
when a sensor alarm is signalled; for example, if a fan fails,
a temperature limit is exceeded, etc.

You see that big fat ***OR*** there? syslog or RRD. And I think
even gentoo-user should have the right to choose what he wants
to do with those sensor-readings. Definitelly I'm against any
x11-libs on my server, be it x11-misc/read-edid or x11-libs/cairo.

BTW, sensord can write data to round-robin database even if no
rrd-tool is installed. There's no need to put net-analyzer/rrdtool
as a dependency...

Jarry

--
___
This mailbox accepts e-mails only from selected mailing-lists!
Everything else is considered to be spam and therefore deleted.



Re: [gentoo-user] lm_sensors: dependency problem...

2009-08-23 Thread Albert Hopkins
On Sun, 2009-08-23 at 14:45 +0200, Jarry wrote:
[...]
 man sensord:
 
 DESCRIPTION
 Sensord is a daemon that can be used to periodically log
 sensor readings from hardware health-monitoring chips to
 syslog(3) ***OR*** a round-robin database (RRD) and to alert
 when a sensor alarm is signalled; for example, if a fan fails,
 a temperature limit is exceeded, etc.
 
 You see that big fat ***OR*** there? syslog or RRD. And I think
 even gentoo-user should have the right to choose what he wants
 to do with those sensor-readings. Definitelly I'm against any
 x11-libs on my server, be it x11-misc/read-edid or x11-libs/cairo.
 
 BTW, sensord can write data to round-robin database even if no
 rrd-tool is installed. There's no need to put net-analyzer/rrdtool
 as a dependency...

So if you believe there is a bug with the ebuild, you can submit a bug
report to bugs.gentoo.org.  As always, patches are welcomed.

-a




Re: [gentoo-user] lm_sensors: dependency problem...

2009-08-23 Thread Stroller


On 23 Aug 2009, at 14:02, Albert Hopkins wrote:

...
So if you believe there is a bug with the ebuild, you can submit a bug
report to bugs.gentoo.org.  As always, patches are welcomed.


I assume that the RDEPEND was added because decode-edid.pl was  
supplied by upstream (at least this is how I choose the interpret  
TFC). Therefore it is better to address with a bug or patch upstream,  
not on b.g.o


Stroller.




Re: [gentoo-user] lm_sensors: dependency problem...

2009-08-23 Thread Albert Hopkins
On Sun, 2009-08-23 at 15:05 +0100, Stroller wrote:
 On 23 Aug 2009, at 14:02, Albert Hopkins wrote:
  ...
  So if you believe there is a bug with the ebuild, you can submit a bug
  report to bugs.gentoo.org.  As always, patches are welcomed.
 
 I assume that the RDEPEND was added because decode-edid.pl was  
 supplied by upstream (at least this is how I choose the interpret  
 TFC). Therefore it is better to address with a bug or patch upstream,  
 not on b.g.o

Yeah I originally suggested working with upstream.  Gentoo would also be
involved if it were to be an optional (i.e. USE-flag kind of thing).

-a





Re: [gentoo-user] lm_sensors: dependency problem...

2009-08-23 Thread Mike Edenfield

On 8/23/2009 8:45 AM, Jarry wrote:

Albert Hopkins wrote:

On Sun, 2009-08-23 at 09:42 +0200, Jarry wrote:



# emerge --pretend lm_sensors
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild N ] sys-fs/sysfsutils-2.1.0
[ebuild N ] x11-misc/read-edid-1.4.2
[ebuild N ] sys-apps/lm_sensors-2.10.7 USE=-sensord


What is that x11-misc/read-edid good for? I do not want to pull
the whole x11 stuff with it, as this is a server with no graphics.



I agree with the original poster of this resolved bug:
pulling in x11-stuff to server just to be able to monitor
its temperatures is simply dangerous and risky...


read-edid is only tangentially related to X.  It doesn't use 
any X libraries, or even require X to be installed to run. 
It perhaps shouldn't even be in the x11-misc category, but 
that's entirely cosmetic.


Also, I noted that lm_sensors-3.0 doesn't have this 
dependency anymore, so it looks like it was handled upstream.



Next, I want to use sensord for monitoring, so I modified
package.use and tried it once more:


# echo sys-apps/lm_sensors sensord  /etc/portage/package.use
# emerge --pretend lm_sensors
These are the packages that would be merged, in order:
Calculating dependencies... done!

emerge: there are no ebuilds built with USE flags to satisfy
=x11-libs/cairo-1.4.6[svg].
!!! One of the following packages is required to complete your request:
- x11-libs/cairo-1.8.6-r1 (Change USE: +svg)
(dependency required by net-analyzer/rrdtool-1.3.8 [ebuild])
(dependency required by sys-apps/lm_sensors-2.10.7 [ebuild])
(dependency required by lm_sensors [argument])


Now I do not understand it at all. Why rrdtool? All I want
to use sensord for is to have some status messages recorded
to syslog. Why should I install that x11-libs/cairo graphics
library and rrdtool stuff???


Likely sensord does a lot more than recording to syslog.


man sensord:

DESCRIPTION
Sensord is a daemon that can be used to periodically log
sensor readings from hardware health-monitoring chips to
syslog(3) ***OR*** a round-robin database (RRD) and to alert
when a sensor alarm is signalled; for example, if a fan fails,
a temperature limit is exceeded, etc.

You see that big fat ***OR*** there? syslog or RRD. And I think
even gentoo-user should have the right to choose what he wants
to do with those sensor-readings. Definitelly I'm against any
x11-libs on my server, be it x11-misc/read-edid or x11-libs/cairo.

BTW, sensord can write data to round-robin database even if no
rrd-tool is installed. There's no need to put net-analyzer/rrdtool
as a dependency...


Tell that to the upstream:

make: *** No rule to make target `rrd.h', needed by 
`prog/sensord/rrd.rd'.  Stop.


--Mike