pkgsrc-Changes archive

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

CVS commit: pkgsrc/sysutils/fastfetch



Module Name:    pkgsrc
Committed By:   vins
Date:           Sun Jan 26 09:14:05 UTC 2025

Modified Files:
        pkgsrc/sysutils/fastfetch: Makefile distinfo
        pkgsrc/sysutils/fastfetch/patches:
            patch-src_detection_sound_sound__bsd.c

Log Message:
fastfetch: more verbosity (sound patch)


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 pkgsrc/sysutils/fastfetch/Makefile
cvs rdiff -u -r1.8 -r1.9 pkgsrc/sysutils/fastfetch/distinfo
cvs rdiff -u -r1.2 -r1.3 \
    pkgsrc/sysutils/fastfetch/patches/patch-src_detection_sound_sound__bsd.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/fastfetch/Makefile
diff -u pkgsrc/sysutils/fastfetch/Makefile:1.9 pkgsrc/sysutils/fastfetch/Makefile:1.10
--- pkgsrc/sysutils/fastfetch/Makefile:1.9      Sat Jan 25 22:16:08 2025
+++ pkgsrc/sysutils/fastfetch/Makefile  Sun Jan 26 09:14:05 2025
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.9 2025/01/25 22:16:08 vins Exp $
+# $NetBSD: Makefile,v 1.10 2025/01/26 09:14:05 vins Exp $
 
 DISTNAME=      fastfetch-2.34.1
-PKGREVISION=   3
+PKGREVISION=   4
 CATEGORIES=    sysutils
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=fastfetch-cli/}
 GITHUB_TAG=    ${PKGVERSION_NOREV}

Index: pkgsrc/sysutils/fastfetch/distinfo
diff -u pkgsrc/sysutils/fastfetch/distinfo:1.8 pkgsrc/sysutils/fastfetch/distinfo:1.9
--- pkgsrc/sysutils/fastfetch/distinfo:1.8      Sat Jan 25 23:55:10 2025
+++ pkgsrc/sysutils/fastfetch/distinfo  Sun Jan 26 09:14:05 2025
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.8 2025/01/25 23:55:10 vins Exp $
+$NetBSD: distinfo,v 1.9 2025/01/26 09:14:05 vins Exp $
 
 BLAKE2s (fastfetch-2.34.1.tar.gz) = a5e6fc60ee3376e5f054e12ce209bc3e4f4b7d2118b76d5ede064873e85620d7
 SHA512 (fastfetch-2.34.1.tar.gz) = 026b71c8d6ad5d5683ededf173d4cb2e936b3e934c7f27227fa7c5f665b9628717e90413626a4fab25fa5f5fde50cae6cdeb75621d6a2cac1ca6368c943293de
 Size (fastfetch-2.34.1.tar.gz) = 1168310 bytes
 SHA1 (patch-CMakeLists.txt) = e0a5e9758d0aac9c908b645116b2f44fb079eeb8
 SHA1 (patch-src_detection_disk_disk__bsd.c) = 807794a5c46963813e82dbb0af11668ad468bc0c
-SHA1 (patch-src_detection_sound_sound__bsd.c) = 6b20787d6cba718590dd68cd3823412718169577
+SHA1 (patch-src_detection_sound_sound__bsd.c) = 7f043f7bc5456b5a7696b8cfbc3f4d3eb5caf4e2

Index: pkgsrc/sysutils/fastfetch/patches/patch-src_detection_sound_sound__bsd.c
diff -u pkgsrc/sysutils/fastfetch/patches/patch-src_detection_sound_sound__bsd.c:1.2 pkgsrc/sysutils/fastfetch/patches/patch-src_detection_sound_sound__bsd.c:1.3
--- pkgsrc/sysutils/fastfetch/patches/patch-src_detection_sound_sound__bsd.c:1.2        Sat Jan 25 23:55:10 2025
+++ pkgsrc/sysutils/fastfetch/patches/patch-src_detection_sound_sound__bsd.c    Sun Jan 26 09:14:05 2025
@@ -1,11 +1,11 @@
-$NetBSD: patch-src_detection_sound_sound__bsd.c,v 1.2 2025/01/25 23:55:10 vins Exp $
+$NetBSD: patch-src_detection_sound_sound__bsd.c,v 1.3 2025/01/26 09:14:05 vins Exp $
 
 * Default sound unit detection on NetBSD, via audiocfg(1). 
 * Fix undefined macros on NetBSD.
 
 --- src/detection/sound/sound_bsd.c.orig       2025-01-13 07:57:52.000000000 +0000
 +++ src/detection/sound/sound_bsd.c
-@@ -5,13 +5,38 @@
+@@ -5,13 +5,39 @@
  #include <fcntl.h>
  #include <sys/soundcard.h>
  
@@ -34,8 +34,9 @@ $NetBSD: patch-src_detection_sound_sound
 +        return "popen() failed";
 +
 +    while (fgets(buf, sizeof buf, f) != NULL) {
-+        if ((defaultDev = strtol(buf, NULL, 10)) != -1)
-+          continue;
++      defaultDev = strtol(buf, NULL, 10);
++        if (defaultDev == -1)
++          return "audiocfg: failed to get default sound unit";
 +
 +    if (pclose(f) != 0)
 +        return "pclose() failed";
@@ -44,7 +45,7 @@ $NetBSD: patch-src_detection_sound_sound
  
      for (int idev = 0; idev <= 9; ++idev)
      {
-@@ -26,7 +51,7 @@ const char* ffDetectSound(FFlist* device
+@@ -26,7 +52,7 @@ const char* ffDetectSound(FFlist* device
              continue;
  
          uint32_t mutemask = 0;



Home | Main Index | Thread Index | Old Index