Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#54761 closed defect (fixed)

ssh-copy-id needs to use deactivate hack

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: l2dy (Zero King)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: ssh-copy-id

Description

openssh depends on ssh-copy-id but ssh-copy-id installs files that were installed by openssh. This results in activation failure on upgrade:

$ sudo port -u upgr openssh
--->  Fetching archive for ssh-copy-id
--->  Attempting to fetch ssh-copy-id-7.5p1_1.darwin_16.noarch.tbz2 from https://packages.macports.org/ssh-copy-id
--->  Attempting to fetch ssh-copy-id-7.5p1_1.darwin_16.noarch.tbz2.rmd160 from https://packages.macports.org/ssh-copy-id
--->  Installing ssh-copy-id @7.5p1_1
--->  Activating ssh-copy-id @7.5p1_1
Error: Failed to activate ssh-copy-id: Image error: /opt/local/bin/ssh-copy-id is being used by the active openssh port.  Please deactivate this port first, or use 'port -f activate ssh-copy-id' to force the activation.
Error: See /opt/local/var/macports/logs/_Users_rschmidt_macports_macports-ports-svn-trunk_net_ssh-copy-id/ssh-copy-id/main.log for details.
Error: Problem while installing ssh-copy-id
Error: Follow https://guide.macports.org/#project.tickets to report a bug.

To fix this, ssh-copy-id should use the deactivate hack.

Change History (4)

comment:1 Changed 7 years ago by l2dy (Zero King)

Resolution: fixed
Status: newclosed

In 0002d023f80d6eb0b81446be1172527bae0e05a8/macports-ports:

ssh-copy-id: deactivate hack

Fixes: #54761

comment:2 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Thanks, but the revision also needs to be increased.

comment:3 in reply to:  2 Changed 7 years ago by l2dy (Zero King)

Replying to ryandesign:

Thanks, but the revision also needs to be increased.

Whose revision? openssh or ssh-copy-id?

comment:4 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

ssh-copy-id, but now that I actually try it, it seems to be working without the revbump, which I don't understand. I'll ask about it on the mailing list.

Note: See TracTickets for help on using tickets.