Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Oct 2012 14:02:34 +0200
From:      Jan Beich <jbeich@tormail.org>
To:        David Naylor <naylor.b.david@gmail.com>
Cc:        freebsd-emulation@freebsd.org
Subject:   nvidia libs have an unrecognized owner (Was: Wine-fbsd64 updated to 1.5.16)
Message-ID:  <1TSRmd-0007jg-MD@internal.tormail.org>
In-Reply-To: <201210281149.50550.naylor.b.david@gmail.com> (David Naylor's message of "Sun, 28 Oct 2012 11:49:45 %2B0200")
References:  <201210281149.50550.naylor.b.david@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1TSRmd-0007jg-MD>