ports/174012: [patch] x11/nvidia-driver: add linux symlink for vdpau_wrapper.cfg
Jan Beich
jbeich at tormail.org
Fri Nov 30 09:30:00 UTC 2012
>Number: 174012
>Category: ports
>Synopsis: [patch] x11/nvidia-driver: add linux symlink for vdpau_wrapper.cfg
>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: Fri Nov 30 09:30:00 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Jan Beich
>Release: FreeBSD 10.0-CURRENT amd64
>Organization:
>Environment:
>Description:
As fedora packages are usually installed with /usr prefix most
third-party configs end up in /etc. bsd.port.mk enforces /usr/local
prefix by default but linuxulator only tries /compat/linux and falls
back to a path without prefix.
A few well known packages already have symlinks as part of linux_base:
openldap, fontconfig (fonts.conf). However, linux_base is mostly
unmaintained these days, so why not add symlinks to the packages that
install linux equivalents (e.g. ports/169896).
2012-10-15 version 310.14 (from NVIDIA_Changelog)
* Implemented workarounds for two Adobe Flash bugs by applying libvdpau
commit ca9e637c61e80145f0625a590c91429db67d0a40 to the version of libvdpau
shipped with the NVIDIA driver.
>How-To-Repeat:
1. install multimedia/libvdpau
www/linux-f10-flashplugin11
www/nspluginwrapper
2. add ktrace -i -f /tmp/npviewer.$$ just after exec in
/usr/local/lib/nspluginwrapper/noarch/npviewer.sh
3. launch firefox with some flash video
$ kdump -f /tmp/npviewer.68625 | fgrep vdpau_wrapper
68625 npviewer.bin NAMI "/compat/linux/etc/vdpau_wrapper.cfg"
68625 npviewer.bin NAMI "/etc/vdpau_wrapper.cfg"
$ ls /compat/linux/etc/vdpau_wrapper.cfg /etc/vdpau_wrapper.cfg
ls: /compat/linux/etc/vdpau_wrapper.cfg: No such file or directory
ls: /etc/vdpau_wrapper.cfg: No such file or directory
Exit 1
>Fix:
--- symlink.diff begins here ---
Index: x11/nvidia-driver/Makefile
===================================================================
--- x11/nvidia-driver/Makefile (revision 307884)
+++ x11/nvidia-driver/Makefile (working copy)
@@ -199,6 +204,10 @@ post-install: .SILENT
${REINPLACE_CMD} -e '26,27d' ${PKGMESSAGE}
. endif
.endif
+.if ${PORT_OPTIONS:MLINUX} && ${NVVERSION} >= 3101400
+ ${LN} -sf ${LOCALBASE}/etc/vdpau_wrapper.cfg \
+ ${LINUXBASE}/etc/vdpau_wrapper.cfg
+.endif
PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
${ECHO_MSG}
${CAT} ${PKGMESSAGE}
--- symlink.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list