Commit Graph
505 Commits
Author SHA1 Message Date
cadrpear 307348abc3 Fix building universal binaries on 32-bit CPUs
[jn: style, update comment]

Closes #25728.
Fixes #26834.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-02-19 14:15:03 -05:00
Jack Nagel 148dc55120 Stop exporting HOMEBREW_VERBOSE to build environment
This flag no longer affects the output of the compiler wrappers, since
everything is buffered by the build process rather than each individual
tool.

Additionally, this is a user-facing knob that affects ARGV.verbose?, and
the combination of these two issues broke the --quieter feature.
2014-02-18 21:46:26 -05:00
Jack Nagel 76c55c4810 Inline static exception text to remove a rescue 2014-02-18 13:27:35 -05:00
Misty De Meo 1cb51e2870 ARGV.help?: anchor to end of string
Fixes #26735.
2014-02-14 16:23:38 -08:00
Mike McQuaid bf41a56f19 brew: check for --help and friends in more of ARGV
Let's check for e.g. --help anywhere in the ARGV array rather than just
the first value to avoid brew upgrade --help causing problems.

Closes #26675.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-02-14 18:32:56 +00:00
Jack Nagel d77a4b24b3 Delete unused method 2014-02-12 14:28:26 -05:00
Adam Vandenberg cc1b430c5b Revert "Recognize --head as an alias for --HEAD"
This reverts commit c32ab0a35a.

There are other hard-coded uses of HEAD, in build_options for instance.
These all need to be fixed before enabling this.
2014-02-11 21:25:26 -08:00
Misty De Meo c32ab0a35a Recognize --head as an alias for --HEAD
Homebrew currently recognizes "--head" during the install process, but
rather than actually fetch HEAD it just nags the user to use the
correct option.	Since we recognize the spelling anyway, this just
promotes the lowercase version to an official alias.

Closes #26555.
2014-02-09 15:44:49 -08:00
Camillo Lugaresi 9f3c074e12 Correctly find Homebrew-installed fortran
Fixes #26338.
Closes #26352.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-02-02 14:13:53 -05:00
Misty De Meo 6896f9d178 Revert "Add python superenv wrapper"
This reverts commit 90e22e389c.
2014-01-27 20:46:04 -08:00
Misty De Meo 90e22e389c Add python superenv wrapper
Closes #26140.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2014-01-26 10:55:49 -08:00
Jack Nagel 620cf657e1 Fix typo 2014-01-11 21:28:25 -06:00
Mike McQuaid b932815490 Pathname: add methods to write env scripts. 2014-01-04 13:19:20 +00:00
Mike McQuaid f12d181433 ENV: add method to prepend and create a PATH. 2014-01-04 13:19:20 +00:00
Misty De Meo 02612e270b ENV.gcc: remove raise
This raise happened in no other ENV methods, and isn't really necessary
since fails_with guards against this method actually being called unless
gcc-4.2 is actually installed.
2014-01-04 01:22:04 -08:00
Misty De Meo 84f6f158c9 Recommit ENV changes 2014-01-04 01:20:56 -08:00
Mike McQuaid 8500b63a87 Revert "stdenv: fix self.cc check"
This reverts commit 0e1d52c0d3.
2014-01-04 09:14:28 +00:00
Mike McQuaid a4f61ecc89 Revert "stdenv: set correct compiler symbol for gcc 4.0"
This reverts commit f4dc561495.
2014-01-04 09:14:25 +00:00
Misty De Meo f4dc561495 stdenv: set correct compiler symbol for gcc 4.0 2014-01-03 19:13:35 -08:00
Misty De Meo 0e1d52c0d3 stdenv: fix self.cc check
Since ENV.cc/cxx are accessors to ENV, any values being passed through
are coerced into strings, which means that a nil `ENV.cc` is actually
an empty string - which isn't considered to be false in Ruby.

Fixes mistydemeo/tigerbrew#161.
Fixes mistydemeo/tigerbrew#135.
2014-01-03 17:59:00 -08:00
Jack Nagel 76c0e47d97 superenv: don't accidentally filter out HOMEBREW_TEMP
Fixes #25471.
2013-12-27 13:01:41 -06:00
Steven Peters 6404085835 install: add --only-dependencies option
The traditional approach to installing the dependencies of a formula is
the following:

  brew install `brew deps formula`

This approach ignores any options that are specified in the parent
formula. This pull request adds a --only-dependencies option to brew
install that installs the dependencies of a formula with optional flags,
but returns before installing the parent formula.

Closes #25272.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-12-19 16:43:42 -06:00
Jack Nagel 8e2e76d99a Extract HOMEBREW_TEMP constant 2013-12-14 09:35:58 -06:00
Jack Nagel 1ed7284548 Move Pathname#dynamically_linked_libraries to mach module 2013-12-14 09:35:58 -06:00
Jack Nagel 735d91f43d Report correct file/line in backtraces for attr_rw methods 2013-12-12 14:20:46 -06:00
Adam Vandenberg fbf6c23907 monkey around for emacs' code highlighter
The abv method has a construct that causes emacs to not highlight
the rest of pathname.rb, so move abv lower in the file.

Sorry.
2013-12-12 08:22:39 -08:00
Adam Vandenberg dee0dfae75 +x wrapper scripts, so they work during post-install 2013-12-12 08:21:22 -08:00
Jack Nagel 6e8a3c2bd4 Silence more warnings 2013-12-09 15:15:53 -06:00
Jack Nagel 410154e386 Help autoconf find m4 on Xcode-only systems
Closes #24904.
2013-12-06 20:56:46 -06:00
Jack Nagel ac1fd38075 Make CompilerSelectionError an InstallationError
Fixes #19962.
2013-12-03 22:16:37 -06:00
Jack Nagel de3c7d94bf Fix typo 2013-12-02 01:16:50 -06:00
Jack Nagel 7f29c760b9 Yielded value is not used 2013-12-02 00:16:48 -06:00
Adam Vandenberg 107ab9c04a support .lz archives
Closes #24775.
2013-11-29 15:18:49 -08:00
Jack Nagel 1435beb067 Require Formula before using it 2013-11-27 17:30:21 -06:00
Jack Nagel fbecd2018d Adjust optimization flags if the CPU does not support SSE4
Tentatively fixes #21778, #24363.
2013-11-27 17:25:27 -06:00
Jack Nagel 3c4ca0f416 Remove comment 2013-11-21 17:13:37 -06:00
Jack Nagel 28c9e3b866 Simplify passing archflags to cc wrapper 2013-11-20 13:19:14 -06:00
Jack Nagel cee5e1296b Move optimization flag selection out of cc wrapper
The mapping of architectures to optimization flags is now retrieved from
Hardware::CPU and the selected flags are passed as an environmen
variable, rather than duplicated in the cc wrapper and re-calculated on
every invocation of the compiler.

Closes #24540.
2013-11-20 13:19:06 -06:00
Jack Nagel be8e61079d Export HOMEBREW_PREFIX to build environment
Constructing the path relative to a file in the repository is incorrect
on some supported configurations (i.e., the repository is located in a
different place than the prefix).

Closes #24418.
2013-11-17 22:57:16 -06:00
Jack Nagel 05236cb385 Combine X11 path conditionals 2013-11-15 21:25:43 -06:00
Jack Nagel bceed105ad Improve heuristic for detecting configure 2013-11-15 00:40:17 -06:00
Jack Nagel 6b530abec7 Recognized .pax.gz extension 2013-11-14 16:20:25 -06:00
Jack Nagel 99bfa08551 Better documentation for no-op superenv methods 2013-11-12 13:53:29 -06:00
Jack Nagel a2f11cec69 Allow changing the optimization level under superenv 2013-11-12 13:53:29 -06:00
Jack Nagel 0cfdd980da Simplify ENV.0x methods in stdenv 2013-11-12 13:53:29 -06:00
Jack Nagel bfd8de737c Add ENV.O0 to stdenv 2013-11-12 13:53:29 -06:00
Jack Nagel 5d91377a35 Group public ENV methods together 2013-11-11 18:34:15 -06:00
Jack Nagel c07d46ec03 Remove outdated comment 2013-11-11 18:32:56 -06:00
Jack Nagel 0bee21f9ea superenv: fix type error
This is a string since it is used to match string keys in a hash.
2013-11-08 23:15:12 -06:00
Mike McQuaid 3283962c84 superenv: set cc/cxx based on actual compiler.
Closes #23449.
2013-11-07 12:06:03 +00:00