aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2011-09-01 19:37:27 -0500
committerJack Nagel2011-09-01 19:43:43 -0500
commit24896e6c44a4dd8a679e0c6b222ed20b51f672b4 (patch)
tree4955dc43029ac155a2eaebe8d1b56e97f3847fff
parent7ae9ca2ff7b1abbaa2646bd95e509278a076fea6 (diff)
downloadhomebrew-24896e6c44a4dd8a679e0c6b222ed20b51f672b4.tar.bz2
md5sha1sum: fix binary mis-naming issue
The md5sha1sum configure script looks in PREFIX (/usr/local by default) to see if there are existing md5sum and sha1sum binaries, and adds the prefix 'ub' to its own binaries if it finds them. This breaks compatibility with sloccount, which depends on this specific md5 package. Fix it by passing '--prefix=#{prefix}' to configure. They will override existing md5sum and sha1sum binaries when linked into the prefix, but some measure of responsibility has to be on the user. Fixes #5472. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
-rw-r--r--Library/Formula/md5sha1sum.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Formula/md5sha1sum.rb b/Library/Formula/md5sha1sum.rb
index f6cd2b058..5934b4545 100644
--- a/Library/Formula/md5sha1sum.rb
+++ b/Library/Formula/md5sha1sum.rb
@@ -6,7 +6,7 @@ class Md5sha1sum < Formula
md5 'a75c5e21071ffa66fad1001de040517a'
def install
- system "./configure"
+ system "./configure --prefix=#{prefix}"
system "make"
bin.install "md5sum"
['sha1sum', 'ripemd160sum'].each { |s| ln_s bin+'md5sum', bin+s }