Opened 5 years ago

Closed 5 years ago

#60064 closed defect (invalid)

Non-root install fails on Catalina

Reported by: jay-ouellette (Jay Ouellette) Owned by:
Priority: Normal Milestone:
Component: base Version: 2.6.2
Keywords: Cc:
Port:

Description

I've run MacPorts for years without root, but after upgrading to Catalina, it no longer works.

Please provide, and document, a secure install option. It is highly inappropriate, and unethical for MacPorts to have unnecessary access to my SSH keys, photos, email, and other personal data.

Please provide, and document, the ability to control the owner, group and permissions of all files installed by MacPorts.

These are the commands that fail:

PATH=/usr/bin:/usr/sbin:/bin:/sbin ./configure --enable-readline --prefix=/opt/local --with-no-root-privilege
make
make install

The full output is attached.

Also, this no long appears to work either:

# install with .pkg then:
sudo chown -R "$USER" /opt && sudo chgrp -R staff /opt
port install parallel
--->  Computing dependencies for parallel
The following dependencies will be installed: 
 db48
 gdbm
 gettext
 libiconv
 ncurses
 perl5
 perl5.28
 readline
Continue? [Y/n]: y
--->  Fetching archive for db48
Warning: Your DNS servers incorrectly claim to know the address of nonexistent hosts. This may cause checksum mismatches for some ports. See this page for more information: <https://trac.macports.org/wiki/MisbehavingServers>
--->  Attempting to fetch db48-4.8.30_4.darwin_19.x86_64.tbz2 from https://packages.macports.org/db48
--->  Attempting to fetch db48-4.8.30_4.darwin_19.x86_64.tbz2.rmd160 from https://packages.macports.org/db48
--->  Installing db48 @4.8.30_4
--->  Activating db48 @4.8.30_4
Error: Failed to activate db48: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_db48/db48/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port parallel failed

Attachments (1)

macports-install.txt (498.2 KB) - added by jay-ouellette (Jay Ouellette) 5 years ago.
Cataline install from source

Download all attachments as: .zip

Change History (4)

Changed 5 years ago by jay-ouellette (Jay Ouellette)

Attachment: macports-install.txt added

Cataline install from source

comment:1 Changed 5 years ago by mf2k (Frank Schima)

Priority: HighNormal

The Priority field is for use by Macports team members only, please do not set it.

comment:2 Changed 5 years ago by mf2k (Frank Schima)

Keywords: security removed

comment:3 Changed 5 years ago by jmroot (Joshua Root)

Resolution: invalid
Status: newclosed
configure: WARNING: unrecognized options: --with-no-root-privilege

You want --with-no-root-privileges.

BTW, running as yourself gives programs more access to your personal data than starting as root then switching to a different unprivileged user like MacPorts does.

Note: See TracTickets for help on using tickets.