aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
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 Homebrew/homebrew#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 Homebrew/homebrew#12009. Closes Homebrew/homebrew#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 Homebrew/homebrew#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 Homebrew/homebrew#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 Homebrew/homebrew#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 Homebrew/homebrew#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 Homebrew/homebrew#11552. Closes Homebrew/homebrew#11777. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-03Don't unzip war filesAdam Vandenberg
2012-05-03Detect uncompressed tarsAdam Vandenberg
From a patch by @RuiPereira Closes Homebrew/homebrew#12011.
2012-05-03Fix brew auditAdam Vandenberg
2012-05-03GitDownloadStrategy: don't pass --depth to fetchJack Nagel
The --depth option is apparently more nuanced that I had originally thought, and while it does not actually break repositories, repeatedly using "--depth 1" can cause problems depending on the structure of the history. Luckily, we don't actually need it to prevent the entire repository from being fetched as long as the fetch respec is set correctly, which we do since 7718c939b06987ff8f1ecd599c8ace6f998ce180. Fixes Homebrew/homebrew#12024. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-03ENV.rb: Always return integers from make_jobsCharlie Sharpsteen
When referencing `Hardware.processor_count`, `ENV.make_jobs` will return an integer. If referencing the environment variable `HOMEBREW_MAKE_JOBS`, it returned a string. Now, the function always returns an integer. Fixes Homebrew/homebrew#12033.
2012-05-03Revert "ENV.rb: Always return integers from make_jobs"Charlie Sharpsteen
This reverts commit ea1a9e603abe3dab90bf5b157d2614cf58e2cc8e. Argh. Unrelated PySide changes slipped in.
2012-05-03ENV.rb: Always return integers from make_jobsCharlie Sharpsteen
When referencing `Hardware.processor_count`, `ENV.make_jobs` will return an integer. If referencing the environment variable `HOMEBREW_MAKE_JOBS`, it returned a string. Now, the function always returns an integer. Fixes Homebrew/homebrew#12033.
2012-05-02zsh: support site specific filesChristian Höltje
This fixes the `site-scripts` and `site-functions` directories so that zsh points to the HOMEBREW_PREFIX version of these files instead of the Cellar version. This means you can drop files in these directories and the files will persist when you upgrade zsh. Otherwise they disappear when you upgrade zsh. Closes Homebrew/homebrew#11955. [jn: mkpath everything under share/zsh] Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-02patches - support detection of compression typesAdam Vandenberg
2012-05-02Extract detection of compression typesAdam Vandenberg
Separate out detecting compression types from uncompressing and staging.
2012-05-02GitDownloadStrategy: don't assume --single-branch is availableJack Nagel
git-clone's --single-branch is too new, and Xcode 4.3's stock git doesn't have it. Since we don't require git from Homebrew, don't use it. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-01GitDownloadStrategy optimizationJack Nagel
The current series of fetch invocations in GitDownloadStrategy has the unfortunate behavior of fetching full history even in shallow clones that only need the history between the clone point and the remote HEAD. It should be possible to determine if it is actually necessary to fetch the full history, including all tags, and if it is not to avoid this overhead. Fixes Homebrew/homebrew#11958, and several other recurring problems. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-01Don't set GIT_DIR when staging git clonesJack Nagel
GIT_DIR is convenient, but it does not work when both a formula and subformula try to stage a git checkout, as git will use the main formula's repository when staging the subformula. Stop setting it, and restore the kludge to the git-multipush formula. Fixes Homebrew/homebrew#10893. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-01Fix Ruby warnings.Mike McQuaid
Fixes Homebrew/homebrew#11966.
2012-05-01Add brew services command: a wrapper for launchctllukas
If a formula implements startup_plist it has out-of-the-box support by brew services. If not it's possible to specify the path to a plist file: `brew services couchdb-lucence /usr/local/Cellar/..../couchdb-lucene.plist`. Fixes Homebrew/homebrew#3422. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2012-04-30brew tap: allow dashes in GitHub usernamesMisty De Meo
2012-04-30Improve Formula.resolve_alias warning.Mike McQuaid
2012-04-30Add ofail command and fix bottle command output.Mike McQuaid
2012-04-30Cleanup old bottles.Mike McQuaid
2012-04-30Fix native bottle regex.Mike McQuaid
2012-04-29audit: reduce false-positivesAdam Vandenberg
2012-04-28doctor: add another path to the macgpg2 checkAdam Vandenberg
2012-04-26CurlDownloadStrategy: fix .rar detectionJack Nagel
We now read six bytes instead of four in order to detect xz compression; this broke rar detection which used a string literal instead of a regexp for comparison. Signed-off-by: Jack Nagel <jacknagel@gmail.com>