Commit Graph
204 Commits
Author SHA1 Message Date
Mike McQuaid 27760bf53b formula_installer: further fix tab file handling.
Closes #23477.
2013-10-23 14:02:51 +01:00
Mike McQuaid d9f74c48e3 installer: don't try and unlink nil tabfile.
Closes #23472.
2013-10-23 12:42:20 +01:00
Jack Nagel 1d0a7c66a5 Add OS.mac? and OS.linux? 2013-10-18 12:56:51 -05:00
Jack Nagel b1aa988355 Don't print multiple deps messages when only installing one dep 2013-10-16 15:34:43 -05:00
Mike McQuaid 7bae88be3b git_etc: create etc if it doesn't exist. 2013-10-12 10:54:16 +01:00
Misty De Meo 6de20cc6ec CxxStdlib: use f.recursive_dependencies in stdlib check 2013-10-10 09:09:53 -07:00
Misty De Meo 7dbfbbd284 formula_installer: pass effective_deps to CxxStdlib 2013-10-10 08:51:38 -07:00
Mike McQuaid c1e06c65da git_etc: update based on bottle etc/var changes. 2013-10-10 16:46:47 +01:00
Mike McQuaid 2dc871b3b7 formula_installer: handle etc/var in bottles.
Copy these files/folders to a .bottle directory under the Cellar for installation
elsewhere at pouring time.

Temporarily disable HOMEBREW_GIT_ETC methods until fixed.
2013-10-10 16:46:47 +01:00
Misty De Meo 5c0c378574 formula_installer: change default bottle CxxStdlib 2013-10-07 00:02:46 -07:00
Misty De Meo 52af93123a Only track C++ stdlibs for C++ code
After a formula is built, scan all mach-o files for dynamic links
to see if any of them point to a C++ stdlib (libc++ or libstdc++).
If one of them is linked, record that information in the formula's tab.

This replaces the old behaviour where all files were assumed to be C++
code, and stdlibs were always tracked regardless of whether they were
actually linked against.

This also modifies the way that tabs are written - now tabs are written
with the stdlib field null, and values are only written if an stdlib
is detected.
2013-10-06 19:26:06 -07:00
Xiyue Deng 59581dec27 Fix install_name_tool path for keg_only formulae
* When a versioned keg_only formula installs the same set of executables
  or libraries as a unversioned formula that links to $HOMEBREW_PREFIX,
  install_name_tool will prefer to use the linked paths for files in
  keg_only formula.  This breaks software that should link to the
  keg_only formula but links to the unversioned one instead.
* Add an additional "options" parameter with keg_only field to specify
  the correct install path for keg_only formulae.
2013-10-04 02:03:03 -07:00
Jack Nagel d16abcddd5 Simplify setup for local bottle installation
Closes #22833.
2013-09-26 10:04:45 -05:00
Mike McQuaid 148a746ddd Bottles: use options hash for install_bottle? 2013-09-18 12:36:43 +01:00
Mike McQuaid 5bb4fb0eec formula_installer: don't duplicate bottle warning.
Closes #22569.
2013-09-18 12:26:32 +01:00
Mike McQuaid a04b3a9c62 git-etc: add removed files too. 2013-09-09 16:15:33 +01:00
Jack Nagel 6fd425b45c Close read pipe immediately after reading and only when initialized
c.f. #22386.
2013-09-07 22:20:26 -05:00
Jack Nagel b448ab7601 Rewrite conditions in more natural way 2013-09-07 11:09:32 -05:00
Mike McQuaid 698e5624be Optionally use git to keep brew etc versioned.
Still in alpha state.
Handles defaults and merging changes with new versions.
Enable by setting the HOMEBREW_GIT_ETC environment variable.

Closes #15751.
Closes #17713.
2013-09-07 13:39:43 +01:00
Jack Nagel 2113ff16be Close the read end of the error pipe after the build 2013-09-06 22:49:31 -05:00
Misty De Meo 500d40db58 Check dependencies for a compatible C++ stdlib
There are now a few possible C++ standard libraries a given build could
be using, with subtle incompatibilities and possibility of breakage
when mixed. This makes sure that the dependency chain was compiled in
a compatible manner.

Fortunately all of the Apple compilers use the same libstdc++, and we
don't yet support building with libc++, so this will primarily only
nag users trying to use GNU gcc who already have software installed
with Apple compilers.

Future TODOs:

* Add general support for building with libc++ (compatibility checking
  already handled here)
* Possibly track formulae which actually build C++ bindings, so that
  users aren't bothered by spurious nagging re: interpreted languages,
  pure-C software, etc.
2013-09-01 13:19:13 -07:00
Misty De Meo 4bbe6172c0 Move Tab creation into build process
The parent process doesn't have access to the selected compiler, which
will be important in the next commit.

Fortunately the child process already has a filtered and massaged
ARGV, so it has enough information to build the tab itself.
2013-09-01 13:19:13 -07:00
Mike McQuaid 1e69e28835 formula_installer: handle post_install exceptions.
Warn users and point them to `brew postinstall` (which can provide a
backtrace).

Closes #21887.
2013-09-01 13:57:40 +01:00
kaizoku edee235587 Show list of dependencies prior to installing them
Closes #22205.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-08-30 14:14:47 -07:00
Misty De Meo ae40309626 Check for valid --bottle-arch= when building 2013-08-28 20:21:06 -07:00
Jack Nagel 281eea0da2 Fix expansion of deps with --build-bottle 2013-07-26 15:05:42 -05:00
Jack Nagel f4aa7de35d Check deps of satisfied deps 2013-07-22 21:36:11 -05:00
Mike McQuaid 071112c6fc audit: use FormulaCellarChecks module.
Perform post-installation checks if a formula is installed.
Added for brew test-bot to be able to fail on bad Cellar installation.
2013-07-16 13:29:37 -07:00
Mike McQuaid e376994e14 FormulaInstaller: move Cellar checks to module. 2013-07-16 13:29:37 -07:00
Mike McQuaid f53d6ebd76 FormulaInstaller: cleanup check_/audit_ functions. 2013-07-16 13:29:37 -07:00
Adam Vandenberg 48b3717e61 install plist before linking
If linking fails,  won't try to re-install the plist.

Closes #20843.
2013-06-30 11:16:53 -07:00
Adam Vandenberg 9c694e5335 Make non-exes in bin fatal to brew-bot
Closes #10817.
2013-06-28 08:57:49 -07:00
Adam Vandenberg 81cc136f34 Be explicit about passing formulae names or instances to Tab 2013-06-26 19:58:08 -07:00
Jack Nagel 6c2329fbe0 Note which formula's requirements failed
Closes #20713.
2013-06-25 10:37:34 -05:00
Adam Vandenberg 3505565227 Misplaced manpages fail brewbot
Closes #20711.
2013-06-24 07:34:45 -07:00
Adam Vandenberg d8d41ccabc Show conflicting files on install if linking fails
Closes #18303.
Closes #20726.
2013-06-24 07:31:44 -07:00
Adam Vandenberg 34fb41411b Use unicode escape
Prevents this character from being changed when resaving this file
with TextMate (1) on Snow Leopard.

Closes #20715.
2013-06-23 16:43:32 -07:00
Adam Vandenberg 6a89d89bdf Clean the cleaner
* Fix a comment; we pass in formulae not names
* Don't pass the formula to factory; this is just a pass-through
* Move require to top-level
2013-06-23 12:54:28 -07:00
Jack Nagel ef862627cf FormulaInstaller: ensure locks are always released 2013-06-11 15:35:30 -05:00
Jack Nagel 70069c5d75 Separate formula conflicts from requirements
Closes #20357.
2013-06-09 13:45:25 -05:00
Jack Nagel da5a8ed34c FormulaInstaller: factor out readline workaround 2013-06-08 15:14:23 -05:00
Mike McQuaid b0974b61e7 Use new download strategy for local bottles.
Fixes installation of e.g. ScriptFileFormula/denominator bottles.
2013-06-08 16:41:23 +01:00
Mike McQuaid 0817d4e3a9 Raise bottle exceptions for Homebrew developers. 2013-06-08 16:40:40 +01:00
Jack Nagel aae86b7a84 FormulaInstaller: fix "optional build-time dep" edge case
An "optional build-time dep" is unlikely, but possible, and I happen to
notice this wasn't handled correctly while digging around in the deps
code over the last few days.
2013-06-03 22:55:28 -05:00
Jack Nagel 5052cef024 FormulaInstaller: split up big method 2013-06-03 22:50:11 -05:00
Jack Nagel b2972dc1f9 Allow explicit conversion of requirements to deps
Fixes #19857.
2013-06-03 16:52:00 -05:00
Jack Nagel 75e371684e Adjust semantics of Formula#fetch
It doesn't really make logical sense that this method returns both the
fetched path (or sometimes nil!) and the downloader, so just return the
path (again, or nil!) and callers that want the downloader can ask for
it separately.
2013-05-16 14:06:26 -05:00
Jack Nagel 4386be0a19 Remove last use of deprecated Formula#recursive_deps
Fixes #19107.
2013-04-10 11:55:02 -05:00
Jack Nagel 0dbfedb4b7 FormulaInstaller: this local is an ivar now 2013-04-05 22:07:02 -05:00
Jack Nagel fe7efcca9f FormulaInstaller: initialize @tab 2013-04-05 22:00:36 -05:00