Mike McQuaid
fd254c3874
bottle: improve written bottle output.
2013-10-31 19:03:31 -07:00
Mike McQuaid
3f489e1eed
bottle: write to relative path if exists.
2013-10-31 18:21:03 -07:00
Elliot Saba
c20f6395bb
bottle: improve relocatable debugging.
...
* When Homebrew developer mode is enabled, if a bottle is not found to
be relocatable attempt to explain why
* Print out paths of each file that still contains the string search for
* If the string searched for was found in an executable, check to see
if `otool` can explain the string's appearance
* If otool can't explain, see if `strings` can explain
Closes Homebrew/homebrew#23824 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-10-31 17:12:36 -07: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
b20335b314
bottle: add option to force no bottle revision.
2013-09-23 18:23:23 +01:00
Mike McQuaid
fd49e498fa
bottle: fix merging .rb files.
2013-09-23 17:30:56 +01:00
Mike McQuaid
3de941f7c8
bottle: fix default Cellar output.
2013-09-23 17:30:55 +01:00
Mike McQuaid
134210d9ed
bottle: allow writing/committing new bottles.
2013-09-22 16:16:50 +01:00
Mike McQuaid
5d0f868f06
Move bottle.rb logic from test-bot to brew bottle.
2013-09-22 16:16:50 +01:00
Mike McQuaid
b2a983343b
bottle: only output relocatable message if >1MB.
2013-09-22 16:01:03 +01:00
Mike McQuaid
fd34bd6b90
bottle: move bottle output to ERB.
2013-09-22 16:01:02 +01:00
Mike McQuaid
19618bddd4
bottle: use versions to access previous bottles.
2013-09-22 16:01:02 +01:00
Mike McQuaid
36f3617494
bottle: fix --merge with multiple formulae.
2013-09-21 15:18:48 +01:00
Mike McQuaid
5d3d385a65
bottle: improve outputted messages.
2013-09-21 15:18:48 +01:00
Mike McQuaid
6718ca119c
bottle: loosen prefix grep check.
...
/usr/local is in lots of things unrelated to Homebrew so be more specific and look for opt instead.
2013-09-10 21:56:39 +01:00
Mike McQuaid
5104fd21a5
bottles: update version regex messaging.
2013-08-04 08:25:51 -07:00
Mike McQuaid
f3821364a7
Warn more about failing bottle version detection.
...
This is needed for local bottle installation and also possible when
detecting bottle versions from URLs.
2013-07-18 09:56:55 -07:00
Mike McQuaid
4eb7116c9c
bottle: fix cellar output.
2013-07-14 12:11:57 -07:00
Adam Vandenberg
3dd2715ec8
remove no-op code in bottle.rb
...
ARGV.formulae returns formulae, so no need to pass through factory
2013-06-23 13:02:10 -07:00
Mike McQuaid
79f9da3c22
bottle: sort --merge output in OS X version order.
2013-06-22 11:13:59 +01:00
Mike McQuaid
4b35539978
brew-bottle: merge arg for bottle metadata files.
...
Closes Homebrew/homebrew#20266 .
2013-06-08 16:48:43 +01:00
Mike McQuaid
517889d6fb
brew-bottle: split output and use a bottle object.
2013-06-08 16:47:11 +01:00
Jack Nagel
79a769215f
Decouple bottle tags from MacOS.cat
2013-06-06 16:02:27 -05:00
Jack Nagel
aa58a404ed
Fix another handful of warnings
2013-04-06 00:14:03 -05:00
Mike McQuaid
0f9910d352
Relocate bottles using install_name_tool.
...
This has two parts:
1. Bottles are temporarily relocated on bottling and tested if that is
sufficient for them to contain no longer reference the prefix or
cellar. If so, they are marked as relocatable.
2. On installation if bottles are marked as relocatable they will be
relocated using install_name_tool to the current prefix and cellar.
Closes Homebrew/homebrew#18374 .
2013-03-11 18:58:37 +00:00
Mike McQuaid
20c0ddc401
Add non-/usr/local bottles support.
...
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-03-01 17:49:09 +00:00
Mike McQuaid
360af367a8
Cleanup bottle DSL.
...
* Remove legacy url syntax.
* Use revision instead of version.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-03-01 17:49:09 +00:00
Mike McQuaid
3af3bc7dd5
Rename tab 'built_bottle' to 'build_as_bottle'.
2012-08-25 11:52:37 -07:00
Jack Nagel
b3724b2945
Remove executable bits from audit.rb and bottle.rb
...
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-17 21:09:12 -05:00
Mike McQuaid
fe969c21ad
Add ofail command and fix bottle command output.
2012-04-30 21:38:08 +08:00
Mike McQuaid
a947064994
Version bottles.
2012-04-03 11:43:41 +10:00
Mike McQuaid
0cbdeeaa3c
Exit with bad exit code on command failures.
2012-03-29 18:44:37 +11:00
Mike McQuaid
61444ee3a6
brew-bottle doesn't need to specify filenames now.
2012-03-29 18:41:47 +11:00
Mike McQuaid
64457b2315
Remove reliance of bottle DSL on EOCLASS.
2012-03-18 20:38:18 +13:00
Mike McQuaid
552dcdc703
Move most bottle stuff to a bottles.rb file.
2012-03-10 18:10:40 +13:00
Mike McQuaid
4a306f32f4
Support bottles for non-Lion OSX versions.
2012-03-10 18:09:35 +13:00
Mike McQuaid
22f908d520
Make brew-bottle
an internal command.
2012-03-10 17:57:10 +13:00