summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/decode-dimms/Makefile13
-rw-r--r--sysutils/decode-dimms/distinfo10
-rw-r--r--sysutils/decode-dimms/patches/patch-decode-dimms20
3 files changed, 21 insertions, 22 deletions
diff --git a/sysutils/decode-dimms/Makefile b/sysutils/decode-dimms/Makefile
index d6fec8c0762..a144708c3d6 100644
--- a/sysutils/decode-dimms/Makefile
+++ b/sysutils/decode-dimms/Makefile
@@ -1,11 +1,10 @@
-# $NetBSD: Makefile,v 1.30 2021/05/24 19:54:10 wiz Exp $
+# $NetBSD: Makefile,v 1.31 2021/10/28 20:18:20 pgoyette Exp $
# Track upstream's HEAD
-PKG_DATE= 20201004
-GIT_COMMIT= 9cba52b9626413307b994af44695b8a9c0e058be
+PKG_DATE= 20210722
+GIT_COMMIT= d8bc1f1ff4b00a6bd988aa114100ae9b787f50d8
DISTNAME= i2c-tools-${GIT_COMMIT}
-PKGNAME= decode-dimms-4.2.${PKG_DATE}
-PKGREVISION= 1
+PKGNAME= decode-dimms-4.3.${PKG_DATE}
CATEGORIES= sysutils
MASTER_SITES= https://git.kernel.org/pub/scm/utils/i2c-tools/i2c-tools.git/snapshot/
@@ -18,9 +17,9 @@ USE_TOOLS+= perl:run
REPLACE_PERL= eeprom/decode-dimms
SUBST_CLASSES+= rev
-SUBST_STAGE.rev= post-extract
+SUBST_STAGE.rev= post-patch
SUBST_FILES.rev= eeprom/decode-dimms
-SUBST_SED.rev= -e '/I2C_TOOLS_VER/s/4.2/4.2-${PKG_DATE}/'
+SUBST_SED.rev= -e '/I2C_TOOLS_VER/s/4.3/4.3-${PKG_DATE}/'
NO_BUILD= yes
diff --git a/sysutils/decode-dimms/distinfo b/sysutils/decode-dimms/distinfo
index a9202e75a2a..52e54986b5a 100644
--- a/sysutils/decode-dimms/distinfo
+++ b/sysutils/decode-dimms/distinfo
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.23 2021/10/26 11:19:29 nia Exp $
+$NetBSD: distinfo,v 1.24 2021/10/28 20:18:20 pgoyette Exp $
-BLAKE2s (i2c-tools-9cba52b9626413307b994af44695b8a9c0e058be.tar.gz) = bcd5b5f2563c4d3447dac5bccba8175073c2c94bb4eb1089d66cc859855eb87f
-SHA512 (i2c-tools-9cba52b9626413307b994af44695b8a9c0e058be.tar.gz) = 1008fbf6135fa1e1ed53c679cb76b3f4d6d2cfe1ed8f79516625c80b57c5b9b03e6cec391402f43d1cfd35cd75d642e13413a0f52cb1c164d3525a3493860fc1
-Size (i2c-tools-9cba52b9626413307b994af44695b8a9c0e058be.tar.gz) = 102950 bytes
-SHA1 (patch-decode-dimms) = 8f8f03cb1bae03a5572bb65f88dfce216f98549f
+BLAKE2s (i2c-tools-d8bc1f1ff4b00a6bd988aa114100ae9b787f50d8.tar.gz) = 874d17dd335c827df520f4617c4becb612a9b252fdab5a6d734d718cc7661d94
+SHA512 (i2c-tools-d8bc1f1ff4b00a6bd988aa114100ae9b787f50d8.tar.gz) = 37a8fb5b517bc91595e2faf04c76d95ccaa17ef1e3d1e2ca6feb55130361ea27242997c743201269abba493b0ba495f477a19ffe21061a7181b4be149cf85912
+Size (i2c-tools-d8bc1f1ff4b00a6bd988aa114100ae9b787f50d8.tar.gz) = 95051 bytes
+SHA1 (patch-decode-dimms) = b964e5df41acb192d04cea01c21ec95222aefc99
SHA1 (patch-decode-dimms.1) = 349c0af6c639f7752e03f78d089bbb414bc1a2e7
diff --git a/sysutils/decode-dimms/patches/patch-decode-dimms b/sysutils/decode-dimms/patches/patch-decode-dimms
index 41fae73bdfb..18e5ee581b5 100644
--- a/sysutils/decode-dimms/patches/patch-decode-dimms
+++ b/sysutils/decode-dimms/patches/patch-decode-dimms
@@ -1,10 +1,10 @@
-$NetBSD: patch-decode-dimms,v 1.18 2020/09/07 14:50:25 pgoyette Exp $
+$NetBSD: patch-decode-dimms,v 1.19 2021/10/28 20:18:21 pgoyette Exp $
Add NetBSD-specific ability to use spdmem(4)'s sysctl values as
input. Remove attempts to use linux-specific data sources.
---- eeprom/decode-dimms.orig 2020-09-07 07:41:27.782730720 -0700
-+++ eeprom/decode-dimms 2020-09-07 07:42:58.255264706 -0700
+--- eeprom/decode-dimms.orig 2021-07-22 04:10:34.000000000 -0700
++++ eeprom/decode-dimms 2021-10-28 13:01:32.530284359 -0700
@@ -45,8 +45,9 @@
use Fcntl qw(:DEFAULT :seek);
use File::Basename;
@@ -26,7 +26,7 @@ input. Remove attempts to use linux-specific data sources.
# We consider that no data was written to this area of the SPD EEPROM if
# all bytes read 0x00 or all bytes read 0xff
-@@ -2436,6 +2437,26 @@
+@@ -2437,6 +2438,26 @@
}
}
@@ -53,7 +53,7 @@ input. Remove attempts to use linux-specific data sources.
# Read bytes from SPD-EEPROM
# Note: offset must be a multiple of 16!
sub readspd($$$)
-@@ -2449,20 +2470,13 @@
+@@ -2450,20 +2471,13 @@
$size = @bytes - $offset;
}
return @bytes[$offset..($offset + $size - 1)];
@@ -80,7 +80,7 @@ input. Remove attempts to use linux-specific data sources.
} else {
# Kernel 2.4 with procfs
for my $i (0 .. ($size-1)/16) {
-@@ -2528,7 +2542,7 @@
+@@ -2529,7 +2543,7 @@
# Parse command-line
foreach (@ARGV) {
if ($_ eq '-h' || $_ eq '--help') {
@@ -89,7 +89,7 @@ input. Remove attempts to use linux-specific data sources.
" $0 -h\n\n",
" -f, --format Print nice html output\n",
" -b, --bodyonly Don't print html header\n",
-@@ -2542,6 +2556,8 @@
+@@ -2543,6 +2557,8 @@
" -x, Read data from hexdump files\n",
" -X, Same as -x except treat multibyte hex\n",
" data as little endian\n",
@@ -98,7 +98,7 @@ input. Remove attempts to use linux-specific data sources.
" -h, --help Display this usage summary\n";
print <<"EOF";
-@@ -2586,85 +2602,25 @@
+@@ -2587,85 +2603,25 @@
$use_hexdump = LITTLEENDIAN;
next;
}
@@ -192,7 +192,7 @@ input. Remove attempts to use linux-specific data sources.
# @dimm is a list of hashes. There's one hash for each EEPROM we found.
# Each hash has the following keys:
# * eeprom: Name of the eeprom data file
-@@ -2677,7 +2633,6 @@
+@@ -2678,7 +2634,6 @@
# * chk_spd: The checksum or CRC value found in the EEPROM
# * chk_calc: The checksum or CRC computed from the EEPROM data
# Keys are added over time.
@@ -200,7 +200,7 @@ input. Remove attempts to use linux-specific data sources.
for my $i (0 .. $#dimm) {
my @bytes = readspd(0, 128, $dimm[$i]->{file});
-@@ -2729,7 +2684,7 @@
+@@ -2730,7 +2685,7 @@
printl("Decoding EEPROM", $dimm[$current]->{eeprom});
}