From mwisnicki@gmail.com  Sat Mar 17 18:52:51 2007
Return-Path: <mwisnicki@gmail.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 3DE3616A401
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 17 Mar 2007 18:52:51 +0000 (UTC)
	(envelope-from mwisnicki@gmail.com)
Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.186])
	by mx1.freebsd.org (Postfix) with ESMTP id C71C413C469
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 17 Mar 2007 18:52:50 +0000 (UTC)
	(envelope-from mwisnicki@gmail.com)
Received: by nf-out-0910.google.com with SMTP id k27so589086nfc
        for <FreeBSD-gnats-submit@freebsd.org>; Sat, 17 Mar 2007 11:52:49 -0700 (PDT)
Received: by 10.78.138.6 with SMTP id l6mr1632519hud.1174157569337;
        Sat, 17 Mar 2007 11:52:49 -0700 (PDT)
Received: from ghost.pnet.one.pl ( [84.40.242.20])
        by mx.google.com with ESMTP id x1sm8245069nfb.2007.03.17.11.52.47;
        Sat, 17 Mar 2007 11:52:48 -0700 (PDT)
Received: by ghost.pnet.one.pl (sSMTP sendmail emulation); Sat, 17 Mar 2007 19:52:46 +0100
Message-Id: <45fc3900.09e0e0e1.583b.fffffc6b@mx.google.com>
Date: Sat, 17 Mar 2007 19:52:46 +0100
From: Marcin Wisnicki <mwisnicki+freebsd@gmail.com>
Sender: =?UTF-8?B?TWFyY2luIFdpxZtuaWNraQ==?= <mwisnicki@gmail.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc: alex@bsdguru.org
Subject: [PATCH] polish/ekg: unbreak with libexecinfo, remove hidden dependencies
X-Send-Pr-Version: 3.113
X-GNATS-Notify: alex@bsdguru.org

>Number:         110453
>Category:       ports
>Synopsis:       [PATCH] polish/ekg: unbreak with libexecinfo, remove hidden dependencies
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    rafan
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar 17 19:00:11 GMT 2007
>Closed-Date:    Mon Apr 16 19:29:28 GMT 2007
>Last-Modified:  Mon Apr 16 19:30:02 GMT 2007
>Originator:     Marcin Wisnicki
>Release:        FreeBSD 6.2-STABLE i386
>Organization:
>Environment:
System: FreeBSD ghost.pnet.one.pl 6.2-STABLE FreeBSD 6.2-STABLE #5: Sat Feb 10 23:20:51 CET 2007
>Description:
When devel/libexecinfo is installed, ekg's configure picks it up but it doesn't
link with libexecinfo since the functionality is in libc on linux and that
breaks the build. Attached patch adds unconditional dependency on libexecinfo
since it's easier that way and libexecinfo is only 10kb large.

Also I've noticed that ekg will use libungif and libjpeg if installed.
I have explicitly disabled them, as well as support for openssl, since it is
disabled in libgadu.

Port maintainer (alex@bsdguru.org) is cc'd.

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:

cd /usr/ports/polish/ekg; make
:
checking execinfo.h usability... yes
checking execinfo.h presence... yes
checking for execinfo.h... yes
:
cc  -I.. -I../lib -O2 -fno-strict-aliasing -pipe -march=athlon-xp -I/usr/local/include -Wall   -DDATADIR=\"/usr/local/share/ekg\" -DSYSCONFDIR=\"/usr/local/etc\" -o ekg stuff.o commands.o events.o themes.o vars.o dynstuff.o userlist.o ekg.o xmalloc.o mail.o msgqueue.o emoticons.o configfile.o  simlite.o ui-ncurses.o ui-batch.o ui-none.o log.o -L../lib -lgadu  -lz -ljpeg -lungif  -lssl -lcrypto  -L/usr/local/lib   -lncurses -laspell
ekg.o(.text+0x87c): In function `handle_sigsegv':
: undefined reference to `backtrace'
ekg.o(.text+0x88c): In function `handle_sigsegv':
: undefined reference to `backtrace_symbols_fd'
gmake[1]: *** [ekg] Error 1
gmake[1]: Leaving directory `/home/pub/ports-build/usr/ports/polish/ekg/work/ekg-1.7rc3/src'
gmake: *** [ekg] Error 2
*** Error code 2


>Fix:

--- pl-ekg-1.7.r3_1,2.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/polish/ekg.orig/Makefile /usr/ports/polish/ekg/Makefile
--- /usr/ports/polish/ekg.orig/Makefile	Mon Mar 12 15:05:53 2007
+++ /usr/ports/polish/ekg/Makefile	Sat Mar 17 19:33:07 2007
@@ -6,6 +6,7 @@
 
 PORTNAME=		ekg
 PORTVERSION=		1.7.r3
+PORTREVISION=		1
 PORTEPOCH=		2
 CATEGORIES=		polish net-im
 MASTER_SITES=		http://ekg.chmurka.net/
@@ -14,18 +15,23 @@
 MAINTAINER=		alex@bsdguru.org
 COMMENT=		Text-mode Gadu-Gadu client
 
-LIB_DEPENDS=		gadu.3:${PORTSDIR}/polish/libgadu
+LIB_DEPENDS=		execinfo.1:${PORTSDIR}/devel/libexecinfo \
+			gadu.3:${PORTSDIR}/polish/libgadu
 
 USE_GMAKE=		yes
 GNU_CONFIGURE=		yes
 USE_GNOME=		gnomehack pkgconfig
 CONFIGURE_ARGS+=	--disable-shared \
 			--disable-static \
-			--enable-dynamic
+			--enable-dynamic \
+			--without-openssl \
+			--disable-libgadu-openssl \
+			--without-libungif \
+			--without-libjpeg
 
 CONFIGURE_ENV=		CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
 			CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
-			LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
+			LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib -lexecinfo"
 
 OPTIONS=	ASPELL "Build with ASPELL support" off
 
diff -ruN --exclude=CVS /usr/ports/polish/ekg.orig/pkg-descr /usr/ports/polish/ekg/pkg-descr
--- /usr/ports/polish/ekg.orig/pkg-descr	Mon Jul 21 14:47:08 2003
+++ /usr/ports/polish/ekg/pkg-descr	Sat Mar 17 17:59:56 2007
@@ -1,4 +1,4 @@
 Text-based Gadu-Gadu client for Unix-like systems.
 Gadu-Gadu is an ICQ-like messenger for polish language users.
 
-WWW: http://dev.null.pl/ekg/
+WWW: http://ekg.chmurka.net/
--- pl-ekg-1.7.r3_1,2.patch ends here ---

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Sat Mar 17 19:00:20 UTC 2007 
State-Changed-Why:  
Awaiting maintainers feedback 

http://www.freebsd.org/cgi/query-pr.cgi?pr=110453 
Responsible-Changed-From-To: freebsd-ports-bugs->rafan 
Responsible-Changed-By: rafan 
Responsible-Changed-When: Sun Mar 18 05:48:14 UTC 2007 
Responsible-Changed-Why:  
Eat. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=110453 
State-Changed-From-To: feedback->closed 
State-Changed-By: rafan 
State-Changed-When: Mon Apr 16 19:29:27 UTC 2007 
State-Changed-Why:  
Committed. Thanks! 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/110453: commit references a PR
Date: Mon, 16 Apr 2007 19:29:25 +0000 (UTC)

 rafan       2007-04-16 19:29:17 UTC
 
   FreeBSD ports repository
 
   Modified files:
     polish/ekg           Makefile pkg-descr 
   Log:
   - When devel/libexecinfo presents, configure script detects but does not
     set LDFLAGS correctly. Therefore, unconditionally depends on libexecinfo
     and set correct LDFLAGS.
   - Disable libungif, libjpeg, and openssl support since they are disabled
     in libgadu
   
   PR:             ports/110453
   Submitted by:   mwisnicki at gmail.com
   Approved by:    maintainer timeout (1 month)
   
   Revision  Changes    Path
   1.25      +9 -3      ports/polish/ekg/Makefile
   1.2       +1 -1      ports/polish/ekg/pkg-descr
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
