pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/leptonica leptonica: Avoid fstatat(2) until i...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/89680eaad570
branches:  trunk
changeset: 375183:89680eaad570
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Mon Feb 05 10:53:36 2018 +0000

description:
leptonica: Avoid fstatat(2) until it can be properly tested for.

diffstat:

 graphics/leptonica/distinfo                    |   3 ++-
 graphics/leptonica/patches/patch-src_sarray1.c |  15 +++++++++++++++
 2 files changed, 17 insertions(+), 1 deletions(-)

diffs (32 lines):

diff -r e1f80ee77f16 -r 89680eaad570 graphics/leptonica/distinfo
--- a/graphics/leptonica/distinfo       Mon Feb 05 09:36:34 2018 +0000
+++ b/graphics/leptonica/distinfo       Mon Feb 05 10:53:36 2018 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.8 2018/02/02 12:09:18 adam Exp $
+$NetBSD: distinfo,v 1.9 2018/02/05 10:53:36 jperkin Exp $
 
 SHA1 (leptonica-1.75.1.tar.gz) = 2b02e0694ed5841279d21af7bda2c3b7c1d38bd0
 RMD160 (leptonica-1.75.1.tar.gz) = 200467483af7a7052f9461e08ca7271b28914229
 SHA512 (leptonica-1.75.1.tar.gz) = f4a00d17a23e9f3397dba8d896a550110ed3918e7697e7226c46721f66a5b8161b64bd8890c82253b338e1937e9d4b4365ca99d8f236c51bab27bc0f3ec575ee
 Size (leptonica-1.75.1.tar.gz) = 12392535 bytes
 SHA1 (patch-configure) = 775f6cdcb7442f08847cef481c2dfdcba9641e9d
+SHA1 (patch-src_sarray1.c) = 2e465517a82453d80d5c40654aa13e6d23f620a9
diff -r e1f80ee77f16 -r 89680eaad570 graphics/leptonica/patches/patch-src_sarray1.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/leptonica/patches/patch-src_sarray1.c    Mon Feb 05 10:53:36 2018 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_sarray1.c,v 1.1 2018/02/05 10:53:36 jperkin Exp $
+
+Use stat(2) until they have proper autoconf tests for fstatat(2).
+
+--- src/sarray1.c.orig 2018-01-31 15:57:06.000000000 +0000
++++ src/sarray1.c
+@@ -1873,7 +1873,7 @@ struct stat     st;
+     while ((pdirentry = readdir(pdir))) {
+ 
+         /* It's nice to ignore directories.  */
+-      if ((0 == fstatat(dfd, pdirentry->d_name, &st, 0))
++      if ((0 == stat(pdirentry->d_name, &st))
+           && S_ISDIR(st.st_mode)) {
+             continue;
+       }



Home | Main Index | Thread Index | Old Index