From a23357372e6498a3a6d74382237ca1b3495c3cce Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sun, 19 Feb 2012 16:12:26 -0600 Subject: [PATCH] cleaner: remove lib/charset.alias files This file is installed by a number of packages, but it really shouldn't be. It is meant to be updated by packages that use it, but this is broken (1) by software that doesn't do this correctly and (2) by the symlink being overwritten by Homebrew's linking code. It's presence can cause issues with tools that use libiconv/gettext. Instead let's follow MacPorts' example and just remove it during the clean stage. Signed-off-by: Jack Nagel --- Library/Homebrew/cleaner.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Library/Homebrew/cleaner.rb b/Library/Homebrew/cleaner.rb index 14a69c3aeb..ea5ece779f 100644 --- a/Library/Homebrew/cleaner.rb +++ b/Library/Homebrew/cleaner.rb @@ -78,6 +78,8 @@ class Cleaner elsif path.extname == '.la' # *.la files are stupid path.unlink unless @f.skip_clean? path + elsif path == @f.lib+'charset.alias' + path.unlink unless @f.skip_clean? path elsif not path.symlink? clean_file path end