7735 Commits

Author SHA1 Message Date
Xu Cheng
2f757ee5aa bottle_version: support openssl style 2015-04-19 15:18:12 +08:00
Xu Cheng
61a711f802 stop supporting 0_5_0 style bottle version
The original formula (disco) has been moved to use 0.5.0 style version
string. So actually no one is using such style.

Stop supporting such style, so it wouldn't be ambiguous with revision
part in `Formula#pkg_version`.

Closes Homebrew/homebrew#38750.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-04-19 14:21:50 +08:00
Jack Nagel
47aae82d33 Remove bad test 2015-04-18 15:20:58 -04:00
Viktor Szakats
70b38140b7 Xcode.md: minor update to punctuation chars
Closes Homebrew/homebrew#38784.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-04-18 22:22:41 +08:00
Tim D. Smith
7050a8bee1 docs/Xcode: add 6.2 and 6.3 revisions 2015-04-18 00:58:15 -07:00
Alex Dunn
6a916a080a bbcp: move to head-only
Closes Homebrew/homebrew#38769.

Signed-off-by: Tim D. Smith <git@tim-smith.us>
2015-04-17 23:25:21 -07:00
Jack Nagel
a5c9c586ff Move can_cleanup? off of the formula instance 2015-04-17 22:58:02 -04:00
Jack Nagel
338a08d8d6 Ask the formula if it can be cleaned up once 2015-04-17 22:58:02 -04:00
Jack Nagel
505d06c176 Simplify cleanup eligibility check 2015-04-17 22:58:02 -04:00
Dominyk Tiller
703de5556f linkapps: output nothing if no apps exist
The standard message can be somewhat confusing (#38695) in that it
outputs “finished linking” language regardless of whether an app is
actually present/linked or not.

This solution just stops it saying anything if there’s no app in the
directory. It needs a little tidying in the output here, but it’s a
discussion point.

Closes Homebrew/homebrew#38728.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-04-17 10:54:19 -07:00
Xu Cheng
adedbb86f1 sandbox: record log
Closes Homebrew/homebrew#38711.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-04-17 14:09:24 +08:00
Jack Nagel
c2dcd91bd1 Eliminate a place where ARGV is mutated 2015-04-16 22:20:59 -04:00
Mike McQuaid
ced7598d67 test-bot: delete cache files older than 30 days.
Closes Homebrew/homebrew#38567.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-04-16 17:52:11 -07:00
Mike McQuaid
451a07cc4e cleanup: add --prune to delete old cache files. 2015-04-16 17:52:10 -07:00
Mike McQuaid
e8c0d8ac20 tap_migrations: migrate pebble-sdk.
Closes Homebrew/homebrew#35128.
2015-04-16 17:16:27 -07:00
Jack Nagel
cc92f491c8 Fix test formula name so it matches the filename 2015-04-15 21:28:23 -04:00
Xu Cheng
d1617e86d0 sandbox postinstall
Closes Homebrew/homebrew#38479.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-04-15 19:51:54 +08:00
Xu Cheng
b621edf89d sandbox test 2015-04-15 19:51:54 +08:00
Xu Cheng
a6be0b5bb8 sandbox: redesign API 2015-04-15 19:51:54 +08:00
Xu Cheng
06f72ab38f move safe_fork into a standalone method 2015-04-15 19:51:54 +08:00
Xu Cheng
c952fda202 build: fix typo 2015-04-15 19:51:54 +08:00
Dominyk Tiller
3cc24528bf Revert "brew pull: add automatic tap repair"
This reverts commit bcd34ded9e4b17b8658b7ae947cd392a4e5942c0.

Closes Homebrew/homebrew#38658.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-04-14 22:40:12 -07:00
Dominyk Tiller
3c2493f862 rubocop: update for 0.30.0
v0.30.0 has killed a couple of the methods being used and is throwing
warnings around like candy. This switches to the new methods.

Rubocops are obviously a matter of choice, and I’ve added choice here
based on what was said in previous PRs and my own personal views on
readability. Happy to be told to change things to different variables.

For upstream detail, see:

*
https://github.com/bbatsov/rubocop/blob/master/relnotes/v0.30.0.md#chang
es
* https://github.com/bbatsov/rubocop/pull/1721/files
* https://github.com/bbatsov/rubocop/pull/1655/files

Closes Homebrew/homebrew#38655.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-04-14 22:37:56 -07:00
Jack Nagel
0d6545363d Update test dependencies 2015-04-13 20:04:39 -04:00
Dominyk Tiller
399388d8b9 brew pull: add automatic tap repair
At the moment, every time I pull a new formulae from a tap, I have to
fetch it with the fully qualified name, `brew fetch
homebrew/versions/duck123 `, which is fine, but then I also have to
install, test, and audit it in the same way, which isn’t fixed until I
tap repair, which gets a bit onerous.

This just adds a step to `brew pull` where it does the tap repair
automatically for taps.

Closes Homebrew/homebrew#37788.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-04-13 12:45:18 -07:00
Mike McQuaid
9cfd768bfe formula: add more API docs for directories.
Closes Homebrew/homebrew#38571.
2015-04-12 21:49:12 -07:00
Mike McQuaid
ef9acd53d7 Migrating A Formula To A Tap: add documentation.
Closes Homebrew/homebrew#38570.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-04-12 21:48:10 -07:00
Mike McQuaid
dfcb26b2c3 readall: use named to check if ARGV is empty.
Otherwise e.g. --debug will be interpreted as a (bad) tap argument.

Closes Homebrew/homebrew#38569.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-04-12 21:37:29 -07:00
Baptiste Fontaine
8363b35216 audit: don't split shell commands when using a glob pattern
Without this, `brew audit <some formula>` may ask people to change:

    system "./script.sh foo-*"

into:

    system "./script.sh", "foo-*"

These are not the same. In the first example the shell expansion occurs
while it doesn’t in the second one, breaking the build.

Closes Homebrew/homebrew#38540.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-04-12 21:34:53 -07:00
Viktor Szakats
9c46e4be0a download_strategy: automatically use apache.org https mirror
Discussion: https://github.com/Homebrew/homebrew/issues/37945
Patch by @jacknagel.

Closes Homebrew/homebrew#38492.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-04-10 08:39:18 +01:00
Dominyk Tiller
4d442b0316 os: support xcode 6.3
It’s Christmas. New stable OS X version, new Swift version, new Xcode,
new CLT and a new Clang version.

Closes Homebrew/homebrew#38468.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-04-09 11:25:15 +01:00
Xu Cheng
2f529220e7 preliminary write control only sandbox
Closes Homebrew/homebrew#38361.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-04-09 17:42:54 +08:00
Mike McQuaid
c86166c43e pull: increase bottle publish wait timeout. 2015-04-09 10:34:33 +01:00
Mike McQuaid
63d8bcd314 tap: better match install format. 2015-04-09 09:00:18 +01:00
Mike McQuaid
6b41f38b69 untap: better match uninstall format. 2015-04-09 09:00:08 +01:00
Dominyk Tiller
a5c4eb2d3e cmake: adjust standard built type
Moves from None to Release, but comments out the standard release
CFLAGS so we can continue using our own.

Bumped Libgit2 as an example/test to play with.

Closes Homebrew/homebrew#37332, hopefully.

Closes Homebrew/homebrew#37361.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-04-09 08:50:51 +01:00
Tim D. Smith
407b82406f test-bot: don't check deps until taps are tapped
brew deps will fail silently if a formula has dependencies which live in
taps that have not yet been tapped. Delay checking brew deps until after
tap dependencies are discovered.

Closes Homebrew/homebrew#38424.
2015-04-09 00:42:51 -07:00
Tim D. Smith
ac16822a16 Prioritize TapDependency in parse_string_spec
test-bot expects the dependencies returned from SoftwareSpec#deps to
satisfy is_a?(TapDependency) if they come from a tap which might need to
be tapped.
2015-04-09 00:42:51 -07:00
Tim D. Smith
a5e1f698d5 Keep Homebrew site-packages in sys.path during brew test
Formulas that build python things and which are tested with system
Python will encounter test failures unless system Python is configured
to add Homebrew's site-packages to sys.path. This change makes sure that
configuration is performed in the test environment.

Both lines are needed; the first reads and processes .pth files and the
second makes sure that Homebrew's site-packages is read before the
system extras, so that formulas depending on Homebrew/python/numpy get
the Homebrew/python version and not the old system version.

Closes Homebrew/homebrew#38466.
2015-04-09 00:42:43 -07:00
Xu Cheng
f5c8e3fdbd Use UNIXSocket to pass file descriptor
This is a more standard way to pass fd in UNIX world.
At the same time, it helps to remove a few hacks and
simplifies the code in the sandbox.

Closes Homebrew/homebrew#38434.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-04-09 15:31:47 +08:00
Xu Cheng
cd00abab55 uninstall: display file size
Closes Homebrew/homebrew#38475.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-04-09 15:25:22 +08:00
Geoff Nixon
8d94fff17a figtoipe: move to head-only.
Closes Homebrew/homebrew#37059.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-04-09 08:17:29 +01:00
Geoff Nixon
6889709246 dromeaudio: move to head-only.
Closes Homebrew/homebrew#37057.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-04-09 08:16:22 +01:00
Tim D. Smith
c803b3d967 FortranDependency: make sure gfortran ends up in PATH
Per requirements.rb:

    >  XXX If the satisfy block returns a Pathname, then make sure that it
    >  remains available on the PATH. This makes requirements like
    >    satisfy { which("executable") }
    >  work, even under superenv where "executable" wouldn't normally be on the
    >  PATH.
    >  This is undocumented magic and it should be removed, but we need to add
    >  a way to declare path-based requirements that work with superenv first.

Fixes homebrew/homebrew-python#170.

Closes Homebrew/homebrew#38448.
2015-04-08 09:01:23 -07:00
Mike McQuaid
6acf05aea0 pull: sleep before fetching uploaded bottle. 2015-04-08 13:56:57 +01:00
Mike McQuaid
62df28a476 uses: also check the default formulae.
This means e.g. `elixir` will show up as using `erlang`.
2015-04-08 13:39:12 +01:00
Xu Cheng
b77c7ad442 FAQ: update uninstall method
Closes Homebrew/homebrew#38457.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-04-08 19:34:21 +08:00
Jack Nagel
3587dc441e Remove duplication from cleanup methods 2015-04-07 21:14:48 -04:00
John Manoogian III
1aff1d9455 How To Open a PR: add commit guidelines.
Closes Homebrew/homebrew#38439.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-04-07 19:00:36 +01:00
Dominyk Tiller
2fa87369b3 pathname: prune unnecessary whitespace
Closes Homebrew/homebrew#38413.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-04-07 18:32:29 +01:00