diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2010-01-06 01:10:10 +0100 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2010-01-07 11:30:08 +0100 |
commit | a75194de1708fb517f444bd5d88028514a573026 (patch) | |
tree | baff69627f669eafe30de51a0c364fda15f8f1bb | |
parent | dbf8317f4c5773b8484e63acad16296a798da98f (diff) | |
download | ptxdist-a75194de1708fb517f444bd5d88028514a573026.tar.gz ptxdist-a75194de1708fb517f444bd5d88028514a573026.tar.xz |
[gettext] fix compilation on ubuntu systems
This patch fixed the following error:
gcc -std=gnu99
-DLOCALEDIR=\"/home/frogger/pengutronix/bsp/OSELAS.BSP-Pengutronix-AllYes-trunk/platform-ARM-reference/sysroot-host/share/locale\"
-DBISON_L
OCALEDIR=\"/usr/share/locale\"
-DLOCALE_ALIAS_PATH=\"/home/frogger/pengutronix/bsp/OSELAS.BSP-Pengutronix-AllYes-trunk/platform-ARM-reference/sysroot-host/s
hare/locale\" -DUSEJEXE=0
-DGETTEXTJEXEDIR=\"/home/frogger/pengutronix/bsp/OSELAS.BSP-Pengutronix-AllYes-trunk/platform-ARM-reference/sysroot-host/lib/gette
xt\"
-DGETTEXTJAR=\"/home/frogger/pengutronix/bsp/OSELAS.BSP-Pengutronix-AllYes-trunk/platform-ARM-reference/sysroot-host/share/gettext/gettext.jar\"
-DLIBD
IR=\"/home/frogger/pengutronix/bsp/OSELAS.BSP-Pengutronix-AllYes-trunk/platform-ARM-reference/sysroot-host/lib\"
-DGETTEXTDATADIR=\"/home/frogger/pengutroni
x/bsp/OSELAS.BSP-Pengutronix-AllYes-trunk/platform-ARM-reference/sysroot-host/share/gettext\"
-DPROJECTSDIR=\"/home/frogger/pengutronix/bsp/OSELAS.BSP-Pengu
tronix-AllYes-trunk/platform-ARM-reference/sysroot-host/share/gettext/projects\"
-DHAVE_CONFIG_H -I. -I.. -I. -I. -I.. -I.. -I../libgrep -I../gnulib-lib
-I.
./gnulib-lib -I../intl -I../../gettext-runtime/intl
-I/home/frogger/pengutronix/bsp/OSELAS.BSP-Pengutronix-AllYes-trunk/platform-ARM-reference/sysroot-host/
include -g -O2 -c write-catalog.c -fPIC -DPIC -o .libs/write-catalog.o
In function 'open',
inlined from 'msgdomain_list_print' at write-catalog.c:223:
/usr/include/bits/fcntl2.h:51: error: call to '__open_missing_mode'
declared with attribute error: open with O_CREAT in second argument
needs 3 arguments
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
(cherry picked from commit 895a9179a9ba6db0bec85361613e5c2b4e86b054)
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
-rw-r--r-- | patches/gettext-0.17/0001-Fix-open-call.patch | 52 | ||||
-rw-r--r-- | patches/gettext-0.17/series | 1 |
2 files changed, 53 insertions, 0 deletions
diff --git a/patches/gettext-0.17/0001-Fix-open-call.patch b/patches/gettext-0.17/0001-Fix-open-call.patch new file mode 100644 index 000000000..f2750d542 --- /dev/null +++ b/patches/gettext-0.17/0001-Fix-open-call.patch @@ -0,0 +1,52 @@ +From 501ea8f48fa40ec80284ec62f8da1830e2c635aa Mon Sep 17 00:00:00 2001 +From: Bruno Haible <bruno@clisp.org> +Date: Wed, 7 Nov 2007 11:44:43 +0000 +Subject: [PATCH] Fix open() call. + +Cherry-picked from mainline: 501ea8f48fa40ec80284ec62f8da1830e2c635aa + +Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> + +--- + gettext-tools/src/ChangeLog | 5 +++++ + gettext-tools/src/write-catalog.c | 6 ++++-- + 2 files changed, 9 insertions(+), 2 deletions(-) + +diff --git a/gettext-tools/src/ChangeLog b/gettext-tools/src/ChangeLog +index 6d33fd6..500e65c 100644 +--- a/gettext-tools/src/ChangeLog ++++ b/gettext-tools/src/ChangeLog +@@ -1,3 +1,8 @@ ++2007-11-07 Jim Meyering <meyering@redhat.com> ++ Bruno Haible <bruno@clisp.org> ++ ++ * write-catalog.c (msgdomain_list_print): Fix open() call. ++ + 2007-11-07 Bruno Haible <bruno@clisp.org> + + * gettext-0.17 released. +diff --git a/gettext-tools/src/write-catalog.c b/gettext-tools/src/write-catalog.c +index 0447744..635f8c1 100644 +--- a/gettext-tools/src/write-catalog.c ++++ b/gettext-tools/src/write-catalog.c +@@ -1,5 +1,5 @@ + /* GNU gettext - internationalization aids +- Copyright (C) 1995-1998, 2000-2006 Free Software Foundation, Inc. ++ 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,7 +220,9 @@ message catalog has plural form translations, but the output format does not sup + /* Open the output file. */ + if (!to_stdout) + { +- fd = open (filename, O_WRONLY | O_CREAT); ++ 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); +-- +1.6.5.7 + diff --git a/patches/gettext-0.17/series b/patches/gettext-0.17/series new file mode 100644 index 000000000..1dccb84af --- /dev/null +++ b/patches/gettext-0.17/series @@ -0,0 +1 @@ +0001-Fix-open-call.patch |