pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils/smartmontools Add patch from Scott Presnell i...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/54039772e425
branches:  trunk
changeset: 490675:54039772e425
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Thu Mar 17 16:33:23 2005 +0000

description:
Add patch from Scott Presnell in PR 29701:
The package smartmontools version 5.32 uses wrong units for SCSI
timeout in os_netbsd.c.

Double checked by thorpej.

Bump PKGREVISION.

diffstat:

 sysutils/smartmontools/Makefile         |   4 ++--
 sysutils/smartmontools/distinfo         |   3 ++-
 sysutils/smartmontools/patches/patch-ab |  13 +++++++++++++
 3 files changed, 17 insertions(+), 3 deletions(-)

diffs (42 lines):

diff -r cae4b8b20667 -r 54039772e425 sysutils/smartmontools/Makefile
--- a/sysutils/smartmontools/Makefile   Thu Mar 17 16:11:03 2005 +0000
+++ b/sysutils/smartmontools/Makefile   Thu Mar 17 16:33:23 2005 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.4 2005/01/02 20:29:16 jlam Exp $
+# $NetBSD: Makefile,v 1.5 2005/03/17 16:33:23 wiz Exp $
 
 DISTNAME=              smartmontools-5.32
-PKGREVISION=           1
+PKGREVISION=           2
 CATEGORIES=            sysutils
 MASTER_SITES=          ${MASTER_SITE_SOURCEFORGE:=smartmontools/}
 
diff -r cae4b8b20667 -r 54039772e425 sysutils/smartmontools/distinfo
--- a/sysutils/smartmontools/distinfo   Thu Mar 17 16:11:03 2005 +0000
+++ b/sysutils/smartmontools/distinfo   Thu Mar 17 16:33:23 2005 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.3 2005/02/24 13:40:57 agc Exp $
+$NetBSD: distinfo,v 1.4 2005/03/17 16:33:23 wiz Exp $
 
 SHA1 (smartmontools-5.32.tar.gz) = 2af09136578ea59565ad00b3638afe9700ed26a2
 RMD160 (smartmontools-5.32.tar.gz) = 6692df8996bc3f6a1b52b10286d92b116874e1cd
 Size (smartmontools-5.32.tar.gz) = 408224 bytes
 SHA1 (patch-aa) = 2f22d9bd911ce825c1ca888cceb4535bba606671
+SHA1 (patch-ab) = c82137592289bedbed7b1980de9dd8a3aa6c4d85
diff -r cae4b8b20667 -r 54039772e425 sysutils/smartmontools/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/smartmontools/patches/patch-ab   Thu Mar 17 16:33:23 2005 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1 2005/03/17 16:33:23 wiz Exp $
+
+--- os_netbsd.c.orig   2004-04-20 06:53:26.000000000 +0200
++++ os_netbsd.c
+@@ -381,7 +381,7 @@ do_scsi_cmnd_io(int fd, struct scsi_cmnd
+   sc.databuf = iop->dxferp;
+   sc.datalen = iop->dxfer_len;
+   sc.senselen = iop->max_sense_len;
+-  sc.timeout = iop->timeout == 0 ? 60000 : iop->timeout;      /* XXX */
++  sc.timeout = iop->timeout == 0 ? 60000 : (iop->timeout * 1000);     /* XXX */
+   sc.flags =
+     (iop->dxfer_dir == DXFER_NONE ? SCCMD_READ :      /* XXX */
+     (iop->dxfer_dir == DXFER_FROM_DEVICE ? SCCMD_READ : SCCMD_WRITE));



Home | Main Index | Thread Index | Old Index