pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/sysutils/dmidecode
Module Name: pkgsrc
Committed By: jmcneill
Date: Tue Oct 23 10:16:12 UTC 2018
Modified Files:
pkgsrc/sysutils/dmidecode: Makefile PLIST distinfo
Added Files:
pkgsrc/sysutils/dmidecode: PLIST.i386 PLIST.x86_64
pkgsrc/sysutils/dmidecode/patches: patch-dmidecode.c
Log Message:
Add aarch64 support.
To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 pkgsrc/sysutils/dmidecode/Makefile
cvs rdiff -u -r1.5 -r1.6 pkgsrc/sysutils/dmidecode/PLIST
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/dmidecode/PLIST.i386 \
pkgsrc/sysutils/dmidecode/PLIST.x86_64
cvs rdiff -u -r1.21 -r1.22 pkgsrc/sysutils/dmidecode/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/dmidecode/patches/patch-dmidecode.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/sysutils/dmidecode/Makefile
diff -u pkgsrc/sysutils/dmidecode/Makefile:1.24 pkgsrc/sysutils/dmidecode/Makefile:1.25
--- pkgsrc/sysutils/dmidecode/Makefile:1.24 Tue Oct 23 03:32:03 2018
+++ pkgsrc/sysutils/dmidecode/Makefile Tue Oct 23 10:16:12 2018
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.24 2018/10/23 03:32:03 msaitoh Exp $
+# $NetBSD: Makefile,v 1.25 2018/10/23 10:16:12 jmcneill Exp $
#
DISTNAME= dmidecode-3.2
-PKGREVISION= 1
+PKGREVISION= 2
EXTRACT_SUFX= .tar.xz
CATEGORIES= sysutils
MASTER_SITES= http://download.savannah.gnu.org/releases/dmidecode/
@@ -20,6 +20,6 @@ PATCH_DIST_STRIP= -p1
MAKE_FLAGS+= CFLAGS=${CFLAGS:Q}
MAKE_FLAGS+= LDFLAGS=${LDFLAGS:Q}
-ONLY_FOR_PLATFORM= *-*-i386 *-*-x86_64
+ONLY_FOR_PLATFORM= *-*-i386 *-*-x86_64 *-*-aarch64
.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/sysutils/dmidecode/PLIST
diff -u pkgsrc/sysutils/dmidecode/PLIST:1.5 pkgsrc/sysutils/dmidecode/PLIST:1.6
--- pkgsrc/sysutils/dmidecode/PLIST:1.5 Fri Oct 12 10:08:00 2018
+++ pkgsrc/sysutils/dmidecode/PLIST Tue Oct 23 10:16:12 2018
@@ -1,12 +1,6 @@
-@comment $NetBSD: PLIST,v 1.5 2018/10/12 10:08:00 msaitoh Exp $
-man/man8/biosdecode.8
+@comment $NetBSD: PLIST,v 1.6 2018/10/23 10:16:12 jmcneill Exp $
man/man8/dmidecode.8
-man/man8/ownership.8
-man/man8/vpddecode.8
-sbin/biosdecode
sbin/dmidecode
-sbin/ownership
-sbin/vpddecode
share/doc/dmidecode/AUTHORS
share/doc/dmidecode/NEWS
share/doc/dmidecode/README
Index: pkgsrc/sysutils/dmidecode/distinfo
diff -u pkgsrc/sysutils/dmidecode/distinfo:1.21 pkgsrc/sysutils/dmidecode/distinfo:1.22
--- pkgsrc/sysutils/dmidecode/distinfo:1.21 Tue Oct 23 03:32:03 2018
+++ pkgsrc/sysutils/dmidecode/distinfo Tue Oct 23 10:16:12 2018
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.21 2018/10/23 03:32:03 msaitoh Exp $
+$NetBSD: distinfo,v 1.22 2018/10/23 10:16:12 jmcneill Exp $
SHA1 (dmidecode-patches/dmidecode-3.2.tar.xz) = acf4b5c6e757066453fd06aa9060fceb257849bf
RMD160 (dmidecode-patches/dmidecode-3.2.tar.xz) = 29c7718c1c149798a0f7d7b8830532ca2186c9d6
@@ -9,3 +9,4 @@ RMD160 (dmidecode-patches/fde47bb227b8fa
SHA512 (dmidecode-patches/fde47bb227b8fa817c88d7e10a8eb771c46de1df) = ef5856934bcbf831cad6f733ecd8d0dad92087f4813579b75f89e5576a8be1df23fd670d2f86b0ac2ff1e084951b05ae15421a0e6e84b2cec76789ddec85e88f
Size (dmidecode-patches/fde47bb227b8fa817c88d7e10a8eb771c46de1df) = 989 bytes
SHA1 (patch-aa) = 6c861b3742b1627a1b60dbaea9df0843f2ed603d
+SHA1 (patch-dmidecode.c) = 63cf0302a13603038ee871cc7410009a722eae39
Added files:
Index: pkgsrc/sysutils/dmidecode/PLIST.i386
diff -u /dev/null pkgsrc/sysutils/dmidecode/PLIST.i386:1.1
--- /dev/null Tue Oct 23 10:16:12 2018
+++ pkgsrc/sysutils/dmidecode/PLIST.i386 Tue Oct 23 10:16:12 2018
@@ -0,0 +1,7 @@
+@comment $NetBSD: PLIST.i386,v 1.1 2018/10/23 10:16:12 jmcneill Exp $
+man/man8/biosdecode.8
+man/man8/ownership.8
+man/man8/vpddecode.8
+sbin/biosdecode
+sbin/ownership
+sbin/vpddecode
Index: pkgsrc/sysutils/dmidecode/PLIST.x86_64
diff -u /dev/null pkgsrc/sysutils/dmidecode/PLIST.x86_64:1.1
--- /dev/null Tue Oct 23 10:16:12 2018
+++ pkgsrc/sysutils/dmidecode/PLIST.x86_64 Tue Oct 23 10:16:12 2018
@@ -0,0 +1,7 @@
+@comment $NetBSD: PLIST.x86_64,v 1.1 2018/10/23 10:16:12 jmcneill Exp $
+man/man8/biosdecode.8
+man/man8/ownership.8
+man/man8/vpddecode.8
+sbin/biosdecode
+sbin/ownership
+sbin/vpddecode
Index: pkgsrc/sysutils/dmidecode/patches/patch-dmidecode.c
diff -u /dev/null pkgsrc/sysutils/dmidecode/patches/patch-dmidecode.c:1.1
--- /dev/null Tue Oct 23 10:16:12 2018
+++ pkgsrc/sysutils/dmidecode/patches/patch-dmidecode.c Tue Oct 23 10:16:12 2018
@@ -0,0 +1,53 @@
+$NetBSD: patch-dmidecode.c,v 1.1 2018/10/23 10:16:12 jmcneill Exp $
+
+Find SMBIOS table address on NetBSD ARM64.
+
+--- dmidecode.c.orig 2018-10-23 09:59:50.281527237 +0000
++++ dmidecode.c
+@@ -72,6 +72,12 @@
+ #include <kenv.h>
+ #endif
+
++#ifdef __NetBSD__
++#include <sys/param.h>
++#include <sys/sysctl.h>
++#include <errno.h>
++#endif
++
+ #include "version.h"
+ #include "config.h"
+ #include "types.h"
+@@ -5463,6 +5469,9 @@ static int address_from_efi(off_t *addre
+ char linebuf[64];
+ #elif defined(__FreeBSD__)
+ char addrstr[KENV_MVALLEN + 1];
++#elif defined(__NetBSD__)
++ uint64_t addr;
++ size_t addrlen;
+ #endif
+ const char *eptype;
+ int ret;
+@@ -5516,6 +5525,23 @@ static int address_from_efi(off_t *addre
+ *address = strtoull(addrstr, NULL, 0);
+ eptype = "SMBIOS";
+ ret = 0;
++#elif defined(__NetBSD__)
++ /*
++ * On NetBSD, SMBIOS anchor base address on non-x86 is exposed
++ * via sysctl.
++ */
++ addrlen = sizeof(addr);
++ ret = sysctlbyname("machdep.smbios", &addr, &addrlen, NULL, 0);
++ if (ret == -1)
++ {
++ if (errno != ENOENT)
++ perror("sysctlbyname");
++ return EFI_NOT_FOUND;
++ }
++
++ *address = (off_t)addr;
++ eptype = "SMBIOS";
++ ret = 0;
+ #else
+ ret = EFI_NOT_FOUND;
+ #endif
Home |
Main Index |
Thread Index |
Old Index