pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/security/libprelude Fix build issus on DragonFly with ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2a314078a967
branches:  trunk
changeset: 533312:2a314078a967
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sat Sep 15 08:30:51 2007 +0000

description:
Fix build issus on DragonFly with GNUlib and don't use d_reclen as the
assertion is ensured already by opendir.

diffstat:

 security/libprelude/distinfo         |   4 +++-
 security/libprelude/patches/patch-ac |  23 +++++++++++++++++++++++
 security/libprelude/patches/patch-ad |  13 +++++++++++++
 3 files changed, 39 insertions(+), 1 deletions(-)

diffs (58 lines):

diff -r a3bcf617cb04 -r 2a314078a967 security/libprelude/distinfo
--- a/security/libprelude/distinfo      Sat Sep 15 07:36:28 2007 +0000
+++ b/security/libprelude/distinfo      Sat Sep 15 08:30:51 2007 +0000
@@ -1,7 +1,9 @@
-$NetBSD: distinfo,v 1.18 2007/09/05 18:58:19 shannonjr Exp $
+$NetBSD: distinfo,v 1.19 2007/09/15 08:30:51 joerg Exp $
 
 SHA1 (libprelude-0.9.15.2.tar.gz) = ee11319f2f526318642900fa27da0c3e4bbdf9bc
 RMD160 (libprelude-0.9.15.2.tar.gz) = c69e21175d60fd6c858935b927d85e6043cbb486
 Size (libprelude-0.9.15.2.tar.gz) = 1949284 bytes
 SHA1 (patch-aa) = c8aff1bce0b649b77554eefca4625f69393ac1c2
 SHA1 (patch-ab) = 3fa1b01b728cd1210cf22717e2f6c81a3d3b70cc
+SHA1 (patch-ac) = d459148ce7035ef26440e52ae9154c32080ae1a5
+SHA1 (patch-ad) = e89900459ed7834801ae22b7a4a711163ec3f86b
diff -r a3bcf617cb04 -r 2a314078a967 security/libprelude/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/libprelude/patches/patch-ac      Sat Sep 15 08:30:51 2007 +0000
@@ -0,0 +1,23 @@
+$NetBSD: patch-ac,v 1.5 2007/09/15 08:30:51 joerg Exp $
+
+Hack around GNUlib idiosyncracy where the overwritten stdio.h includes
+sys/types.h which includes stdint.h (overwritten!) which includes wchar.h
+which includes stdio.h, BOOM.
+
+--- libmissing/stdio_.h.orig   2007-09-14 11:29:05.000000000 +0000
++++ libmissing/stdio_.h
+@@ -35,6 +35,14 @@
+ #include <stdarg.h>
+ #include <stddef.h>
+ 
++#ifdef __DragonFly__
++#include <machine/stdint.h>
++#ifndef _SSIZE_T_DECLARED
++#define _SSIZE_T_DECLARED
++typedef __ssize_t     ssize_t;
++#endif
++#endif
++
+ #if (@GNULIB_FSEEKO@ && @REPLACE_FSEEKO@) \
+   || (@GNULIB_FTELLO@ && @REPLACE_FTELLO@) \
+   || (@GNULIB_GETDELIM@ && !@HAVE_DECL_GETDELIM@) \
diff -r a3bcf617cb04 -r 2a314078a967 security/libprelude/patches/patch-ad
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/libprelude/patches/patch-ad      Sat Sep 15 08:30:51 2007 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ad,v 1.5 2007/09/15 08:30:51 joerg Exp $
+
+--- src/prelude-failover.c.orig        2007-09-15 08:00:29.000000000 +0000
++++ src/prelude-failover.c
+@@ -381,7 +381,7 @@ static int get_failover_data_filename_an
+ 
+         while ( (de = readdir(dir)) && ret != 1 ) {
+ 
+-                if ( de->d_reclen <= 4 || ! isdigit(de->d_name[4]) )
++                if (! isdigit(de->d_name[4]) )
+                         continue;
+ 
+                 if ( strncmp(de->d_name, "data", 4) != 0 || strchr(de->d_name, '.') )



Home | Main Index | Thread Index | Old Index