diff options
author | sobomax <sobomax@FreeBSD.org> | 2002-09-03 07:20:50 +0000 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2002-09-03 07:20:50 +0000 |
commit | 337d49f4ac49607c0c83e482aba7d3fb100abbe3 (patch) | |
tree | a9ca296a3f36929e7ac60879ed0b5ab08e9773c3 /devel/gmake | |
parent | 9a0f655a606b803e940c062c53106f62352f19e1 (diff) | |
download | FreeBSD-ports-337d49f4ac49607c0c83e482aba7d3fb100abbe3.zip FreeBSD-ports-337d49f4ac49607c0c83e482aba7d3fb100abbe3.tar.gz |
Fix a problem with gmake segfaulting with some locales.
PR: 41075
Submitted by: naddy
Diffstat (limited to 'devel/gmake')
-rw-r--r-- | devel/gmake/Makefile | 2 | ||||
-rw-r--r-- | devel/gmake/files/patch-gettext.c | 20 |
2 files changed, 19 insertions, 3 deletions
diff --git a/devel/gmake/Makefile b/devel/gmake/Makefile index 2b2e937..a388029 100644 --- a/devel/gmake/Makefile +++ b/devel/gmake/Makefile @@ -7,7 +7,7 @@ PORTNAME= gmake PORTVERSION= 3.79.1 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_GNU} MASTER_SITE_SUBDIR= make diff --git a/devel/gmake/files/patch-gettext.c b/devel/gmake/files/patch-gettext.c index 51c6300..fd98d7e 100644 --- a/devel/gmake/files/patch-gettext.c +++ b/devel/gmake/files/patch-gettext.c @@ -1,8 +1,8 @@ $FreeBSD$ ---- gettext.c 2002/06/06 22:10:23 1.1 -+++ gettext.c 2002/06/06 22:11:09 +--- gettext.c.orig Wed Feb 9 08:02:18 2000 ++++ gettext.c Sun Jul 28 04:22:31 2002 @@ -22,6 +22,10 @@ # include <config.h> #endif @@ -14,3 +14,19 @@ $FreeBSD$ #ifdef __GNUC__ # define alloca __builtin_alloca # define HAVE_ALLOCA 1 +@@ -1294,6 +1298,15 @@ + { + FREE_BLOCKS (block_list); + return added; ++ } ++ if (string_space != new_pool) ++ { ++ size_t i; ++ for (i = 0; i < nmap; i++) ++ { ++ map[i].alias += new_pool - string_space; ++ map[i].value += new_pool - string_space; ++ } + } + string_space = new_pool; + string_space_max = new_size; |