aboutsummaryrefslogtreecommitdiffstats
path: root/Library
AgeCommit message (Collapse)Author
2015-12-28kibana 4.3.0Jason Tedor
Closes Homebrew/homebrew#46593. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-12-27pod2man wrapper: allow non-/usr/bin pod2menMisty De Meo
2015-12-27cmd/options.rb: move common code in options.rbBaptiste Fontaine
Closes Homebrew/homebrew#47423. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-12-27more formula testsBaptiste Fontaine
Closes Homebrew/homebrew#47404. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-12-26Revert "minor perf improvements"Baptiste Fontaine
This reverts commit 16a2a8274a7808e63a6c78475e12a7c0ef5812ef.
2015-12-26minor perf improvementsBaptiste Fontaine
Closes Homebrew/homebrew#47224. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-12-26Add -DNDEBUG to std_cmake_argsAlex Wang
CMake has -DNDEBUG and -O3 as its default flags for Release builds. Homebrew clears out the default CMake flags, which is fine for optimization because Homebrew passes its own optimization flag(s). -DNDEBUG wasn't added back in, though. This ensures -DNDEBUG is passed to CMake release builds by default, instead of individual formulas having to add it explicitly. This also removes explicit additions of -DNDEBUG from the formulae that had them -- gflags, llvm, and taglib. Closes Homebrew/homebrew#47378. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-12-26Fix version parsing on URLs with no extensionsStefano Pigozzi
2015-12-26IntegrationCommandTests: improve bottle testXu Cheng
Also let `cmd_output` capture `$stderr` Closes Homebrew/homebrew#47383. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-12-26bottle: prevent bottling formula outside core or tapsXu Cheng
Closes Homebrew/homebrew#47233.
2015-12-26doctor: check_access_usr_local mention Cocktail.Joao Antunes
Added mention to Cocktail app cleanup/repair/optimizations, that has some features that when run they restore the /usr/local directory to the original 'not writable' state in OS X 10.11 . Closes Homebrew/homebrew#47379. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-12-26tap: improve arguments resolutionXu Cheng
* Use `ARGV.include?` instead of `ARGV.first ==`, so users can pass `-v`/`-d` before the function flags(i.e. `--list-pinned` etc) * Restore the ability to call `brew tap --flags tap/name`.
2015-12-25Improve Haskell language supportMiëtek Bak
Removes the need to call setup_ghc_compilers in every Haskell language formula, by automatically calling fails_with. Adds a :home option to the cabal_sandbox method. This option allows a specific temporary HOME to be used instead of the current working directory, and in turn allows a single Cabal package database to be reused between multiple calls to this method. Avoids updating the Cabal package database more than once if cabal_sandbox is called multiple times. Removes the need to call cabal_clean_lib whenever cabal_sandbox is called, by automatically cleaning the lib directory. Adds a :keep_lib option to the cabal_sandbox method. This option allows opting out of the automatic cleaning. Ensures build products are always removed from the current working directory. Removes a workaround for versions of cabal-install older than 1.20.0.0. Adds a cabal_sandbox_add_source method. Adds a :using option to the install_cabal_package method. This option allows specifying the Haskell language tools that are required to install a particular formula, and in turn allows formulae to be simplified by replacing calls to multiple methods with a single call to this method. Allows customizing the call to install_cabal_package by giving a block. Removes empty method shells. Closes Homebrew/homebrew#47293. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-12-25tap: don't backtrace on invalid options.Mike McQuaid
Closes Homebrew/homebrew#47162.
2015-12-23tests: pass --trace and named args to rakeBaptiste Fontaine
Closes Homebrew/homebrew#47279. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-12-23blacklist tests addedBaptiste Fontaine
Closes Homebrew/homebrew#47280. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-12-23ENV: avoid misleading Fortran setup warningsMartin Afanasjew
Fixes Homebrew/homebrew#31156. Closes Homebrew/homebrew#47246. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2015-12-22Reimplement #pretty_durationSebastian Staudt
Also reuse this improved implementation in the GitHub rate limit errors. Closes Homebrew/homebrew#44721. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-12-21brew.rb: only print "Kernel.exit" on failures.Mike McQuaid
Also, print as a warning to STDERR and print a backtrace in debug mode. Closes Homebrew/homebrew#47099. Closes Homebrew/homebrew#47154. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-12-21bottle: don't read mtime from nonexistant filesØyvind Ingebrigtsen Øvergaard
If the source contains a broken symlink, `brew bottle` would fail for no good reason when trying to determine the most recently modified file. To avoid this, we ignore any files for which stat(2) fails. Closes Homebrew/homebrew#47111. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-12-21tests: add coveralls supportXu Cheng
Closes Homebrew/homebrew#47185. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-12-21test-bot: enable coverage on travisXu Cheng
2015-12-20more core unit testsBaptiste Fontaine
Closes Homebrew/homebrew#47182. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-12-19add IntergrationCommandTests#test_tapXu Cheng
Closes Homebrew/homebrew#47177. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-12-19add IntergrationCommandTests#test_readallXu Cheng
2015-12-19add test_tapXu Cheng
2015-12-19Tap#unlink_manpages: fix symlink pathXu Cheng
2015-12-19Tap#unpin: remove PinnedTaps directory if it's emptyXu Cheng
2015-12-19move CoreFormulaRepository into separate fileXu Cheng
For users whose local brew is at around 2015-06-11 to 2015-08-06, running `brew update` will emit following error: Error: uninitialized constant Formulary::CoreFormulaRepository This is caused by the same bug described in Homebrew/homebrew#42553. This commit workarounds this issue and restores `brew update` compatibility for users mentioned above. Also cleanup legacy `require "cmd/tap"`.
2015-12-19readall: use Tap object to locate alias directoryXu Cheng
Let's hide implementation detail on where to find alias directory. This will benefit future core code and formulae separation. Also let `brew readall` check aliases for all taps.
2015-12-19readall: allow interruptXu Cheng
2015-12-19formulary: use CoreFormulaRepositoryXu Cheng
Let's hide implementation detail on where to find core formulae alias directory. This will benefit future core code and formulae separation.
2015-12-19update-test: allow setting start commitXu Cheng
To use origin/master as start commit brew update-test To use <sha1> as start commit brew update-test --commit=<sha1> To use commit at <date> as start commit brew update-test --before=<date> Also print start/end commit for debug purpose
2015-12-19lsyncd: use MACOS_FULL_VERSIONXu Cheng
This commit partial reverts beed39e46fa021dd1c133c2c8eaaa81b524e68c7. For users whose local brew is at around 2015-06-02 to 2015-06-11, running `brew update` will emit following error: Error: undefined method 'full_version' for OS::Mac:Module This is caused by the same bug described in Homebrew/homebrew#42553. Let's use `MACOS_FULL_VERSION` for now to restore `brew update` compatibility for these users. TODO: revert this commit after core code and formulae separation.
2015-12-18cmd/cleanup: cleanup java_cacheDominyk Tiller
2015-12-18env: add java_cache envDominyk Tiller
2015-12-18Add some more integration command tests.Mike McQuaid
Add them for `install`, `bottle`, `uninstall`, `cleanup`. Closes Homebrew/homebrew#47079. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-12-17mydumper: MySQL Data Dumper and LoaderSteven Willis
* Include install option --without-docs to disable creation of docs * Include patch to successfully find osx dylibs and ignore glib static libs * Remove mydumper from tap_migrations.rb Closes Homebrew/homebrew#45892. Signed-off-by: Andrew Janke <andrew@apjanke.net>
2015-12-17dependency: fix merging tags in 'merge_repeats'Martin Afanasjew
While it may suffice to merge string and non-reserved tags by forming a union of all tags of dependencies of the same name, this approach fails to work for the reserved tags. These are now merged such that the most restrictive tag (meaning sometimes an empty tag) is preserved. The previous behavior caused essential dependencies to be omitted and builds to fail in response. E.g., multiple `:fortran` dependencies with tags `[]`, `[:recommended]`, and `[:optional]` would have been expanded and merged to `"gcc"` with tags `[:recommended, :optional]`, causing it to be no longer seen as a required dependency. Closes Homebrew/homebrew#47040. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2015-12-17tests: add (failing) tests for merging deps tagsMartin Afanasjew
The general idea is that merging multiple dependencies of the same name should produce the strictest tag instead of a (meaningless) union of the reserved tags. For example, if a dependency is both a `:recommended` and an `:optional` dependency at different points in the dependency tree, the resulting merged dependency should be tagged as `:recommended`. Handle all other reserved tags in the same spirit.
2015-12-17tests: rely on fewer implementation detailsMartin Afanasjew
These tests were using too much semi-global state (instance variables) and relied unnecessarily on the exact number of calls to `optional?` and `recommended?` in the `Depedable` module.
2015-12-16bottle: fix Ruby 1.8 breakageMartin Afanasjew
`OpenStruct` (of which `Tab` is a subclass) doesn't support subscripting with square brackets. Use normal dot notation to restore compatibility.
2015-12-15bottle: don't use empty tab.Mike McQuaid
2015-12-15audit: don't fail if there's no tapBaptiste Fontaine
Closes Homebrew/homebrew#47041. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-12-15bottle: make bottle checksums reproducible.Mike McQuaid
I've set all the variable data to versions that are dependent on the latest source file date and various modification dates also to the latest source file date. With this if you rerun `brew bottle` multiple times in a row you will see the same checksum even if you have `brew reinstall`ed (as long as upstream does not hardcode e.g. the build date). I debugged this with diffoscope and worked on this as part of the Athens 2015 reproducible builds workshop: https://reproducible-builds.org/events/athens2015/ Closes Homebrew/homebrew#46587. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-12-15Allow multiple option_names in dep/reqs.Mike McQuaid
This means that dependencies can be merged but still maintain all their option names. Closes Homebrew/homebrew#46916. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-12-15test_dependency: add failing option names test.Mike McQuaid
This test will obviously fail but it does mark that the option names are not being merged correctly.
2015-12-15Add option_name tests.Mike McQuaid
2015-12-15formula_installer: prefer 'Dependable#run?'Martin Afanasjew
Both `req.tags.include?(:run)` and `req.run?` are currently equivalent, but the latter relies less on implementation details.
2015-12-14pretty_duration: fixed for int argumentsBaptiste Fontaine
Without this the returned string is not as accurate if the method is called with an int larger than 120. Closes Homebrew/homebrew#47002. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>