Currently Upgrade prints out:
"Upgrading 0 outdated package, with result:"
This change makes it print:
"Upgrading 0 outdated packages, with result:"
correctly pluralizing "packages".
Closes#22854.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit fixes a build failure caused by `main`'s use of an implicit
`int` return type specifier.
The embedded patch just makes the return type explicit.
ISSUE
As of C99, a declaration that lacks a type specifier isn't implicitly
assumed to be int, which causes the build to fail with this error:
bbcp.C:61:1: error: C++ requires a type specifier for all declarations
main(int argc, char *argv[], char *envp[])
^~~~
ENVIRONMENT
- g++ : Apple LLVM version 5.0 (clang-500.2.76) (based on LLVM 3.3svn)
- OS : Mac OS X 10.8.5 (Build 12F37)
NOTES
- Confirmed Formula passes audit.
- Also sent the patch to the upstream developer.
Closes#22832.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
When DownloadStrategyDetector.detect is given a second argument, and
that argument is not a symbol or an AbstractDownloadStrategy subclass,
it is silently ignored, and we fall back to guessing the strategy based
on the URL.
This means I can do
url 'http://foo.com/bar.tar.gz', :using => Class.new
and things will appear to work, even though I have clearly passed an
invalid value for :using.
A more useful behavior is to raise an exception for unknown strategy
specifications.
Options are stored in the SoftwareSpec objects these days, so all specs
must be declared before any options, including the bottle spec.
This doesn't make a ton of sense because the bottle doesn't have
options, but until the bottle is made into a property of SoftwareSpec
itself (and that day is coming), this is what happens.
Fixes#22654.
Our wrapper always runs the real xcrun at least once, to try to find
the path of the tool being run, but this meant that we were generating
a huge number of error messages on every cc invocaton. Mostly this was
annoying but harmless, but notably it managed to break the compilation
of go.