Opened 13 years ago

Closed 13 years ago

#27933 closed defect (fixed)

MacPorts @1.9.2 'port upgrade outdated' fails when archive dir is on NFS FS without root access

Reported by: FredHucht (Fred Hucht) Owned by: macports-tickets@…
Priority: Normal Milestone: MacPorts 2.0.0
Component: base Version: 1.9.2
Keywords: Cc:
Port:

Description

I have an archive dir on a Linux NFS volume exported with option root_squash, so UID/GID 0,0 is mapped to anonymous. The dir is writable by root from the mac. Installation went fine, all archives were saved in this directory until now.

The problem:

# port upgrade outdated
Error: Target org.macports.archivefetch returned: lchown: /users/root/OSX/macports/packages/darwin/universal: not owner
Log for ncursesw is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ncursesw/main.log
Error: Unable to upgrade port: 1

Explanation: root from the mac is not allowed to chown/lchown directories on this FS (normal Unix/Linux behavior)

Question: Is this lchown necessary?

Workaround: I moved the archive to a local FS.

Change History (1)

comment:1 Changed 13 years ago by jmroot (Joshua Root)

Milestone: MacPorts 2.0.0
Resolution: fixed
Status: newclosed

There's no separate archive dir as of r77511.

Note: See TracTickets for help on using tickets.