pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils/p5-Sys-CPU p5-Sys-CPU: Support the katamari o...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/27b6426ca4da
branches:  trunk
changeset: 441179:27b6426ca4da
user:      nia <nia%pkgsrc.org@localhost>
date:      Wed Oct 28 12:04:02 2020 +0000

description:
p5-Sys-CPU: Support the katamari of sysctls for cpufreq NetBSD might expose

Bump PKGREVISION

diffstat:

 sysutils/p5-Sys-CPU/Makefile             |   4 ++--
 sysutils/p5-Sys-CPU/distinfo             |   4 ++--
 sysutils/p5-Sys-CPU/patches/patch-CPU.xs |  16 +++++++++++++---
 3 files changed, 17 insertions(+), 7 deletions(-)

diffs (70 lines):

diff -r 6295fc41d3ff -r 27b6426ca4da sysutils/p5-Sys-CPU/Makefile
--- a/sysutils/p5-Sys-CPU/Makefile      Wed Oct 28 12:01:08 2020 +0000
+++ b/sysutils/p5-Sys-CPU/Makefile      Wed Oct 28 12:04:02 2020 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.9 2020/08/31 18:11:33 wiz Exp $
+# $NetBSD: Makefile,v 1.10 2020/10/28 12:04:02 nia Exp $
 
 DISTNAME=      Sys-CPU-0.61
 PKGNAME=       p5-${DISTNAME}
-PKGREVISION=   6
+PKGREVISION=   7
 CATEGORIES=    sysutils perl5
 MASTER_SITES=  ${MASTER_SITE_PERL_CPAN:=../../authors/id/M/MZ/MZSANFORD/}
 
diff -r 6295fc41d3ff -r 27b6426ca4da sysutils/p5-Sys-CPU/distinfo
--- a/sysutils/p5-Sys-CPU/distinfo      Wed Oct 28 12:01:08 2020 +0000
+++ b/sysutils/p5-Sys-CPU/distinfo      Wed Oct 28 12:04:02 2020 +0000
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.2 2015/11/04 01:32:25 agc Exp $
+$NetBSD: distinfo,v 1.3 2020/10/28 12:04:02 nia Exp $
 
 SHA1 (Sys-CPU-0.61.tar.gz) = 3bca409742fd47a06768b9ba9d8f14d73171c8c1
 RMD160 (Sys-CPU-0.61.tar.gz) = 147d6f4d87d76fd15c35cbd6ebc902f416f0bec6
 SHA512 (Sys-CPU-0.61.tar.gz) = 391e113c87d9044cd43c47f9f78a782fab65566a32c028c01f7f3335a5065b6755586ea3143356510c8d28a7d1ad572cc6203ec189eaaa379967bdbd0a0bd7bc
 Size (Sys-CPU-0.61.tar.gz) = 6497 bytes
-SHA1 (patch-CPU.xs) = b1f1a59ff6eb02b7d9691423b2084fccd21f74cf
+SHA1 (patch-CPU.xs) = 6263b7821d5116ed9291c62dea32760508a243b9
diff -r 6295fc41d3ff -r 27b6426ca4da sysutils/p5-Sys-CPU/patches/patch-CPU.xs
--- a/sysutils/p5-Sys-CPU/patches/patch-CPU.xs  Wed Oct 28 12:01:08 2020 +0000
+++ b/sysutils/p5-Sys-CPU/patches/patch-CPU.xs  Wed Oct 28 12:04:02 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-CPU.xs,v 1.1 2014/08/13 20:20:23 wiz Exp $
+$NetBSD: patch-CPU.xs,v 1.2 2020/10/28 12:04:02 nia Exp $
 
 Add NetBSD support.
 https://rt.cpan.org/Public/Bug/Display.html?id=98004
@@ -14,7 +14,7 @@
   #include <sys/sysctl.h>
   #define _have_cpu_type
   #define _have_cpu_clock
-@@ -345,6 +345,17 @@ CODE:
+@@ -345,6 +345,27 @@ CODE:
      size_t len = sizeof(clock);
      sysctlbyname("hw.clockrate", &clock, &len, NULL, 0);
  #endif
@@ -26,13 +26,23 @@
 +        name = "machdep.powernow.frequency.current";
 +    else if (sysctlbyname("machdep.est.frequency.current", NULL, &len, NULL, 0) == 0)
 +        name = "machdep.est.frequency.current";
++    else if (sysctlbyname("machdep.loongson.frequency.current", NULL, &len, NULL, 0) == 0)
++        name = "machdep.loongson.frequency.current";
++    else if (sysctlbyname("machdep.intrepid.frequency.current", NULL, &len, NULL, 0) == 0)
++        name = "machdep.intrepid.frequency.current";
++    else if (sysctlbyname("machdep.cpufreq.cpu0.current", NULL, &len, NULL, 0) == 0)
++        name = "machdep.cpufreq.cpu0.current";
++    else if (sysctlbyname("machdep.cpu.frequency.current", NULL, &len, NULL, 0) == 0)
++        name = "machdep.cpu.frequency.current";
++    else if (sysctlbyname("machdep.frequency.current", NULL, &len, NULL, 0) == 0)
++        name = "machdep.frequency.current";
 +
 +    sysctlbyname(name, &clock, &len, NULL, 0);
 +#endif
  #ifdef WINDOWS
      char *clock_str = malloc(MAX_IDENT_SIZE);
      /*!! untested !!*/
-@@ -394,6 +405,11 @@ CODE:
+@@ -394,6 +415,11 @@ CODE:
      size_t len = MAX_IDENT_SIZE;
      sysctlbyname("hw.model", value, &len, NULL, 0);
  #endif



Home | Main Index | Thread Index | Old Index