diff --git a/gettext-csharp.changes b/gettext-csharp.changes index 590d045..02ed7f3 100644 --- a/gettext-csharp.changes +++ b/gettext-csharp.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Dec 4 14:43:27 CET 2007 - pth@suse.de + +- Add patch from upstreams to add the missing mode for the open call. + ------------------------------------------------------------------- Fri Nov 23 14:47:34 CET 2007 - pth@suse.de diff --git a/gettext-csharp.spec b/gettext-csharp.spec index bb8c71a..ea389dd 100644 --- a/gettext-csharp.spec +++ b/gettext-csharp.spec @@ -18,7 +18,7 @@ License: LGPL v2.1 or later Group: Development/Tools/Other AutoReqProv: on Version: 0.17 -Release: 2 +Release: 7 Summary: Native Language Support (NLS) for C# PreReq: %{install_info_prereq} BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -35,6 +35,7 @@ Patch6: gettext-0.15-docdir.diff Patch7: gettext-autotools.patch Patch8: gettext-gl_AC_TYPE_LONG_LONG.patch Patch9: gettext-needlessly_init_vars.patch +Patch10: gettext-open_missing_mode.patch %description Mono with its 'resgen' program uses a design that Microsoft created and @@ -74,6 +75,7 @@ Authors: %patch7 %patch8 %patch9 +%patch10 pushd gettext-tools/misc tar xfz archive.tar.gz find . -name gettext.m4,v -print0 | xargs -0 perl -spi -e 's/\(int\) /\(long\) /g' @@ -128,6 +130,8 @@ rm -rf $RPM_BUILD_ROOT %_libdir/gettext/msgunfmt.net.exe %changelog +* Tue Dec 04 2007 - pth@suse.de +- Add patch from upstreams to add the missing mode for the open call. * Fri Nov 23 2007 - pth@suse.de - Remove the patch for disabling a test. * Fri Nov 16 2007 - pth@suse.de diff --git a/gettext-java.changes b/gettext-java.changes index 65ee07e..bbe14f8 100644 --- a/gettext-java.changes +++ b/gettext-java.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Dec 4 14:43:46 CET 2007 - pth@suse.de + +- Add patch from upstreams to add the missing mode for the open call. + ------------------------------------------------------------------- Fri Nov 23 14:48:47 CET 2007 - pth@suse.de diff --git a/gettext-java.spec b/gettext-java.spec index 88db4db..1366527 100644 --- a/gettext-java.spec +++ b/gettext-java.spec @@ -17,7 +17,7 @@ License: LGPL v2.1 or later Group: Development/Tools/Other AutoReqProv: on Version: 0.17 -Release: 2 +Release: 6 Summary: Java Support for Native Language Support (NLS) PreReq: %{install_info_prereq} BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -34,6 +34,7 @@ Patch6: gettext-0.15-docdir.diff Patch7: gettext-autotools.patch Patch8: gettext-gl_AC_TYPE_LONG_LONG.patch Patch9: gettext-needlessly_init_vars.patch +Patch10: gettext-open_missing_mode.patch %description This package includes the tools needed to support message catalogs in @@ -58,6 +59,7 @@ Authors: %patch7 %patch8 %patch9 +%patch10 pushd gettext-tools/misc tar xfz archive.tar.gz find . -name gettext.m4,v -print0 | xargs -0 perl -spi -e 's/\(int\) /\(long\) /g' @@ -132,6 +134,8 @@ rm -rf $RPM_BUILD_ROOT %_libdir/gettext/gnu.gettext.GetURL %changelog +* Tue Dec 04 2007 - pth@suse.de +- Add patch from upstreams to add the missing mode for the open call. * Fri Nov 23 2007 - pth@suse.de - Remove the patch for disabling a test. * Fri Nov 16 2007 - pth@suse.de diff --git a/gettext-open_missing_mode.patch b/gettext-open_missing_mode.patch new file mode 100644 index 0000000..0bde34a --- /dev/null +++ b/gettext-open_missing_mode.patch @@ -0,0 +1,40 @@ +2007-11-07 Jim Meyering + Bruno Haible + + * write-catalog.c (msgdomain_list_print): Fix open() call. + +*** gettext-tools/src/write-catalog.c.bak 2007-10-07 21:37:39.000000000 +0200 +--- gettext-tools/src/write-catalog.c 2007-11-07 12:39:29.000000000 +0100 +*************** +*** 1,5 **** + /* GNU gettext - internationalization aids +! Copyright (C) 1995-1998, 2000-2006 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by +--- 1,5 ---- + /* GNU gettext - internationalization aids +! Copyright (C) 1995-1998, 2000-2007 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by +*************** +*** 220,226 **** + /* Open the output file. */ + if (!to_stdout) + { +! fd = open (filename, O_WRONLY | O_CREAT); + if (fd < 0) + { + const char *errno_description = strerror (errno); +--- 220,228 ---- + /* Open the output file. */ + if (!to_stdout) + { +! fd = open (filename, O_WRONLY | O_CREAT | O_TRUNC, +! /* 0666 in portable POSIX notation: */ +! S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH); + if (fd < 0) + { + const char *errno_description = strerror (errno); + diff --git a/gettext-runtime.changes b/gettext-runtime.changes index 8d1f267..8629a0d 100644 --- a/gettext-runtime.changes +++ b/gettext-runtime.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Dec 4 14:42:03 CET 2007 - pth@suse.de + +- Add patch from upstreams to add the missing mode for the open call. + ------------------------------------------------------------------- Fri Nov 23 14:43:11 CET 2007 - pth@suse.de diff --git a/gettext-runtime.spec b/gettext-runtime.spec index 7d9a7e4..aaf5abe 100644 --- a/gettext-runtime.spec +++ b/gettext-runtime.spec @@ -22,7 +22,7 @@ Group: Development/Tools/Other Provides: gettext = %{version} Obsoletes: gettext < %{version} Version: 0.17 -Release: 2 +Release: 6 Summary: Tools for Native Language Support (NLS) PreReq: %{install_info_prereq} BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -39,6 +39,7 @@ Patch6: gettext-0.15-docdir.diff Patch7: gettext-autotools.patch Patch8: gettext-gl_AC_TYPE_LONG_LONG.patch Patch9: gettext-needlessly_init_vars.patch +Patch10: gettext-open_missing_mode.patch %description This package contains the intl library as well as tools that ease the @@ -58,9 +59,10 @@ Authors: %package -n gettext-tools Summary: Tools for Native Language Support (NLS) Group: Development/Tools/Other -Requires: %{name} = %{version} cvs -Provides: gettext-devel = %{version} -Obsoletes: gettext-devel < %{version} +Requires: %{name} = %{version}, cvs +PreReq: info +Provides: gettext-devel <= 0.16.1 +Obsoletes: gettext-devel <= 0.16.1 %description -n gettext-tools This package contains the `intl' library as well as tools that ease the @@ -88,6 +90,7 @@ Authors: %patch7 %patch8 %patch9 +%patch10 pushd gettext-tools/misc tar xfz archive.tar.gz find . -name gettext.m4,v -print0 | xargs -0 perl -spi -e 's/\(int\) /\(long\) /g' @@ -249,6 +252,8 @@ rm -rf $RPM_BUILD_ROOT %_datadir/aclocal/* %changelog +* Tue Dec 04 2007 - pth@suse.de +- Add patch from upstreams to add the missing mode for the open call. * Fri Nov 23 2007 - pth@suse.de - Reenable msgmerge-compendium-5 now that gcc has been fixed. - Change Provides/Obsoletes to match guidelines