From nobody@FreeBSD.org  Tue Feb 17 21:13:20 2009
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 D5F47106574A
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 17 Feb 2009 21:13:20 +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 C4E158FC14
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 17 Feb 2009 21:13:20 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n1HLDK9X018222
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 17 Feb 2009 21:13:20 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n1HLDKnf018221;
	Tue, 17 Feb 2009 21:13:20 GMT
	(envelope-from nobody)
Message-Id: <200902172113.n1HLDKnf018221@www.freebsd.org>
Date: Tue, 17 Feb 2009 21:13:20 GMT
From: Bernard <zdbs@lif.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: multimedia/gpac-libgpac fails to compile
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         131789
>Category:       ports
>Synopsis:       multimedia/gpac-libgpac fails to compile
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lwhsu
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 17 21:20:01 UTC 2009
>Closed-Date:    Fri Feb 20 07:29:10 UTC 2009
>Last-Modified:  Fri Feb 20 07:29:10 UTC 2009
>Originator:     Bernard
>Release:        7.1-STABLE amd64
>Organization:
Steiner
>Environment:
FreeBSD grimma 7.1-STABLE FreeBSD 7.1-STABLE #13: Wed Feb 11 21:44:14 CET 2009     bs@grimma:/usr/obj/usr/src/sys/GRIMMA  amd64
>Description:
I have:
gpac-libgpac-0.4.4,1        <  needs updating (port has 0.4.5,1)

thus I try
# portmaster gpac-libgpac-0.4.4,1
..
cc -O3  -O -pipe -march=athlon64  -fPIC -pthread -fno-strict-aliasing -Wno-pointer-sign -I/usr/tmp/usr/ports/multimedia/gpac-libgpac/work/gpac/include  -I../ -DGPAC_HAVE_CONFIG_H  -fPIC -DPIC -c compositor/mesh.c -o compositor/mesh.opic
In file included from compositor/mesh.c:33:
compositor/gl_inc.h:45:19: error: GL/gl.h: No such file or directory
gmake: *** [compositor/mesh.opic] Error 1

Hilarious, in the light of:

# ls -l /usr/local/include/GL/gl.h
-rw-r--r--  1 root  wheel  90754 Feb 17 22:05 /usr/local/include/GL/gl.h

>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->freebsd-multimedia 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Tue Feb 17 21:20:47 UTC 2009 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=131789 
Responsible-Changed-From-To: freebsd-multimedia->lwhsu 
Responsible-Changed-By: lwhsu 
Responsible-Changed-When: Tue Feb 17 23:02:09 UTC 2009 
Responsible-Changed-Why:  
I'll take it. 

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

From: Dmitry Marakasov <amdmi3@amdmi3.ru>
To: bug-followup@FreeBSD.org
Cc: lwhsu@FreeBSD.org
Subject: Re: ports/131789: multimedia/gpac-libgpac fails to compile
Date: Thu, 19 Feb 2009 17:31:45 +0300

 This seem to happen in presence of libGL.
 
 gpac/src/compositor/gl_inc.h:
 
 #ifndef GPAC_USE_TINYGL
 #include <GL/gl.h>
 #else
 #include "../../../TinyGL/include/GL/gl.h"
 #endif
 
 I suspect the following behavior (though I didn't test):
 
 libGL not present -> configure uses bundled TibyGL -> all OK.
 libGL present -> configure detects it and decides to use, but doesn't
 add -I${LOCALBASE}/include to CPPPATH / -L${LOCALBASE}/lib to LDFLAGS ->
 compilation fails.
 
 The fix should be to either:
 1) Add --disable-opengl to CONFIGURE_ARGS 
 2) Add USE_OPENGL=yes and 
 CONFIGURE_ENV=	LDFLAGS="-L${LOCALBASE}/lib" CPPFLAGS="-I${LOCALBASE}/include"
 
 The best thing is to make it optional, because libGL depends on
 other X libraries, and gpac-libgpac is used with some CLI ports (ffmpeg,
 mencoder), so mandatory dependency on X libs is unwanted.
 
 Plan B is --disable-opengl.
 
 -- 
 Dmitry Marakasov   .   55B5 0596 FF1E 8D84 5F56  9510 D35A 80DD F9D2 F77D
 amdmi3@amdmi3.ru  ..:  jabber: amdmi3@jabber.ru    http://www.amdmi3.ru

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/131789: commit references a PR
Date: Thu, 19 Feb 2009 23:21:13 +0000 (UTC)

 jkim        2009-02-19 23:20:57 UTC
 
   FreeBSD ports repository
 
   Modified files:
     multimedia/gpac-libgpac Makefile 
   Added files:
     multimedia/gpac-libgpac/files patch-configure 
   Removed files:
     multimedia/gpac-libgpac/files patch-src_Makefile 
   Log:
   - Make IPv6 and OpenGL optional but turn them on by default[1].
   - Fix build with OpenGL and register its dependency when it is enabled.
   - Move FreeBSD-specific stuff into configure script from src/Makefile.
   - Make portlint happy with PKGNAMESUFFIX.
   
   PR:     ports/131681[1], ports/131713, ports/131789
   
   Revision  Changes    Path
   1.17      +23 -8     ports/multimedia/gpac-libgpac/Makefile
   1.1       +66 -0     ports/multimedia/gpac-libgpac/files/patch-configure (new)
   1.3       +0 -19     ports/multimedia/gpac-libgpac/files/patch-src_Makefile (dead)
 _______________________________________________
 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"
 
State-Changed-From-To: open->closed 
State-Changed-By: lwhsu 
State-Changed-When: Fri Feb 20 07:29:09 UTC 2009 
State-Changed-Why:  
fixed. 

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