<!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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=479051716-03082009><FONT face=Arial 
color=#0000ff size=2>BTW, in the first answer&nbsp;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>&nbsp;</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>&nbsp;</DIV><BR>
<DIV class=OutlookMessageHeader lang=fr dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>De&nbsp;:</B> Antoine Gatineau 
[mailto:antoine.gatineau@alcatel-lucent.com] <BR><B>Envoyé&nbsp;:</B> lundi 3 
août 2009 18:11<BR><B>À&nbsp;:</B> 'Arnaud Quette'<BR><B>Cc&nbsp;:</B> 
'nut-upsuser'; antoine.gatineau@alcatel-lucent.com<BR><B>Objet&nbsp;:</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>&nbsp;</DIV>
<DIV class=OutlookMessageHeader lang=fr dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>De&nbsp;:</B> Arnaud Quette 
[mailto:aquette.dev@gmail.com] <BR><B>Envoyé&nbsp;:</B> lundi 3 août 2009 
16:16<BR><B>À&nbsp;:</B> Antoine Gatineau<BR><B>Cc&nbsp;:</B> 
nut-upsuser<BR><B>Objet&nbsp;:</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>&nbsp;Now 
    I am rebuilding an el4 rpm based on el5 src.rpm.<BR>&nbsp;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&amp;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>&nbsp;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>&nbsp;I put the RHEL5 spec file in attachement 
    also.<BR>&nbsp;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 &lt;<A 
    href="mailto:antoine.gatineau@alcatel-lucent.com" 
    target=_blank>antoine.gatineau@alcatel-lucent.com</A> &lt;mailto:<A 
    href="mailto:antoine.gatineau@alcatel-lucent.com" 
    target=_blank>antoine.gatineau@alcatel-lucent.com</A>&gt;&gt; 
    <DIV>
    <DIV></DIV>
    <DIV class=h5><BR><BR>&nbsp; &nbsp;Thanks for the info.<BR>&nbsp; &nbsp; 
    &nbsp; &nbsp;I use the first approach.<BR>&nbsp; &nbsp;So, if I understood 
    well, the nut-hal support (ie, the --with-hal)<BR>&nbsp; &nbsp;is used only 
    for the 2nd approach. Udev rules are dealt when using<BR>&nbsp; 
    &nbsp;--with-usb.<BR>&nbsp; &nbsp;Is that correct?<BR><BR><BR>mostly! the 
    udev rules are used in both cases...<BR>&nbsp;<BR>&nbsp; &nbsp;If so, I 
    might be able to rebuild the nut-2.4.1 pachage for RHEL4.<BR>&nbsp; 
    &nbsp;For packaging help (I think I might need some for the next 
    stage<BR>&nbsp; &nbsp;;-) ) do I continue this thread or use the 
    nut-packaging list (or<BR>&nbsp; &nbsp;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&amp;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>&nbsp;<BR><BR>&nbsp; 
    &nbsp;------------------------------------------------------------------------<BR>&nbsp; 
    &nbsp;*De :* Arnaud Quette [mailto:<A href="mailto:aquette.dev@gmail.com" 
    target=_blank>aquette.dev@gmail.com</A><BR>&nbsp; &nbsp;&lt;mailto:<A 
    href="mailto:aquette.dev@gmail.com" 
    target=_blank>aquette.dev@gmail.com</A>&gt;]<BR>&nbsp; &nbsp;*Envoyé :* 
    vendredi 31 juillet 2009 21:41<BR>&nbsp; &nbsp;*À :* Antoine 
    Gatineau<BR>&nbsp; &nbsp;*Cc :* Charles Lepple; nut-upsuser<BR><BR>&nbsp; 
    &nbsp;*Objet :* Re: [Nut-upsuser] Usbhip-ups going wild<BR><BR>&nbsp; 
    &nbsp;salut Antoine,<BR><BR>&nbsp; &nbsp;2009/7/31 Antoine Gatineau &lt;<A 
    href="mailto:antoine.gatineau@alcatel-lucent.com" 
    target=_blank>antoine.gatineau@alcatel-lucent.com</A><BR></DIV></DIV>&nbsp; 
    &nbsp;&lt;mailto:<A href="mailto:antoine.gatineau@alcatel-lucent.com" 
    target=_blank>antoine.gatineau@alcatel-lucent.com</A>&gt;&gt; 
    <DIV>
    <DIV></DIV>
    <DIV class=h5><BR><BR>&nbsp; &nbsp; &nbsp; &nbsp;I might ask a stupid 
    question but isn't hal used to manage the<BR>&nbsp; &nbsp; &nbsp; &nbsp;UPS 
    device<BR>&nbsp; &nbsp; &nbsp; &nbsp;and connection through udev 
    rules?<BR>&nbsp; &nbsp; &nbsp; &nbsp;I though that hal was mostly usefull 
    with usb...<BR><BR>&nbsp; &nbsp; &nbsp; &nbsp;In the nut-hal document, it is 
    said that HAL "allows NUT<BR>&nbsp; &nbsp; &nbsp; &nbsp;drivers to feed 
    the<BR>&nbsp; &nbsp; &nbsp; &nbsp;HAL system, which will itself 
    feeds<BR>&nbsp; &nbsp; &nbsp; &nbsp;applications such as the Gnome Power 
    Manager"<BR>&nbsp; &nbsp; &nbsp; &nbsp;Does that mean hal is not used for 
    managing the battery itself<BR>&nbsp; &nbsp; &nbsp; &nbsp;but sees 
    the<BR>&nbsp; &nbsp; &nbsp; &nbsp;nut driver as a "pseudo real 
    &nbsp;battery"? In this case, indeed,<BR>&nbsp; &nbsp; &nbsp; &nbsp;I do not 
    need<BR>&nbsp; &nbsp; &nbsp; &nbsp;it.<BR>&nbsp; &nbsp; &nbsp; &nbsp;I use 
    upsmon for power management.<BR><BR><BR>&nbsp; &nbsp;not at all. there are 2 
    approaches:<BR>&nbsp; &nbsp;- the standard one, where you have a driver 
    (usbhid-ups), upsd and<BR>&nbsp; &nbsp;upsmon.<BR>&nbsp; &nbsp;udev only 
    applies the device privileges rules.<BR>&nbsp; &nbsp;- the Integrated Power 
    Management approach, where NUT USB driver<BR>&nbsp; &nbsp;can feed data to 
    HAL (instead of upsd), replacing the basic<BR>&nbsp; &nbsp;USB/HID support 
    in HAL.<BR>&nbsp; &nbsp;Note that HAL is being superseded by DeviceKit and 
    DeviceKit-power.<BR>&nbsp; &nbsp;This approach will probably be 
    abandonned...<BR><BR><BR>&nbsp; &nbsp; &nbsp; &nbsp;-----Message 
    d'origine-----<BR>&nbsp; &nbsp; &nbsp; &nbsp;De : Charles Lepple [mailto:<A 
    href="mailto:clepple@gmail.com" 
    target=_blank>clepple@gmail.com</A><BR>&nbsp; &nbsp; &nbsp; 
    &nbsp;&lt;mailto:<A href="mailto:clepple@gmail.com" 
    target=_blank>clepple@gmail.com</A>&gt;]<BR>&nbsp; &nbsp; &nbsp; 
    &nbsp;Envoyé : vendredi 31 juillet 2009 15:08<BR>&nbsp; &nbsp; &nbsp; 
    &nbsp;À : Antoine Gatineau<BR>&nbsp; &nbsp; &nbsp; &nbsp;Cc : 
    'nut-upsuser'<BR>&nbsp; &nbsp; &nbsp; &nbsp;Objet : Re: [Nut-upsuser] 
    Usbhip-ups going wild<BR><BR>&nbsp; &nbsp; &nbsp; &nbsp;On Jul 31, 2009, at 
    9:03 AM, Antoine Gatineau wrote:<BR><BR>&nbsp; &nbsp; &nbsp; &nbsp;&gt; 
    Indeed, nut depends on some packages not the distribution<BR>&nbsp; &nbsp; 
    &nbsp; &nbsp;itself.<BR>&nbsp; &nbsp; &nbsp; &nbsp;&gt; You are surely 
    right.<BR>&nbsp; &nbsp; &nbsp; &nbsp;&gt;<BR>&nbsp; &nbsp; &nbsp; &nbsp;&gt; 
    Anyway, here are the links :<BR>&nbsp; &nbsp; &nbsp; &nbsp;&gt; RHEL 4 : <A 
    href="ftp://rpmfind.net/linux/EPEL/4ES/SRPMS/" 
    target=_blank>ftp://rpmfind.net/linux/EPEL/4ES/SRPMS/</A><BR>&nbsp; &nbsp; 
    &nbsp; &nbsp;&gt; nut-2.2.0-4.el4.src.rpm<BR>&nbsp; &nbsp; &nbsp; &nbsp;&gt; 
    RHEL 5 : nut-2.4.1 found only on this one<BR>&nbsp; &nbsp; &nbsp; &nbsp;&gt; 
    <A href="http://wolfy.fedorapeople.org/nut/SRPM/" 
    target=_blank>http://wolfy.fedorapeople.org/nut/SRPM/</A><BR><BR><BR>&nbsp; 
    &nbsp;use that one.<BR>&nbsp; &nbsp;install it and edit the spec.<BR>&nbsp; 
    &nbsp;modifying --with-all by --with-usb should be sufficient.<BR><BR>&nbsp; 
    &nbsp;cheers,<BR>&nbsp; &nbsp;Arnaud<BR>&nbsp; &nbsp;-- &nbsp; &nbsp;Linux / 
    Unix Expert R&amp;D - Eaton - <A href="http://www.eaton.com/mgeops" 
    target=_blank>http://www.eaton.com/mgeops</A><BR>&nbsp; &nbsp;Network UPS 
    Tools (NUT) Project Leader -<BR>&nbsp; &nbsp;<A 
    href="http://www.networkupstools.org/" 
    target=_blank>http://www.networkupstools.org/</A><BR>&nbsp; &nbsp;Debian 
    Developer - <A href="http://www.debian.org" 
    target=_blank>http://www.debian.org</A><BR>&nbsp; &nbsp;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>