ports/163296: [patch] multimedia/vdpau-video: remove workaround for a gcc46 bug
Jan Beich
jbeich at tormail.net
Wed Dec 14 19:40:08 UTC 2011
>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:
More information about the freebsd-ports-bugs
mailing list