Jack Nagel
ce19fa2223
Unify install name parsing
2013-12-14 09:35:58 -06:00
Jack Nagel
07006bfdd4
bottle: only chdir into the cellar when tarring up the bottle
2013-12-12 19:46:37 -06:00
Jack Nagel
1b7718f6a7
bottle: determine revision more reliably
...
Closes Homebrew/homebrew#25100 .
2013-12-10 16:39:13 -06:00
Jack Nagel
8f42185e18
bottle: re-raise interrupt after cleanup
2013-12-09 19:38:20 -06:00
Jack Nagel
4afd633570
bottle: clean up after interrupts
2013-12-09 17:35:05 -06:00
Jack Nagel
b30f409995
bottle: fix typo'd option name
2013-12-08 16:41:35 -06:00
Jack Nagel
3d8bf53187
bottle: don't repeat output for hardlinked files
2013-12-08 16:18:12 -06:00
Misty De Meo
e2af1cbeeb
Use BottleCollector in Bottle SoftwareSpec
2013-12-05 18:24:51 -08:00
Jack Nagel
d6ab345be5
bottle: always perform a full relocation check
...
Even if the prefix check fails, it is useful to see the results from the
cellar check.
2013-12-05 18:41:45 -06:00
Jack Nagel
62170811dd
bottle: String is not Enumerable in 1.9+
2013-12-05 16:39:39 -06:00
Jack Nagel
d9afb4f9ea
bottle: fix reporting matches with spaces in them
2013-12-05 16:39:39 -06:00
Jack Nagel
41a810c1b6
bottle: fix false-positives from static libs when checking relocatability
2013-12-05 16:39:39 -06:00
Jack Nagel
371a98fe66
bottle: only split on newlines
2013-12-05 16:39:38 -06:00
Jack Nagel
fb6867c363
String isn't Enumerable in 1.9+
2013-12-05 15:09:18 -06:00
Jack Nagel
36701a89ba
Do relocation check while preparing bottle
2013-12-04 22:37:57 -06:00
Jack Nagel
76153e9780
Insert placeholders for prefix and cellar in relocatable bottles
2013-12-04 22:37:57 -06:00
Mike McQuaid
fe4370cdd0
bottle: make writing commit message more robust.
2013-12-01 10:26:20 -08:00
Mike McQuaid
9773b9e8bf
bottle: write bottle version in commit message.
2013-11-27 08:31:26 +00:00
Mike McQuaid
e08ec21abe
bottle: always use HOMEBREW_REPOSITORY.
2013-11-12 11:29:50 +00:00
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