ports/168207: [patch] multimedia/libv4l: do not link against librt for shm_open(2)

Jan Beich jbeich at tormail.org
Mon May 21 21:20:11 UTC 2012


>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:



More information about the freebsd-ports-bugs mailing list