FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(stm32CubeProg): fallback to BSD getopt on mac by fpistm · Pull Request #100 · stm32duino/Arduino_Tools · GitHub

fix(stm32CubeProg): fallback to BSD getopt on mac - #100

Merged
fpistm merged 1 commit into
stm32duino:mainfrom
fpistm:getopt
Jul 17, 2024
Merged

fix(stm32CubeProg): fallback to BSD getopt on mac#100
fpistm merged 1 commit into
stm32duino:mainfrom
fpistm:getopt

Conversation

fpistm commented Jul 1, 2024
edited
Loading

Copy link
Copy Markdown
Member

By default, MacOS uses getopt from FreeBSD and not the GNU-based one.
Then "-o" and long options are not supported except if gnu-getopt is installed.

Fixes #99

Main advantage to kept GNU getopt by default is it is able to deal with space in arguments.
Install the package gnu-getopt via e.g. Homebrew:

brew install gnu-getopt

If not installed the BSD getopt is used but long option and space in arguments are not supported.

fpistm added the enhancement New feature or request label Jul 1, 2024
fpistm added this to the 2.2.3 milestone Jul 1, 2024
fpistm force-pushed the getopt branch 2 times, most recently from 439a07d to 4020213 Compare July 15, 2024 13:10
fpistm force-pushed the getopt branch 2 times, most recently from 8fee15e to 1c5f1bd Compare July 15, 2024 14:59
Comment thread stm32CubeProg.sh
By default, MacOS uses getopt from FreeBSD and not the GNU-based one.
Then "-o" and long options are not supported except if gnu-getopt
is installed.

Fixes stm32duino#99

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
fpistm changed the title fix(stm32CubeProg): use BSD getopt fix(stm32CubeProg): fallback to BSD getopt on mac Jul 17, 2024
fpistm merged commit 17a14b7 into stm32duino:main Jul 17, 2024
fpistm deleted the getopt branch July 17, 2024 15:28
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Development

Successfully merging this pull request may close these issues.

Cannot upload sketch on MacOS

2 participants


Back | FazBrowse Home | New Git URL