Opened 4 years ago

Closed 18 months ago

Last modified 18 months ago

#60645 closed defect (fixed)

pg app: launch script functionality: use sh, rather than bash, as latter may ultimately be removed from macOS

Reported by: kencu (Ken) Owned by: mascguy (Christopher Nielsen)
Priority: Normal Milestone:
Component: ports Version:
Keywords: portgroup Cc:
Port:

Description

The app PortGroup currently generates a launch script like this:

#!/bin/bash
export PATH="/opt/local/bin:/opt/local/sbin:$PATH"
exec /opt/local/bin/gedit

but now that Catalina doesn't use bash we may have to change that to

#!/bin/sh
export PATH="/opt/local/bin:/opt/local/sbin:$PATH"
exec /opt/local/bin/gedit

or perhaps there is a better method.

Change History (7)

comment:1 Changed 4 years ago by kencu (Ken)

Summary: app PortGroupapp PortGroup specifies using bash, but Catalina no longer uses bash

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

/bin/bash still exists on Catalina so there is no urgent need to change anything. Perhaps it will disappear in a future version of macOS.

Presumably the script is simple enough and POSIX-compliant enough that we should be specifying /bin/sh instead. But if the portgroup's script generation is changed, all ports that use that script generation should have their revisions increased.

comment:3 Changed 2 years ago by mascguy (Christopher Nielsen)

Keywords: portgroup added

Add keyword portgroup, to pg-related tickets

comment:4 Changed 2 years ago by mascguy (Christopher Nielsen)

Cc: mascguy added

comment:5 Changed 2 years ago by mascguy (Christopher Nielsen)

Cc: mascguy removed
Owner: set to mascguy
Status: newassigned
Summary: app PortGroup specifies using bash, but Catalina no longer uses bashpg app: launch script functionality: use sh, rather than bash, as latter may ultimately be removed from macOS

comment:6 Changed 18 months ago by Christopher Nielsen <mascguy@…>

Resolution: fixed
Status: assignedclosed

In dd63ec0e89f25a26943a46547914c137ed9908a6/macports-ports (master):

pg app: launch script: use sh, rather than bash
Fixes: #60645

comment:7 Changed 18 months ago by Christopher Nielsen <mascguy@…>

In 3c1f567deb536e12a75f4ddfdc462b820e235e4b/macports-ports (master):

pg app: rev-bump ports for launch script change
See: #60645

Note: See TracTickets for help on using tickets.