From zalex_ua@i.ua  Thu May 19 11:22:19 2011
Return-Path: <zalex_ua@i.ua>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 905FF1065670
	for <bug-followup@FreeBSD.org>; Thu, 19 May 2011 11:22:19 +0000 (UTC)
	(envelope-from zalex_ua@i.ua)
Received: from web01.mi6.kiev.ua (web01.mi6.kiev.ua [91.198.36.2])
	by mx1.freebsd.org (Postfix) with ESMTP id 180618FC13
	for <bug-followup@FreeBSD.org>; Thu, 19 May 2011 11:22:18 +0000 (UTC)
Received: from web09.mi6 ([10.0.0.8] helo=web09.mi6.kiev.ua)
	by web01.mi6.kiev.ua with esmtp (Exim 4.76)
	(envelope-from <zalex_ua@i.ua>)
	id 1QN1J2-0003Jz-SO; Thu, 19 May 2011 14:22:16 +0300
Received: from web by web09.mi6.kiev.ua with local (Exim 4.76)
	(envelope-from <zalex_ua@i.ua>)
	id 1QN1J2-0007Vz-89; Thu, 19 May 2011 14:22:16 +0300
Message-Id: <E1QN1J2-0007Vz-89@web09.mi6.kiev.ua>
Date: Thu, 19 May 2011 14:22:16 +0300
From: Oleksiy Zagorskyi <zalex_ua@i.ua>
To: bug-followup@FreeBSD.org, ports@christianserving.org
Subject: Re ports 156519 MAINTAINER net-mgmt zabbix-server update to 1.8.5

>Number:         157178
>Category:       ports
>Synopsis:       Re: ports/156519: [maintainer] net-mgmt zabbix-server update to 1.8.5
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 19 11:30:11 UTC 2011
>Closed-Date:    Sat May 21 22:35:39 UTC 2011
>Last-Modified:  Sat May 21 22:35:39 UTC 2011
>Originator:     
>Release:        
>Organization:
>Environment:
>Description:
 Full Subject (just for case of problems with UTF-8 encofing): Re: ports/156=
 519: [MAINTAINER] net-mgmt/zabbix-server: update to 1.8.5
 Previous my attempt was unsuccessfully (PR: pending/157093) with encoding p=
 roblems in subject.
 So, let's go again:
 
 
 Just for case - problem started when Zabbix developers are performed: https=
 ://support.zabbix.com/browse/ZBXNEXT-293 and https://support.zabbix.com/bro=
 wse/ZBX-2946
 
 I do not understand why in a version 1.3, 2010/02/02 19:05:27 of file Makef=
 ile Jim Riggs added a string:=20
 CONFIGURE_ENV+=3D CPPFLAGS=3D"-I${LOCALBASE}/include"
 
 Because of that configure script began to find the header "execinfo.h" (aft=
 er ZBXNEXT-293 mentioned) but not a library.
 Therefore, there were problems.=20
 
 Now, after adding the line:
 LDFLAGS=3D"-L${LOCALBASE}/lib"
 configure script began to find the library itself.=20
 This was the main problem. Was not and no now direct need to add the packag=
 e as a dependency, especially for the agent.=20
 
 Even now I do not understand which need in the line:
 CONFIGURE_ENV+=3D CPPFLAGS=3D"-I${LOCALBASE}/include"
 i mean - with it or without it all components are configured and compiled w=
 ithout any problems and work without problems.
 
 Difference in the log of configure script is almost absent.=20
 
 I have long time compile all not from the ports and from sources, checkout =
 from the SVN repository. I always have all worked.=20
 
 Now if i compile v1.8.5 from ports, then in the linked libraries i see only=
  one difference - is the libexecinfo.so. Everything else are identical.
 This is for the agent and the server (with all !!! possible configure optio=
 ns enabled).
 
 Now if the package libexecinfo-1.1_3 installed, the agent compilation proce=
 ss finds and links this library, and this fact will not be presented in the=
  installed ports DB, i.e. it will not be listed as a dependency for agent.
 
 Therefore, I propose to move the line:
 CONFIGURE_ENV+=3D CPPFLAGS=3D"-I${LOCALBASE}/include" LDFLAGS=3D"-L${LOCALB=
 ASE}/lib"
 a bit lower. See patch.=20
 
 Thus, the agent will not have a hidden such dependency.
 I think libexecinfo-1.1_3 for agent is uselessness.
 
 New compilation (with patch) tested for agent and server. Now the agent has=
  no hidden dependency.
 [root@dem /usr/ports/net-mgmt/zabbix-agent/work/zabbix-1.8.5/src/zabbix_age=
 nt]# ldd zabbix_agentd
 zabbix_agentd:
 libkvm.so.5 =3D> /lib/libkvm.so.5 (0x280ad000)
 libm.so.5 =3D> /lib/libm.so.5 (0x280b6000)
 libdevstat.so.7 =3D> /lib/libdevstat.so.7 (0x280d0000)
 libiconv.so.3 =3D> /usr/local/lib/libiconv.so.3 (0x280d5000)
 libc.so.7 =3D> /lib/libc.so.7 (0x281cb000)
 
 
 
 
 --- Makefile 2011-05-16 20:05:00.000000000 +0300
 +++ Makefile.new 2011-05-16 20:06:39.000000000 +0300
 @@ -46,9 +46,9 @@
 MAKE_ARGS+=3D ARCH=3Dfreebsd
 GNU_CONFIGURE=3D yes
 CONFIGURE_ARGS+=3D --enable-${ZABBIX_BUILD}
 -CONFIGURE_ENV+=3D CPPFLAGS=3D"-I${LOCALBASE}/include" LDFLAGS=3D"-L${LOCAL=
 BASE}/lib"
 
 .if ${ZABBIX_BUILD} !=3D "agent"
 +CONFIGURE_ENV+=3D CPPFLAGS=3D"-I${LOCALBASE}/include" LDFLAGS=3D"-L${LOCAL=
 BASE}/lib"
 LIB_DEPENDS=3D netsnmp:${PORTSDIR}/net-mgmt/net-snmp \
 execinfo:${PORTSDIR}/devel/libexecinfo
 
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Sat May 21 22:32:38 UTC 2011 
State-Changed-Why:  
Misfiled followup to ports/156519; content migrated. 


Responsible-Changed-From-To: gnats-admin->freebsd-ports-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sat May 21 22:32:38 UTC 2011 
Responsible-Changed-Why:  

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