gettext — gettext => 0.26 (#12420)

* gettext => 0.26

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* gettext: Build Run on linux/arm/v7.

* gettext: Build Run on linux/amd64.

* gettext: Build Run on linux/386.

* gettext: Package File Update Run on linux/386 container.

* rebuild without icu4c dep.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* gettext: Package File Update Run on linux/386 container.

---------

Signed-off-by: Satadru Pramanik <satadru@gmail.com>
Co-authored-by: Satadru Pramanik <satadru@gmail.com>
Co-authored-by: satmandu <satmandu@users.noreply.github.com>
Co-authored-by: chromebrew-actions[bot] <chromebrew-actions[bot]@users.noreply.github.com>
This commit is contained in:
chromebrew-actions[bot]
2025-08-11 17:12:56 -05:00
committed by GitHub
parent 4be24c4032
commit 61afb181e1
4 changed files with 84 additions and 186 deletions

View File

@@ -18,6 +18,8 @@
/usr/local/bin/msgunfmt
/usr/local/bin/msguniq
/usr/local/bin/ngettext
/usr/local/bin/printf_gettext
/usr/local/bin/printf_ngettext
/usr/local/bin/recode-sr-latin
/usr/local/bin/xgettext
/usr/local/include/autosprintf.h
@@ -30,20 +32,20 @@
/usr/local/lib/libasprintf.so
/usr/local/lib/libasprintf.so.0
/usr/local/lib/libasprintf.so.0.0.0
/usr/local/lib/libgettextlib-0.25.1.so
/usr/local/lib/libgettextlib-0.26.so
/usr/local/lib/libgettextlib.la
/usr/local/lib/libgettextlib.so
/usr/local/lib/libgettextpo.la
/usr/local/lib/libgettextpo.so
/usr/local/lib/libgettextpo.so.0
/usr/local/lib/libgettextpo.so.0.5.14
/usr/local/lib/libgettextsrc-0.25.1.so
/usr/local/lib/libgettextpo.so.0.5.15
/usr/local/lib/libgettextsrc-0.26.so
/usr/local/lib/libgettextsrc.la
/usr/local/lib/libgettextsrc.so
/usr/local/lib/libtextstyle.la
/usr/local/lib/libtextstyle.so
/usr/local/lib/libtextstyle.so.0
/usr/local/lib/libtextstyle.so.0.2.5
/usr/local/lib/libtextstyle.so.0.2.6
/usr/local/lib/preloadable_libintl.so
/usr/local/libexec/gettext/cldr-plurals
/usr/local/libexec/gettext/hostname
@@ -1978,7 +1980,9 @@
/usr/local/share/doc/gettext/examples/hello-sh/autoclean.sh
/usr/local/share/doc/gettext/examples/hello-sh/autogen.sh
/usr/local/share/doc/gettext/examples/hello-sh/configure.ac
/usr/local/share/doc/gettext/examples/hello-sh/hello.sh
/usr/local/share/doc/gettext/examples/hello-sh/hello-1.sh
/usr/local/share/doc/gettext/examples/hello-sh/hello-2.sh
/usr/local/share/doc/gettext/examples/hello-sh/hello-3.sh
/usr/local/share/doc/gettext/examples/hello-sh/m4/Makefile.am
/usr/local/share/doc/gettext/examples/hello-sh/po/LINGUAS
/usr/local/share/doc/gettext/examples/hello-sh/po/Makefile.am
@@ -2265,6 +2269,7 @@
/usr/local/share/doc/gettext/gettext_29.html
/usr/local/share/doc/gettext/gettext_3.html
/usr/local/share/doc/gettext/gettext_30.html
/usr/local/share/doc/gettext/gettext_31.html
/usr/local/share/doc/gettext/gettext_4.html
/usr/local/share/doc/gettext/gettext_5.html
/usr/local/share/doc/gettext/gettext_6.html
@@ -2305,6 +2310,8 @@
/usr/local/share/doc/gettext/msguniq.1.html
/usr/local/share/doc/gettext/ngettext.1.html
/usr/local/share/doc/gettext/ngettext.3.html
/usr/local/share/doc/gettext/printf_gettext.1.html
/usr/local/share/doc/gettext/printf_ngettext.1.html
/usr/local/share/doc/gettext/recode-sr-latin.1.html
/usr/local/share/doc/gettext/textdomain.3.html
/usr/local/share/doc/gettext/tutorial.html
@@ -2319,17 +2326,17 @@
/usr/local/share/doc/libtextstyle/libtextstyle_7.html
/usr/local/share/doc/libtextstyle/libtextstyle_abt.html
/usr/local/share/doc/libtextstyle/libtextstyle_toc.html
/usr/local/share/gettext-0.25.1/its/docbook.loc
/usr/local/share/gettext-0.25.1/its/docbook4.its
/usr/local/share/gettext-0.25.1/its/docbook5.its
/usr/local/share/gettext-0.25.1/its/glade.loc
/usr/local/share/gettext-0.25.1/its/glade1.its
/usr/local/share/gettext-0.25.1/its/glade2.its
/usr/local/share/gettext-0.25.1/its/gsettings.its
/usr/local/share/gettext-0.25.1/its/gsettings.loc
/usr/local/share/gettext-0.25.1/its/gtkbuilder.its
/usr/local/share/gettext-0.25.1/its/metainfo.its
/usr/local/share/gettext-0.25.1/its/metainfo.loc
/usr/local/share/gettext-0.26/its/docbook.loc
/usr/local/share/gettext-0.26/its/docbook4.its
/usr/local/share/gettext-0.26/its/docbook5.its
/usr/local/share/gettext-0.26/its/glade.loc
/usr/local/share/gettext-0.26/its/glade1.its
/usr/local/share/gettext-0.26/its/glade2.its
/usr/local/share/gettext-0.26/its/gsettings.its
/usr/local/share/gettext-0.26/its/gsettings.loc
/usr/local/share/gettext-0.26/its/gtkbuilder.its
/usr/local/share/gettext-0.26/its/metainfo.its
/usr/local/share/gettext-0.26/its/metainfo.loc
/usr/local/share/gettext/ABOUT-NLS
/usr/local/share/gettext/archive.dir.tar.xz
/usr/local/share/gettext/config.rpath
@@ -2487,6 +2494,8 @@
/usr/local/share/man/man1/msgunfmt.1.zst
/usr/local/share/man/man1/msguniq.1.zst
/usr/local/share/man/man1/ngettext.1.zst
/usr/local/share/man/man1/printf_gettext.1.zst
/usr/local/share/man/man1/printf_ngettext.1.zst
/usr/local/share/man/man1/recode-sr-latin.1.zst
/usr/local/share/man/man1/xgettext.1.zst
/usr/local/share/man/man3/bind_textdomain_codeset.3.zst

View File

@@ -18,6 +18,8 @@
/usr/local/bin/msgunfmt
/usr/local/bin/msguniq
/usr/local/bin/ngettext
/usr/local/bin/printf_gettext
/usr/local/bin/printf_ngettext
/usr/local/bin/recode-sr-latin
/usr/local/bin/xgettext
/usr/local/include/autosprintf.h
@@ -30,20 +32,20 @@
/usr/local/lib/libasprintf.so
/usr/local/lib/libasprintf.so.0
/usr/local/lib/libasprintf.so.0.0.0
/usr/local/lib/libgettextlib-0.25.1.so
/usr/local/lib/libgettextlib-0.26.so
/usr/local/lib/libgettextlib.la
/usr/local/lib/libgettextlib.so
/usr/local/lib/libgettextpo.la
/usr/local/lib/libgettextpo.so
/usr/local/lib/libgettextpo.so.0
/usr/local/lib/libgettextpo.so.0.5.14
/usr/local/lib/libgettextsrc-0.25.1.so
/usr/local/lib/libgettextpo.so.0.5.15
/usr/local/lib/libgettextsrc-0.26.so
/usr/local/lib/libgettextsrc.la
/usr/local/lib/libgettextsrc.so
/usr/local/lib/libtextstyle.la
/usr/local/lib/libtextstyle.so
/usr/local/lib/libtextstyle.so.0
/usr/local/lib/libtextstyle.so.0.2.5
/usr/local/lib/libtextstyle.so.0.2.6
/usr/local/lib/preloadable_libintl.so
/usr/local/libexec/gettext/cldr-plurals
/usr/local/libexec/gettext/hostname
@@ -1978,7 +1980,9 @@
/usr/local/share/doc/gettext/examples/hello-sh/autoclean.sh
/usr/local/share/doc/gettext/examples/hello-sh/autogen.sh
/usr/local/share/doc/gettext/examples/hello-sh/configure.ac
/usr/local/share/doc/gettext/examples/hello-sh/hello.sh
/usr/local/share/doc/gettext/examples/hello-sh/hello-1.sh
/usr/local/share/doc/gettext/examples/hello-sh/hello-2.sh
/usr/local/share/doc/gettext/examples/hello-sh/hello-3.sh
/usr/local/share/doc/gettext/examples/hello-sh/m4/Makefile.am
/usr/local/share/doc/gettext/examples/hello-sh/po/LINGUAS
/usr/local/share/doc/gettext/examples/hello-sh/po/Makefile.am
@@ -2265,6 +2269,7 @@
/usr/local/share/doc/gettext/gettext_29.html
/usr/local/share/doc/gettext/gettext_3.html
/usr/local/share/doc/gettext/gettext_30.html
/usr/local/share/doc/gettext/gettext_31.html
/usr/local/share/doc/gettext/gettext_4.html
/usr/local/share/doc/gettext/gettext_5.html
/usr/local/share/doc/gettext/gettext_6.html
@@ -2305,6 +2310,8 @@
/usr/local/share/doc/gettext/msguniq.1.html
/usr/local/share/doc/gettext/ngettext.1.html
/usr/local/share/doc/gettext/ngettext.3.html
/usr/local/share/doc/gettext/printf_gettext.1.html
/usr/local/share/doc/gettext/printf_ngettext.1.html
/usr/local/share/doc/gettext/recode-sr-latin.1.html
/usr/local/share/doc/gettext/textdomain.3.html
/usr/local/share/doc/gettext/tutorial.html
@@ -2319,17 +2326,17 @@
/usr/local/share/doc/libtextstyle/libtextstyle_7.html
/usr/local/share/doc/libtextstyle/libtextstyle_abt.html
/usr/local/share/doc/libtextstyle/libtextstyle_toc.html
/usr/local/share/gettext-0.25.1/its/docbook.loc
/usr/local/share/gettext-0.25.1/its/docbook4.its
/usr/local/share/gettext-0.25.1/its/docbook5.its
/usr/local/share/gettext-0.25.1/its/glade.loc
/usr/local/share/gettext-0.25.1/its/glade1.its
/usr/local/share/gettext-0.25.1/its/glade2.its
/usr/local/share/gettext-0.25.1/its/gsettings.its
/usr/local/share/gettext-0.25.1/its/gsettings.loc
/usr/local/share/gettext-0.25.1/its/gtkbuilder.its
/usr/local/share/gettext-0.25.1/its/metainfo.its
/usr/local/share/gettext-0.25.1/its/metainfo.loc
/usr/local/share/gettext-0.26/its/docbook.loc
/usr/local/share/gettext-0.26/its/docbook4.its
/usr/local/share/gettext-0.26/its/docbook5.its
/usr/local/share/gettext-0.26/its/glade.loc
/usr/local/share/gettext-0.26/its/glade1.its
/usr/local/share/gettext-0.26/its/glade2.its
/usr/local/share/gettext-0.26/its/gsettings.its
/usr/local/share/gettext-0.26/its/gsettings.loc
/usr/local/share/gettext-0.26/its/gtkbuilder.its
/usr/local/share/gettext-0.26/its/metainfo.its
/usr/local/share/gettext-0.26/its/metainfo.loc
/usr/local/share/gettext/ABOUT-NLS
/usr/local/share/gettext/archive.dir.tar.xz
/usr/local/share/gettext/config.rpath
@@ -2487,6 +2494,8 @@
/usr/local/share/man/man1/msgunfmt.1.zst
/usr/local/share/man/man1/msguniq.1.zst
/usr/local/share/man/man1/ngettext.1.zst
/usr/local/share/man/man1/printf_gettext.1.zst
/usr/local/share/man/man1/printf_ngettext.1.zst
/usr/local/share/man/man1/recode-sr-latin.1.zst
/usr/local/share/man/man1/xgettext.1.zst
/usr/local/share/man/man3/bind_textdomain_codeset.3.zst

View File

@@ -18,6 +18,8 @@
/usr/local/bin/msgunfmt
/usr/local/bin/msguniq
/usr/local/bin/ngettext
/usr/local/bin/printf_gettext
/usr/local/bin/printf_ngettext
/usr/local/bin/recode-sr-latin
/usr/local/bin/xgettext
/usr/local/include/autosprintf.h
@@ -30,20 +32,20 @@
/usr/local/lib64/libasprintf.so
/usr/local/lib64/libasprintf.so.0
/usr/local/lib64/libasprintf.so.0.0.0
/usr/local/lib64/libgettextlib-0.25.1.so
/usr/local/lib64/libgettextlib-0.26.so
/usr/local/lib64/libgettextlib.la
/usr/local/lib64/libgettextlib.so
/usr/local/lib64/libgettextpo.la
/usr/local/lib64/libgettextpo.so
/usr/local/lib64/libgettextpo.so.0
/usr/local/lib64/libgettextpo.so.0.5.14
/usr/local/lib64/libgettextsrc-0.25.1.so
/usr/local/lib64/libgettextpo.so.0.5.15
/usr/local/lib64/libgettextsrc-0.26.so
/usr/local/lib64/libgettextsrc.la
/usr/local/lib64/libgettextsrc.so
/usr/local/lib64/libtextstyle.la
/usr/local/lib64/libtextstyle.so
/usr/local/lib64/libtextstyle.so.0
/usr/local/lib64/libtextstyle.so.0.2.5
/usr/local/lib64/libtextstyle.so.0.2.6
/usr/local/lib64/preloadable_libintl.so
/usr/local/libexec/gettext/cldr-plurals
/usr/local/libexec/gettext/hostname
@@ -1978,7 +1980,9 @@
/usr/local/share/doc/gettext/examples/hello-sh/autoclean.sh
/usr/local/share/doc/gettext/examples/hello-sh/autogen.sh
/usr/local/share/doc/gettext/examples/hello-sh/configure.ac
/usr/local/share/doc/gettext/examples/hello-sh/hello.sh
/usr/local/share/doc/gettext/examples/hello-sh/hello-1.sh
/usr/local/share/doc/gettext/examples/hello-sh/hello-2.sh
/usr/local/share/doc/gettext/examples/hello-sh/hello-3.sh
/usr/local/share/doc/gettext/examples/hello-sh/m4/Makefile.am
/usr/local/share/doc/gettext/examples/hello-sh/po/LINGUAS
/usr/local/share/doc/gettext/examples/hello-sh/po/Makefile.am
@@ -2265,6 +2269,7 @@
/usr/local/share/doc/gettext/gettext_29.html
/usr/local/share/doc/gettext/gettext_3.html
/usr/local/share/doc/gettext/gettext_30.html
/usr/local/share/doc/gettext/gettext_31.html
/usr/local/share/doc/gettext/gettext_4.html
/usr/local/share/doc/gettext/gettext_5.html
/usr/local/share/doc/gettext/gettext_6.html
@@ -2305,6 +2310,8 @@
/usr/local/share/doc/gettext/msguniq.1.html
/usr/local/share/doc/gettext/ngettext.1.html
/usr/local/share/doc/gettext/ngettext.3.html
/usr/local/share/doc/gettext/printf_gettext.1.html
/usr/local/share/doc/gettext/printf_ngettext.1.html
/usr/local/share/doc/gettext/recode-sr-latin.1.html
/usr/local/share/doc/gettext/textdomain.3.html
/usr/local/share/doc/gettext/tutorial.html
@@ -2319,17 +2326,17 @@
/usr/local/share/doc/libtextstyle/libtextstyle_7.html
/usr/local/share/doc/libtextstyle/libtextstyle_abt.html
/usr/local/share/doc/libtextstyle/libtextstyle_toc.html
/usr/local/share/gettext-0.25.1/its/docbook.loc
/usr/local/share/gettext-0.25.1/its/docbook4.its
/usr/local/share/gettext-0.25.1/its/docbook5.its
/usr/local/share/gettext-0.25.1/its/glade.loc
/usr/local/share/gettext-0.25.1/its/glade1.its
/usr/local/share/gettext-0.25.1/its/glade2.its
/usr/local/share/gettext-0.25.1/its/gsettings.its
/usr/local/share/gettext-0.25.1/its/gsettings.loc
/usr/local/share/gettext-0.25.1/its/gtkbuilder.its
/usr/local/share/gettext-0.25.1/its/metainfo.its
/usr/local/share/gettext-0.25.1/its/metainfo.loc
/usr/local/share/gettext-0.26/its/docbook.loc
/usr/local/share/gettext-0.26/its/docbook4.its
/usr/local/share/gettext-0.26/its/docbook5.its
/usr/local/share/gettext-0.26/its/glade.loc
/usr/local/share/gettext-0.26/its/glade1.its
/usr/local/share/gettext-0.26/its/glade2.its
/usr/local/share/gettext-0.26/its/gsettings.its
/usr/local/share/gettext-0.26/its/gsettings.loc
/usr/local/share/gettext-0.26/its/gtkbuilder.its
/usr/local/share/gettext-0.26/its/metainfo.its
/usr/local/share/gettext-0.26/its/metainfo.loc
/usr/local/share/gettext/ABOUT-NLS
/usr/local/share/gettext/archive.dir.tar.xz
/usr/local/share/gettext/config.rpath
@@ -2487,6 +2494,8 @@
/usr/local/share/man/man1/msgunfmt.1.zst
/usr/local/share/man/man1/msguniq.1.zst
/usr/local/share/man/man1/ngettext.1.zst
/usr/local/share/man/man1/printf_gettext.1.zst
/usr/local/share/man/man1/printf_ngettext.1.zst
/usr/local/share/man/man1/recode-sr-latin.1.zst
/usr/local/share/man/man1/xgettext.1.zst
/usr/local/share/man/man3/bind_textdomain_codeset.3.zst

View File

@@ -2,19 +2,20 @@ require 'buildsystems/autotools'
class Gettext < Autotools
description 'GNU gettext utilities are a set of tools that provides a framework to help other GNU packages produce multi-lingual messages.'
homepage 'https://www.gnu.org/software/gettext/'
version "0.25.1-#{CREW_ICU_VER}"
homepage 'https://gnu.org/s/gettext/'
version '0.26'
license 'GPL-3+ and LGPL-2.1+'
compatibility 'all'
source_url "https://ftp.gnu.org/pub/gnu/gettext/gettext-#{version.split('-')[0]}.tar.lz"
source_sha256 'c70678c88589ee48e55ae1f3843935afa4be1466fb1bc737658dc933f60379f5'
git_hashtag "v#{version.split('-')[0]}"
source_url "https://ftpmirror.gnu.org/gnu/gettext/gettext-#{version.split('-')[0]}.tar.lz"
source_sha256 'a0151088dad8942374dc038e461b228352581defd7055e79297f156268b8d508'
binary_compression 'tar.zst'
binary_sha256({
aarch64: 'd8aa6334e7ea9c03fe67cb3ae9b86fbafe37077dfee56dacc2d6437f068162cc',
armv7l: 'd8aa6334e7ea9c03fe67cb3ae9b86fbafe37077dfee56dacc2d6437f068162cc',
i686: '778749c7b70313f8563d2306b3d2bf3d80dbee5a7842bc87e8de1e4e3e86dc98',
x86_64: '16abb691122eff1bcd6c96f470ebb2dcadc67f85990bc8c18651b901090cb9e5'
aarch64: 'b70f7d97866657b50e5d85c9f48d620b36730ee5f187684a73be7f812e03427e',
armv7l: 'b70f7d97866657b50e5d85c9f48d620b36730ee5f187684a73be7f812e03427e',
i686: 'f9af1063d68f3c0bb4c6ec8232d7eea24c586c4807babe12b62c0deaf5b099d1',
x86_64: '10d1fadbfb2290846aa28e478efcc5dac4d132d9a0e4a9b563439e653fd794d4'
})
depends_on 'acl' # R
@@ -22,144 +23,14 @@ class Gettext < Autotools
depends_on 'gcc_lib' # R
depends_on 'glibc' # R
depends_on 'gperf' => :build
depends_on 'icu4c' # R
depends_on 'libunistring' # R
depends_on 'libxml2' # R
depends_on 'ncurses' # R
depends_on 'openjdk8' => :build
depends_on 'wget2' => :build
depends_on 'zlib' # R
autotools_configure_options '--disable-static \
--enable-shared \
--with-pic \
--without-included-gettext'
def self.patch
system './autopull.sh' unless File.executable? './configure'
# https://cgit.git.savannah.gnu.org/cgit/gnulib.git/commit/?id=c44fe03b72687c9e913727724c29bdb49c1f86e3
File.write 'gnulib_stringh.patch', <<~GNULIB_PATCH_EOF
diff --git a/lib/string.in.h b/lib/string.in.h
index e3d94b76c1..9a039c7ba0 100644
--- a/lib/string.in.h
+++ b/lib/string.in.h
@@ -214,65 +214,85 @@ _GL_EXTERN_C void free (void *);
/* Declarations for ISO C N3322. */
#if defined __GNUC__ && __GNUC__ >= 15 && !defined __clang__
+# ifndef memcpy
_GL_EXTERN_C void *memcpy (void *__dest, const void *__src, size_t __n)
-# if __GLIBC__ + (__GLIBC_MINOR__ >= 2) > 2
+# if __GLIBC__ + (__GLIBC_MINOR__ >= 2) > 2
_GL_ATTRIBUTE_NOTHROW
-# endif
+# endif
_GL_ATTRIBUTE_NONNULL_IF_NONZERO (1, 3)
_GL_ATTRIBUTE_NONNULL_IF_NONZERO (2, 3);
+# endif
+# ifndef memccpy
_GL_EXTERN_C void *memccpy (void *__dest, const void *__src, int __c, size_t __n)
-# if __GLIBC__ + (__GLIBC_MINOR__ >= 2) > 2
+# if __GLIBC__ + (__GLIBC_MINOR__ >= 2) > 2
_GL_ATTRIBUTE_NOTHROW
-# endif
+# endif
_GL_ATTRIBUTE_NONNULL_IF_NONZERO (1, 4)
_GL_ATTRIBUTE_NONNULL_IF_NONZERO (2, 4);
+# endif
+# ifndef memmove
_GL_EXTERN_C void *memmove (void *__dest, const void *__src, size_t __n)
-# if __GLIBC__ + (__GLIBC_MINOR__ >= 2) > 2
+# if __GLIBC__ + (__GLIBC_MINOR__ >= 2) > 2
_GL_ATTRIBUTE_NOTHROW
-# endif
+# endif
_GL_ATTRIBUTE_NONNULL_IF_NONZERO (1, 3)
_GL_ATTRIBUTE_NONNULL_IF_NONZERO (2, 3);
+# endif
+# ifndef strncpy
_GL_EXTERN_C char *strncpy (char *__dest, const char *__src, size_t __n)
-# if __GLIBC__ + (__GLIBC_MINOR__ >= 2) > 2
+# if __GLIBC__ + (__GLIBC_MINOR__ >= 2) > 2
_GL_ATTRIBUTE_NOTHROW
-# endif
+# endif
_GL_ATTRIBUTE_NONNULL_IF_NONZERO (1, 3)
_GL_ATTRIBUTE_NONNULL_IF_NONZERO (2, 3);
+# endif
+# ifndef strndup
_GL_EXTERN_C char *strndup (const char *__s, size_t __n)
-# if __GLIBC__ + (__GLIBC_MINOR__ >= 2) > 2
+# if __GLIBC__ + (__GLIBC_MINOR__ >= 2) > 2
_GL_ATTRIBUTE_NOTHROW
-# endif
+# endif
_GL_ATTRIBUTE_NONNULL_IF_NONZERO (1, 2);
+# endif
+# ifndef strncat
_GL_EXTERN_C char *strncat (char *__dest, const char *__src, size_t __n)
-# if __GLIBC__ + (__GLIBC_MINOR__ >= 2) > 2
+# if __GLIBC__ + (__GLIBC_MINOR__ >= 2) > 2
_GL_ATTRIBUTE_NOTHROW
-# endif
+# endif
_GL_ARG_NONNULL ((1)) _GL_ATTRIBUTE_NONNULL_IF_NONZERO (2, 3);
+# endif
+# ifndef memcmp
_GL_EXTERN_C int memcmp (const void *__s1, const void *__s2, size_t __n)
-# if __GLIBC__ + (__GLIBC_MINOR__ >= 2) > 2
+# if __GLIBC__ + (__GLIBC_MINOR__ >= 2) > 2
_GL_ATTRIBUTE_NOTHROW
-# endif
+# endif
_GL_ATTRIBUTE_NONNULL_IF_NONZERO (1, 3)
_GL_ATTRIBUTE_NONNULL_IF_NONZERO (2, 3);
+# endif
+# ifndef strncmp
_GL_EXTERN_C int strncmp (const char *__s1, const char *__s2, size_t __n)
-# if __GLIBC__ + (__GLIBC_MINOR__ >= 2) > 2
+# if __GLIBC__ + (__GLIBC_MINOR__ >= 2) > 2
_GL_ATTRIBUTE_NOTHROW
-# endif
+# endif
_GL_ATTRIBUTE_NONNULL_IF_NONZERO (1, 3)
_GL_ATTRIBUTE_NONNULL_IF_NONZERO (2, 3);
-# ifndef __cplusplus
+# endif
+# if !defined memchr && !defined __cplusplus
_GL_EXTERN_C void *memchr (const void *__s, int __c, size_t __n)
_GL_ATTRIBUTE_NONNULL_IF_NONZERO (1, 3);
_GL_EXTERN_C void *memrchr (const void *__s, int __c, size_t __n)
_GL_ATTRIBUTE_NONNULL_IF_NONZERO (1, 3);
# endif
+# ifndef memset
_GL_EXTERN_C void *memset (void *__s, int __c, size_t __n)
-# if __GLIBC__ + (__GLIBC_MINOR__ >= 2) > 2
+# if __GLIBC__ + (__GLIBC_MINOR__ >= 2) > 2
_GL_ATTRIBUTE_NOTHROW
-# endif
+# endif
_GL_ATTRIBUTE_NONNULL_IF_NONZERO (1, 3);
+# endif
+# ifndef memset_explicit
_GL_EXTERN_C void *memset_explicit (void *__s, int __c, size_t __n)
_GL_ATTRIBUTE_NONNULL_IF_NONZERO (1, 3);
+# endif
#endif
GNULIB_PATCH_EOF
pwd = `pwd`.chomp
gnulib_dirs = %w[
gettext-runtime/intl/gnulib-lib
gettext-runtime/libasprintf/gnulib-lib
gettext-runtime/gnulib-lib
gettext-tools/gnulib-lib
gettext-tools/libgettextpo
libtextstyle/lib
]
gnulib_dirs.each do |dir|
Dir.chdir(dir) do
system "patch -Np2 -i #{pwd}/gnulib_stringh.patch"
end
end
end
end