Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Dec 2011 08:34:24 -1100
From:      Jan Beich <jbeich@tormail.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/163296: [patch] multimedia/vdpau-video: remove workaround for a gcc46 bug
Message-ID:  <1Raubk-0005Oj-Dk@internal.tormail.net>
Resent-Message-ID: <201112141940.pBEJe8R2049842@freefall.freebsd.org>

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

>Number:         163296
>Category:       ports
>Synopsis:       [patch] multimedia/vdpau-video: remove workaround for a gcc46 bug
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 14 19:40:08 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Jan Beich
>Release:        FreeBSD 10.0-CURRENT amd64
>Organization:
>Environment:
>Description:
The bug is no longer reproducible as of gcc-4.6.3.20111202 and
-dumpspecs may confuse users.

  $ make describe CC=clang
  clang: error: unsupported option '-dumpspecs'
  clang: error: no input files
  vdpau-video-0.7.3|...

>How-To-Repeat:
>Fix:
--- gcc46.diff begins here ---
Index: multimedia/vdpau-video/Makefile
===================================================================
RCS file: /a/.csup/ports/multimedia/vdpau-video/Makefile,v
retrieving revision 1.5
diff -u -p -r1.5 Makefile
--- multimedia/vdpau-video/Makefile	23 Sep 2011 22:24:22 -0000	1.5
+++ multimedia/vdpau-video/Makefile	24 Sep 2011 17:06:36 -0000
@@ -30,9 +30,6 @@ LDFLAGS+=	-L${LOCALBASE}/lib
 
 .include <bsd.port.pre.mk>
 
-VDPAU_PTHREAD_LIBS!=	${CC} -dumpspecs | ${GREP} -m 1 pthread: | ${SED} -e 's|^.*%{\!pg: %{pthread:|| ; s|}.*$$||' || ${TRUE}
-
-
 .if !defined(WITH_DEBUG)
 CONFIGURE_ARGS+=	--disable-debug
 .endif
@@ -47,8 +44,5 @@ post-patch:	.SILENT
 		-e 's|driverdir|& --define-variable prefix=${PREFIX}|' \
 		-e '/\^vdpau_version/s|$$CC -E|& ${CPPFLAGS}|' \
 		 ${WRKSRC}/configure
-	${REINPLACE_CMD} 's/^vdpau.*LDFLAGS.*/& \
-		-Wl,-lc ${VDPAU_PTHREAD_LIBS:S/^/-Wl,/}/' \
-		${WRKSRC}/src/Makefile.in
 
 .include <bsd.port.post.mk>
--- gcc46.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1Raubk-0005Oj-Dk>