Commit Graph
1994 Commits
Author SHA1 Message Date
Max Howell d8929637e7 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 9f99535d31 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 #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 849151536a 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 124d9309f0 Undent doesn't like paragraphing 2012-09-03 15:12:30 -04:00
Max Howell 19971f7579 Prevent possible bug in build's optlink 2012-09-03 15:12:29 -04:00
Mike McQuaid 800e7cff54 brew-audit: recommend SHA1 over MD5. 2012-09-03 11:20:07 -07:00
Mike McQuaid 8f6081b906 brew-fetch: Return error code on unmatched hash. 2012-09-03 11:20:07 -07:00
Jack Nagel dbc9523d30 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 173fe393a0 Change sdk detection to same syntax used elsewhere.
This wasn't working for me on leopard with ruby 1.9.2.

Closes #14636.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-09-02 11:05:03 -07:00
Adam Vandenberg 57fbd5ef7c Fix the name because adamv doesn't know what he's doing. 2012-09-01 19:01:56 -07:00
Adam Vandenberg 7a112696c8 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 95b3ebcd82 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 72cdfe3551 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 817f27e3fd Blacklist graphviz: don't use superenv
Mysterious link errors due to two missing symbols are too mysterious for me. For now, blacklist.

Fixes #14566.
2012-09-01 00:27:52 -04:00
Max Howell 7b81034828 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 #14580.
2012-08-31 23:45:10 -04:00
Max Howell a8fadbfaee brew -c1 one line configuration summary
At your option: `brew --config -1`.
2012-08-31 15:48:48 -04:00
Max Howell 174e84b442 Set VERBOSE and HOMEBREW_LOG in brew sh 2012-08-31 14:12:28 -04:00
Max Howell eab09fc267 Cram GL headers and includes into superenv
Fixes #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 b644ed4f59 Fixes #14594; superenv recursively finds X11 req 2012-08-31 13:29:46 -04:00
Max Howell 49ccb55af0 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
Max Howell 3a637c2a92 Raise if sdk_path is nil for nclt
This situation should be impossible now (in that, we should detect sdk_path provided we also detected nclt), so if it happens somehow raise in such a way that the user will be encouraged to report the bug.
2012-08-31 10:27:07 -04:00
Max Howell 1c7e060c66 Set VERBOSE if --verbose
You tend to get more useful build output this way, and (more importantly?), superenv itself only outputs certain things if VERBOSE is set.
2012-08-31 10:22:11 -04:00
Max Howell d414d9b613 Doctor check for unlicensed Xcode
Checking the license text is probably the most future proofed method. Though for future reference other possible methods are listed in the below ticket.

Closes #14558.
2012-08-31 10:22:11 -04:00
Max Howell bbe75d3efb MacOS.sdk_path is unlicensed Xcode aware
Now we should get an sdk_path, but tools like xcodebuild, xcode-select and xcrun will still error out. But at least more of Homebrew will work.

Also putting the Xcode 3 path finder last. We get bug reports because newer Xcodes are installed in parallel to older Xcodes. We want to find and use the newer Xcode's first. Xcode.prefix is pretty smart about that.

Refs #14558.
2012-08-31 10:22:11 -04:00
Max Howell c4d95a0934 brew --env puts HOMEBREW_SDKROOT 2012-08-31 10:22:10 -04:00
Max Howell 3c274e2ad0 Revert the user-PATH fix
User paths might have anything in them, anything can break builds.

Instead special case these two formula with the view to having an eventual DSL to allow injection of user paths into superenv. Certainly defaulting to off.
2012-08-31 10:22:10 -04:00
Max Howell 08a58ea38a More brew irb examples 2012-08-31 10:22:10 -04:00
Max Howell 5800e5439b Hide --disable-debug from non verbose output also 2012-08-31 10:22:09 -04:00
Max Howell 0e15844d18 String.f convenience function for brew irb
eg. "ack".f
2012-08-30 22:54:45 -04:00
Jack Nagel f7b4ce056e Simplify brew outdated even further
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-30 20:39:46 -05:00
Max Howell 7aa496efed Fixes #14542; ocaml superenv issues
This patch removes most of the settings for CC, CXX etc. because we are trying to be minimal. Then we force the compiler to Homebrew's choice underneath in superenv. We however leave LD because we prefer that build-systems use the c-compiler for linking, it generally works better (copiously tested), however when the build-system explicitly calls ld, we respect that. This gets around the ocaml bug in question, since somehow clang was crashing during link, but the ld tool itself (which is kind of clang, kind of llvm-gcc) is okay with this.

Also moved the setting of O (so that cc-args are refurbished) into a make wrapper. Not sure if this matter much, but seems more consistent.
2012-08-30 20:02:29 -04:00
Jack Nagel 9e5e43ba6e superenv: look for pc files under prefix, not repository
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-30 16:08:24 -05:00
Max Howell 313423d8ee Put user's PATHs at end of superenv PATH
Making sure to remove X11, should be safe if this order is kept.

Refs #14519.
Fixes #14544.
2012-08-30 09:45:33 -04:00
Jack Nagel 4197a4872d tests: avoid unnecessary chdir
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-30 00:10:02 -05:00
Max Howell 28d795032a Don't catch build errors 2012-08-29 22:25:29 -04:00
Max Howell 744031b4af Block form of chdir can only be used once
If you nest them, the library complains. So let's not do that.

/cc @jacknagel
2012-08-29 19:49:11 -04:00
Max Howell e729885ea1 Force Wine to use stdenv for now
Fixes #14535.
2012-08-29 19:49:10 -04:00
Jack Nagel 6f1c1b96f7 tests: support "rake rcov" if rcov is installed
If the rcov gem is installed, `rake rcov` will generate a test coverage
report in the coverage directory.

I picked rcov because it is 1.8 compatible. But it could easily be
swapped out for another coverage tool.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-29 15:56:36 -05:00
Jack Nagel 67108d402f tests: adjust expectations for 'opt' directory
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-29 15:37:58 -05:00
Max Howell 92a4981541 Display skip-clean warning only before clean
Not anytime the formula loads.
2012-08-29 15:43:28 -04:00
Max Howell a96686ab33 Warn about removed warnings less shockingly
The problem here now is though that the warnings only appear when compiling verbosely. But they should thus be visible if the build fails. Or if people are hunting for problems.
2012-08-29 15:19:42 -04:00
Max Howell 45aef5a812 Fixes #14528; undefined vars.
Due to copy/pasta.
2012-08-29 14:54:07 -04:00
Max Howell 340a293b0e Typo
Not sure how I forgot to test that.
2012-08-29 14:52:00 -04:00
Max Howell 7857453ac4 Don't fail pre-Xcode 4.3
Refs #14392.
2012-08-29 14:49:03 -04:00
Max Howell 6c21f8dc16 Use fortran from std-env in superenv
Fixes #14524.
2012-08-29 14:45:04 -04:00
Max Howell 888e89f6a6 Deprecate skip_clean :all
This was mostly used to prevent stripping. Now we don't strip. Force formula to remove this setting or be more specific about folders they don't want pruned.
2012-08-29 14:45:04 -04:00
Adam Vandenberg f83cad0362 Homebrew 0.9.3 for superenv 2012-08-29 10:08:46 -07:00
Max Howell 15efd32835 brew sh: a shell with superenv loaded
If you need to build software on OS X by hand, a brew shell is the way to do it.

Closes #14381.
2012-08-29 12:41:38 -04:00
Max Howell 3a35b5208e superenv only adds X11 paths if required
Since we are moving towards only depending on X11 for X-headers, superenv now doesn't automatically add X11 compilation. I was reluctant to do this, but it is the right thing to do now that X11 is not automatically installed by OS X or Xcode.

I didn't implement ENV.x11 because the order that the X headers are inserted is important. It must be done at initial setup to ensure that brewed versions of e.g. freetype and Cairo are used and not the ones installed by XQuartz.
2012-08-29 12:41:37 -04:00
Max Howell 7a0802ef6e Doctor suggest git clean -f if unstaged files
This is safe, I tested various scenarios, including Homebrew installed in ~. The only files that are removed are unexpected files in Homebrew's already managed directories.
2012-08-29 12:41:37 -04:00