From nobody@FreeBSD.org  Tue Aug 24 16:11:01 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 6F2241065700
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 24 Aug 2010 16:11:01 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 5EC528FC32
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 24 Aug 2010 16:11:01 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o7OGB0hQ008181
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 24 Aug 2010 16:11:00 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o7OGB0Vf008180;
	Tue, 24 Aug 2010 16:11:00 GMT
	(envelope-from nobody)
Message-Id: <201008241611.o7OGB0Vf008180@www.freebsd.org>
Date: Tue, 24 Aug 2010 16:11:00 GMT
From: Pippo Gysin <pippo@digris.ch>
To: freebsd-gnats-submit@FreeBSD.org
Subject: net-mgmt/nagios-check_bacula-5.0.2 library conflict
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         149941
>Category:       ports
>Synopsis:       [patch] net-mgmt/nagios-check_bacula-5.0.2 library conflict
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    ohauer
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 24 16:20:01 UTC 2010
>Closed-Date:    Wed Mar 30 13:16:04 UTC 2011
>Last-Modified:  Wed Mar 30 13:16:04 UTC 2011
>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:
State-Changed-From-To: open->analyzed 
State-Changed-By: ohauer 
State-Changed-When: Sun Aug 29 13:49:43 UTC 2010 
State-Changed-Why:  
I'll take it 


Responsible-Changed-From-To: freebsd-ports-bugs->ohauer 
Responsible-Changed-By: ohauer 
Responsible-Changed-When: Sun Aug 29 13:49:43 UTC 2010 
Responsible-Changed-Why:  
I'll take it 

http://www.freebsd.org/cgi/query-pr.cgi?pr=149941 

From: Olli Hauer <ohauer@FreeBSD.org>
To: bug-followup@FreeBSD.org, pippo@digris.ch, 
 Anders Troback <freebsd@troback.com>
Cc:  
Subject: Re: ports/149941: [patch] net-mgmt/nagios-check_bacula-5.0.2 library
 conflict
Date: Wed, 12 Jan 2011 01:17:48 +0100

 Ahhhm, after reading the patch again I just wonder ...
 
 The test
 .if !defined(WITHOUT_LIBBACK)
 
 does not check if the WITHOUT_LIBBACK is set to YES/NO or something else,
 it checks only if WITHOUT_LIBBAC is set or not!
 
 So what went wrong in your case??

Date: Wed, 12 Jan 2011 00:33:03 +0100
From: Olli Hauer <ohauer@FreeBSD.org>
Reply-To: ohauer@FreeBSD.org
To: Anders Troback <freebsd@troback.com>, bug-followup@FreeBSD.org, 
 pippo@digris.ch
Cc: ohauer@FreeBSD.org
Subject: Re: PR ports/149941: [patch] net-mgmt/nagios-check_bacula-5.0.2 library
 conflict

 Forward maintainer approve to bug-followup.
 
 On 2011-01-10 20:37, Anders Troback wrote:
 > Hi!
 > 
 > No I don't think I got this notice!
 > 
 > Anyway, I approve the patch!:-)
 > 
 > Thanks!
 > 
 > 
 > \\anders
 > 
 > Den Fri, 03 Dec 2010 23:22:34 +0100
 > skrev Olli Hauer <ohauer@FreeBSD.org>:
 > 
 > Hello Anders,
 > 
 > I guess you haven't got a notice about a port you maintain.
 > 
 > I have a PR for the port nagios-check_bacula in the queue
 > http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/149941
 > 
 > Maybe you can give your approve or reject as comment?
State-Changed-From-To: analyzed->closed 
State-Changed-By: ohauer 
State-Changed-When: Wed Mar 30 13:14:24 UTC 2011 
State-Changed-Why:  
Close PR, haven't go further information from requester 

http://www.freebsd.org/cgi/query-pr.cgi?pr=149941 
>Unformatted:
