75 Commits

Author SHA1 Message Date
Trung Le
3df97b20d5 Add PowerPC64 CPU
Co-Authored-By: Mike McQuaid <mike@mikemcquaid.com>
2020-04-30 23:37:45 +10:00
Issy Long
341ea60807
Auto-fix Style/RedundantBegin offenses
- This also required auto-fixes for Layout/EmptyLinesAroundBlockBody and
  Layout/InconsistentIndentation once the auto-fixer had got rid of the
  "redundant begin"s.
2019-10-13 16:04:27 +01:00
Mike McQuaid
704ea4b4bb
install: add comment explaining why we're creating these files. 2019-09-18 09:44:29 +01:00
Mike McQuaid
8d6ac3869c
install: keep_file must be a Pathname. 2019-09-18 09:44:28 +01:00
Ivan Verevkin
878b79d456
install: create .keepme files in directories. 2019-09-18 09:44:06 +01:00
Mike McQuaid
36dbad3922
Add frozen_string_literal to all files. 2019-04-20 13:27:36 +09:00
EricFromCanada
89f0fcedbe whitespace fixes 2019-04-13 21:32:04 -04:00
Mike McQuaid
589ed8e17c
Tweak diagnostic checks
- Make `gist-logs` perform more checks
- Don't complain about a non-/usr/local install at install time unless
  actually building from source.
- Show more checks output on a build error
- Improve naming of checks methods
2019-01-21 19:23:31 +00:00
Mike McQuaid
3a0e0dca36
Output more warnings on unsupported configurations 2019-01-21 13:58:03 +00:00
Mike McQuaid
170c5493a4
Update deprecations
- Add some `odeprecated`
- Make some `odeprecated` now `odisabled`
- Remove `odisabled` code.
- Remove old update migrations
- Remove GCC 4.0 compiler
- Remove Tiger-only code
- Remove 32-bit-only code
- Remove use of LD64
- Remove GCC 4.3 - 4.8 support.
2019-01-08 19:13:46 +00:00
Shaun Jackman
c0f07db656 Symlink ld.so [Linux] 2018-09-28 14:01:09 -07:00
Mike McQuaid
9a698d2130
keg: further tweak directory constants.
- ensure that `HOMEBREW_CELLAR` is always created on `install`.
- remove the need for a special `PRUNEABLE_DIRECTORIES` variable
- reuse values from existing variables and get `uniq`s.
2018-09-25 22:03:29 +01:00
Markus Reiter
e9b9ea49a1 Update to RuboCop 0.59.1. 2018-09-17 03:45:59 +02:00
Mike McQuaid
7615d3a812
Improve writable directory handling
Consolidate the handling of which directories need to exist and which
need to be writable. Additionally, add a fatal check for formula
installations to ensure that any directories that need to be writable
are so before attempting an installation.

Fixes #4626.
2018-09-06 18:38:43 +01:00
Mike McQuaid
94409712fe install: don't exit on Homebrew.failed?
This will be set if e.g. pinned packages aren't being upgraded.

Fixes #4388.
2018-07-02 10:25:04 +01:00
William Woodruff
96ff4102c8
formula_installer: Don't check devtools if pouring 2018-06-11 00:45:25 -04:00
Andrew Janke
8b55cb5ecb Refactor commands to remove "require cmd/help" 2018-06-07 04:59:59 -04:00
Max Howell
45ba18b4d5 Rename install.rb to build.rb for clarity and great justice
It was just confusing, and since the `brew upgrade` refactor this makes more sense too.

Shame it still downloads in there etc. but whatever. Homebrew 2 will fix!
2011-08-24 22:30:44 +01:00
Max Howell
19e387d92e brew upgrade
Consequence: you can no longer install when something is already installed, you must upgrade it. This doesn't apply if the formula in question was unlinked. You can still --force installs though.

Rationale: the old way of installing over the top would leave symlinks to multiple versions in /usr/local if the old version had a file the newer version didn't. The new upgrade command handles everything properly.
2011-08-24 22:30:43 +01:00
Adam Vandenberg
0818189b5d Fix stripping of keg-only reasons 2011-07-30 10:11:35 -07:00
Max Howell
71cc478a86 Strip keg_only? text to avoid double newlines 2011-07-30 11:04:11 +01:00
Max Howell
7e1e8efdf4 Fix install names for keg-only brews too
Fixes Homebrew/homebrew#6065. Fixes Homebrew/homebrew#6218.
2011-07-04 09:31:48 +01:00
Mike McQuaid
eb7c5fa6d7 Fix missing pourable? reference. 2011-06-22 18:00:45 +01:00
Max Howell
1d606388b4 Show summary headings when appropriate 2011-06-17 09:30:25 +01:00
Max Howell
215fcd3292 Fix upgrading libdeps breaking stuff after cleanups
Fixes Homebrew/homebrew#2709.

By forcing dylibs to have an install_name id that is the HOMEBREW_PREFIX path, ie. the symlink’s path. Stuff that links to these dylibs will use this id and thus by immune to upgrades of underlying libraries.

Thus whatever keg is "current" ie. linked, will be the library that is used by the tool.

This fix is not retroactive. So there will still be breakage for existing installations of stuff.

The fix_install step in install is moved after the link step as the symlinking
is required to determine the eventual ids for each dylib.
2011-06-17 09:30:25 +01:00
Mike McQuaid
31dea3b800 Add changes to Homebrew internals for bottling. 2011-06-08 22:19:10 +01:00
Adam Vandenberg
80ba991324 Edit keg-only message 2011-04-18 10:33:37 -07:00
Adam Vandenberg
7fa3208b02 Add warning about m4 macros. 2011-03-29 10:02:56 -07:00
Adam Vandenberg
3c3d8661dc Remove ENV dump from top of verbose install.
If an install fails, the ENV dump at the end of the output is more
useful, as it reflects any ENV changes done in def install.
2011-03-21 10:23:18 -07:00
Adam Vandenberg
30fdd7a49b install - change keg-only warning 2011-03-15 22:04:13 -07:00
Adam Vandenberg
2a5f757816 Use + instead of /. 2011-03-12 11:55:07 -08:00
Max Howell
761cbd3dab Add comment and use constants 2011-03-12 11:55:07 -08:00
Camillo Lugaresi
f4ffb754c3 ensure brewed bins are in path before installing
This makes sure that formulas find the correct pkg-config.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-03-12 11:55:06 -08:00
Max Howell
521f1ec959 A install name fix step during install
We currently only fix relative paths, but we should expand this more.
2011-03-12 11:55:04 -08:00
Max Howell
c1a3b724fd Some Cleanup 2011-03-12 11:55:03 -08:00
Max Howell
768910283a Refactor the brew command into one file per command
The code was sucking. To the extent that maintenance was hard. It's a lot
easier to work with code that is sensibly split at sensible boundaries. So
now it is more like that.

But the refactor is minimal. Because we don't want you to have more merge
hell than absolutely necessary.

If you merge you will need to pay attention to brew.h.rb (as it is deleted)
and bin/brew (as command logic is gone). It will be painful, but you will just
have to help git out by moving any changes around manually.

Note compatibility.rb. It ensures that any function renames or removals don't
break anything. We're pretty serious about backwards compatibility. And that's
because we encourage you to hack around with the innards. And we couldn't do
that if we would then just make stuff disappear behind your back.
2011-03-12 11:55:02 -08:00
Adam Vandenberg
c8781e720f Reformat keg-only message 2010-10-30 21:50:33 -07:00
Adam Vandenberg
80ae0e6d95 add install check for top-level info 2010-10-03 20:23:51 -07:00
Will Robertson
64b45334bb Improve :provided_by_osx rationale message
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-09-06 09:14:17 -07:00
Adam Vandenberg
1146eec3bf Only check for Jars if lib exists. 2010-08-21 14:12:10 -07:00
Adam Vandenberg
4b198a6664 Warn about jars in lib.
Java software tends to come with its own mini file layout including
bin, lib and other folders. The lib folder typically holds jars,
which can conflict between packages if linked into HOMEBREW_PREFIX/lib
and aren't needed to compile other .dylib based software anyway.

The recommendation for Java software is to install to "libexec" and then
symlink or wrap binaries from libexec/bin to bin in the Cellar.
2010-08-21 12:18:17 -07:00
Adam Vandenberg
c9d41345d0 Deal with symlinked meta files 2010-08-21 11:45:08 -07:00
Adam Vandenberg
c1e293f5a4 Let 'interactive_shell' take a formula and set ENV vars.
Pull duplicate code out of install --debug and install -i up into
'interactive_shell'.
2010-08-20 10:03:44 -07:00
Adam Vandenberg
7080ea0de6 Add 'HOMEBREW_DEBUG_PREFIX'
When doing "brew install -i", set the "HOMEBREW_DEBUG_PREFIX"
variable to the prefix of the formula being installed.
2010-08-20 10:03:38 -07:00
Adam Vandenberg
74a081e08d Make errors during link step more visible. 2010-08-15 17:17:59 -07:00
Adam Vandenberg
37ea70ed5e Shorten 'bad man path' message. 2010-07-29 12:25:50 -07:00
Adam Vandenberg
070421f441 Fix top-level formula having duplicate deps
If the top-level formula being installed has any keg-only
dependencies, the lib/include/bin/pkg-config paths for those
deps will be added twice to the ENV vars.

This doesn't break anything, but does make debug output somewhat longer
than it needs to be.

Tidy this up by calling uniq on deps before iterating.

(The cause of this duplication is related to how top-level formula are
run, to support keeping patches in __END__ blocks.)

Fixes Homebrew/homebrew#1110
2010-07-20 08:58:37 -07:00
Adam Vandenberg
d49c6d675e Bug fix for METAFILES that are actually directories.
If a package contains a folder that has the same name as one of our
expected meta files, skip trying to install that folder.

(Otherwise we install an empty folder and can get odd permission errors
when trying to summarize after install.)
2010-06-17 16:35:40 -07:00
Adam Vandenberg
8af39f115c Set HOMEBREW_DEBUG_INSTALL when in a shell during install -d|-i
When an "install -d formula" fails, and the user gets dropped into an
interactive shell, set the HOMEBREW_DEBUG_INSTALL env var to the name
for the formula that failed. Also set variable if the user requests an
interactive install in the first place.

Note that this may be different than the formula being installed, since
it may have been a dep that failed.

Also remove todo in utils; users can now look for HOMEBREW_DEBUG_INSTALL
in their prompt command, and adjust their prompts accordingly.
2010-06-15 08:09:58 -07:00
Adam Vandenberg
4777d6b4cf Warn if a keg-level "man" is found.
Homebrew expects manpages to be linked in shared/man/...
and not man/...
2010-06-01 16:25:35 -07:00