inconsistent specfile for x86_64 arch

SCHAER Frederic frederic.schaer at cea.fr
Wed Oct 31 11:47:57 CET 2007


Hi list,

 

I just tried to buid RPM packages for nagios 3.0b5 on a x86_64 redhat
node and... compilation failed because :

Checking for unpackaged file(s): /usr/lib/rpm/check-files
/var/tmp/nagios-buildroot

error: Installed (but unpackaged) file(s) found:

   /usr/lib/nagios/cgi/avail.cgi

   /usr/lib/nagios/cgi/cmd.cgi

   /usr/lib/nagios/cgi/config.cgi

   /usr/lib/nagios/cgi/extinfo.cgi

   /usr/lib/nagios/cgi/histogram.cgi

   /usr/lib/nagios/cgi/history.cgi

   /usr/lib/nagios/cgi/notifications.cgi

   /usr/lib/nagios/cgi/outages.cgi

   /usr/lib/nagios/cgi/showlog.cgi

   /usr/lib/nagios/cgi/status.cgi

   /usr/lib/nagios/cgi/statusmap.cgi

   /usr/lib/nagios/cgi/statuswml.cgi

   /usr/lib/nagios/cgi/statuswrl.cgi

   /usr/lib/nagios/cgi/summary.cgi

   /usr/lib/nagios/cgi/tac.cgi

   /usr/lib/nagios/cgi/trends.cgi

 

When I look in the rpm buildroot, I see this :

 

[nagios-buildroot]# ll usr/lib/nagios/cgi/

total 3292

-rwxrwxr-x  1 root root 238544 Oct 31 11:42 avail.cgi

-rwxrwxr-x  1 root root 228400 Oct 31 11:42 cmd.cgi

-rwxrwxr-x  1 root root 194160 Oct 31 11:42 config.cgi

-rwxrwxr-x  1 root root 244208 Oct 31 11:42 extinfo.cgi

-rwxrwxr-x  1 root root 198896 Oct 31 11:42 histogram.cgi

-rwxrwxr-x  1 root root 179536 Oct 31 11:42 history.cgi

-rwxrwxr-x  1 root root 177040 Oct 31 11:42 notifications.cgi

-rwxrwxr-x  1 root root 172912 Oct 31 11:42 outages.cgi

-rwxrwxr-x  1 root root 177296 Oct 31 11:42 showlog.cgi

-rwxrwxr-x  1 root root 235792 Oct 31 11:42 status.cgi

-rwxrwxr-x  1 root root 197840 Oct 31 11:42 statusmap.cgi

-rwxrwxr-x  1 root root 189904 Oct 31 11:42 statuswml.cgi

-rwxrwxr-x  1 root root 177104 Oct 31 11:42 statuswrl.cgi

-rwxrwxr-x  1 root root 197584 Oct 31 11:42 summary.cgi

-rwxrwxr-x  1 root root 189392 Oct 31 11:42 tac.cgi

-rwxrwxr-x  1 root root 203696 Oct 31 11:42 trends.cgi

[nagios-buildroot]# ll usr/lib64/nagios/cgi/

total 12

-rwxrwxr-x  1 root root 5335 Oct 31 11:42 traceroute.cgi

 

It looks like the non-64 libs are not packaged.

 

When I change in the spec file references to ${_libdir} and write
instead ${_prefix}/lib (i.e : replace all occurrences of libdir with
"prefix / lib" as can be found already in the specfile) , RPM creation
succeeds...

 

Maybe someone could correct this in the sources ?

Best regards,

 

Frederic Schaer

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20071031/625f69e6/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel


More information about the Developers mailing list