Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#15742 closed defect (fixed)

SSHKeychain: can't install when not root

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: Cc: themiwi@…
Port:

Description

My MacPorts installation uses --with-install-user=rschmidt and --with-install-group=admin so that I don't have to be root to install most ports, but SSHKeychain 0.8.2 complains if I'm not root:

$ port install sshkeychain
--->  Fetching SSHKeychain
--->  Verifying checksum(s) for SSHKeychain
--->  Extracting SSHKeychain
--->  Applying patches to SSHKeychain
--->  Configuring SSHKeychain
--->  Building SSHKeychain
--->  Staging SSHKeychain into destroot
--->  Installing SSHKeychain @0.8.2_0
Error: Target org.macports.install returned: can't create directory "/mp/var/macports/software/SSHKeychain/0.8.2_0/Applications/MacPorts/SSHKeychain.app/Contents": permission denied
Error: Status 1 encountered during processing.
$

The attached patch fixes the permissions of the installed items so that installing without root becomes possible (copied from CronniX portfile).

Note that if you try it out before applying the patch, and you encounter the error above, then you must manually delete ${prefix}/var/macports/software/SSHKeychain before trying again, else you'll still get the error, even with the patch.

If you have no objection to the patch, I'll be happy to commit it.

Attachments (1)

SSHKeychain.diff (629 bytes) - added by ryandesign (Ryan Carsten Schmidt) 16 years ago.

Download all attachments as: .zip

Change History (3)

Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: SSHKeychain.diff added

comment:1 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed

No response from maintainer in > 72 hours. Committed a revised version of the patch in r38120.

comment:2 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.