pkgsrc-Changes archive

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

CVS commit: pkgsrc/graphics/scrot



Module Name:    pkgsrc
Committed By:   jperkin
Date:           Tue Jul  4 15:05:20 UTC 2023

Modified Files:
        pkgsrc/graphics/scrot: distinfo
Added Files:
        pkgsrc/graphics/scrot/patches: patch-src_scrot.c

Log Message:
scrot: Pull in upstream fix for lack of dprintf().


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 pkgsrc/graphics/scrot/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/graphics/scrot/patches/patch-src_scrot.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/graphics/scrot/distinfo
diff -u pkgsrc/graphics/scrot/distinfo:1.16 pkgsrc/graphics/scrot/distinfo:1.17
--- pkgsrc/graphics/scrot/distinfo:1.16 Wed Jun 14 17:27:21 2023
+++ pkgsrc/graphics/scrot/distinfo      Tue Jul  4 15:05:19 2023
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.16 2023/06/14 17:27:21 pin Exp $
+$NetBSD: distinfo,v 1.17 2023/07/04 15:05:19 jperkin Exp $
 
 BLAKE2s (scrot-1.10.tar.gz) = dae2347f7e2bb8ba640af66dec24727a76236fb70f0fd92f3b3585d82b4d331c
 SHA512 (scrot-1.10.tar.gz) = 4429c46aafd0928901672cad9c947566b7c5dfec644d041c59489325be06d226488978fe96292bf3d9b478470c8de4313da4451eace81ee869e8aa7e478b0d5f
 Size (scrot-1.10.tar.gz) = 178710 bytes
+SHA1 (patch-src_scrot.c) = 71d803dda4912f7f4e5f82534f1f1e27ce547dbe

Added files:

Index: pkgsrc/graphics/scrot/patches/patch-src_scrot.c
diff -u /dev/null pkgsrc/graphics/scrot/patches/patch-src_scrot.c:1.1
--- /dev/null   Tue Jul  4 15:05:20 2023
+++ pkgsrc/graphics/scrot/patches/patch-src_scrot.c     Tue Jul  4 15:05:20 2023
@@ -0,0 +1,24 @@
+$NetBSD: patch-src_scrot.c,v 1.1 2023/07/04 15:05:20 jperkin Exp $
+
+Pull in upstream fixes for platforms that lack dprintf().
+
+--- src/scrot.c.orig   2023-06-10 17:55:55.000000000 +0000
++++ src/scrot.c
+@@ -332,12 +332,14 @@ void scrotDoDelay(void)
+     if (!opt.delay)
+         return;
+     if (opt.countdown) {
+-        dprintf(STDERR_FILENO, "Taking shot in ");
++        fputs("Taking shot in ", stderr);
+         for (int i = opt.delay; i > 0; i--) {
+-            dprintf(STDERR_FILENO, "%d.. ", i);
++            fprintf(stderr, "%d.. ", i);
++            fflush(stderr);
+             opt.delayStart = scrotSleepFor(opt.delayStart, 1000);
+         }
+-        dprintf(STDERR_FILENO, "0.\n");
++        fputs("0.\n", stderr);
++        fflush(stderr);
+     } else {
+         scrotSleepFor(opt.delayStart, opt.delay * 1000);
+     }



Home | Main Index | Thread Index | Old Index