Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When XCode changes for a rebuild if needed. #5690

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 21 additions & 4 deletions xcode.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,25 @@
package: Xcode
version: "1.0"
system_requirement_missing: |
Please make sure you install Xcode and the command line tools using xcode-select --install
system_requirement: "(osx.*)"
system_requirement_check: |
prefer_system: ".*"
prefer_system_check: |
# In case we are not on Darwin, this should not be included

Check notice on line 5 in xcode.sh

View workflow job for this annotation

GitHub Actions / alidistlint

Missing script shebang. Use exactly "#!/bin/bash -e" to match aliBuild environment. You may see spurious errors until you fix the shebang. [ali:bad-shebang]

Check notice on line 5 in xcode.sh

View workflow job for this annotation

GitHub Actions / alidistlint

Missing script shebang. Use exactly "#!/bin/bash -e" to match aliBuild environment. You may see spurious errors until you fix the shebang. [ali:bad-shebang]
case `uname -o` in

Check notice on line 6 in xcode.sh

View workflow job for this annotation

GitHub Actions / alidistlint

Use $(...) notation instead of legacy backticks `...`. [SC2006]

Check notice on line 6 in xcode.sh

View workflow job for this annotation

GitHub Actions / alidistlint

Use $(...) notation instead of legacy backticks `...`. [SC2006]
Darwin) ;;
*) echo "alibuild_system_replace: unsupported" ;;
esac
xcode-select -p && echo '#include <AvailabilityMacros.h>' | clang++ -x c++ - -c -o /dev/null
XCODE_VERSION="$(xcode-select -v | sed -e 's/[^0-9]//g')"
echo "alibuild_system_replace: ${XCODE_VERSION}"
prefer_system_replacement_specs:
unsupported:
version: "unsupported"
recipe: |
echo "XCode not supported on $(uname -o). Please check your dependencies."

Check notice on line 17 in xcode.sh

View workflow job for this annotation

GitHub Actions / alidistlint

prefer_system_replacement_specs.unsupported.recipe should create a Modulefile; use alibuild-generate-module or add a "#%Module1.0" comment to your manually-created Modulefile [ali:missing-modulefile]

Check notice on line 17 in xcode.sh

View workflow job for this annotation

GitHub Actions / alidistlint

Missing script shebang. Use exactly "#!/bin/bash -e" to match aliBuild environment. You may see spurious errors until you fix the shebang. [ali:bad-shebang]

Check notice on line 17 in xcode.sh

View workflow job for this annotation

GitHub Actions / alidistlint

prefer_system_replacement_specs.unsupported.recipe should create a Modulefile; use alibuild-generate-module or add a "#%Module1.0" comment to your manually-created Modulefile [ali:missing-modulefile]

Check notice on line 17 in xcode.sh

View workflow job for this annotation

GitHub Actions / alidistlint

Missing script shebang. Use exactly "#!/bin/bash -e" to match aliBuild environment. You may see spurious errors until you fix the shebang. [ali:bad-shebang]
exit 1
"[0-9]+":
version: "%(key)s"

Check failure on line 20 in xcode.sh

View workflow job for this annotation

GitHub Actions / alidistlint

prefer_system_replacement_specs.[0-9]+.version: substitution variable 'key' is invalid [ali:schema]

Check failure on line 20 in xcode.sh

View workflow job for this annotation

GitHub Actions / alidistlint

prefer_system_replacement_specs.[0-9]+.version: substitution variable 'key' is invalid [ali:schema]
recipe: |
exit 0

Check notice on line 22 in xcode.sh

View workflow job for this annotation

GitHub Actions / alidistlint

prefer_system_replacement_specs.[0-9]+.recipe should create a Modulefile; use alibuild-generate-module or add a "#%Module1.0" comment to your manually-created Modulefile [ali:missing-modulefile]

Check notice on line 22 in xcode.sh

View workflow job for this annotation

GitHub Actions / alidistlint

Missing script shebang. Use exactly "#!/bin/bash -e" to match aliBuild environment. You may see spurious errors until you fix the shebang. [ali:bad-shebang]

Check notice on line 22 in xcode.sh

View workflow job for this annotation

GitHub Actions / alidistlint

prefer_system_replacement_specs.[0-9]+.recipe should create a Modulefile; use alibuild-generate-module or add a "#%Module1.0" comment to your manually-created Modulefile [ali:missing-modulefile]

Check notice on line 22 in xcode.sh

View workflow job for this annotation

GitHub Actions / alidistlint

Missing script shebang. Use exactly "#!/bin/bash -e" to match aliBuild environment. You may see spurious errors until you fix the shebang. [ali:bad-shebang]
---
echo "Please make sure you install Xcode and the command line tools using xcode-select --install."

Check notice on line 24 in xcode.sh

View workflow job for this annotation

GitHub Actions / alidistlint

main recipe should create a Modulefile; use alibuild-generate-module or add a "#%Module1.0" comment to your manually-created Modulefile [ali:missing-modulefile]

Check notice on line 24 in xcode.sh

View workflow job for this annotation

GitHub Actions / alidistlint

Missing script shebang. Use exactly "#!/bin/bash -e" to match aliBuild environment. You may see spurious errors until you fix the shebang. [ali:bad-shebang]

Check notice on line 24 in xcode.sh

View workflow job for this annotation

GitHub Actions / alidistlint

main recipe should create a Modulefile; use alibuild-generate-module or add a "#%Module1.0" comment to your manually-created Modulefile [ali:missing-modulefile]

Check notice on line 24 in xcode.sh

View workflow job for this annotation

GitHub Actions / alidistlint

Missing script shebang. Use exactly "#!/bin/bash -e" to match aliBuild environment. You may see spurious errors until you fix the shebang. [ali:bad-shebang]
exit 1
Loading