8001 Commits

Author SHA1 Message Date
Tim D. Smith
452fbda9af Document Step 2016-06-29 21:16:50 -07:00
Martin Afanasjew
1c27a75ca4 utils/lock.sh: remove redundant 'local' 2016-06-29 22:38:42 +02:00
Martin Afanasjew
b1811f2ef3 analytics: make Linux UUID generation more robust
Not every Linux system has a pre-installed `uuidgen` command (Debian
has a package `uuid-runtime` but doesn't install it by default). In
contrast, `/proc/sys/kernel/random/uuid` is always available on a modern
Linux system and produces type/version 4 UUIDs, just like `uuidgen`.

Closes #416.

Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-06-29 21:07:25 +02:00
Martin Afanasjew
271023c5e1 analytics: handle UUID generation errors
Avoid writing an empty UUID to the Git configuration file and disable
analytics temporarily to avoid sending bogus data with an invalid UUID.
2016-06-29 21:07:25 +02:00
Tim D. Smith
db76a0f4cc Begin documenting environment variables
Closes #405.
2016-06-29 09:03:51 -07:00
Tim D. Smith
8cf11912de Test resolve_test_tap 2016-06-29 09:03:09 -07:00
Tim D. Smith
9b36e83771 Add magic token to hide commands from man page
Closes #402.
2016-06-29 09:01:36 -07:00
Tim D. Smith
be3d33ea36 Document command line options for brew tests 2016-06-29 09:00:46 -07:00
Vlad Shablinsky
da06e813c2
cmd/install: use migration_needed?
Closes #411.

Signed-off-by: Xu Cheng <xucheng@me.com>
2016-06-29 21:04:28 +08:00
Vlad Shablinsky
0d3b5f6849
test_formula: add migration_needed test 2016-06-29 21:04:27 +08:00
Vlad Shablinsky
9c15174e3c
formula: simplify outdated_versions logic 2016-06-29 21:04:27 +08:00
Vlad Shablinsky
d47df68cbd
test_formula: add outdated_versions tests 2016-06-29 21:04:27 +08:00
William Woodruff
cb3ad215b4 test: Add tests for Keg#mach_o_files link behavior.
Move dylib_path and bundle_path from test_mach to testing_env to
accommodate the new tests.

Closes #400.

Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-06-29 14:34:08 +02:00
William Woodruff
d3ef56425a keg_relocate: Exclude hardlinks from mach_o_files. 2016-06-29 14:34:08 +02:00
Martin Afanasjew
d4f5f0cec7 brew.sh: rename 'chdir' to 'safe_cd'
This is inspired by `safe_system` with basically the same implication
(fail on error), making the name a lot less confusing and avoiding a
clash with the `chdir` function previously defined in `bin/brew`.

Closes #414.

Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-06-29 13:38:50 +02:00
Tim D. Smith
cab97cf4d7 Revert "keg_relocate: Exclude hardlinks from mach_o_files."
This reverts commit 3e5e14a59580325faf397b48d62a52f0013a17f2.
2016-06-27 23:25:15 -07:00
Tim D. Smith
70ceb851a5 Revert "test: Add test for Keg#mach_o_files hardlink behavior."
This reverts commit 62d7079684cdb568600e22531c62888622a71ff1.
2016-06-27 23:25:10 -07:00
William Woodruff
62d7079684 test: Add test for Keg#mach_o_files hardlink behavior.
Move dylib_path and bundle_path from test_mach to testing_env to
accommodate the new test.

Closes #400.

Signed-off-by: Tim D. Smith <git@tim-smith.us>
2016-06-27 22:56:28 -07:00
William Woodruff
3e5e14a595 keg_relocate: Exclude hardlinks from mach_o_files. 2016-06-27 22:56:12 -07:00
Xu Cheng
1668e47d1e
test-bot: always use Tap.fetch 2016-06-27 20:03:37 +08:00
Mike McQuaid
fc85a6fab6 test-bot: handle no-tap upload case. 2016-06-25 22:14:49 +01:00
Mike McQuaid
37eaf3b4d2 test-bot: fix testing job bottle upload. 2016-06-25 22:10:49 +01:00
Zhiming Wang
cb711a2d39 create: add --tap option (#389)
This commit adds a --tap option to the create command such that a user
could create a formula in a specified tap instead of the core.
2016-06-24 08:23:41 +02:00
Martin Afanasjew
e2e35def35 bottle: avoid raising exception in ensure block
The `ensure` block can be reached before the tab is modified (and thus
before `original_tab` gets populated). Avoid raising an exception when
attempting to restore a tab that hasn't been modified yet, e.g. because
relocating some of the Mach-O binaries failed.
2016-06-24 06:40:52 +02:00
Xu Cheng
66cda616d1
test-bot: fix diff_formulae
* Fix regression caused by 05649cee60e5349afc328070a0c0e4f6835f97f0
* Use `Tap#formula_file?` to filter formula.
2016-06-23 17:56:10 +08:00
Dominique
05649cee60 test-bot: do not diff tree recursively (#394) 2016-06-23 13:00:29 +08:00
Viktor Szakats
6bd24a7fb8 audit.rb: require https for ftpmirror.gnu.org (#393)
* audit.rb: require https for ftpmirror.gnu.org

The situation is similar to other mirror redirectors: the server
may subsequently redirect to an insecure url. But it's a step.

* manpage: update HOMEBREW_NO_INSECURE_REDIRECT section
2016-06-22 18:56:10 +01:00
Mike McQuaid
915eed4c64 update-report: remove unconditional cask/formula uninstall. 2016-06-22 13:50:39 +01:00
Andrea Kao
8b31167a43 tests: refactor formula file creation (#370) 2016-06-22 13:37:17 +01:00
Anastasia Sulyagina
2d8b4376df update-report: migrate formulae to casks. (#375) 2016-06-22 13:36:17 +01:00
Martin Afanasjew
6dc72f2679 boneyard-formula-pr: relax hub requirement
Don't force installation of the `hub` formula if it can be found in the
search path. (Avoids unnecessary installation when switching between
multiple Homebrew installations for different tasks.)

Closes #384.

Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-06-21 15:26:54 +02:00
Martin Afanasjew
3b3da02cf3 boneyard-formula-pr: fix local branch creation
In local-only mode, the created branches end up tracking `origin/master`
which isn't desirable.
2016-06-21 15:26:54 +02:00
Martin Afanasjew
69401bfe91 boneyard-formula-pr: add local-only mode
Allow boneyarding a formula locally, i.e. make all the necessary changes
in the local repositories but don't push them to a remote and don't open
a pull request automatically.
2016-06-21 15:26:54 +02:00
Luca Favatella
c6022104f9 bottle: delete .pyo files as with .pyc (#382)
This should make more bottles relocatable e.g. ansible.

.pyo files are bytecode as .pyc files but optimized -
[ref](https://www.python.org/dev/peps/pep-0488/)

Ref https://github.com/Homebrew/homebrew-core/pull/2125#issuecomment-226987124
2016-06-21 01:22:58 +02:00
William Woodruff
29bfc4caa3 test-bot: Toggle HOMEBREW_RUBY_MACHO.
Closes #378.

Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-06-20 23:36:18 +02:00
William Woodruff
f3a6385c8c ruby_mach: Update cputype case block.
MachOFile#cputype now returns a Symbol.
2016-06-20 23:36:18 +02:00
William Woodruff
27e489e4c0 vendor: Update vendored ruby-macho to 0.2.4. 2016-06-20 23:36:18 +02:00
Mike McQuaid
b05a596d57 tap: --config unsupported on old Gits. 2016-06-20 13:03:27 +01:00
Steven Peters
f693774323 test-bot: check for conflicts in dependencies (#379) 2016-06-20 08:53:56 +01:00
Martin Afanasjew
806cfeee18 linkage: simplify display logic
Move check for emptiness into the display method, avoiding repetitive
checks on the call site.

Closes #381.

Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-06-19 23:53:25 +02:00
Martin Afanasjew
e65d8e17e7 linkage: fix code style issues 2016-06-19 23:53:25 +02:00
Martin Afanasjew
7812b500b8 linkage: avoid checking symlinks/directories
Prevent raising an error when `HOMEBREW_RUBY_MACHO=1` is set. Skipping
symlinks and directories while iterating over a directory structure to
find Mach-O binaries makes sense and similar logic is applied elsewhere.
2016-06-19 23:53:25 +02:00
Baptiste Fontaine
af94c4fc50 pull: skip non-ruby files when collecting formulae names
Closes #377.

Signed-off-by: Baptiste Fontaine <b@ptistefontaine.fr>
2016-06-19 23:35:16 +02:00
Andrea Kao
cad85754cf tests: add cmd/search integration test (#356) 2016-06-19 22:20:20 +01:00
Martin Afanasjew
5954877962 diagnostic: use 'Utils.git_version', simplify code
Prefer `Utils.git_version` instead of duplicating version detection
logic. Decouple unnecessary conflated availability and version checks.

Closes #351.

Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-06-19 22:12:34 +02:00
Martin Afanasjew
d7b6e9bba9 config: expose used Git version and path
Due to our SCM wrapper in `Library/ENV/scm/git`, lookup is a bit more
complicated than just picking the first match in `PATH`. Make debugging
easier by printing the version and path of the Git actually used by us.
2016-06-19 22:12:34 +02:00
Martin Afanasjew
324a34d8ea utils/git: provide git_path and git_version 2016-06-19 22:12:34 +02:00
ilovezfs
96cbce015e bump-formula-pr: remove formula revision
If we're bumping the formula's stable version, then we also must reset
the formula revision to zero.

Note that if and only if a revision is being removed, this commit will
enforce the convention that there should be a blank line before a simple
head spec if and only if there is a formula revision. Any preexisting
violation of the convention (in particular, a blank line before a simple
head spec in the absence of a formula revision) won't be proactively
corrected since we'd not be removing a formula revision in that case.

Closes #369.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
2016-06-17 08:55:13 -07:00
ilovezfs
cc0ca73183 bump-formula-pr: reflect new version in dry-run
- simulate version change for dry-run
- make sure we're using :devel version if called with --devel

Closes #318.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
2016-06-16 14:25:53 -07:00
msbit
01e8e180a8 ENV: mark gcc-6 as supporting C++11 (#349)
Add SharedEnvExtension#gcc_with_cxx11_support? to centralise the
logic for checking whether a compiler is known to support C++11.

Update logic to accept GCC 4.8 and above (including 6). Thereby also
address oversight in #163 where support for GCC 6 was added without
updating the C++11 compiler whitelist.

Add tests for Superenv#cxx11.

Closes #346.
2016-06-16 14:15:28 +02:00