diff options
author | Gunnar Beutner <gbeutner@serenityos.org> | 2021-05-08 05:18:02 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-08 19:14:21 +0200 |
commit | b05a6a1701725000db980229708d63d4d023fd9c (patch) | |
tree | 1dd36a00c3161419f2a8c310d14acd0a6a43e68d /Ports/gettext/patches | |
parent | 1c3c072a76d6a50987a9e00d088c4c8fa2562531 (diff) | |
download | serenity-b05a6a1701725000db980229708d63d4d023fd9c.zip |
Ports: Add port for gettext
Diffstat (limited to 'Ports/gettext/patches')
-rw-r--r-- | Ports/gettext/patches/configure.patch | 24 | ||||
-rw-r--r-- | Ports/gettext/patches/fnmatch.patch | 14 | ||||
-rw-r--r-- | Ports/gettext/patches/getprogname.patch | 48 | ||||
-rw-r--r-- | Ports/gettext/patches/wctype.patch | 22 |
4 files changed, 108 insertions, 0 deletions
diff --git a/Ports/gettext/patches/configure.patch b/Ports/gettext/patches/configure.patch new file mode 100644 index 0000000000..479813d638 --- /dev/null +++ b/Ports/gettext/patches/configure.patch @@ -0,0 +1,24 @@ +diff -Naur gettext-0.21/build-aux/config.sub gettext-0.21.serenity/build-aux/config.sub +--- gettext-0.21/build-aux/config.sub 2020-07-17 22:25:52.000000000 +0200 ++++ gettext-0.21.serenity/build-aux/config.sub 2021-05-08 04:40:29.446280648 +0200 +@@ -1692,7 +1692,7 @@ + # Now accept the basic system types. + # The portable systems comes first. + # Each alternative MUST end in a * to match a version number. +- gnu* | android* | bsd* | mach* | minix* | genix* | ultrix* | irix* \ ++ gnu* | android* | bsd* | mach* | minix* | genix* | ultrix* | irix* | serenity* \ + | *vms* | esix* | aix* | cnk* | sunos | sunos[34]* \ + | hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \ + | sym* | plan9* | psp* | sim* | xray* | os68k* | v88r* \ +diff -Naur gettext-0.21/libtextstyle/build-aux/config.sub gettext-0.21.serenity/libtextstyle/build-aux/config.sub +--- gettext-0.21/libtextstyle/build-aux/config.sub 2020-07-17 22:26:48.000000000 +0200 ++++ gettext-0.21.serenity/libtextstyle/build-aux/config.sub 2021-05-08 04:40:43.673225314 +0200 +@@ -1692,7 +1692,7 @@ + # Now accept the basic system types. + # The portable systems comes first. + # Each alternative MUST end in a * to match a version number. +- gnu* | android* | bsd* | mach* | minix* | genix* | ultrix* | irix* \ ++ gnu* | android* | bsd* | mach* | minix* | genix* | ultrix* | irix* | serenity* \ + | *vms* | esix* | aix* | cnk* | sunos | sunos[34]* \ + | hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \ + | sym* | plan9* | psp* | sim* | xray* | os68k* | v88r* \ diff --git a/Ports/gettext/patches/fnmatch.patch b/Ports/gettext/patches/fnmatch.patch new file mode 100644 index 0000000000..13466ca840 --- /dev/null +++ b/Ports/gettext/patches/fnmatch.patch @@ -0,0 +1,14 @@ +diff -Naur gettext-0.21/gettext-tools/gnulib-lib/fnmatch_loop.c gettext-0.21.serenity/gettext-tools/gnulib-lib/fnmatch_loop.c +--- gettext-0.21/gettext-tools/gnulib-lib/fnmatch_loop.c 2020-06-26 21:57:10.000000000 +0200 ++++ gettext-0.21.serenity/gettext-tools/gnulib-lib/fnmatch_loop.c 2021-05-08 05:06:59.944736766 +0200 +@@ -19,6 +19,10 @@ + # include <stdint.h> + #endif + ++#ifdef __serenity__ ++# define FNM_EXTMATCH 9000 ++#endif ++ + struct STRUCT + { + const CHAR *pattern; diff --git a/Ports/gettext/patches/getprogname.patch b/Ports/gettext/patches/getprogname.patch new file mode 100644 index 0000000000..7bb4ca519e --- /dev/null +++ b/Ports/gettext/patches/getprogname.patch @@ -0,0 +1,48 @@ +diff -Naur gettext-0.21/gettext-runtime/gnulib-lib/getprogname.c gettext-0.21.serenity/gettext-runtime/gnulib-lib/getprogname.c +--- gettext-0.21/gettext-runtime/gnulib-lib/getprogname.c 2020-07-05 22:09:26.000000000 +0200 ++++ gettext-0.21.serenity/gettext-runtime/gnulib-lib/getprogname.c 2021-05-08 05:04:37.755260750 +0200 +@@ -245,6 +245,8 @@ + } + } + return NULL; ++# elif defined(__serenity__) ++ return NULL; + # else + # error "getprogname module not ported to this OS" + # endif +diff -Naur gettext-0.21/gettext-tools/gnulib-lib/getprogname.c gettext-0.21.serenity/gettext-tools/gnulib-lib/getprogname.c +--- gettext-0.21/gettext-tools/gnulib-lib/getprogname.c 2020-07-05 22:10:31.000000000 +0200 ++++ gettext-0.21.serenity/gettext-tools/gnulib-lib/getprogname.c 2021-05-08 05:04:30.225111896 +0200 +@@ -245,6 +245,8 @@ + } + } + return NULL; ++# elif defined(__serenity__) ++ return NULL; + # else + # error "getprogname module not ported to this OS" + # endif +diff -Naur gettext-0.21/gettext-tools/libgettextpo/getprogname.c gettext-0.21.serenity/gettext-tools/libgettextpo/getprogname.c +--- gettext-0.21/gettext-tools/libgettextpo/getprogname.c 2020-07-05 22:11:43.000000000 +0200 ++++ gettext-0.21.serenity/gettext-tools/libgettextpo/getprogname.c 2021-05-08 05:04:16.591509028 +0200 +@@ -245,6 +245,8 @@ + } + } + return NULL; ++# elif defined(__serenity__) ++ return NULL; + # else + # error "getprogname module not ported to this OS" + # endif +diff -Naur gettext-0.21/libtextstyle/lib/getprogname.c gettext-0.21.serenity/libtextstyle/lib/getprogname.c +--- gettext-0.21/libtextstyle/lib/getprogname.c 2020-07-05 22:12:31.000000000 +0200 ++++ gettext-0.21.serenity/libtextstyle/lib/getprogname.c 2021-05-08 05:04:34.065187807 +0200 +@@ -245,6 +245,8 @@ + } + } + return NULL; ++# elif defined(__serenity__) ++ return NULL; + # else + # error "getprogname module not ported to this OS" + # endif diff --git a/Ports/gettext/patches/wctype.patch b/Ports/gettext/patches/wctype.patch new file mode 100644 index 0000000000..7e191b3786 --- /dev/null +++ b/Ports/gettext/patches/wctype.patch @@ -0,0 +1,22 @@ +diff -Naur gettext-0.21/gettext-tools/gnulib-lib/fnmatch.c gettext-0.21.serenity/gettext-tools/gnulib-lib/fnmatch.c +--- gettext-0.21/gettext-tools/gnulib-lib/fnmatch.c 2020-06-26 21:52:53.000000000 +0200 ++++ gettext-0.21.serenity/gettext-tools/gnulib-lib/fnmatch.c 2021-05-08 05:14:25.420192898 +0200 +@@ -106,6 +106,18 @@ + # define CHAR_CLASS_MAX_LENGTH 256 + #endif + ++#ifdef __serenity__ ++wctype_t wctype(const char*) ++{ ++ asm("int3"); ++} ++ ++int iswctype(wint_t, wctype_t) ++{ ++ asm("int3"); ++} ++#endif ++ + #define IS_CHAR_CLASS(string) wctype (string) + + /* Avoid depending on library functions or files |