aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
AgeCommit message (Collapse)Author
2012-06-19doctor: skip missing_deps when no Cellar existsMisty De Meo
Another fix for #5188.
2012-06-19doctor: skip outdated_homebrew check when no gitMisty De Meo
2012-06-19doctor: don't warn about recent MacGPG2 versionsMisty De Meo
Fixes #12238.
2012-06-19doctor: skip Cellar test if Cellar doesn't existMisty De Meo
Fixes #5188 (again).
2012-06-17audit: prefer ARGV.build_head? to inspecting 'version'Jack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-06-17audit: prefer modifying ENV to using env or exportJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-06-17audit: catch unnecessary 'ENV.foo' interpolationJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-06-17fix_install_names: try harder to find referenced dylibsJack Nagel
Keg#fix_install_names punts if bad install names reference dylibs that aren't "nearby". Enable this machinery to fix more complex directory hierarchies by searching everything under 'lib' for the bad name's basename. Additionally, teach it to correctly handle Mach-O bundle files. Fixes #12810. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-06-17doctor: Mono-specific warning for pkg-configMisty De Meo
Mono installs its own pkg-config symlink into /usr/bin/pkg-config, which breaks non-Mono builds. Provide a specific warning. Closes #12859.
2012-06-16Teach Mach-O machinery about bundlesJack Nagel
c.f. #12810. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-06-16Fix indentation in MachO#mach_dataJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-06-15Improve Pathname#text_executable? regexpJack Nagel
file(1) does not allow leading whitespace on shebang lines, and there appears to be no restrictions on what characters follow '#!', either. While at it, fix an erroneous shebang test. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-06-15Add comment about error pipe (mis)behaviorJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-06-15warn if unrar is needed but not found.samueljohn
You can `brew unrar` Closes #12858. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2012-06-15blacklist: update Xcode message for 10.8Misty De Meo
2012-06-15Xcode from the App Store is no more an installer.samueljohn
- Removed outdated message about running the installer. Closes #12857. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2012-06-13Allow --get for non-interactive builds.Adam Vandenberg
This is useful for doing a --debug build, as the git repo will pick up any changes that have been made up to that point in the build process. --git is still most useful in conjunction with --interactive, though.
2012-06-12Fix doctor's use of missing.Adam Vandenberg
`brew doctor` shelled to `brew missing` and parsed the results. When VERBOSE was true, this caused an error as extra, unexpected output is generated. Make missing an internal command, and give it a programmatic interface.
2012-06-12Switch to "legacy" GitHub search APIJack Nagel
GitHub's v2 API entry point is gone, but search as been ported to API v3 as a "legacy" feature. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-06-12Use which method in doctorJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-06-10Add ARGV.build_stable?Adam Vandenberg
2012-06-07Point AWS environment variables at LinkedKegKarsten Sperling
(rather than the version being installed) This avoids having to change the variable when a different version is linked. Also ensure the private key / cert variables point to only 1 file. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-06-06Use sha1 as the default checksum for new formulaeAdam Vandenberg
See: https://github.com/mxcl/homebrew/pull/12587
2012-06-03Handle EOF in Pathname#text_executable?Jack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-06-03std_cmake_args: Search for Frameworks lastCharlie Sharpsteen
Most Homebrew builds produce libraries, so CMake should give priority to libraries when resolving dependencies. Closes #12497. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2012-06-03doctor: improve outdated Homebrew checkJack Nagel
We now skip the outdated check if our local origin/master tracking branch matches the origin remote's current master. This prevents false positives when we are actually up-to-date but the latest commit is over 24 hours old. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-06-01Replace /usr/bin/ruby with full Framework pathMisty De Meo
Rationale: some users insist on replacing the /usr/bin/ruby symlink to point to another ruby on their system, which may break homebrew. Use the full Framework path instead, which is less likely to be tampered with. This also reorganizes the brew --config checks to reflect the different path. Fixes #12009. Closes #12333. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2012-05-30fix_install_names: make failures verbose in debug modeJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-30cleaner: use new Mach-O pathname methods in clean_fileJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-30archs_for_command: use new Mach-O Pathname methodsJack Nagel
- Reimplement archs_for_command on top of the new Mach-O methods - Move ArchitectureListExtension to mach.rb - Add a test for the ArchitectureListExtension Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-30fix_install_names: use Mach-O methods to find dylibsJack Nagel
Some libraries do not have the .dylib extension (e.g. Qt framework libs), but need to have their install names rewritten to prevent other packages from breaking due to upgrades. Use the new Pathname#dylib? instead.
2012-05-30Pathname: add Mach-O moduleJack Nagel
The MachO module contains methods for learning about Mach-O binaries, and can be used where one might normally shell out to file(1). Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-30Recurse into subdirectories when fixing install namesJack Nagel
2012-05-26Do not warn about JNI libraries in libWill Ross
JNI libraries in OS X are suffixed with jnilib. Additionally, /usr/local/lib is a default search location for JNI libraries, so Homebrew shouldn't complain when it installs .jnilibs into lib. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-05-23Set close-on-exec on the error pipeJack Nagel
We use a pipe to marshal exceptions from the build script back to the main Homebrew process; the associated file descriptor is stored in an environment variable so that the script can figure out which descriptor to use after being exec'd. However, any child processes of the build script inherit this descriptor (i.e. anything spawned via "system" by the formula during installation). Normally this is not an issue, but if a formula executes a long-running process such as a daemon, the main Homebrew process will never see EOF on the error pipe because the daemon still has an open descriptor. We can fix this while preserving current behavior by setting the close-on-exec flag on the build script's error pipe descriptor. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-22create: update cmake calls in templateJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-22Introduce std_cmake_args methodJack Nagel
This differs from the current std_cmake_parameters in that it returns an array instead of a string. Doing so makes dealing with it in formulae much more pleasant, and for new formula hackers, less surprising. std_cmake_parameters is retained in compat to maintain compatibility with external formulae. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-15audit: fix broken deps checkJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-15Don't fall into the no-extension OK trapMax Howell
`require` is OK without an .rb extension, but the rest of our code will be confused and generate weird errors. Fixes #11558.
2012-05-15`sudo -k` before calling build scriptsMax Howell
Potentially build scripts would call sudo, if so we don't want that to automatically succeed just because the time-period in which sudo works is still active after a previous incantation. Closes #10629. In fact I don't see how this can have been the problem, but if this isn't the problem then I don't see what else can be the problem.
2012-05-13doctor: rework check_pkg_config_pathsJack Nagel
pkg-config can give us this information a colon-separated list; use that. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-13Use 'which' helper method moreJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-13FormulaInstaller: fold dirlist helper into check_m4Jack Nagel
Having in_aclocal_dirlist? defined as a method on FormulaInstaller is a little weird; since its just a return condition of check_m4, move the code there. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-11doctor: report if a path element is invalidMisty De Meo
Under certain circumstances, an invalid path element would cause File.expand_path to bail out. Catch mistakes and report them, then continue instead. Fixes #12154
2012-05-10Detect http://svn... as svnAdam Vandenberg
2012-05-07Unify 'which' and which_s' utility methodsJack Nagel
'which' only returns a Pathname or nil, and doesn't care about anything sent to stderr, so just silence it by default and combine the two methods. Closes #12115. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-07audit: don't count printed URLs as problemsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-07audit: check MacPorts patch URLsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-05Honor build options and bottles when upgradingNicolas Despres
Fixes #11552. Closes #11777. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-03Don't unzip war filesAdam Vandenberg