pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/smartmontools Fix this for little endian args
details: https://anonhg.NetBSD.org/pkgsrc/rev/f6461bb0b020
branches: trunk
changeset: 518974:f6461bb0b020
user: martin <martin%pkgsrc.org@localhost>
date: Sun Sep 24 17:14:55 2006 +0000
description:
Fix this for little endian args
diffstat:
sysutils/smartmontools/distinfo | 3 ++-
sysutils/smartmontools/patches/patch-ab | 21 +++++++++++++++++++++
2 files changed, 23 insertions(+), 1 deletions(-)
diffs (37 lines):
diff -r c6bb47ae7599 -r f6461bb0b020 sysutils/smartmontools/distinfo
--- a/sysutils/smartmontools/distinfo Sun Sep 24 17:09:13 2006 +0000
+++ b/sysutils/smartmontools/distinfo Sun Sep 24 17:14:55 2006 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.11 2006/07/17 17:01:32 wiz Exp $
+$NetBSD: distinfo,v 1.12 2006/09/24 17:14:55 martin Exp $
SHA1 (smartmontools-5.36.tar.gz) = aafc42287c694e4206d80b7886401acdb0eff230
RMD160 (smartmontools-5.36.tar.gz) = 38efdc3b8dd78ded3f09890683c84973ccc036e7
Size (smartmontools-5.36.tar.gz) = 540786 bytes
SHA1 (patch-aa) = 676ab97ffa01d023fb1792b0590538af9a6c2fa2
+SHA1 (patch-ab) = 5f70173f83d95f3d7c194b8f17a00eea0dbb6229
diff -r c6bb47ae7599 -r f6461bb0b020 sysutils/smartmontools/patches/patch-ab
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/smartmontools/patches/patch-ab Sun Sep 24 17:14:55 2006 +0000
@@ -0,0 +1,21 @@
+$NetBSD: patch-ab,v 1.8 2006/09/24 17:14:55 martin Exp $
+
+--- ataprint.c.orig 2006-04-12 16:54:28.000000000 +0200
++++ ataprint.c 2006-09-24 18:47:09.000000000 +0200
+@@ -95,11 +95,12 @@
+ char tmp[65];
+
+ n = n > 64 ? 64 : n;
+-#ifndef __NetBSD__
+- swapbytes(tmp, in, n);
+-#else
+- strncpy(tmp, in, n); /* NetBSD delivers host byte order strings */
++#ifdef __NetBSD__
++ if (isbigendian())
++ strncpy(tmp, in, n);
++ else
+ #endif
++ swapbytes(tmp, in, n);
+ tmp[n] = '\0';
+ trim(out, tmp);
+ }
Home |
Main Index |
Thread Index |
Old Index