ports/170506: [PATCH] graphics/libGL: Don't link to -lpthread directly
Jason E. Hale
bsdkaffee at gmail.com
Thu Aug 9 16:40:01 UTC 2012
>Number: 170506
>Category: ports
>Synopsis: [PATCH] graphics/libGL: Don't link to -lpthread directly
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Aug 09 16:40:01 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Jason E. Hale
>Release: FreeBSD 9.0-RELEASE i386
>Organization:
none
>Environment:
System: FreeBSD mocha.verizon.net 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Thu Jan 19 11:42:41 EST 2012 Jason at mocha.verizon.net:/usr/obj/usr/src/sys/MOCHA9 i386
>Description:
The Mesa libraries link to -lpthread instead of PTHREAD_LIBS
>How-To-Repeat:
Build graphics/libGL, graphics/libGLU, graphics/libGLw, or graphics/dri
>Fix:
--- 2012-08-08-libGL.diff begins here ---
Index: libGL/bsd.mesalib.mk
===================================================================
--- libGL/bsd.mesalib.mk (revision 302306)
+++ libGL/bsd.mesalib.mk (working copy)
@@ -102,7 +102,7 @@
post-patch:
@${REINPLACE_CMD} -e 's|-ffast-math|${FAST_MATH}|' -e 's|x86_64|amd64|' \
- ${WRKSRC}/configure
+ -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|[$$](INSTALL_LIB_DIR)/pkgconfig|${PREFIX}/libdata/pkgconfig|' \
${WRKSRC}/src/glu/Makefile \
${WRKSRC}/src/glw/Makefile \
Index: libGL/Makefile
===================================================================
--- libGL/Makefile (revision 302306)
+++ libGL/Makefile (working copy)
@@ -7,6 +7,7 @@
PORTNAME= libGL
PORTVERSION= ${MESAVERSION}
+PORTREVISION= 1
CATEGORIES= graphics
COMMENT= OpenGL library that renders using GLX or DRI
Index: libGLU/Makefile
===================================================================
--- libGLU/Makefile (revision 302306)
+++ libGLU/Makefile (working copy)
@@ -6,6 +6,7 @@
#
PORTNAME= libGLU
+PORTREVISION= 1
PORTVERSION= ${MESAVERSION}
CATEGORIES= graphics
Index: libGLw/Makefile
===================================================================
--- libGLw/Makefile (revision 302306)
+++ libGLw/Makefile (working copy)
@@ -7,6 +7,7 @@
PORTNAME= libGLw
PORTVERSION= ${MESAVERSION}
+PORTREVISION= 1
CATEGORIES= graphics
COMMENT= OpenGL widgets library
Index: dri/Makefile
===================================================================
--- dri/Makefile (revision 302306)
+++ dri/Makefile (working copy)
@@ -7,7 +7,7 @@
PORTNAME= dri
PORTVERSION= ${MESAVERSION}
-PORTREVISION= 1
+PORTREVISION= 2
PORTEPOCH= 2
CATEGORIES= graphics
--- 2012-08-08-libGL.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list