ports.tar owner/group
Kastus Shchuka
macports at tprfct.net
Mon May 8 00:42:26 UTC 2023
Hi.
After running port sync I see files extracted from ports.tar owned by a non-existent group with numerical id 505:
$ ls -l /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/
total 474776
-rw-r--r-- 1 root admin 20472245 Apr 30 17:46 PortIndex
-rw-r--r-- 1 root admin 512 Apr 30 18:29 PortIndex.rmd160
drwxr-xr-x 30 root 505 960 Jan 30 18:30 base
-rw-r--r-- 1 root admin 114272256 Jan 30 18:51 base.tar
-rw-r--r-- 1 root admin 512 Jan 30 18:51 base.tar.rmd160
drwxr-xr-x 65 root 505 2080 Apr 30 19:21 ports
-rw-r--r-- 1 root admin 108322816 Apr 30 18:29 ports.tar
-rw-r--r-- 1 root admin 512 Apr 30 18:29 ports.tar.rmd160
All files in ports.tar are owned by buildbot:buildbot or numerically 500/505.
drwxr-xr-x 0 buildbot buildbot 0 Mar 29 17:36 ports/
-rw-r--r-- 0 buildbot buildbot 234 Nov 16 2020 ports/.gitattributes
drwxr-xr-x 0 buildbot buildbot 0 Nov 26 10:09 ports/.github/
-rw-r--r-- 0 buildbot buildbot 84 Nov 16 2020 ports/.gitignore
-rw-r--r-- 0 buildbot buildbot 1476 Mar 29 17:36 ports/.mailmap
-rw-r--r-- 0 buildbot buildbot 1996 Feb 8 23:57 ports/LICENSE
drwxr-xr-x 0 500 505 0 Mar 29 17:36 ports/
-rw-r--r-- 0 500 505 234 Nov 16 2020 ports/.gitattributes
drwxr-xr-x 0 500 505 0 Nov 26 10:09 ports/.github/
-rw-r--r-- 0 500 505 84 Nov 16 2020 ports/.gitignore
-rw-r--r-- 0 500 505 1476 Mar 29 17:36 ports/.mailmap
-rw-r--r-- 0 500 505 1996 Feb 8 23:57 ports/LICENSE
As I don't have local user with id 500 and neither I have group with id 505,
I end up with files owned by unknown group.
I think it is a side effect of extracting ports.tar by user root which can preserve original numeric ids.
I wonder if extracted tarball should be forced to root:admin ownership after extraction.
Or do I need to create local user buildbot:buildbot (500:505) to continue using binary packages?
Thanks,
Kastus
More information about the macports-users
mailing list