nvidia libs have an unrecognized owner (Was: Wine-fbsd64 updated to 1.5.16)

Jan Beich jbeich at tormail.org
Sun Oct 28 12:18:31 UTC 2012


After running patch-nvidia.sh some files are left not owned by root.

$ ls -l /usr/local/lib32/ | awk '$3 ~ /[[:digit:]]/ || $4 ~ /[[:digit:]]/'
-rwxr-xr-x  1 2402  30       802148 Oct  9 18:30 libGL.so.1
-rwxr-xr-x  1 2402  30     29200980 Oct  9 18:29 libnvidia-glcore.so.1
-rwxr-xr-x  1 2402  30         3588 Oct  9 18:32 libnvidia-tls.so.1

$ tar tvf /d/NVIDIA-FreeBSD-x86-310.14.tar.gz --include \*.so\*
...
-rwxr-xr-x  0 buildmeister gopher 29200980 Oct  9 18:29 NVIDIA-FreeBSD-x86-310.14/obj/libnvidia-glcore.so.1
-rwxr-xr-x  0 buildmeister gopher   136392 Oct  9 18:33 NVIDIA-FreeBSD-x86-310.14/obj/libnvidia-cfg.so.1
-rwxr-xr-x  0 buildmeister gopher   802148 Oct  9 18:30 NVIDIA-FreeBSD-x86-310.14/obj/libGL.so.1

This is caused by tar(1) trying to preserve ownership/permissions when
running under root by default. Here's how the ports tree handles it:

  EXTRACT_AFTER_ARGS?=	| ${TAR} -xf - --no-same-owner --no-same-permissions

But wrong permissions are less noticeble there because install(1) with
-o/-g/-m flags usually discards them anyway.


More information about the freebsd-emulation mailing list