<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.3562" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=479051716-03082009><FONT face=Arial
color=#0000ff size=2>I tried to recompile without xorg-x11-devel and I get this
error :</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=479051716-03082009><FONT face=Arial
color=#0000ff size=2>configure: error: libgd not found, required for CGI
build.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=479051716-03082009><FONT face=Arial
color=#0000ff size=2>It is indeed required for nut-cgi</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=479051716-03082009><FONT face=Arial
color=#0000ff size=2>udev-devel, however, is not required.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=479051716-03082009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=479051716-03082009><FONT face=Arial
color=#0000ff size=2>Anyway I made it build correctly.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=479051716-03082009><FONT face=Arial
color=#0000ff size=2>I attached nut.spec (modified for RHEL4) and nut.spec.ori
(original spec file for RHEL5) for info.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=479051716-03082009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=479051716-03082009><FONT face=Arial
color=#0000ff size=2>There were no %files entry for libhidups, libhid.usermap
and 20-ups-nut-device.fdi in the original spec file, so I added them. I'm not an
rpm building expert but I wonder how it could work...</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=479051716-03082009><FONT face=Arial
color=#0000ff size=2>I also removed hal, powerman and netxml-ups man page and
related files as they are not used in this package.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=479051716-03082009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=479051716-03082009><FONT face=Arial
color=#0000ff size=2>I didn't test it running yet but I expect it to be OK. I'll
come back to you with results. </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=479051716-03082009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=479051716-03082009><FONT face=Arial
color=#0000ff size=2>BTW, in the first answer to this (too?) long thread,
Arjen said that there were lot of bug fixes and performance improvement done
since nut-2.2.0. Is there a bug tracker to seek if my issues will be solved with
this new one?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=479051716-03082009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=479051716-03082009><FONT face=Arial
color=#0000ff size=2>Thanks</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=479051716-03082009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV><BR>
<DIV class=OutlookMessageHeader lang=fr dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>De :</B> Antoine Gatineau
[mailto:antoine.gatineau@alcatel-lucent.com] <BR><B>Envoyé :</B> lundi 3
août 2009 18:11<BR><B>À :</B> 'Arnaud Quette'<BR><B>Cc :</B>
'nut-upsuser'; antoine.gatineau@alcatel-lucent.com<BR><B>Objet :</B> RE:
[Nut-upsuser] Usbhip-ups going wild<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr align=left><SPAN lang=FR>
<P><SPAN class=470430316-03082009><FONT color=#0000ff>Looking at the configure
output, I though nut-cgi was using X11 and glib stuff. I will
check.</FONT></SPAN></P>
<P><SPAN class=470430316-03082009><FONT face=Arial color=#0000ff size=2>It looks
good other wise. I had to disable hal, powerman and neonxml feature to get it
wotk.</FONT></SPAN></P>
<P><SPAN class=470430316-03082009><FONT face=Arial color=#0000ff size=2>I still
got some with installed but unpackaged file that need some modification in the
spec file. I will update soon.</FONT></SPAN></P>
<P><SPAN class=470430316-03082009><FONT face=Arial color=#0000ff size=2>Patrick
doesn't work anymore on this project but yes indeed we work in the same dept. He
contributed a bit to nut project some time ago if I remember well. So I am
continuing part of is job now.</FONT></SPAN></P></SPAN></DIV>
<DIV><SPAN class=470430316-03082009></SPAN><FONT face=Arial><FONT
color=#0000ff><FONT size=2>Antoine</FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=470430316-03082009></SPAN></FONT></FONT></FONT><BR> </DIV>
<DIV class=OutlookMessageHeader lang=fr dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>De :</B> Arnaud Quette
[mailto:aquette.dev@gmail.com] <BR><B>Envoyé :</B> lundi 3 août 2009
16:16<BR><B>À :</B> Antoine Gatineau<BR><B>Cc :</B>
nut-upsuser<BR><B>Objet :</B> Re: [Nut-upsuser] Usbhip-ups going
wild<BR></FONT><BR></DIV>
<DIV></DIV>just to complete a bit Manuel's answer<BR><BR>
<DIV class=gmail_quote>2009/8/3 Manuel Wolfshant<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV class=im>Antoine Gatineau wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Ok,<BR> Now
I am rebuilding an el4 rpm based on el5 src.rpm.<BR> I will remove the
--with-hal option in the configure part. In order a full featured rpm, I'm
trying to keep every option unless hal.<BR>But I am having problems with
dependencies. libX11-devel,<BR></BLOCKQUOTE></DIV>xorg-x11-devel<BR><BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">libXpm-devel,<BR></BLOCKQUOTE>still
xorg-x11-devel, if I am not mistaken<BR><BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">dbus-glib-devel<BR></BLOCKQUOTE>dbus-devel<BR></BLOCKQUOTE>
<DIV><BR>you can drop this one since it's for the nut-hal package<BR>(note that
you might need to remove the nut-hal package definitions throughout the
.spec...) <BR><BR></DIV>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid"><BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">and
powerman-devel<BR></BLOCKQUOTE>not available, afaik<BR>IIRC, I had to compile
it for RHEL-5, and in turn it required some other packages (a newer curl, for
instance)<BR>I suggest to drop its usage<BR></BLOCKQUOTE>
<DIV><BR>yup, this part is for the powerman (external PDU) support.<BR>just in
case you want it: <A
href="http://sourceforge.net/projects/powerman/files/">http://sourceforge.net/projects/powerman/files/</A><BR><BR>btw,
are you working with Patrick Agrain?<BR><BR>Arnaud<BR>-- <BR>Linux / Unix Expert
R&D - Eaton - <A
href="http://www.eaton.com/mgeops">http://www.eaton.com/mgeops</A><BR>Network
UPS Tools (NUT) Project Leader - <A
href="http://www.networkupstools.org/">http://www.networkupstools.org/</A><BR>Debian
Developer - <A href="http://www.debian.org">http://www.debian.org</A><BR>Free
Software Developer - <A
href="http://arnaud.quette.free.fr/">http://arnaud.quette.free.fr/</A><BR><BR></DIV>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid"><BR><BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV class=im>do not exist in RHEL 4... These are for RHEL5.<BR> Does
anyone know the equivalent dependencies for RHEL4?<BR>Another possibility is
to disable the option that requires thoses dependencies. I didn't find a
document explaining that so could you help.<BR>By disabling the troublemaker
options, I can build a package for my particuliar configuration. Of course
it will not help others...<BR> I put the RHEL5 spec file in attachement
also.<BR> Merci,<BR>Antoine<BR><BR>------------------------------------------------------------------------<BR>*De
:* Arnaud Quette [mailto:<A href="mailto:aquette.dev@gmail.com"
target=_blank>aquette.dev@gmail.com</A>]<BR>*Envoyé :* lundi 3 août 2009
11:09<BR>*À :* Antoine Gatineau<BR>*Cc :* Charles Lepple;
nut-upsuser<BR>*Objet :* Re: [Nut-upsuser] Usbhip-ups going
wild<BR><BR>salut Antoine<BR><BR></DIV>2009/8/3 Antoine Gatineau <<A
href="mailto:antoine.gatineau@alcatel-lucent.com"
target=_blank>antoine.gatineau@alcatel-lucent.com</A> <mailto:<A
href="mailto:antoine.gatineau@alcatel-lucent.com"
target=_blank>antoine.gatineau@alcatel-lucent.com</A>>>
<DIV>
<DIV></DIV>
<DIV class=h5><BR><BR> Thanks for the info.<BR>
I use the first approach.<BR> So, if I understood
well, the nut-hal support (ie, the --with-hal)<BR> is used only
for the 2nd approach. Udev rules are dealt when using<BR>
--with-usb.<BR> Is that correct?<BR><BR><BR>mostly! the
udev rules are used in both cases...<BR> <BR> If so, I
might be able to rebuild the nut-2.4.1 pachage for RHEL4.<BR>
For packaging help (I think I might need some for the next
stage<BR> ;-) ) do I continue this thread or use the
nut-packaging list (or<BR> both).<BR><BR><BR>no, continue using
the present thread.<BR>nut-packaging is not really active, and I've created
it originally as a placeholder for packagers discussions (related to the NUT
Packaging Standard - NPS - topic)<BR><BR>cheers,<BR>Arnaud<BR>-- <BR>Linux /
Unix Expert R&D - Eaton - <A href="http://www.eaton.com/mgeops"
target=_blank>http://www.eaton.com/mgeops</A><BR>Network UPS Tools (NUT)
Project Leader - <A href="http://www.networkupstools.org/"
target=_blank>http://www.networkupstools.org/</A><BR>Debian Developer - <A
href="http://www.debian.org" target=_blank>http://www.debian.org</A><BR>Free
Software Developer - <A href="http://arnaud.quette.free.fr/"
target=_blank>http://arnaud.quette.free.fr/</A><BR> <BR><BR>
------------------------------------------------------------------------<BR>
*De :* Arnaud Quette [mailto:<A href="mailto:aquette.dev@gmail.com"
target=_blank>aquette.dev@gmail.com</A><BR> <mailto:<A
href="mailto:aquette.dev@gmail.com"
target=_blank>aquette.dev@gmail.com</A>>]<BR> *Envoyé :*
vendredi 31 juillet 2009 21:41<BR> *À :* Antoine
Gatineau<BR> *Cc :* Charles Lepple; nut-upsuser<BR><BR>
*Objet :* Re: [Nut-upsuser] Usbhip-ups going wild<BR><BR>
salut Antoine,<BR><BR> 2009/7/31 Antoine Gatineau <<A
href="mailto:antoine.gatineau@alcatel-lucent.com"
target=_blank>antoine.gatineau@alcatel-lucent.com</A><BR></DIV></DIV>
<mailto:<A href="mailto:antoine.gatineau@alcatel-lucent.com"
target=_blank>antoine.gatineau@alcatel-lucent.com</A>>>
<DIV>
<DIV></DIV>
<DIV class=h5><BR><BR> I might ask a stupid
question but isn't hal used to manage the<BR> UPS
device<BR> and connection through udev
rules?<BR> I though that hal was mostly usefull
with usb...<BR><BR> In the nut-hal document, it is
said that HAL "allows NUT<BR> drivers to feed
the<BR> HAL system, which will itself
feeds<BR> applications such as the Gnome Power
Manager"<BR> Does that mean hal is not used for
managing the battery itself<BR> but sees
the<BR> nut driver as a "pseudo real
battery"? In this case, indeed,<BR> I do not
need<BR> it.<BR> I use
upsmon for power management.<BR><BR><BR> not at all. there are 2
approaches:<BR> - the standard one, where you have a driver
(usbhid-ups), upsd and<BR> upsmon.<BR> udev only
applies the device privileges rules.<BR> - the Integrated Power
Management approach, where NUT USB driver<BR> can feed data to
HAL (instead of upsd), replacing the basic<BR> USB/HID support
in HAL.<BR> Note that HAL is being superseded by DeviceKit and
DeviceKit-power.<BR> This approach will probably be
abandonned...<BR><BR><BR> -----Message
d'origine-----<BR> De : Charles Lepple [mailto:<A
href="mailto:clepple@gmail.com"
target=_blank>clepple@gmail.com</A><BR>
<mailto:<A href="mailto:clepple@gmail.com"
target=_blank>clepple@gmail.com</A>>]<BR>
Envoyé : vendredi 31 juillet 2009 15:08<BR>
À : Antoine Gatineau<BR> Cc :
'nut-upsuser'<BR> Objet : Re: [Nut-upsuser]
Usbhip-ups going wild<BR><BR> On Jul 31, 2009, at
9:03 AM, Antoine Gatineau wrote:<BR><BR> >
Indeed, nut depends on some packages not the distribution<BR>
itself.<BR> > You are surely
right.<BR> ><BR> >
Anyway, here are the links :<BR> > RHEL 4 : <A
href="ftp://rpmfind.net/linux/EPEL/4ES/SRPMS/"
target=_blank>ftp://rpmfind.net/linux/EPEL/4ES/SRPMS/</A><BR>
> nut-2.2.0-4.el4.src.rpm<BR> >
RHEL 5 : nut-2.4.1 found only on this one<BR> >
<A href="http://wolfy.fedorapeople.org/nut/SRPM/"
target=_blank>http://wolfy.fedorapeople.org/nut/SRPM/</A><BR><BR><BR>
use that one.<BR> install it and edit the spec.<BR>
modifying --with-all by --with-usb should be sufficient.<BR><BR>
cheers,<BR> Arnaud<BR> -- Linux /
Unix Expert R&D - Eaton - <A href="http://www.eaton.com/mgeops"
target=_blank>http://www.eaton.com/mgeops</A><BR> Network UPS
Tools (NUT) Project Leader -<BR> <A
href="http://www.networkupstools.org/"
target=_blank>http://www.networkupstools.org/</A><BR> Debian
Developer - <A href="http://www.debian.org"
target=_blank>http://www.debian.org</A><BR> Free Software
Developer - <A href="http://arnaud.quette.free.fr/"
target=_blank>http://arnaud.quette.free.fr/</A><BR><BR></DIV></DIV></BLOCKQUOTE><BR><BR>
<DIV>
<DIV></DIV>
<DIV
class=h5><BR>_______________________________________________<BR>Nut-upsuser
mailing list<BR><A href="mailto:Nut-upsuser@lists.alioth.debian.org"
target=_blank>Nut-upsuser@lists.alioth.debian.org</A><BR><A
href="http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser"
target=_blank>http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser</A><BR></DIV></DIV></BLOCKQUOTE></DIV><BR><BR></BODY></HTML>