Skip to content
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.

Fix dev_setup.sh max cores detection #2857

Merged
merged 1 commit into from
Mar 15, 2021

Conversation

forslund
Copy link
Collaborator

Description

Fixes issue with non-english setups calculating number of CPU's to use when building mimic.

Define LANGUAGE along with LANG to ensure that free uses english output.

Alternative solution seems to be to use LANG=C (and dropping the utf-8 part), not sure which is technically better.

How to test

Using non-english locale and ensure the script doesn't report error on line 541 similar to

./dev_setup.sh: rad 541: / 2202010: syntaxfel: en operand förväntades (felsymbol är ”/ 2202010”)

Contributor license agreement signed?

CLA [ Yes ]

Define LANGUAGE along with LANG to ensure that free uses english output
@forslund forslund added the Type: Bug - quick Bug fixes that are quick to review and the implications of the change are clear and contained. label Mar 14, 2021
@devops-mycroft devops-mycroft added the CLA: Yes Contributor License Agreement exists (see https://github.com/MycroftAI/contributors) label Mar 14, 2021
@devops-mycroft
Copy link

Voight Kampff Integration Test Succeeded (Results)

Copy link
Contributor

@krisgesling krisgesling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If someone works out a better solution happy to hear it, but this can't hurt.

@krisgesling krisgesling merged commit e68d511 into MycroftAI:dev Mar 15, 2021
@forslund forslund deleted the bugfix/max-cores-detection branch March 15, 2021 05:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA: Yes Contributor License Agreement exists (see https://github.com/MycroftAI/contributors) Type: Bug - quick Bug fixes that are quick to review and the implications of the change are clear and contained.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants