55139 Commits
Author SHA1 Message Date
Misty De Meo 006b1328cd qemu: disable cocoa on 10.4 2017-07-13 15:48:45 -07:00
Misty De Meo 72f9e297b8 qemu: fix stdint on 10.4 2017-07-13 15:41:46 -07:00
Misty De Meo 36151ca31a qemu: fix 32-bit build on 64-bit CPU 2017-07-13 15:33:25 -07:00
Misty De Meo b5c0b675a3 qemu: revert to 2.2.1 2017-07-13 15:25:11 -07:00
Misty De Meo 1236c7435f qemu: fix patch sha256
Fixes #521.
2017-07-03 10:23:28 -07:00
Misty De Meo 24972db79f gist-logs: fix user agent
Refs #518.
2017-06-17 22:18:25 -07:00
Misty De Meo 1975f0f33a Merge pull request #515 from mistydemeo/use_internal_sha256
Use internal Ruby 1.8.2 sha256
2017-05-30 09:11:29 -07:00
Misty De Meo 1964065a71 Use internal Ruby 1.8.2 sha256
Turns out this was here all along! Just with a slightly different
API from modern versions of Ruby.
2017-05-30 09:06:08 -07:00
Misty De Meo bddb767290 Only include RUBY_PATCHLEVEL if defined
Hotfix for #514.
2017-05-26 17:13:00 -07:00
Misty De Meo a460f2d1b5 Merge pull request #513 from mistydemeo/perl-fallbacks-sha256
Make sha256 resilient with platform-independent fallback.
2017-05-25 18:06:43 -07:00
Misty De Meo c307a32fb2 sha256: add homebrew/vendor openssl to the rotation 2017-05-25 18:03:48 -07:00
Geoff Nixon 9774dff598 Make sha256 resilient with platform-independent fallback. 2017-05-25 18:03:45 -07:00
Misty De Meo 3bd76c45ca Merge pull request #509 from mistydemeo/introduce_brew_sh
Introduce brew.sh
2017-05-25 18:03:19 -07:00
Misty De Meo 47b7bb4226 miniupnpc: needs ld64 on Tiger 2017-05-22 23:39:49 -07:00
Thomas Bernard 1fed6abaa3 miniupnpc: bump to version 2.0.20170509. Fixes CVE-2017-8798
also update homepage for https

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2017-05-22 23:39:00 -07:00
Misty De Meo 103cc7908a utils: remove merge blah 2017-05-11 00:04:31 -07:00
Misty De Meo 23c4d834f1 Revert "brew.sh: simplify HOMEBREW_OSX_VERSION_NUMERIC"
This reverts commit 549201c986.

This doesn't work on old versions of bash - printf doesn't do -v.
2017-05-11 00:02:53 -07:00
Misty De Meo 5d2497a719 os: needs a require 2017-05-11 00:00:51 -07:00
Xu Cheng 260b830fd9 move brew shell function to brew.sh 2017-05-10 23:58:55 -07:00
Mike McQuaid 143b7bee5f brew.sh: error out if no Ruby found.
This is a nicer error message than the `exec` failing at a later stage.
2017-05-10 23:57:24 -07:00
Max Nordlund 116fe7b2dc Implement the brew help command
This is also used by `brew <cmd> --help`. The basic idea is to have the
documentation as a top level comment in each command file. To find these
comments, they have to be like this `#:`.

This is also used by the `brew man` command to keep the documentation
DRY, and for that there are now a header and footer for the man page.
2017-05-10 23:55:18 -07:00
Martin Afanasjew b9d5136fb3 brew.sh: make sure to always use system 'awk'
This should prevent issues like #47 and make us more resilient.
2017-05-10 23:53:15 -07:00
Martin Afanasjew 1fcd5f3c24 brew.sh: tweak HOMEBREW_PROCESSOR on Linux
`uname -p` seems to be less useful on Linux (Debian 8 yields `unknown`),
thus prefer `uname -m` on those systems to determine the processor type.

Closes #35.

Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2017-05-10 23:53:07 -07:00
Martin Afanasjew 5bafc03354 brew.sh: fix HOMEBREW_OS_VERSION on Linux et al.
On Linux (and other non-OS X platforms), `HOMEBREW_OS_VERSION` was
*always* replaced with the product name, leading to less useful user
agent. E.g., on a reasonably up-to-date Debian system:
  Linuxbrew/0.9.9 (Linux; unknown Linuxbrew)

With this fix the user agent is instead (first if `lsb_release` is
available and outputs something, second otherwise):
  Linuxbrew/0.9.9 (Linux; unknown Debian GNU/Linux 8.3 (jessie))
  Linuxbrew/0.9.9 (Linux; unknown 3.16.0-4-amd64)
2017-05-10 23:52:59 -07:00
Martin Afanasjew 549201c986 brew.sh: simplify HOMEBREW_OSX_VERSION_NUMERIC
Use `printf -v` and strip out the unnecessary `echo`, thus avoiding two
unnecessary command substitutions.
2017-05-10 23:52:34 -07:00
Martin Afanasjew 1c4a0f33cf brew.sh: streamline setting HOMEBREW_{OSX,LINUX}
For uses like this one, `case` is much more compact and easier to read.
2017-05-10 23:52:19 -07:00
Misty De Meo 3b1f4e031b brew.sh: remember, we need those certs real bad 2017-05-10 23:49:58 -07:00
Mike McQuaid 8d435e616c Make Homebrew user agent consistent, use a slash.
Generally it seems user agents are all `software/version` but ours is
not. Also, set the user agent in a way that it's shared between Bash
and Ruby code.

Closes https://github.com/Homebrew/legacy-homebrew/pull/50480.
2017-05-10 23:47:00 -07:00
Mike McQuaid 1147bf3e92 Fix brew update user agent.
This needs to be `Homebrew $HOMEBREW_VERSION` so we can be adequately
filtered.

Closes Homebrew/homebrew#49961.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2017-05-10 23:41:50 -07:00
Xu Cheng bdc303e035 brew.sh: add tap-pin to sudo check list 2017-05-10 23:40:36 -07:00
Misty De Meo fde676c52f brew.sh: don't call xcode-select if it doesn't exist 2017-05-10 23:31:31 -07:00
Martin Afanasjew 7a4a90411a brew.sh: improve empty argument handling
Follow-up to Homebrew/homebrew#49327 that leaves empty argument handling to the Ruby code
(it is a bit more sophisticated and distinguished between `help` and an
empty argument list and treats them differently) instead of hard-wiring
the former to the `help` command.

Closes Homebrew/homebrew#49538.

Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2017-05-10 23:24:25 -07:00
Martin Afanasjew 09cd8a467d brew.sh: drop reference to removed 'update-ruby'
This is a follow-up fix to a minor oversight in Homebrew/homebrew#49523.
2017-05-10 23:24:13 -07:00
Misty De Meo b67e4d6f23 brew: print help when no commands given
Fixes Homebrew/homebrew#49325.

Closes Homebrew/homebrew#49327.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2017-05-10 23:23:57 -07:00
Misty De Meo d2d4cead91 Use /usr/bin/ruby for HOMEBREW_RUBY_PATH 2017-05-10 23:23:35 -07:00
Mike McQuaid dd55d98f84 bin/brew: move logic to Library.
`bin/brew` is getting a bit bloated and it's annoying to open all of
`HOMEBREW_PREFIX` in your editor of choice and have it search through
the `Cellar`. Let's instead keep the bare minimum in `bin/brew` and
move the rest to `Library`.

Closes Homebrew/homebrew#49185.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2017-05-10 23:16:33 -07:00
Mike McQuaid dc8d60d116 tap_constants: allow formulae to have @ in name.
Follow-up from #812 to fix handling fully-qualified versioned formulae
names.

Allows pulling https://github.com/Homebrew/homebrew-core/pull/971.
2017-05-09 21:34:12 -07:00
Misty De Meo 3304b115ae Import linkage checker 2017-05-09 21:14:15 -07:00
Misty De Meo 15aeaae83d Import GCC formulae dependencies
These were missed in the last PR.
2017-05-08 22:53:13 -07:00
Misty De Meo 2c22b28cb4 Import gcc formulae from homebrew/versions
Eventually these will be replaced with versions using Homebrew's new
naming format, but these will allow users who already had them to use
them.

Fixes #499.
2017-04-29 22:30:01 -07:00
Misty De Meo 7c33bcb67d Merge pull request #496 from mistydemeo/fix_qemu_tiger
(WIP) Fix qemu on 10.4
2017-04-25 16:23:10 +10:00
Misty De Meo 8c13057d44 qemu: use a newer make on 10.4 2017-04-25 16:21:49 +10:00
Misty De Meo deceb82db5 qemu: help find Rez on 10.4 2017-04-25 16:19:46 +10:00
Misty De Meo 41815fdb92 qemu: disable cocoa on 10.4 2017-04-24 19:15:47 +10:00
Misty De Meo d11482da3d qemu: fix stdint on 10.4 2017-04-24 19:15:19 +10:00
Misty De Meo cca45a2a3b qemu: needs libutil 2017-04-24 19:14:36 +10:00
Misty De Meo ac0327ec7b libutil 11
This is shipped by newer versions of OS X, and used by some
packages.
2017-04-24 17:08:57 +10:00
Misty De Meo 5fedb43743 qemu: fails with gcc-4.0, gcc-4.2
Refs #400, #428.
2017-04-23 18:02:27 +10:00
Misty De Meo ff1511fdcf qemu: fix build on 10.5
Fixes #489.
2017-04-23 16:49:46 +10:00
Misty De Meo 0177765a84 qemu: fix 32-bit build on 64-bit CPU 2017-04-23 16:40:33 +10:00