Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#42367 closed defect (fixed)

pass @1.4.2_1 getopt not found

Reported by: john@… Owned by: g5pw (Aljaž Srebrnič)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: haspatch Cc:
Port: pass

Description

I see:

$ port installed pass
The following ports are currently installed:
  pass @1.4.2_1 (active)

$ pass init
/opt/local/bin/pass: line 141: /usr/local/bin/getopt: No such file or directory

This arises because pass sources /opt/local/lib/password-store.platform.sh, which contains the line:

GETOPT="$(brew --prefix gnu-getopt 2>/dev/null || echo /usr/local)/bin/getopt"

Since I don't have Homebrew installed, that's defaulting to /usr/local.

The attached changes things so that pass depends on the getopt port, and then sets the correct prefix according to Macports.

Attachments (2)

Portfile.diff (1.1 KB) - added by john@… 10 years ago.
patch-getopt-path.diff (338 bytes) - added by john@… 10 years ago.

Download all attachments as: .zip

Change History (6)

Changed 10 years ago by john@…

Attachment: Portfile.diff added

Changed 10 years ago by john@…

Attachment: patch-getopt-path.diff added

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

Cc: g5pw@… removed
Owner: changed from macports-tickets@… to g5pw@…
Port: pass added; port removed

comment:2 Changed 10 years ago by g5pw (Aljaž Srebrnič)

Resolution: fixed
Status: newclosed

Thanks. Commited in r116731. Would you care to maintain the package? I no longer use pass regularly...

comment:3 Changed 10 years ago by john@…

Thanks. I'd be happy to take over maintenance. What's the procedure? Shall I open another ticket with a Portfile patch replacing your address with mine?

comment:4 in reply to:  3 Changed 10 years ago by larryv (Lawrence Velázquez)

No, don’t bother. r116857

Note: See TracTickets for help on using tickets.