Bug 184759 - Can't install net-mgmt/nagios-plugins
Summary: Can't install net-mgmt/nagios-plugins
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Dmitry Sivachenko
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-14 06:20 UTC by Pavel Timofeev
Modified: 2013-12-14 16:00 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel Timofeev 2013-12-14 06:20:00 UTC
nagios-plugins can't be installed after upgrade to 1.5,1.
Here is output:
...........
/bin/mkdir -p /usr/ports/net-mgmt/nagios-plugins/work/stage/usr/local/share
installing fr.gmo as /usr/ports/net-mgmt/nagios-plugins/work/stage/usr/local/share/locale/fr/LC_MESSAGES/nagios-plugins.mo
installing de.gmo as /usr/ports/net-mgmt/nagios-plugins/work/stage/usr/local/share/locale/de/LC_MESSAGES/nagios-plugins.mo
if test "nagios-plugins" = "gettext-tools"; then \
  /bin/mkdir -p /usr/ports/net-mgmt/nagios-plugins/work/stage/usr/local/share/gettext/po; \
  for file in Makefile.in.in remove-potcdate.sin    Makevars.template; do \
    install  -o root -g wheel -m 444 ./$file \
                    /usr/ports/net-mgmt/nagios-plugins/work/stage/usr/local/share/gettext/po/$file; \
  done; \
  for file in Makevars; do \
    rm -f /usr/ports/net-mgmt/nagios-plugins/work/stage/usr/local/share/gettext/po/$file; \
  done; \
else \
  : ; \
fi
gmake[1]: Leaving directory `/usr/ports/net-mgmt/nagios-plugins/work/nagios-plugins-1.5/po'
gmake[1]: Entering directory `/usr/ports/net-mgmt/nagios-plugins/work/nagios-plugins-1.5'
gmake[2]: Entering directory `/usr/ports/net-mgmt/nagios-plugins/work/nagios-plugins-1.5'
gmake[2]: Nothing to be done for `install-exec-am'.
gmake[2]: Nothing to be done for `install-data-am'.
gmake[2]: Leaving directory `/usr/ports/net-mgmt/nagios-plugins/work/nagios-plugins-1.5'
gmake[1]: Leaving directory `/usr/ports/net-mgmt/nagios-plugins/work/nagios-plugins-1.5'
====> Compressing man pages (compress-man)
===>  Building package for nagios-plugins-1.5,1
Creating package /usr/ports/net-mgmt/nagios-plugins/work/nagios-plugins-1.5,1.tbz
Registering depends: gettext-0.18.3.1 libiconv-1.14_1 perl5-5.16.3_4 openldap-sasl-client-2.4.38 radiusclient-0.5.6_1 cyrus-sasl-2.1.26_3.
Creating bzip'd tar ball in '/usr/ports/net-mgmt/nagios-plugins/work/nagios-plugins-1.5,1.tbz'
tar: libexec/nagios/check_radius: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors.
pkg_create: make_dist: tar command failed with code 256
*** [do-package] Error code 1

Stop in /usr/ports/net-mgmt/nagios-plugins.
*** [/usr/ports/net-mgmt/nagios-plugins/work/.package_done.nagios-plugins._usr_local] Error code 1

Stop in /usr/ports/net-mgmt/nagios-plugins.
*** [install] Error code 1

Stop in /usr/ports/net-mgmt/nagios-plugins.

===>>> Installation of nagios-plugins-1.5,1 (net-mgmt/nagios-plugins) failed
===>>> Aborting update

===>>> Killing background jobs
Terminated

===>>> You can restart from the point of failure with this command line:
       portmaster <flags> net-mgmt/nagios-plugins

===>>> Exiting

How-To-Repeat: try to install net-mgmt/nagios-plugins
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-12-14 06:20:07 UTC
Responsible Changed
From-To: freebsd-ports-bugs->demon

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2013-12-14 15:56:36 UTC
Author: demon
Date: Sat Dec 14 15:56:27 2013
New Revision: 336455
URL: http://svnweb.freebsd.org/changeset/ports/336455

Log:
  Fix build of check_radius.
  
  PR:		184759
  Patch from Niclas Zeising <zeising@daemonic.se>

Modified:
  head/net-mgmt/nagios-plugins/Makefile
  head/net-mgmt/nagios-plugins/files/patch-configure.in

Modified: head/net-mgmt/nagios-plugins/Makefile
==============================================================================
--- head/net-mgmt/nagios-plugins/Makefile	Sat Dec 14 15:46:25 2013	(r336454)
+++ head/net-mgmt/nagios-plugins/Makefile	Sat Dec 14 15:56:27 2013	(r336455)
@@ -3,6 +3,7 @@
 
 PORTNAME=	nagios-plugins
 PORTVERSION=	1.5
+PORTREVISION=	1
 PORTEPOCH=	1
 CATEGORIES=	net-mgmt
 MASTER_SITES=	https://www.nagios-plugins.org/download/
@@ -119,7 +120,7 @@ USE_PGSQL=	YES
 CONFIGURE_ARGS+=	--with-pgsql=${LOCALBASE}
 PLIST_SUB+=	SUB_PGSQL=""
 .else
-CONFIGURE_ARGS+=	--with-pgsql=${NONEXISTENT}
+CONFIGURE_ARGS+=	--with-pgsql=no
 PLIST_SUB+=	SUB_PGSQL="@comment "
 .endif
 

Modified: head/net-mgmt/nagios-plugins/files/patch-configure.in
==============================================================================
--- head/net-mgmt/nagios-plugins/files/patch-configure.in	Sat Dec 14 15:46:25 2013	(r336454)
+++ head/net-mgmt/nagios-plugins/files/patch-configure.in	Sat Dec 14 15:56:27 2013	(r336455)
@@ -1,5 +1,5 @@
 --- configure.in.orig	2013-10-02 17:22:21.000000000 +0200
-+++ configure.in	2013-12-09 16:12:25.845469460 +0100
++++ configure.in	2013-12-14 14:27:40.067139387 +0100
 @@ -12,8 +12,6 @@
  RELEASE=1
  AC_SUBST(RELEASE)
@@ -17,11 +17,7 @@
  
  AM_PROG_CC_C_O
  
-@@ -211,11 +210,12 @@
- 	ACX_HELP_STRING([--with-pgsql=DIR],
- 		[sets path to pgsql installation]),
- 	PGSQL=$withval,)
-+if test -d "$PGSQL"; then
+@@ -214,8 +213,8 @@
  AC_CHECK_LIB(crypt,main)
  if test "$ac_cv_lib_crypt_main" = "yes" -a "x$PGSQL" != "xno"; then
    if test -n "$PGSQL"; then
@@ -32,7 +28,7 @@
    fi
    AC_CHECK_LIB(pq,PQsetdbLogin,,,-lcrypt)
    if test "$ac_cv_lib_pq_PQsetdbLogin" = "yes"; then
-@@ -259,10 +259,10 @@
+@@ -259,10 +258,10 @@
  dnl Check for DBI libraries
  AS_IF([test "x$with_dbi" != "xno"], [
    _SAVEDLIBS="$LIBS"
@@ -45,7 +41,7 @@
      AC_SUBST(DBILIBS)
    else
      AC_MSG_WARN([Skipping dbi plugin])
-@@ -276,17 +276,13 @@
+@@ -276,22 +275,17 @@
  dnl Check for radius libraries
  AS_IF([test "x$with_radius" != "xno"], [
    _SAVEDLIBS="$LIBS"
@@ -67,7 +63,12 @@
      else
        AC_MSG_WARN([Skipping radius plugin])
        AC_MSG_WARN([install radius libs to compile this plugin (see REQUIREMENTS).])
-@@ -300,12 +296,13 @@
+     fi
+-  fi
+   LIBS="$_SAVEDLIBS"
+ ])
+ 
+@@ -300,12 +294,13 @@
  dnl Check for LDAP libraries
  AS_IF([test "x$with_ldap" != "xno"], [
    _SAVEDLIBS="$LIBS"
@@ -85,7 +86,7 @@
      AC_CHECK_FUNCS(ldap_set_option)
      EXTRAS="$EXTRAS check_ldap"
    	AC_CHECK_FUNCS(ldap_init ldap_set_option ldap_get_option ldap_start_tls_s)
-@@ -729,22 +726,10 @@
+@@ -729,22 +724,10 @@
  dnl 	ac_cv_ps_cols=8
  dnl 	AC_MSG_RESULT([$ac_cv_ps_command])
  
@@ -111,7 +112,7 @@
  then
  	ac_cv_ps_varlist="[procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]"
  	ac_cv_ps_command="$PATH_TO_PS -axwo 'stat uid pid ppid vsz rss pcpu comm args'"
-@@ -752,9 +737,8 @@
+@@ -752,9 +735,8 @@
  	ac_cv_ps_cols=9
  	AC_MSG_RESULT([$ac_cv_ps_command])
  
@@ -123,7 +124,7 @@
  elif ps -axwo 'stat uid pid ppid vsz rss pcpu ucomm command' 2>/dev/null | \
  	egrep -i ["^ *STAT +UID +PID +PPID +VSZ +RSS +%CPU +UCOMM +COMMAND"] > /dev/null
  then
-@@ -764,209 +748,6 @@
+@@ -764,209 +746,6 @@
  	ac_cv_ps_cols=9
  	AC_MSG_RESULT([$ac_cv_ps_command])
  
@@ -333,7 +334,7 @@
  else
  	AC_MSG_WARN([unable to find usable ps syntax - check_procs and check_nagios will not be compiled])
  fi
-@@ -1354,6 +1135,8 @@
+@@ -1354,6 +1133,8 @@
  	AC_MSG_WARN([Get smbclient from Samba.org to monitor SMB shares])
  fi
  
@@ -342,7 +343,7 @@
  AC_PATH_PROG(PATH_TO_SNMPGET,snmpget)
  AC_ARG_WITH(snmpget_command,
              ACX_HELP_STRING([--with-snmpget-command=PATH],
-@@ -1384,7 +1167,10 @@
+@@ -1384,7 +1165,10 @@
  else
  	AC_MSG_WARN([Tried $PERL - install Net::SNMP perl module if you want to use the perl snmp plugins])
  fi
@@ -353,7 +354,7 @@
  AC_PATH_PROG(PATH_TO_QUAKESTAT,quakestat)
  AC_PATH_PROG(PATH_TO_QSTAT,qstat)
  AC_ARG_WITH(qstat_command,
-@@ -1409,7 +1195,10 @@
+@@ -1409,7 +1193,10 @@
  	AC_DEFINE_UNQUOTED(PATH_TO_QSTAT,"$ac_cv_path_to_qstat",
  		[path to qstat/quakestat])
  fi
@@ -364,7 +365,7 @@
  AC_PATH_PROG(PATH_TO_FPING,fping)
  AC_PATH_PROG(PATH_TO_FPING6,fping6)
  
-@@ -1430,6 +1219,7 @@
+@@ -1430,6 +1217,7 @@
  else
  	AC_MSG_WARN([Get fping from http://www.fping.com in order to make check_fping plugin])
  fi
@@ -372,7 +373,7 @@
  
  AC_PATH_PROG(PATH_TO_SSH,ssh)
  AC_ARG_WITH(ssh_command,
-@@ -1497,32 +1287,12 @@
+@@ -1497,32 +1285,12 @@
  dnl end if for PATH_TO_SWAP
  fi
  
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Dmitry Sivachenko freebsd_committer freebsd_triage 2013-12-14 15:56:50 UTC
State Changed
From-To: open->closed

Fixed, thanks for your report. 
Please update your ports tree and try to install again.