From 64f1be3535e26e045f724f885b31443c790f47ba Mon Sep 17 00:00:00 2001 From: sturm Date: Sun, 18 Dec 2005 21:53:18 +0000 Subject: [PATCH] work around broken gcc(?) on alpha --- devel/gettext/Makefile | 3 ++- .../patches/patch-gettext-tools_src_msgattrib_c | 12 ++++++++++++ .../gettext/patches/patch-gettext-tools_src_msgcat_c | 12 ++++++++++++ .../patches/patch-gettext-tools_src_msgcomm_c | 12 ++++++++++++ .../patches/patch-gettext-tools_src_msgconv_c | 12 ++++++++++++ .../gettext/patches/patch-gettext-tools_src_msgen_c | 12 ++++++++++++ .../patches/patch-gettext-tools_src_msgfilter_c | 12 ++++++++++++ .../patches/patch-gettext-tools_src_msggrep_c | 12 ++++++++++++ .../patches/patch-gettext-tools_src_msgmerge_c | 12 ++++++++++++ .../patches/patch-gettext-tools_src_msguniq_c | 12 ++++++++++++ .../patches/patch-gettext-tools_src_xgettext_c | 12 ++++++++++++ 11 files changed, 122 insertions(+), 1 deletion(-) create mode 100644 devel/gettext/patches/patch-gettext-tools_src_msgattrib_c create mode 100644 devel/gettext/patches/patch-gettext-tools_src_msgcat_c create mode 100644 devel/gettext/patches/patch-gettext-tools_src_msgcomm_c create mode 100644 devel/gettext/patches/patch-gettext-tools_src_msgconv_c create mode 100644 devel/gettext/patches/patch-gettext-tools_src_msgen_c create mode 100644 devel/gettext/patches/patch-gettext-tools_src_msgfilter_c create mode 100644 devel/gettext/patches/patch-gettext-tools_src_msggrep_c create mode 100644 devel/gettext/patches/patch-gettext-tools_src_msgmerge_c create mode 100644 devel/gettext/patches/patch-gettext-tools_src_msguniq_c create mode 100644 devel/gettext/patches/patch-gettext-tools_src_xgettext_c diff --git a/devel/gettext/Makefile b/devel/gettext/Makefile index 7051fdb311e..1a1ffe0f820 100644 --- a/devel/gettext/Makefile +++ b/devel/gettext/Makefile @@ -1,8 +1,9 @@ -# $OpenBSD: Makefile,v 1.38 2005/11/05 23:47:58 naddy Exp $ +# $OpenBSD: Makefile,v 1.39 2005/12/18 21:53:18 sturm Exp $ COMMENT= "GNU gettext" DISTNAME= gettext-0.14.5 +PKGNAME= ${DISTNAME}p0 CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_GNU:=gettext/} diff --git a/devel/gettext/patches/patch-gettext-tools_src_msgattrib_c b/devel/gettext/patches/patch-gettext-tools_src_msgattrib_c new file mode 100644 index 00000000000..259a06fb2b5 --- /dev/null +++ b/devel/gettext/patches/patch-gettext-tools_src_msgattrib_c @@ -0,0 +1,12 @@ +$OpenBSD: patch-gettext-tools_src_msgattrib_c,v 1.1 2005/12/18 21:53:18 sturm Exp $ +--- gettext-tools/src/msgattrib.c.orig Sun Dec 18 11:55:24 2005 ++++ gettext-tools/src/msgattrib.c Sun Dec 18 11:56:06 2005 +@@ -69,7 +69,7 @@ enum + static int to_change; + + /* Long options. */ +-static const struct option long_options[] = ++static struct option long_options[] = + { + { "add-location", no_argument, &line_comment, 1 }, + { "clear-fuzzy", no_argument, NULL, CHAR_MAX + 8 }, diff --git a/devel/gettext/patches/patch-gettext-tools_src_msgcat_c b/devel/gettext/patches/patch-gettext-tools_src_msgcat_c new file mode 100644 index 00000000000..5319aec1096 --- /dev/null +++ b/devel/gettext/patches/patch-gettext-tools_src_msgcat_c @@ -0,0 +1,12 @@ +$OpenBSD: patch-gettext-tools_src_msgcat_c,v 1.1 2005/12/18 21:53:18 sturm Exp $ +--- gettext-tools/src/msgcat.c.orig Sun Dec 18 11:57:28 2005 ++++ gettext-tools/src/msgcat.c Sun Dec 18 11:57:40 2005 +@@ -53,7 +53,7 @@ static int force_po; + static const char *to_code; + + /* Long options. */ +-static const struct option long_options[] = ++static struct option long_options[] = + { + { "add-location", no_argument, &line_comment, 1 }, + { "directory", required_argument, NULL, 'D' }, diff --git a/devel/gettext/patches/patch-gettext-tools_src_msgcomm_c b/devel/gettext/patches/patch-gettext-tools_src_msgcomm_c new file mode 100644 index 00000000000..4d6fdf7019c --- /dev/null +++ b/devel/gettext/patches/patch-gettext-tools_src_msgcomm_c @@ -0,0 +1,12 @@ +$OpenBSD: patch-gettext-tools_src_msgcomm_c,v 1.1 2005/12/18 21:53:18 sturm Exp $ +--- gettext-tools/src/msgcomm.c.orig Sun Dec 18 11:57:59 2005 ++++ gettext-tools/src/msgcomm.c Sun Dec 18 11:58:10 2005 +@@ -55,7 +55,7 @@ static int force_po; + static const char *to_code; + + /* Long options. */ +-static const struct option long_options[] = ++static struct option long_options[] = + { + { "add-location", no_argument, &line_comment, 1 }, + { "directory", required_argument, NULL, 'D' }, diff --git a/devel/gettext/patches/patch-gettext-tools_src_msgconv_c b/devel/gettext/patches/patch-gettext-tools_src_msgconv_c new file mode 100644 index 00000000000..4a00b29fcf2 --- /dev/null +++ b/devel/gettext/patches/patch-gettext-tools_src_msgconv_c @@ -0,0 +1,12 @@ +$OpenBSD: patch-gettext-tools_src_msgconv_c,v 1.1 2005/12/18 21:53:18 sturm Exp $ +--- gettext-tools/src/msgconv.c.orig Sun Dec 18 11:58:30 2005 ++++ gettext-tools/src/msgconv.c Sun Dec 18 11:58:40 2005 +@@ -52,7 +52,7 @@ static int force_po; + static const char *to_code; + + /* Long options. */ +-static const struct option long_options[] = ++static struct option long_options[] = + { + { "add-location", no_argument, &line_comment, 1 }, + { "directory", required_argument, NULL, 'D' }, diff --git a/devel/gettext/patches/patch-gettext-tools_src_msgen_c b/devel/gettext/patches/patch-gettext-tools_src_msgen_c new file mode 100644 index 00000000000..53264843677 --- /dev/null +++ b/devel/gettext/patches/patch-gettext-tools_src_msgen_c @@ -0,0 +1,12 @@ +$OpenBSD: patch-gettext-tools_src_msgen_c,v 1.1 2005/12/18 21:53:18 sturm Exp $ +--- gettext-tools/src/msgen.c.orig Sun Dec 18 11:58:59 2005 ++++ gettext-tools/src/msgen.c Sun Dec 18 11:59:09 2005 +@@ -48,7 +48,7 @@ + static int force_po; + + /* Long options. */ +-static const struct option long_options[] = ++static struct option long_options[] = + { + { "add-location", no_argument, &line_comment, 1 }, + { "directory", required_argument, NULL, 'D' }, diff --git a/devel/gettext/patches/patch-gettext-tools_src_msgfilter_c b/devel/gettext/patches/patch-gettext-tools_src_msgfilter_c new file mode 100644 index 00000000000..e703bb1e254 --- /dev/null +++ b/devel/gettext/patches/patch-gettext-tools_src_msgfilter_c @@ -0,0 +1,12 @@ +$OpenBSD: patch-gettext-tools_src_msgfilter_c,v 1.1 2005/12/18 21:53:18 sturm Exp $ +--- gettext-tools/src/msgfilter.c.orig Sun Dec 18 11:59:28 2005 ++++ gettext-tools/src/msgfilter.c Sun Dec 18 11:59:38 2005 +@@ -97,7 +97,7 @@ static char **sub_argv; + static int sub_argc; + + /* Long options. */ +-static const struct option long_options[] = ++static struct option long_options[] = + { + { "add-location", no_argument, &line_comment, 1 }, + { "directory", required_argument, NULL, 'D' }, diff --git a/devel/gettext/patches/patch-gettext-tools_src_msggrep_c b/devel/gettext/patches/patch-gettext-tools_src_msggrep_c new file mode 100644 index 00000000000..9df1e832aa4 --- /dev/null +++ b/devel/gettext/patches/patch-gettext-tools_src_msggrep_c @@ -0,0 +1,12 @@ +$OpenBSD: patch-gettext-tools_src_msggrep_c,v 1.1 2005/12/18 21:53:18 sturm Exp $ +--- gettext-tools/src/msggrep.c.orig Sun Dec 18 12:00:32 2005 ++++ gettext-tools/src/msggrep.c Sun Dec 18 12:00:44 2005 +@@ -81,7 +81,7 @@ struct grep_task { + static struct grep_task grep_task[3]; + + /* Long options. */ +-static const struct option long_options[] = ++static struct option long_options[] = + { + { "add-location", no_argument, &line_comment, 1 }, + { "comment", no_argument, NULL, 'C' }, diff --git a/devel/gettext/patches/patch-gettext-tools_src_msgmerge_c b/devel/gettext/patches/patch-gettext-tools_src_msgmerge_c new file mode 100644 index 00000000000..73e1eeb400f --- /dev/null +++ b/devel/gettext/patches/patch-gettext-tools_src_msgmerge_c @@ -0,0 +1,12 @@ +$OpenBSD: patch-gettext-tools_src_msgmerge_c,v 1.1 2005/12/18 21:53:18 sturm Exp $ +--- gettext-tools/src/msgmerge.c.orig Sun Dec 18 12:01:04 2005 ++++ gettext-tools/src/msgmerge.c Sun Dec 18 12:01:15 2005 +@@ -84,7 +84,7 @@ static const char *version_control_strin + static const char *backup_suffix_string; + + /* Long options. */ +-static const struct option long_options[] = ++static struct option long_options[] = + { + { "add-location", no_argument, &line_comment, 1 }, + { "backup", required_argument, NULL, CHAR_MAX + 1 }, diff --git a/devel/gettext/patches/patch-gettext-tools_src_msguniq_c b/devel/gettext/patches/patch-gettext-tools_src_msguniq_c new file mode 100644 index 00000000000..032dda049ee --- /dev/null +++ b/devel/gettext/patches/patch-gettext-tools_src_msguniq_c @@ -0,0 +1,12 @@ +$OpenBSD: patch-gettext-tools_src_msguniq_c,v 1.1 2005/12/18 21:53:18 sturm Exp $ +--- gettext-tools/src/msguniq.c.orig Sun Dec 18 12:01:40 2005 ++++ gettext-tools/src/msguniq.c Sun Dec 18 12:01:51 2005 +@@ -52,7 +52,7 @@ static int force_po; + static const char *to_code; + + /* Long options. */ +-static const struct option long_options[] = ++static struct option long_options[] = + { + { "add-location", no_argument, &line_comment, 1 }, + { "directory", required_argument, NULL, 'D' }, diff --git a/devel/gettext/patches/patch-gettext-tools_src_xgettext_c b/devel/gettext/patches/patch-gettext-tools_src_xgettext_c new file mode 100644 index 00000000000..5efa56291f0 --- /dev/null +++ b/devel/gettext/patches/patch-gettext-tools_src_xgettext_c @@ -0,0 +1,12 @@ +$OpenBSD: patch-gettext-tools_src_xgettext_c,v 1.1 2005/12/18 21:53:18 sturm Exp $ +--- gettext-tools/src/xgettext.c.orig Sun Dec 18 12:02:56 2005 ++++ gettext-tools/src/xgettext.c Sat Dec 17 05:43:18 2005 +@@ -176,7 +176,7 @@ iconv_t xgettext_current_source_iconv; + #endif + + /* Long options. */ +-static const struct option long_options[] = ++static struct option long_options[] = + { + { "add-comments", optional_argument, NULL, 'c' }, + { "add-location", no_argument, &line_comment, 1 },