pkgsrc-Changes archive

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

CVS commit: pkgsrc/textproc/the_silver_searcher



Module Name:    pkgsrc
Committed By:   leot
Date:           Thu Dec  1 11:13:04 UTC 2016

Modified Files:
        pkgsrc/textproc/the_silver_searcher: distinfo
Added Files:
        pkgsrc/textproc/the_silver_searcher/patches: patch-src_scandir.c

Log Message:
Fix build for DragonFlyBSD dirent(3) that does not have a dirent.d_reclen entry.

Thanks to <sevan> for testing it!


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 pkgsrc/textproc/the_silver_searcher/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/textproc/the_silver_searcher/patches/patch-src_scandir.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/textproc/the_silver_searcher/distinfo
diff -u pkgsrc/textproc/the_silver_searcher/distinfo:1.12 pkgsrc/textproc/the_silver_searcher/distinfo:1.13
--- pkgsrc/textproc/the_silver_searcher/distinfo:1.12   Thu Dec  1 09:28:34 2016
+++ pkgsrc/textproc/the_silver_searcher/distinfo        Thu Dec  1 11:13:04 2016
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.12 2016/12/01 09:28:34 leot Exp $
+$NetBSD: distinfo,v 1.13 2016/12/01 11:13:04 leot Exp $
 
 SHA1 (the_silver_searcher-1.0.1.tar.gz) = 93186d2d887750a39c5d3a06aeb32dece4bda5f8
 RMD160 (the_silver_searcher-1.0.1.tar.gz) = 2e4b3dfa430b3036a9dfffe11f60e4c50ec1486d
 SHA512 (the_silver_searcher-1.0.1.tar.gz) = f8c86a6eb5017fac61d0ff6726d10b1eff0cd75ad0fee99f9d17f35ad3cad80aceb2101a5caa26f2cacbd8618b60af005966bf2c39bd1f0fc52d6fafb5eed778
 Size (the_silver_searcher-1.0.1.tar.gz) = 183173 bytes
+SHA1 (patch-src_scandir.c) = 41c0af602ef478db39bd48315b0fb1a644a9db91

Added files:

Index: pkgsrc/textproc/the_silver_searcher/patches/patch-src_scandir.c
diff -u /dev/null pkgsrc/textproc/the_silver_searcher/patches/patch-src_scandir.c:1.1
--- /dev/null   Thu Dec  1 11:13:04 2016
+++ pkgsrc/textproc/the_silver_searcher/patches/patch-src_scandir.c     Thu Dec  1 11:13:04 2016
@@ -0,0 +1,24 @@
+$NetBSD: patch-src_scandir.c,v 1.1 2016/12/01 11:13:04 leot Exp $
+
+DragonFlyBSD dirent(3) does not have dirent.d_reclen entry.
+
+--- src/scandir.c.orig 2016-05-10 17:39:42.000000000 +0000
++++ src/scandir.c
+@@ -38,7 +38,7 @@ int ag_scandir(const char *dirname,
+             }
+         }
+ 
+-#if defined(__MINGW32__) || defined(__CYGWIN__)
++#if defined(__MINGW32__) || defined(__CYGWIN__) || defined(__DragonFly__)
+         d = malloc(sizeof(struct dirent));
+ #else
+         d = malloc(entry->d_reclen);
+@@ -47,7 +47,7 @@ int ag_scandir(const char *dirname,
+         if (d == NULL) {
+             goto fail;
+         }
+-#if defined(__MINGW32__) || defined(__CYGWIN__)
++#if defined(__MINGW32__) || defined(__CYGWIN__) || defined(__DragonFly__)
+         memcpy(d, entry, sizeof(struct dirent));
+ #else
+         memcpy(d, entry, entry->d_reclen);



Home | Main Index | Thread Index | Old Index