Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 May 2008 07:05:02 GMT
From:      "Scot W. Hetzel" <swhetzel@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/124091: [patch] graphics/gnash and graphics/gnash-devel: Detects wrong libraries on FreeBSD/amd64
Message-ID:  <200805290705.m4T752ET019611@www.freebsd.org>
Resent-Message-ID: <200805290710.m4T7A2Sl059127@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         124091
>Category:       ports
>Synopsis:       [patch] graphics/gnash and graphics/gnash-devel: Detects wrong libraries on FreeBSD/amd64
>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 May 29 07:10:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Scot W. Hetzel
>Release:        8.0-CURRENT
>Organization:
>Environment:
FreeBSD hp010 8.0-CURRENT FreeBSD 8.0-CURRENT #4: Sat May 17 20:53:07 CDT 2008     root@hp010:/usr/obj/usr/src/8x/sys/DV8135NR  amd64

>Description:
While compiling the graphics/gnash port I noticed that during the configure phase it was reporting:

:
checking whether pthreads work with -pthread... yes^M
checking searching for pthread library... using -L/usr/lib32 -lpthread^M
:
        POSIX Threads flags are: -D_THREAD_SAFE -pthread^M
        POSIX Threads lib is: -L/usr/lib32 -lpthread^M
:
        Z flags are: default include path^M
        Z libs are: -L/usr/lib32 -lz ^M

Which causes the port to build with the wrong libraries.
>How-To-Repeat:
On FreeBSD/AMD64, install the  lib32 libraries, and then perform a make configure
>Fix:
Apply the attached patch

Patch attached with submission follows:

Index: gnash/Makefile
===================================================================
RCS file: /home/ncvs/ports/graphics/gnash/Makefile,v
retrieving revision 1.24
diff -u -r1.24 Makefile
--- gnash/Makefile	24 May 2008 18:57:13 -0000	1.24
+++ gnash/Makefile	29 May 2008 06:43:12 -0000
@@ -7,6 +7,7 @@
 
 PORTNAME=	gnash
 PORTVERSION=	0.8.2
+PORTREVISON=	1
 CATEGORIES=	graphics
 MASTER_SITES=	${MASTER_SITE_GNU}
 MASTER_SITE_SUBDIR=	${PORTNAME}/${PORTVERSION}
@@ -170,6 +171,7 @@
 		${WRKSRC}/utilities/Makefile.in ${WRKSRC}/cygnal/Makefile.in
 	@${REINPLACE_CMD} -e '/^PTHREAD_[LC][IF]*=/ d' ${WRKSRC}/configure
 	@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g; \
+		s|/lib64|/lib|g; \
 		s|/usr/X11R6|${LOCALBASE}|g' ${WRKSRC}/configure \
 		${WRKSRC}/macros/libslist ${WRKSRC}/macros/incllist
 
Index: gnash-devel/Makefile
===================================================================
RCS file: /home/ncvs/ports/graphics/gnash-devel/Makefile,v
retrieving revision 1.25
diff -u -r1.25 Makefile
--- gnash-devel/Makefile	27 May 2008 09:16:24 -0000	1.25
+++ gnash-devel/Makefile	29 May 2008 06:42:38 -0000
@@ -7,6 +7,7 @@
 
 PORTNAME=	gnash
 PORTVERSION=	0.8.2
+PORTREVISION=	1
 CATEGORIES=	graphics
 MASTER_SITES=	${MASTER_SITE_GNU}
 MASTER_SITE_SUBDIR=	${PORTNAME}/${PORTVERSION}
@@ -170,6 +171,7 @@
 		${WRKSRC}/utilities/Makefile.in ${WRKSRC}/cygnal/Makefile.in
 	@${REINPLACE_CMD} -e '/^PTHREAD_[LC][IF]*=/ d' ${WRKSRC}/configure
 	@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g; \
+		s|/lib64|/lib|g; \
 		s|/usr/X11R6|${LOCALBASE}|g' ${WRKSRC}/configure \
 		${WRKSRC}/macros/libslist ${WRKSRC}/macros/incllist
 


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200805290705.m4T752ET019611>