5541 Commits

Author SHA1 Message Date
Jack Nagel
ca786e7054 Add bash completion for brew bottle 2014-03-29 22:26:03 -05:00
Jack Nagel
be46fc3a48 Relocate files in share/pkgconfig too 2014-03-29 22:18:48 -05:00
Jack Nagel
3ddd7b8ebb Calling find on nonexistent directories only works on 1.8 2014-03-29 22:18:48 -05:00
Jack Nagel
c8c85b4ac4 Always call Process.wait with an argument 2014-03-29 17:47:42 -05:00
Erlend Hamberg
a7c220debf zsh_completion: add brew switch support.
The Homebrew command `switch` will now be completed and installed
fomulas can be completed. The installed versions (the last argument of
`brew switch [formula] [version]`) is not completed at this point.

Closes Homebrew/homebrew#27966.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-03-29 16:19:57 -05:00
Jack Nagel
fcb9c4d5fb Future-proof the build process fork/wait 2014-03-29 10:23:43 -05:00
Jack Nagel
809c804499 Make sure we wait for the correct child
Fixes Homebrew/homebrew#27962.
2014-03-29 02:24:01 -05:00
Jack Nagel
c27eed10bd Simplify collecting options 2014-03-28 20:42:55 -05:00
Jack Nagel
a487909e9a Don't rely on Dependency#to_s 2014-03-28 20:42:20 -05:00
Jack Nagel
3871165c58 Add revision to brew info --json
Closes Homebrew/homebrew#27820.
2014-03-28 20:41:02 -05:00
Jack Nagel
1c558d49dd Filter arguments for setup.py and build.py 2014-03-28 19:04:31 -05:00
Jack Nagel
56feb978b8 Make ENV changes in the child so we don't have to roll them back 2014-03-28 19:04:05 -05:00
Misty De Meo
0ec7e39287 Add ENV.refurbish_args helper
Rationale: our arg refurbishment is normally only turned on when
called via the `make` wrapper, for compatibility reasons. However,
there are numberous places we'd like this to be turned on elsewhere,
like software that builds via `python setup.py` where bad flags from
the system python can be pulled in.

This helper appends 'O' to CCCFG, which enables refurbishment for
all calls of the compiler shims.
2014-03-28 17:02:14 -07:00
Dominique Orban
05d759606a Move hwloc to homebrew/science.
Closes Homebrew/homebrew#27949.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-03-28 15:03:44 -05:00
Jack Nagel
26f7393ea9 Remove -fcaller-saves and -fthread-jumps for clang 2014-03-28 14:50:05 -05:00
Adam Vandenberg
2faeafd89d Migrate dotwrp, qrupdate, slicot to homebrew-science
Closes Homebrew/homebrew#27743.
2014-03-28 07:55:23 -07:00
Jack Nagel
e21a1fab51 Move initializer after constants and class methods 2014-03-27 22:35:08 -05:00
Jack Nagel
685bf070d1 Fix class definition so we can require files first 2014-03-27 22:34:22 -05:00
Jack Nagel
b25156ca4a Only write files if we actually made a change 2014-03-27 21:42:09 -05:00
Jack Nagel
4e918666d7 Return early so we can reduce nesting of conditionals 2014-03-27 18:42:19 -05:00
Jack Nagel
ed0be26c77 Fix overly defensive handling of src parameter in make_relative_symlink
This method is for internal use only. It is unsuitable for use in
formulae, which should use install_symlink to create relative symlinks.
Thus callers are required to pass a Pathname, not a string, and we can
remove this conditional.

Further, if src is not absolute, then src.relative_path_from(dirname)
will fail. All callers currently pass absolute pathnames. Therefore we
don't need to call expand_path when printing it.
2014-03-27 17:54:07 -05:00
Jack Nagel
02a1d71871 Don't mix boolean operator types 2014-03-27 17:37:38 -05:00
Jack Nagel
7c5e0eb507 Put constant strings in a constant 2014-03-27 17:14:55 -05:00
Jack Nagel
cb9ee747e0 Fix Keg#find so we don't have to deal with it everywhere
lol inheritance
2014-03-27 17:06:05 -05:00
Jack Nagel
1f0d424459 link: fix output ordering when exceptions are raised 2014-03-27 16:27:46 -05:00
Jack Nagel
3a48d7ab9b link: print wrapper is not always required 2014-03-27 16:27:46 -05:00
Jack Nagel
ad7911bb75 Replace files atomically when relocating, take two 2014-03-27 14:23:49 -05:00
Jack Nagel
0c99e64851 Revert "Replace files atomically when relocating"
There are some weird interactions with ensure_writable and atomic_write
that need to be sorted out.

Fixes Homebrew/homebrew#27917.

This reverts commit 41c21e6ea5647823a9e589a56f0494b622e26fb2.
2014-03-27 13:45:37 -05:00
Misty De Meo
38e26ed929 extend/string: backport #rpartition 2014-03-27 10:14:08 -07:00
Jack Nagel
a0851c1380 Assert that Keg#link produces relative symlinks 2014-03-27 09:59:54 -05:00
Jack Nagel
3e9a88c365 Assert that the broken symlink is actually overwritten 2014-03-27 09:59:54 -05:00
Jack Nagel
e9ee640024 Don't let broken symlinks halt linking 2014-03-27 09:35:10 -05:00
Jack Nagel
f6b5c83482 Fix conflicting symlink advice
Closes Homebrew/homebrew#27899.
2014-03-27 09:35:10 -05:00
Jack Nagel
714bfee8d9 Add missing newline to link and unlink in verbose mode 2014-03-26 21:53:34 -05:00
Jack Nagel
7b389fbfed Replace files atomically in inreplace 2014-03-26 16:07:49 -05:00
Jack Nagel
4fe0be37c0 Drop intermediate variable 2014-03-26 16:07:49 -05:00
Jack Nagel
91d31ae1f4 Replace files atomically when relocating 2014-03-26 16:07:49 -05:00
Jack Nagel
976bf3f60b Tab#write always overwrites, no need to unlink 2014-03-26 16:07:49 -05:00
Jack Nagel
e5fbc9c92e Fall back to Process.gid if we aren't a member of the file's group 2014-03-26 13:45:46 -05:00
Jack Nagel
03fca453c4 Put tempfile into binmode before writing 2014-03-26 13:45:46 -05:00
Misty De Meo
3943a77832 CLT.installed?: base result on version detection
CLT.installed? previously returned false if the user had outdated dev
tools installed after a 10.9 upgrade, which was confusing to users.
2014-03-26 10:35:30 -07:00
Jack Nagel
b5e2996365 Failing to install plist shouldn't prevent linking 2014-03-25 23:47:37 -05:00
Jack Nagel
50f394032f Write plists atomically 2014-03-25 23:45:23 -05:00
Mike McQuaid
6e86976920 Revert "doctor: use double quotes for setting PATH."
I'm an idiot.

This reverts commit f890e4973840a66a522189c8e5530bff61d17162.
2014-03-25 16:20:53 +00:00
Mike McQuaid
7846ed4f76 audit: don't warn about tarball in non-GitHub URL. 2014-03-25 16:14:03 +00:00
Mike McQuaid
0d898edc37 doctor: use double quotes for setting PATH.
Closes Homebrew/homebrew#27619.
2014-03-25 16:02:19 +00:00
dinkypumpkin
bfc6a73cba cc: don't add linker arguments if only -v passed.
Supports configure scripts (e.g., mplayer) that use "gcc -v" to
identify compiler.

Closes Homebrew/homebrew#27793.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-03-25 08:15:35 +00:00
Jack Nagel
25c7b49eee Don't load the full debugger when readline is the formula being installed
Fixes Homebrew/homebrew#27842.
2014-03-25 01:39:43 -05:00
Jack Nagel
4365292374 Filter -fno-delete-null-pointer-checks for clang
Fixes Homebrew/homebrew#27836.
2014-03-24 20:05:33 -05:00
Jack Nagel
a72061c59a Check existence of target keg instead of hiding exceptions 2014-03-24 11:00:55 -05:00