From swell.k@gmail.com  Sun May  9 00:03:25 2010
Return-Path: <swell.k@gmail.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 2704B106564A
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  9 May 2010 00:03:25 +0000 (UTC)
	(envelope-from swell.k@gmail.com)
Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.156])
	by mx1.freebsd.org (Postfix) with ESMTP id AD1D18FC13
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  9 May 2010 00:03:24 +0000 (UTC)
Received: by fg-out-1718.google.com with SMTP id 22so202424fge.13
        for <FreeBSD-gnats-submit@freebsd.org>; Sat, 08 May 2010 17:03:16 -0700 (PDT)
Received: by 10.87.62.28 with SMTP id p28mr6769320fgk.16.1273363396636;
        Sat, 08 May 2010 17:03:16 -0700 (PDT)
Received: from localhost (95-25-129-134.broadband.corbina.ru [95.25.129.134])
        by mx.google.com with ESMTPS id 12sm6860105fks.50.2010.05.08.17.03.15
        (version=TLSv1/SSLv3 cipher=RC4-MD5);
        Sat, 08 May 2010 17:03:16 -0700 (PDT)
Message-Id: <86ocgq54f2.fsf@gmail.com>
Date: Sun, 09 May 2010 04:01:37 +0400
From: Anonymous <swell.k@gmail.com>
To: FreeBSD-gnats-submit@freebsd.org
Subject: [patch] devel/directfb: respect LOCALBASE, jpeg not found

>Number:         146417
>Category:       ports
>Synopsis:       [patch] devel/directfb: respect LOCALBASE, jpeg not found
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    itetcu
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 09 00:10:04 UTC 2010
>Closed-Date:    Thu Jun 03 08:03:17 UTC 2010
>Last-Modified:  Thu Jun 03 08:03:17 UTC 2010
>Originator:     Anonymous
>Release:        FreeBSD 9.0-CURRENT amd64
>Organization:
>Environment:
LOCALBASE=/usr/pkg
PREFIX=$HOME/aaa
WITH_FREETYPE2=
WITH_SDL=
WITH_X11=
>Description:
  configure:24180: checking for jpeg_destroy_decompress in -ljpeg
  configure:24215: cc -o conftest -O3 -ffast-math -pipe -O2 -pipe -fno-strict-aliasing -D_REENTRANT -pthread  -I/usr/local/include -pthread -L/
  usr/local/lib conftest.c -ljpeg  -pthread  >&5
  /usr/pkg/bin/ld: cannot find -ljpeg
  collect2: ld returned 1 exit status
>How-To-Repeat:
>Fix:
--- a.diff begins here ---
Index: devel/directfb/Makefile
===================================================================
RCS file: /a/.cvsup/ports/devel/directfb/Makefile,v
retrieving revision 1.37
diff -u -p -r1.37 Makefile
--- devel/directfb/Makefile	28 Mar 2010 06:33:02 -0000	1.37
+++ devel/directfb/Makefile	8 May 2010 23:58:38 -0000
@@ -79,6 +79,7 @@ BROKEN=		Does not compile on alpha
 post-patch:
 	@${REINPLACE_CMD} -e 's/-lc_r/${PTHREAD_LIBS}/g ; \
 		s/-lpthread/${PTHREAD_LIBS}/g ; s|%%LTMAIN%%|${LTMAIN}|g' \
+		-e 's|/usr/local|${LOCALBASE}|g' \
 			${WRKSRC}/configure
 
 .include <bsd.port.post.mk>
--- a.diff ends here ---
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->itetcu 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sun May 9 00:10:28 UTC 2010 
Responsible-Changed-Why:  
itetcu@ wants his PRs (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=146417 
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Sun May 9 00:10:34 UTC 2010 
State-Changed-Why:  
Awaiting maintainers feedback (via the GNATS Auto Assign Tool) 

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

From: Edwin Groothuis <edwin@FreeBSD.org>
To: anatoly.borodin@gmail.com
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/146417: [patch] devel/directfb: respect LOCALBASE, jpeg not found
Date: Sun, 9 May 2010 00:10:31 UT

 Maintainer of devel/directfb,
 
 Please note that PR ports/146417 has just been submitted.
 
 If it contains a patch for an upgrade, an enhancement or a bug fix
 you agree on, reply to this email stating that you approve the patch
 and a committer will take care of it.
 
 The full text of the PR can be found at:
     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/146417
 
 -- 
 Edwin Groothuis via the GNATS Auto Assign Tool
 edwin@FreeBSD.org

From: Anonymous <swell.k@gmail.com>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: ports/146417: [patch] devel/directfb: respect LOCALBASE, jpeg not found
Date: Sun, 09 May 2010 04:46:58 +0400

 The bug prevents compilation, too.
 
 $ make
 ...
 /bin/sh /usr/pkg/bin/libtool --tag=CC   --mode=link cc  -O3 -ffast-math -pipe -O2 -pipe -fno-strict-aliasing -D_GNU_SOURCE  -Werror-implicit-function-declaration -L/usr/X11R6/lib -lX11 -lXext -avoid-version -module -pthread -L/usr/local/lib -o libdirectfb_x11input.la -rpath /home/holo/aaa/lib/directfb-1.1-0/inputdrivers x11input.lo ../../lib/direct/libdirect.la ../../lib/fusion/libfusion.la ../../src/libdirectfb.la -pthread
 libtool: link: cc -shared  .libs/x11input.o   -Wl,-rpath -Wl,/a/pkgbuild/a/freebsd-ports/devel/directfb/work/DirectFB-1.1.1/lib/direct/.libs -Wl,-rpath -Wl,/a/pkgbuild/a/freebsd-ports/devel/directfb/work/DirectFB-1.1.1/lib/fusion/.libs -Wl,-rpath -Wl,/a/pkgbuild/a/freebsd-ports/devel/directfb/work/DirectFB-1.1.1/src/.libs -Wl,-rpath -Wl,/home/holo/aaa/lib -L/a/pkgbuild/a/freebsd-ports/devel/directfb/work/DirectFB-1.1.1/lib/direct/.libs -L/a/pkgbuild/a/freebsd-ports/devel/directfb/work/DirectFB-1.1.1/lib/fu sion/.libs -L/usr/X11R6/lib -lX11 -lXext -L/usr/local/lib ../../lib/direct/.libs/libdirect.so ../../lib/fusion/.libs/libfusion.so ../../src/.libs/libdirectfb.so /a/pkgbuild/a/freebsd-ports/devel/directfb/work/DirectFB-1.1.1/lib/fusion/.libs/libfusion.so /a/pkgbuild/a/freebsd-ports/devel/directfb/work/DirectFB-1.1.1/lib/direct/.libs/libdirect.so -lz -pthread  -pthread -pthread -pthread -pthread -pthread   -pthread -Wl,-soname -Wl,libdirectfb_x11input.so -o .libs/libdirectfb_x
  11input.so
 /usr/pkg/bin/ld: cannot find -lX11
 collect2: ld returned 1 exit status
 
 And if I disable X11/SDL/FREETYPE2 it would be libpng that causes error.
State-Changed-From-To: feedback->closed 
State-Changed-By: pav 
State-Changed-When: Thu Jun 3 08:02:43 UTC 2010 
State-Changed-Why:  
Had been included in latest update 

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