aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/keg_fix_install_names.rb
AgeCommit message (Collapse)Author
2014-08-14Remove two more unnecessary default argumentsJack Nagel
2014-08-09Cache options hash lookup on the stackJack Nagel
2014-07-20Fix install names in files in sbinJack Nagel
2014-07-05Use popen wrapperJack Nagel
Closes #30678.
2014-06-30Store the opt record so we don't have to keep reconstructing itJack Nagel
2014-06-26Keg no longer inherits from PathnameJack Nagel
2014-06-24Rename Keg#fname to Keg#nameJack Nagel
2014-06-04Fix some places where encoding issues manifest on ruby 2.0Jack Nagel
2014-04-13Use correct basename when updating dylib IDsJack Nagel
2014-04-13Always return a string from dylib_id_forJack Nagel
2014-04-06Fall back to open/write when atomic_write failsJack Nagel
Fixes #28190.
2014-03-29Relocate files in share/pkgconfig tooJack Nagel
2014-03-29Calling find on nonexistent directories only works on 1.8Jack Nagel
2014-03-27Fix class definition so we can require files firstJack Nagel
2014-03-27Only write files if we actually made a changeJack Nagel
2014-03-27Fix Keg#find so we don't have to deal with it everywhereJack Nagel
lol inheritance
2014-03-27Replace files atomically when relocating, take twoJack Nagel
2014-03-27Revert "Replace files atomically when relocating"Jack Nagel
There are some weird interactions with ensure_writable and atomic_write that need to be sorted out. Fixes #27917. This reverts commit 41c21e6ea5647823a9e589a56f0494b622e26fb2.
2014-03-26Replace files atomically when relocatingJack Nagel
2014-03-23Expose some keg methodsJack Nagel
2014-03-03keg_fix_install_names: gsub shebangd bottle files.Mike McQuaid
Closes #27126. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-02-02C++ stdlib check: don't check executables for depsMisty De Meo
This avoids some possible false positives, as happens with, e.g., qt4.
2014-01-08Revert "detect_cxx_stdlibs: ignore executables."Mike McQuaid
This reverts commit 1cd636d368c66d1346adc1c38633c8f204c759f4.
2014-01-07detect_cxx_stdlibs: ignore executables.Mike McQuaid
2013-12-27Drop unnecessary Pathname creationJack Nagel
2013-12-17bottle: extract method for enumerating files that match a stringJack Nagel
This brings a (small) performance improvement as we yield the files as they are output by fgrep rather than waiting until fgrep is done to do any work.
2013-12-14Unify install name parsingJack Nagel
2013-12-14keg: use start_with? instead of regexp matchJack Nagel
2013-12-14Extract HOMEBREW_TEMP constantJack Nagel
2013-12-14keg: add debug output to install name machineryJack Nagel
2013-12-14keg: the argument to find_dylib is already a PathnameJack Nagel
2013-12-14keg: combine loops in relocate_install_namesJack Nagel
2013-12-14keg: eliminate reject_proc, make callers determine which names to fixJack Nagel
2013-12-14keg: yield install names successively instead of all at onceJack Nagel
Every caller of install_names_for loops over the yielded array. Now that we have separated the dylib id calculation and update, we can eliminate the need for a separate loop and yield each install name individually. Rename this method to "each_install_name_for" for clarity.
2013-12-14keg: decouple dylib id changes from install name changesJack Nagel
The dylib id calculation does not use any information gathered in install_names_for, so we can pull the logic out completely and only yield the install names.
2013-12-14keg: factor out dylib id calculationJack Nagel
2013-12-14keg: try to avoid disk IO when possibleJack Nagel
Calling Pathname#text_executable? reads in the first 1024 bytes of the file, so try the basename check (which requires no filesystem access) first.
2013-12-14keg: use lib helperJack Nagel
2013-12-14Pathname#extname returns a stringJack Nagel
2013-12-04Relocate libtool (.la) files as well as pkgconfig (.pc)Elliot Saba
Ignore quotes, just do a global substitution on cellar and prefix. Closes #24894. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-12-04relocate_install_names: only one substitution is neededJack Nagel
2013-12-04relocate_install_names: use a single ensure_writable blockJack Nagel
2013-12-04relocate_install_names: yielded names are already stringsJack Nagel
2013-12-04Let fix_install_names fix up placeholders tooJack Nagel
2013-12-04Teach installer about prefix and cellar placeholdersJack Nagel
2013-12-04Remove special handling for relocatable pkgconfig filesJack Nagel
2013-12-04Insert placeholders for prefix and cellar in relocatable bottlesJack Nagel
2013-12-04relocate_install_names: rewrite cellar names before prefix namesJack Nagel
The cellar may overlap with the prefix, so if we replace the prefix first, we will end up with paths like "@@HOMEBREW_PREFIX@@/Cellar" instead of "@@HOMEBREW_CELLAR@@", which will break on installations where the cellar and prefix are disjoint.
2013-12-04fix_install_names: extract change_dylib_idJack Nagel
2013-12-04fix_install_names: extract change_install_nameJack Nagel