aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/gettext.rb
diff options
context:
space:
mode:
authorDaniel Rodríguez Troitiño2009-09-16 15:33:30 +0100
committerMax Howell2009-09-16 15:33:30 +0100
commit9f033332f0810bd7984fefb640e766a0a2980d6a (patch)
treea7cc10db3fb9e70ec64fa3c894c19541e6982fbf /Library/Formula/gettext.rb
parent6aa72821ee8f7b7928024504d83d115a3907ef99 (diff)
downloadhomebrew-9f033332f0810bd7984fefb640e766a0a2980d6a.tar.bz2
Added patch for environ problems in Gettext.
All Gettext binaries fail at runtime with linking problems related to the environ variable. According to <http://www.mail-archive.com/bug-gnulib@gnu.org/msg09272.html> the environ variable is missing from some platforms (between them MacOS X), and autoconf test for it, and sets HAVE_ENVIRON_DECL accordingly. A common workaround was declaring "extern char** environ" in the code if the OS didn't provide the environ variable, but that doesn't work since 10.5. Since then you have to use _NSGetEnviron() function declared in crt_externs.h. This workaround works at least since 10.3. t Signed-off-by: Max Howell <max@methylblue.com> Closes #11
Diffstat (limited to 'Library/Formula/gettext.rb')
-rw-r--r--Library/Formula/gettext.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Formula/gettext.rb b/Library/Formula/gettext.rb
index 81a82abc7..b518ae381 100644
--- a/Library/Formula/gettext.rb
+++ b/Library/Formula/gettext.rb
@@ -4,6 +4,12 @@ class Gettext <Formula
@url='http://ftp.gnu.org/pub/gnu/gettext/gettext-0.17.tar.gz'
@md5='58a2bc6d39c0ba57823034d55d65d606'
@homepage='http://www.gnu.org/software/gettext/'
+
+ def patches
+ {
+ :p1 => ['http://gist.github.com/raw/186336/2fe65fab894f94a03aab2f03349ae7f1febcd301/mac-osx-105-environ.patch']
+ }
+ end
def install
ENV.libxml2