Patch to avoid the following error:
tee.c:34: error: conflicting types for 'tee'
/usr/include/bits/fcntl.h:233: error: previous declaration of 'tee' was here

This error is due to a conflict between coreutils and latest version of the 
libc (at least the one available in Debian Sid).

The patch is based on the official patch included in the latest version of 
coreutils. The patch is available in my branch (r75).

--- systemimager-3.8.0/initrd_source/patches/coreutils.tee.patch.orig   
2007-05-12 14:25:13.000000000 -0400
+++ systemimager-3.8.0/initrd_source/patches/coreutils.tee.patch        
2007-05-12 12:42:39.000000000 -0400
@@ -0,0 +1,29 @@
+--- coreutils-5.93/src/tee.c.orig      2005-07-11 14:26:52.000000000 -0400
++++ coreutils-5.93/src/tee.c   2007-05-12 12:36:07.000000000 -0400
+@@ -31,7 +31,7 @@
+
+ #define AUTHORS "Mike Parker", "Richard M. Stallman", "David MacKenzie"
+
+-static bool tee (int nfiles, const char **files);
++static bool tee_files (int nfiles, const char **files);
+
+ /* If true, append to output files rather than truncating them. */
+ static bool append;
+@@ -121,7 +121,7 @@
+   /* Do *not* warn if tee is given no file arguments.
+      POSIX requires that it work when given no arguments.  */
+
+-  ok = tee (argc - optind, (const char **) &argv[optind]);
++  ok = tee_files (argc - optind, (const char **) &argv[optind]);
+   if (close (STDIN_FILENO) != 0)
+     error (EXIT_FAILURE, errno, _("standard input"));
+
+@@ -133,7 +133,7 @@
+    Return true if successful.  */
+
+ static bool
+-tee (int nfiles, const char **files)
++tee_files (int nfiles, const char **files)
+ {
+   FILE **descriptors;
+   char buffer[BUFSIZ];
-- 
Geoffroy

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
sisuite-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sisuite-devel

Reply via email to