pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/textproc/the_silver_searcher Fix build for DragonFlyBS...
details: https://anonhg.NetBSD.org/pkgsrc/rev/77d09a5793fc
branches: trunk
changeset: 355420:77d09a5793fc
user: leot <leot%pkgsrc.org@localhost>
date: Thu Dec 01 11:13:04 2016 +0000
description:
Fix build for DragonFlyBSD dirent(3) that does not have a dirent.d_reclen entry.
Thanks to <sevan> for testing it!
diffstat:
textproc/the_silver_searcher/distinfo | 3 +-
textproc/the_silver_searcher/patches/patch-src_scandir.c | 24 ++++++++++++++++
2 files changed, 26 insertions(+), 1 deletions(-)
diffs (40 lines):
diff -r 12de76aea151 -r 77d09a5793fc textproc/the_silver_searcher/distinfo
--- a/textproc/the_silver_searcher/distinfo Thu Dec 01 11:08:56 2016 +0000
+++ b/textproc/the_silver_searcher/distinfo Thu Dec 01 11:13:04 2016 +0000
@@ -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
diff -r 12de76aea151 -r 77d09a5793fc textproc/the_silver_searcher/patches/patch-src_scandir.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/the_silver_searcher/patches/patch-src_scandir.c Thu Dec 01 11:13:04 2016 +0000
@@ -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