Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 May 2012 14:17:07 -0700
From:      Jan Beich <jbeich@tormail.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/168207: [patch] multimedia/libv4l: do not link against librt for shm_open(2)
Message-ID:  <1SWZyf-0004tH-1i@internal.tormail.org>
Resent-Message-ID: <201205212120.q4LLK5fR034453@freefall.freebsd.org>

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

>Number:         168207
>Category:       ports
>Synopsis:       [patch] multimedia/libv4l: do not link against librt for shm_open(2)
>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:   Mon May 21 21:20:04 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Jan Beich
>Release:        FreeBSD 10.0-CURRENT amd64
>Organization:
>Environment:
>Description:
Unlike glibc our librt does not provide shm_* smybols, so avoid this linuxism.
While here get rid of code for 6.x and earlier, they're EoL.
>How-To-Repeat:
$ make patch
$ fgrep -r -e aio_ -e mq_ -e timer_ $(make -V WRKSRC)/
Exit 1
>Fix:
--- nort.diff begins here ---
Index: multimedia/libv4l/Makefile
===================================================================
RCS file: /a/.csup/ports/multimedia/libv4l/Makefile,v
retrieving revision 1.6
diff -u -p -r1.6 Makefile
--- multimedia/libv4l/Makefile	10 May 2012 15:06:06 -0000	1.6
+++ multimedia/libv4l/Makefile	20 May 2012 20:21:55 -0000
@@ -29,13 +29,8 @@ WRKSRC=		${WRKDIR}/${DISTNAME}/lib
 .include <bsd.port.pre.mk>
 
 post-patch:
-.if ${OSVERSION} < 700000
-	@${REINPLACE_CMD} -e 's|-fvisibility=hidden||g' -e 's|-lrt||g'  \
-		${WRKSRC}/libv4l1/Makefile \
-		${WRKSRC}/libv4l2/Makefile \
-		${WRKSRC}/libv4lconvert/Makefile
-.endif
 	@${REINPLACE_CMD} -e 's|$$(LIBDIR)/pkgconfig|${PREFIX}/libdata/pkgconfig|g' \
+		-e 's|-lrt||g' \
 		${WRKSRC}/libv4l1/Makefile \
 		${WRKSRC}/libv4l2/Makefile \
 		${WRKSRC}/libv4lconvert/Makefile
--- nort.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?1SWZyf-0004tH-1i>