7735 Commits

Author SHA1 Message Date
Jack Nagel
192e6e052c audit: allow some forms of gist patches
The problem is not the raw URLs, but URLs that do not contain the commit
hash corresponding to a particular version of the gist.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-06 20:47:05 -05:00
Jack Nagel
f5d0fbcce6 Remove dead code
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-06 17:34:11 -05:00
Jack Nagel
c227792bc1 Don't raise when expanding ORIGINAL_PATHS
File.expand_path raises ArgumentError when it is passed a path with a
nonexistent username, e.g.:

  $ PATH=~foo/bin:$PATH brew
  /usr/local/Library/Homebrew/global.rb:97:in `expand_path': user foo
  doesn't exist (ArgumentError)

However, `brew doctor` does its own expansion of PATH entries and
outputs warnings if this happens, so let's just ignore it here and
continue on our way.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-06 10:40:55 -05:00
Jack Nagel
b20c35cf0e doctor: ignore case when checking PATH for config scripts
Fixes Homebrew/homebrew#14752.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-06 10:05:49 -05:00
Adam Vandenberg
6a131ced3f Remove fink/macports from verbose --config if they are not present. 2012-09-05 22:07:35 -07:00
Adam Vandenberg
fabc7eb992 audit: swig is a build time dep 2012-09-05 21:12:08 -07:00
Jack Nagel
55a95ee0ab ENV: put X11 aclocal dir in ACLOCAL_PATH when appropriate
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-05 19:49:50 -05:00
Jack Nagel
aeab8e8d19 Improve brew --config responsiveness
Rather than build the whole output in a string, print each item as we
go. This gives the illusion of improved responsiveness by delaying the
expensive method calls until after the faster output.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-05 16:41:35 -05:00
Jack Nagel
35a99c240a Audit check for MACOS_VERSION
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-04 18:18:14 -05:00
Jack Nagel
186a76c741 Fix bad install names in executables
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-04 13:02:43 -05:00
Adam Vandenberg
f589644aa4 Exempt automake from some audits 2012-09-04 10:43:48 -07:00
Jack Nagel
c60a9ef314 brew-aspell-dictionaries: handle mirrors
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-03 23:13:43 -05:00
Jack Nagel
2d1a941976 Sort out remaining XQuartz/stdenv issues
We use PKG_CONFIG_LIBDIR to reset the default search path, overriding
whatever is baked into the pkg-config executable. This way, we can later
append XQuartz paths here while still allowing any brewed libs to take
precedence, keg-only or not.

Hopefully this will resolve any remaining issues, and let us get rid of
some per-formula hacks.

c.f. Homebrew/homebrew#14474.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-03 22:39:38 -05:00
Jack Nagel
8094b00b55 ENV: update comment
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-03 22:38:05 -05:00
Adam Vandenberg
26f887d4ab add audit for ENV.x11 2012-09-03 19:49:33 -07:00
Jack Nagel
33233f5039 Stop warning in ENV.x11
It has been long enough since `depends_on :x11` was introduced that we
can make it the caller's responsibility to ensure X11 is present before
invoking ENV.x11, so stop outputting a warning.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-03 21:04:49 -05:00
Alexis Hildebrandt
1deb3c0214 brew-aspell-dictionaries - generate aspell formulae
This script fetches the current list of aspell dictionaries from
the gnu server and generates formulae that can then be
included into the aspell formula.
This makes updating current dictionaries and adding new ones easier.

Tweaked by Mike to generate SHA1s instead of MD5s.

Closes Homebrew/homebrew#12180.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2012-09-03 19:02:30 -07:00
Jack Nagel
ffd6e7f340 Fix typo in MacOS.sdk_path
/cc @adamv

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-03 18:14:30 -05:00
Max Howell
896ccc45f4 Actually cache Xcode.version if nil 2012-09-03 16:35:16 -04:00
Jack Nagel
eb3c0cd273 Don't error out with Xcode 4.5
c.f. Homebrew/homebrew#14603.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-03 15:15:39 -05:00
Max Howell
10aab9a672 superenv: More thorough scrubbing of -I & -L args
It's important that -I is scrubbed thoroughly as we add most of our important paths with -isystem and -I is handled *first*.

NOTE this indicates we should probably have used -I rather than -isystem, but too late to test all that now.

Also scrub -L for bad-paths thoroughly (evaluate realpath).
2012-09-03 15:12:32 -04:00
Max Howell
4febf938ae Put X11 last in the libpath and cpath
It was after HOMEBREW_PREFIX but not after everything else too.
2012-09-03 15:12:31 -04:00
Max Howell
fdadd7e9dd Fix linking against X11 cairo in preference to ours
Amateur mistake where I forgot that the system library path is read AFTER the -L library path, so /usr/local/lib was after /opt/X11/lib and the wrong cairo was used.

This only affects CLT /usr/local installs with XQuartz installed.

Fixes Homebrew/homebrew#14639.
2012-09-03 15:12:31 -04:00
Max Howell
c35f6cb9d5 Set CC and CXX with superenv (again)
It was dumb to have make call different compilers to configure depending on the `servile?` flag. This is not a route to reliability.

Instead now we set CC (formula that break if CC is set like Jack be damned, their build-systems are just plain broken and should not be supported). When cc is called we examine HOMEBREW_CC, otherwise we instantiate the tool that was called, just like the formula's build-system will expect.

Fixes Homebrew/homebrew#14659 (though the build fails later for me, with the same error for stdenv and superenv).
2012-09-03 15:12:31 -04:00
Max Howell
af06c75d72 Add NCLT SDK apache include directory to superenv
Fixes subversion compile issues for NCLT configurations with superenv, stdenv still broken (tough).
2012-09-03 15:12:30 -04:00
Max Howell
adc158412c Undent doesn't like paragraphing 2012-09-03 15:12:30 -04:00
Max Howell
feb77b2085 Prevent possible bug in build's optlink 2012-09-03 15:12:29 -04:00
Mike McQuaid
b7f50ebf3f Add script to convert formulae from MD5 to SHA1. 2012-09-03 11:20:07 -07:00
Mike McQuaid
0b3327b862 brew-audit: recommend SHA1 over MD5. 2012-09-03 11:20:07 -07:00
Mike McQuaid
a22e60ee8c brew-fetch: Return error code on unmatched hash. 2012-09-03 11:20:07 -07:00
Mike McQuaid
50fa018057 brew-test-bot: Only run brew-test if test defined. 2012-09-03 00:31:34 -07:00
Max Howell
88b1da7405 Remove -fopenmp *and* -lgomp
Apparently LLVM can use these, so only remove if clang.

Refs Homebrew/homebrew#14569.
2012-09-02 23:10:06 -04:00
Jack Nagel
b97c0919f8 Process requirements before keg-only deps under stdenv
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-02 14:41:19 -05:00
Stephan Zeissler
b49fa78f96 Change sdk detection to same syntax used elsewhere.
This wasn't working for me on leopard with ruby 1.9.2.

Closes Homebrew/homebrew#14636.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-09-02 11:05:03 -07:00
Max Howell
c36f79c79a bsdmake is *not* provided by Xcode/CLT
Fixes Homebrew/homebrew#14626.

Also make proctools install do prefixes other than /usr/local.
2012-09-02 11:22:12 -04:00
Max Howell
2375f71e82 Add mig tool to superenv
Necessary because it otherwise calls actual cc after it does whatever it does. So we force it to call our cc.
2012-09-01 23:18:28 -04:00
Adam Vandenberg
31d70b5c33 Fix the name because adamv doesn't know what he's doing. 2012-09-01 19:01:56 -07:00
Adam Vandenberg
788b556a3e bless alanthing/homebrew-apachemod
Add external tap to default search path, and recommend it for packaging
Apache Modules.
2012-09-01 18:51:39 -07:00
Jack Nagel
8c55acacb4 brew list -v means verbose, not versions
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-01 13:28:30 -05:00
Adam Vandenberg
e0cff10be5 Update build failure message.
Have been seeing reports with only the config.log, so change this message.
2012-09-01 09:29:45 -07:00
Max Howell
fd0a5419a9 Blacklist graphviz: don't use superenv
Mysterious link errors due to two missing symbols are too mysterious for me. For now, blacklist.

Fixes Homebrew/homebrew#14566.
2012-09-01 00:27:52 -04:00
Max Howell
429226d562 Hack so that ENV['CFLAGS'] += "foo" always works
So many formula assume CFLAGS etc. are not nil. One fix would be to set them to "" but this would set them in the environment, and that could have consequences for build-scripts. This hack works but with a (hopefully) small caveat.

Fixes Homebrew/homebrew#14580.
2012-08-31 23:45:10 -04:00
Max Howell
75a0708865 superenv wrappers for c89 and c99
Fixes Homebrew/homebrew#14584.
2012-08-31 15:59:05 -04:00
Max Howell
3935a34048 brew -c1 one line configuration summary
At your option: `brew --config -1`.
2012-08-31 15:48:48 -04:00
Max Howell
8a9073fa42 Set VERBOSE and HOMEBREW_LOG in brew sh 2012-08-31 14:12:28 -04:00
Max Howell
30b53cf92a Cram GL headers and includes into superenv
Fixes Homebrew/homebrew#14554.

We justify doing this because pre 10.8 X11 came with GL for all Homebrew-capable systems and as such is a default that we'd prefer not to have to address.
2012-08-31 14:12:28 -04:00
Max Howell
139fcf189c Always make fuss
It's only visible if you specify -v or builds fail, so let's help people to diagnose superenv issues.
2012-08-31 13:29:46 -04:00
Max Howell
282313c68f Remove -fopenmp, fix pixman
Possibly this is not wise, but with -fopenmp -lgomp is automatically added by the toolchain, and I didn't have -lgomp.

Ideally we'd detect when this will work and then leave it in there.

/cc @sharpie @mikemcquaid @jacknagel
2012-08-31 13:29:46 -04:00
Max Howell
9b01e7cd28 Fixes Homebrew/homebrew#14594; superenv recursively finds X11 req 2012-08-31 13:29:46 -04:00
Max Howell
f6ded076df superenv fix for broken 10.8 apr-1-config
serf requires you to explicitly tell it where to find the supertool because otherwise it has a hardcoded /usr/bin/apr-1-config (:P), ctail however is sensible and searches the PATH so now it's as though we do nothing special in that formula. Nice.
2012-08-31 13:29:45 -04:00