pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/www/elinks -fix some pointer typecast nonsense which b...
details: https://anonhg.NetBSD.org/pkgsrc/rev/5bf10a07d63c
branches: trunk
changeset: 395036:5bf10a07d63c
user: drochner <drochner%pkgsrc.org@localhost>
date: Thu Jul 02 20:04:12 2009 +0000
description:
-fix some pointer typecast nonsense which breaks if time_t is not "long",
makes the select() main loop work again on NetBSD-current,
bump PKGREVISION
-use the libgnutls-config hack so that https works with gnutls-2.8
diffstat:
www/elinks/Makefile | 4 ++--
www/elinks/distinfo | 3 ++-
www/elinks/options.mk | 3 ++-
www/elinks/patches/patch-ah | 24 ++++++++++++++++++++++++
4 files changed, 30 insertions(+), 4 deletions(-)
diffs (73 lines):
diff -r 3ebb0c3c1999 -r 5bf10a07d63c www/elinks/Makefile
--- a/www/elinks/Makefile Thu Jul 02 19:29:29 2009 +0000
+++ b/www/elinks/Makefile Thu Jul 02 20:04:12 2009 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.41 2009/05/20 00:58:29 wiz Exp $
+# $NetBSD: Makefile,v 1.42 2009/07/02 20:04:12 drochner Exp $
DISTNAME= elinks-0.12pre2
PKGNAME= ${DISTNAME:S/pre/rc/}
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= www
MASTER_SITES= http://elinks.or.cz/download/ \
http://ftp.icm.edu.pl/packages/elinks/
diff -r 3ebb0c3c1999 -r 5bf10a07d63c www/elinks/distinfo
--- a/www/elinks/distinfo Thu Jul 02 19:29:29 2009 +0000
+++ b/www/elinks/distinfo Thu Jul 02 20:04:12 2009 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.25 2008/11/06 08:33:31 bjs Exp $
+$NetBSD: distinfo,v 1.26 2009/07/02 20:04:12 drochner Exp $
SHA1 (elinks-0.12pre2.tar.bz2) = 7bb30f817cc053b87f80c32359dfccbc49e067eb
RMD160 (elinks-0.12pre2.tar.bz2) = 94af523e31d24e09c9cb6a41e5d87456f288f234
@@ -9,3 +9,4 @@
SHA1 (patch-ad) = 089e2455c64cbfb48907693a653e76cc97961622
SHA1 (patch-ae) = a46c419ec3d96825958903459708b8b131862053
SHA1 (patch-ag) = c31bede62a6baa1d43ab1dff639f9d7265d2bece
+SHA1 (patch-ah) = 25357fd0b0aa08f7ca55f3f8c262d2d1a4874710
diff -r 3ebb0c3c1999 -r 5bf10a07d63c www/elinks/options.mk
--- a/www/elinks/options.mk Thu Jul 02 19:29:29 2009 +0000
+++ b/www/elinks/options.mk Thu Jul 02 20:04:12 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.9 2008/11/06 08:33:31 bjs Exp $
+# $NetBSD: options.mk,v 1.10 2009/07/02 20:04:12 drochner Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.elinks
PKG_SUPPORTED_OPTIONS+= bittorrent nntp javascript finger gopher
@@ -67,6 +67,7 @@
.elif !empty(PKG_OPTIONS:Mgnutls)
.include "../../security/gnutls/buildlink3.mk"
+.include "../../security/gnutls/libgnutls-config.mk"
CONFIGURE_ARGS+= --with-gnutls-includes=${BUILDLINK_PREFIX.gnutls}/include
CONFIGURE_ARGS+= --with-gnutls-libs=${BUILDLINK_PREFIX.gnutls}/lib
diff -r 3ebb0c3c1999 -r 5bf10a07d63c www/elinks/patches/patch-ah
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/elinks/patches/patch-ah Thu Jul 02 20:04:12 2009 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-ah,v 1.1 2009/07/02 20:04:12 drochner Exp $
+
+--- src/main/select.c.orig 2008-09-21 10:45:22.000000000 +0200
++++ src/main/select.c
+@@ -223,7 +223,7 @@ select_loop(void (*init)(void))
+ check_bottom_halves();
+
+ while (!program.terminate) {
+- struct timeval *timeout = NULL;
++ struct timeval tos, *timeout = NULL;
+ int n, i, has_timer;
+ timeval_T t;
+
+@@ -264,7 +264,9 @@ select_loop(void (*init)(void))
+ if (has_timer) {
+ /* Be sure timeout is not negative. */
+ timeval_limit_to_zero_or_one(&t);
+- timeout = (struct timeval *) &t;
++ tos.tv_sec = t.sec;
++ tos.tv_usec = t.usec;
++ timeout = &tos;
+ }
+
+ n = select(w_max, &x_read, &x_write, &x_error, timeout);
Home |
Main Index |
Thread Index |
Old Index