components/coreutils/patches/stdbuf-configure.patch
author Rich Burridge <rich.burridge@oracle.com>
Fri, 08 Jan 2016 12:18:38 -0800
branchs11u3-sru
changeset 5249 8a7aa7f8367e
permissions -rw-r--r--
16575074 stat could support birthtime/crtime on ZFS
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5249
8a7aa7f8367e 16575074 stat could support birthtime/crtime on ZFS
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     1
Always build stdbuf irrespective of whether this is an ELF system.
8a7aa7f8367e 16575074 stat could support birthtime/crtime on ZFS
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     2
8a7aa7f8367e 16575074 stat could support birthtime/crtime on ZFS
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     3
These changes have already been accepted upstream.
8a7aa7f8367e 16575074 stat could support birthtime/crtime on ZFS
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     4
8a7aa7f8367e 16575074 stat could support birthtime/crtime on ZFS
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     5
--- coreutils-8.16/configure.ac.orig	2014-03-18 20:59:59.283886213 -0700
8a7aa7f8367e 16575074 stat could support birthtime/crtime on ZFS
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     6
+++ coreutils-8.16/configure.ac	2014-03-18 21:02:30.881534195 -0700
8a7aa7f8367e 16575074 stat could support birthtime/crtime on ZFS
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     7
@@ -395,16 +395,13 @@
8a7aa7f8367e 16575074 stat could support birthtime/crtime on ZFS
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     8
   gl_ADD_PROG([optional_bin_progs], [df])
8a7aa7f8367e 16575074 stat could support birthtime/crtime on ZFS
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     9
 fi
8a7aa7f8367e 16575074 stat could support birthtime/crtime on ZFS
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    10
 
8a7aa7f8367e 16575074 stat could support birthtime/crtime on ZFS
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    11
-# Limit stdbuf to ELF systems with GCC
8a7aa7f8367e 16575074 stat could support birthtime/crtime on ZFS
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    12
 AC_MSG_CHECKING([whether this is an ELF system])
8a7aa7f8367e 16575074 stat could support birthtime/crtime on ZFS
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    13
 AC_EGREP_CPP([yes], [#if __ELF__
8a7aa7f8367e 16575074 stat could support birthtime/crtime on ZFS
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    14
 yes
8a7aa7f8367e 16575074 stat could support birthtime/crtime on ZFS
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    15
 #endif], [elf_sys=yes], [elf_sys=no])
8a7aa7f8367e 16575074 stat could support birthtime/crtime on ZFS
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    16
 AC_MSG_RESULT([$elf_sys])
8a7aa7f8367e 16575074 stat could support birthtime/crtime on ZFS
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    17
-if test "$elf_sys" = "yes" && \
8a7aa7f8367e 16575074 stat could support birthtime/crtime on ZFS
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    18
-   test "$GCC" = "yes"; then
8a7aa7f8367e 16575074 stat could support birthtime/crtime on ZFS
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    19
-  gl_ADD_PROG([optional_bin_progs], [stdbuf])
8a7aa7f8367e 16575074 stat could support birthtime/crtime on ZFS
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    20
-fi
8a7aa7f8367e 16575074 stat could support birthtime/crtime on ZFS
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    21
+gl_ADD_PROG([optional_bin_progs], [stdbuf])
8a7aa7f8367e 16575074 stat could support birthtime/crtime on ZFS
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    22
+gl_ADD_PROG([optional_pkglib_progs], [libstdbuf.so])
8a7aa7f8367e 16575074 stat could support birthtime/crtime on ZFS
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    23
 
8a7aa7f8367e 16575074 stat could support birthtime/crtime on ZFS
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    24
 ############################################################################
8a7aa7f8367e 16575074 stat could support birthtime/crtime on ZFS
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    25
 mk="$srcdir/src/Makefile.am"