4075 Commits

Author SHA1 Message Date
Adam Vandenberg
099a62c95b Move Formula.factory into new Formulary module 2013-06-29 16:44:44 -07:00
Jack Nagel
dbe04be448 Don't attempt to audit md5 checksums, but complain if they are used 2013-06-29 15:36:44 -05:00
Shaun Jackman
f7b8fb1da0 os/linux/hardware: uname -m may be /i[3-6]86/
Closes homebrew/linuxbrew#16

Closes Homebrew/homebrew#20903.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-06-29 13:15:59 -05:00
Adam Vandenberg
3654822f77 Add TODO to canonical_name 2013-06-29 09:40:54 -07:00
Adam Vandenberg
a6777838d4 Pass strings to factory 2013-06-29 09:38:57 -07:00
Mike McQuaid
e62ad08af8 brew-cleanup-installed: add new external command.
brew-cleanup-installed: uninstall all non-whitelisted Homebrew formulae.

Useful for maintainers/testers who regularly install lots of formulae
they don't actually use.

Populate ~/.brew-cleanup-installed with the formulae you want to keep
installed. All others will be uninstalled when brew-cleanup-installed is run.
2013-06-29 13:27:18 +01:00
Mike McQuaid
e6354b84a6 brew-test-bot: change default email subject. 2013-06-29 13:27:18 +01:00
Jack Nagel
f6536e9c8b Reject versions that aren't strings 2013-06-28 21:18:04 -05:00
Jack Nagel
033ef09518 Detect versions in tag specs
Closes Homebrew/homebrew#18300.
Closes Homebrew/homebrew#20891.
2013-06-28 21:17:23 -05:00
Jack Nagel
74b60a561c Simplify custom version scheme handling 2013-06-28 21:17:12 -05:00
Mike McQuaid
edbc0fadd1 brew-test-bot: improve JUnit output for Jenkins. 2013-06-29 01:37:51 +01:00
Mike McQuaid
254b2b9daf brew-test-bot: move command shortening to method. 2013-06-29 01:37:51 +01:00
Mike McQuaid
9497d2f741 brew-test-bot: fix logs in spaced directories. 2013-06-29 01:37:51 +01:00
Adam Vandenberg
6d41707b2b Make non-exes in bin fatal to brew-bot
Closes Homebrew/homebrew#10817.
2013-06-28 08:57:49 -07:00
Paul Fitzpatrick
61076c1a11 brew --env: Add missing CPATH environment variable
Closes Homebrew/homebrew#20813.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-06-27 21:00:22 -07:00
Jack Nagel
0f2c5f33a2 Add an exception for imagemagick in build-time dep audit 2013-06-27 21:17:28 -05:00
Misty De Meo
db38053840 Clarify ENV.gcc, ENV.llvm c++ compiler names 2013-06-27 15:13:02 -05:00
Misty De Meo
0430589fbc superenv cc: specify llvm-g++-4.2
We previously tried to call llvm-g++ under the name `g++`,
but this is now a link to clang on Xcode 5+.

Fixes Homebrew/homebrew#20691.
2013-06-27 14:56:47 -05:00
Misty De Meo
ecfb175cdc Fix :gzip_only extraction
gunzip can only extract files in-place, so just shelling out to
gunzip was actually leaving the uncompressed file in Homebrew's cache,
not in the temporary directory. (It also destroyed the original
compressed file.)
2013-06-27 12:24:58 -05:00
Mike McQuaid
49acf70813 bottles: remove legacy tab handling.
References Homebrew/homebrew#20716.
2013-06-27 10:09:37 +01:00
Jack Nagel
52574240af Use old #eql? for python reqs, for now 2013-06-27 01:43:30 -05:00
Jack Nagel
10949ad75d Fix some #eql? correctness issues
The implementation of #eql? and #hash should ensure that if a.eql?(b),
then a.hash == b.hash, but #eql? itself should not *depend* on #hash.

For example, given

  class Thingy
    def eql?
      instance_of?(other.class) && hash == other.hash
    end

    def hash
      [name, *tags].hash
    end
  end

if #hash produces a collision for different values of [name, *tags], two
Thingy objects will appear to be eql?, even though this is not the case.
Instead, #eql? should depend on the equality of name and tags directly.
2013-06-27 01:18:45 -05:00
Adam Vandenberg
ad291d7f06 Remove unused guard
Closes Homebrew/homebrew#20716.
2013-06-26 20:32:13 -07:00
Jack Nagel
919aac0b89 Add syntax sugar for MPIDependency
Closes Homebrew/homebrew#20797.
2013-06-26 22:18:13 -05:00
Adam Vandenberg
1cd3149677 Be explicit about passing formulae names or instances to Tab 2013-06-26 19:58:08 -07:00
Misty De Meo
5627ed21ce info: Only print Cellar info if it exists 2013-06-26 20:19:55 -05:00
Jack Nagel
cf5c97bbcb Don't use 'obj == nil' 2013-06-26 18:47:00 -05:00
Mike McQuaid
3fe7346760 brew-test-bot: always write something to email file. 2013-06-27 00:25:24 +01:00
Jack Nagel
a89c501486 audit: don't try to audit missing deps
Refs Homebrew/homebrew#20829.
2013-06-26 18:09:12 -05:00
Jack Nagel
249a3f1465 Print inspected values in dependency collector errors 2013-06-26 15:25:09 -05:00
Jack Nagel
ce4b621874 Clean up brew options 2013-06-26 15:11:34 -05:00
Mike McQuaid
872cf44bbc brew-test-bot: fix email subject filename. 2013-06-26 19:57:38 +01:00
Mike McQuaid
4ae5ea7dbe brew-test-bot: remove prefix from email subject. 2013-06-26 19:54:33 +01:00
Adam Vandenberg
dbc1df51f4 Reword uses comment 2013-06-26 11:33:31 -07:00
Mike McQuaid
8dce51e5e5 brew-test-bot: don't install dependencies first.
Now that --build-bottle is filtered we don't need to worry about extra
installation time.
2013-06-26 19:25:47 +01:00
Mike McQuaid
c3b7628726 ARGV: filter build-bottle from dependencies.
Fixes Homebrew/homebrew#20682.
2013-06-26 19:25:39 +01:00
Mike McQuaid
7cf6ce393d brew-test-bot: force fetching formulae.
References Homebrew/homebrew#20807.
2013-06-26 19:21:32 +01:00
David Rice
59f3d0d6f6 Detect Command Line Tools on Mavericks.
Closes Homebrew/homebrew#20774.
2013-06-26 19:09:06 +01:00
Jack Nagel
0d35455820 Formula.each: note why import failed
Refs Homebrew/homebrew#20819.
2013-06-26 13:02:48 -05:00
Jack Nagel
c8ae97dde8 uses: fail fast if invalid formula names are given
Fixes Homebrew/homebrew#20819.
2013-06-26 12:59:46 -05:00
Adam Vandenberg
f4f54b79b7 Skip test on Xcode only systems 2013-06-26 09:45:32 -07:00
Jack Nagel
3abd9455a3 Rename Fortran requirement to fix option generation
So, `depends_on :fortran => :optional` will generate "--with-fortran"
rather than "--with-fortranRequired".
2013-06-25 21:12:15 -05:00
Adam Vandenberg
faaac9482e Fix info --github
Closes Homebrew/homebrew#20780.
2013-06-25 11:21:04 -07:00
Jack Nagel
915977889c Note which formula's requirements failed
Closes Homebrew/homebrew#20713.
2013-06-25 10:37:34 -05:00
Jack Nagel
3b725995ba Yield correct dependent when expanding requirements 2013-06-25 10:12:14 -05:00
Jack Nagel
783f29fccb Uniqify tags when merging dependencies 2013-06-25 10:12:14 -05:00
Jack Nagel
a4988411ad brew-server: fix reference to removed method
Fixes Homebrew/homebrew#20744.
2013-06-24 12:50:57 -05:00
Jack Nagel
553b1a0dbb Requirement: callers are responsible for invoking #satisfied?
This hack was necessary since requirements were not checked again
in the forked build process, but now they are, and calling it again
after the build environment has been set up can produce incorrect
results. In fact, if it happens to return false the second time,
the env modification will be skipped altogether.
2013-06-24 10:42:43 -05:00
Adam Vandenberg
371c1acfe4 Add 'From:' to GitHub url for formula
Closes Homebrew/homebrew#20724.
2013-06-24 07:43:29 -07:00
Adam Vandenberg
aafe2f20d0 Add Fortran ENV helpers 2013-06-24 07:38:25 -07:00