summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-arch/cpio/files/2.6-lstat.patch')
-rw-r--r--app-arch/cpio/files/2.6-lstat.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/app-arch/cpio/files/2.6-lstat.patch b/app-arch/cpio/files/2.6-lstat.patch
new file mode 100644
index 000000000000..e9478d6af357
--- /dev/null
+++ b/app-arch/cpio/files/2.6-lstat.patch
@@ -0,0 +1,28 @@
+cpio is acting as if always invoked with -L (copy the file that a symlink
+points to, rather the symlink itself)
+reason: missing check for lstat function in configure script
+see: http://lists.gnu.org/archive/html/bug-cpio/2005-01/msg00003.html
+ http://bugs.gentoo.org/show_bug.cgi?id=80246
+
+--- cpio-2.6-orig/config.h.in
++++ cpio-2.6/config.h.in
+@@ -310,6 +310,9 @@
+ /* Define to 1 if you have the <unistd.h> header file. */
+ #undef HAVE_UNISTD_H
+
++/* Define to 1 if you have the `lstat' function. */
++#undef HAVE_LSTAT
++
+ /* Define to 1 if you have the <utime.h> header file. */
+ #undef HAVE_UTIME_H
+
+--- cpio-2.6-orig/configure
++++ cpio-2.6/configure
+@@ -1321,6 +1321,7 @@
+ gl_func_list="$gl_func_list iswprint"
+ gl_func_list="$gl_func_list mbsinit"
+ gl_header_list="$gl_header_list unistd.h"
++gl_func_list="$gl_func_list lstat"
+
+
+