Date: Tue, 24 Aug 2010 16:11:00 GMT From: Pippo Gysin <pippo@digris.ch> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/149941: net-mgmt/nagios-check_bacula-5.0.2 library conflict Message-ID: <201008241611.o7OGB0Vf008180@www.freebsd.org> Resent-Message-ID: <201008241620.o7OGK1G2046787@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 149941 >Category: ports >Synopsis: net-mgmt/nagios-check_bacula-5.0.2 library conflict >Confidential: no >Severity: critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Tue Aug 24 16:20:01 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Pippo Gysin >Release: FreeBSD 7.2-RELEASE-p7 >Organization: Digris AG, Basel, Switzerland >Environment: FreeBSD monitor1.digris.ch 7.2-RELEASE-p7 FreeBSD 7.2-RELEASE-p7 #0: Mon Apr 5 02:40:28 CEST 2010 xxx@dapoli.digris.ch:/usr/obj/usr/src/sys/Digris-DL380G5-Kernel amd64 >Description: Upgrading the port `net-mgmt/nagios_check-bacula` left me with a faulty plugin, which produced following log entries: `2010-08-24 12:08:59.223205500 /libexec/ld-elf.so.1: Shared object "libbac.so.1" not found, required by "check_bacula"` On the same machine, sysutils/bacula-client is also installed. >How-To-Repeat: >Fix: Patch `net-mgmt/nagios_check-bacula/Makefile` and enforce compilation of the shared library `libbac.so` by setting `WITHOUT_LIBBAC`to "NO" --- Makefile 2010-08-24 18:09:21.000000000 +0200 +++ Makefile.old 2010-08-24 17:34:43.000000000 +0200 @@ -29,7 +29,7 @@ .if exists(${LOCALBASE}/lib/libbac.so.${PORTVERSION:R:R}) LIB_DEPENDS+= bac.${PORTVERSION:R:R}:${PORTSDIR}/sysutils/bacula-client -WITHOUT_LIBBAC= NO +WITHOUT_LIBBAC= YES PLIST_SUB+= INDEP="@comment " .else PLIST_SUB+= INDEP="" After that, make deinstall, make install clean, restart Nagios... For me, it worked >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008241611.o7OGB0Vf008180>