5541 Commits

Author SHA1 Message Date
Jack Nagel
c790a4f45e download_strategy: rename @spec to @ref_type 2013-10-09 21:41:14 -05:00
Mike McQuaid
88e5c4c333 brew-test-bot: remove escape characters. 2013-10-09 09:04:39 +01:00
Jack Nagel
9bd507b7be Remove unused variable 2013-10-08 23:58:48 -05:00
Jack Nagel
051061827c Remove outdated comment 2013-10-08 23:47:35 -05:00
Jack Nagel
424187fc15 Prefer interpolation to concatenation 2013-10-08 23:44:23 -05:00
Jack Nagel
b2516f9989 doctor: avoid using MACOS_VERSION 2013-10-08 23:32:22 -05:00
Misty De Meo
a5f68bb874 detect_cxx_stdlibs: Only detect for dylibs
Fixes Homebrew/homebrew#23115.
2013-10-08 09:04:21 -07:00
Mike McQuaid
01901314e9 brew-test-bot: use REXML to write JUnit file. 2013-10-08 16:45:22 +01:00
Mike McQuaid
85c1e5d02e Revert "brew-test-bot: cleanup junit file with iconv."
This reverts commit 5e26584736b310c365d4b9cce99d0dced9a2d309.
2013-10-08 13:00:27 +01:00
Mike McQuaid
90b7cfb507 brew-test-bot: cleanup junit file with iconv. 2013-10-08 12:13:06 +01:00
Mike McQuaid
8ec2d4594e BuildOptions: detect if building a bottle. 2013-10-08 10:13:03 +01:00
Jack Nagel
fe31e8ddb4 Use MacOS.locate to find otool
Fixes Homebrew/homebrew#23111.
2013-10-07 21:32:18 -05:00
Xiyue Deng
022f1225e6 Fix test failure for C++ stdlib. 2013-10-07 03:40:41 -07:00
Misty De Meo
15963322fd Tab#cxxstdlib: don't try to convert nil to_sym 2013-10-07 00:25:26 -07:00
Misty De Meo
d5ac2deefb Tab#cxxstdlib: remove default stdlib
Fixes Homebrew/homebrew#23089.
2013-10-07 00:15:03 -07:00
Misty De Meo
8e7fcaab1e formula_installer: change default bottle CxxStdlib 2013-10-07 00:02:46 -07:00
Misty De Meo
61ca8721fb Tab.dummy_tab: don't provide default stdlib value 2013-10-07 00:00:43 -07:00
Misty De Meo
80c77e6113 build: fix typo 2013-10-06 19:34:39 -07:00
Misty De Meo
8427e71368 Track the OS's default C++ stdlib 2013-10-06 19:26:06 -07:00
Misty De Meo
87b0137198 CxxStdlib: allow for nil stdlibs
A nil stdlib value represents non-C++ code.
2013-10-06 19:26:06 -07:00
Misty De Meo
74ab023422 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
Jack Nagel
9c53a1b8b7 Recommend Xcode 5.0.1 GM on 10.9 2013-10-06 17:24:22 -05:00
Misty De Meo
25ab8212a0 FileUtils#copy_metadata: update comment, version 2013-10-06 14:06:25 -07:00
Alex Malinovich
fb929f429f Fix typo in Keg#fixed_name invocation
Closes Homebrew/homebrew#23079.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-10-06 14:20:06 -05:00
Jack Nagel
50c7c6bbd6 Check types in Formula#==
Comparing two objects should not raise an exception, even if they have
different types.

The semantics of #== are now the same as #eql?, so make one an alias.
2013-10-04 21:19:15 -05:00
Jack Nagel
43f0c63135 superenv: fix hardcoded X11 aclocal path 2013-10-04 21:06:19 -05:00
Jack Nagel
2bbe2dba16 ENV.x11: only use SDK when CLT is missing and X11 is from Apple 2013-10-04 21:06:18 -05:00
Jack Nagel
b2bb0e22f4 ENV.x11: always add include/freetype2 to CPPFLAGS 2013-10-04 21:06:18 -05:00
Jack Nagel
5b0e0c2570 config: squelch stderr when invoking git 2013-10-04 13:08:13 -05:00
Jack Nagel
7bb90c992a Fetch yields the key, use it 2013-10-04 12:44:05 -05:00
Jack Nagel
e887232b7e MacOS: remove unnecessary begin block 2013-10-04 12:42:31 -05:00
Xiyue Deng
592b5d91a0 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
Mike McQuaid
535c02674c Add Xcode 5.0.1.
Closes Homebrew/homebrew#23040.
2013-10-04 09:56:02 +01:00
Mike McQuaid
ee79f31516 xcode: Xcode 5.0 is the latest on 10.8. 2013-10-04 09:55:26 +01:00
Mike McQuaid
929a9f8b4c macos: cleanup whitespace. 2013-10-04 09:53:59 +01:00
Misty De Meo
b4f5be46d2 MacCPUs: distinguish between G5 32-bit and 64-bit 2013-10-03 20:05:32 -07:00
Jack Nagel
b35d9906e5 Pass the mktemp prefix as an argument 2013-10-02 22:01:31 -05:00
Jack Nagel
02a0e4e2e0 Fix mktemp directory naming 2013-10-02 19:41:05 -05:00
Jack Nagel
57560c03e6 Handle invalid names in download strategies
When subformulae are initialized without a name parameter, Homebrew
assigns the name "__UNKNOWN__". This may cause collisions in the cache.

Currently CurlDownloadStrategy and its descendants handles this by
extracting the basename form the URL and using that as the cached
filename. However, other strategies simply raise an exception.

We can improve the other strategies by URL-encoding the URL string and
using that as the cached directory name.

Note that this happens very rarely, especially now that resources (which
always have a name) are preferred to subformulae. The most common case
is a subformula that specifies a head download.

Closes Homebrew/homebrew#22949.
2013-09-30 22:56:02 -05:00
Misty De Meo
48dde74503 Move ld64 into SharedEnvExtension
Superenv is being tested on Xcode 3.1.4, so this needs to be supported
in both ENVs, not just stdenv.
2013-09-28 17:22:27 -07:00
Jack Nagel
a380265e90 BazaarDownloadStrategy: handle corrupt checkouts 2013-09-28 18:38:32 -05:00
Jack Nagel
06d2aa11ee Remove commented out code, this is in git after all 2013-09-28 18:38:30 -05:00
Jack Nagel
da2efa46aa SubversionDownloadStrategy: handle corrupt checkouts 2013-09-28 18:01:00 -05:00
Jack Nagel
5468733e63 MercurialDownloadStrategy: pull quietly in non-verbose mode 2013-09-28 17:09:05 -05:00
Jack Nagel
7deb2f85e8 MercurialDownloadStrategy: handle corrupt checkouts 2013-09-28 17:08:48 -05:00
Jack Nagel
c5289f2503 Infer dependencies from download strategies and URLs
Closes Homebrew/homebrew#20849.
Closes Homebrew/homebrew#22871.
2013-09-28 16:37:05 -05:00
Jack Nagel
a2c949bfb7 Allow Dependency objects to be marshaled
When an exception is raised in the build process, it is marshaled and
sent to the main process over a pipe. The marshaled exception has
a reference to the formula, so the formula and all objects it references
are marshaled as well.

Previously this did not include dependencies, as they were stored only
on the class and not referenced by an instance variable. However, now
they are stored on SoftwareSpec instances, to which the formula *does*
have a direct reference, so they must be marshalable.
2013-09-27 23:36:57 -05:00
Misty De Meo
29d204c697 Adjust CompilerSelectionError message 2013-09-27 20:33:15 -07:00
Jack Nagel
cb32f76f27 SoftwareSpec: remove dead code 2013-09-27 21:29:37 -05:00
Mike McQuaid
5c973bad74 pod2man: add ENV wrapper.
Closes Homebrew/homebrew#22528.
2013-09-27 21:35:03 +01:00