Received: by mail.netbsd.org (Postfix, from userid 605) id 39C7384EC3; Tue, 28 Sep 2021 23:31:06 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 74D3984D84 for ; Tue, 28 Sep 2021 23:31:05 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id cC4Sse812581 for ; Tue, 28 Sep 2021 23:31:04 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id D6E9F84CED for ; Tue, 28 Sep 2021 23:31:04 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id CFFA5FA97; Tue, 28 Sep 2021 23:31:04 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1632871864256110" MIME-Version: 1.0 Date: Tue, 28 Sep 2021 23:31:04 +0000 From: "Sijmen J. Mulder" Subject: CVS commit: pkgsrc/sysutils/nnn To: pkgsrc-changes@NetBSD.org Reply-To: sjmulder@netbsd.org X-Mailer: log_accum Message-Id: <20210928233104.CFFA5FA97@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1632871864256110 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: sjmulder Date: Tue Sep 28 23:31:04 UTC 2021 Modified Files: pkgsrc/sysutils/nnn: distinfo Added Files: pkgsrc/sysutils/nnn/patches: patch-src_nnn.c Log Message: sysutils/nnn: Supply dprintf() on Solaris to fix build To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 pkgsrc/sysutils/nnn/distinfo cvs rdiff -u -r0 -r1.4 pkgsrc/sysutils/nnn/patches/patch-src_nnn.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1632871864256110 Content-Disposition: inline Content-Length: 1865 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/sysutils/nnn/distinfo diff -u pkgsrc/sysutils/nnn/distinfo:1.20 pkgsrc/sysutils/nnn/distinfo:1.21 --- pkgsrc/sysutils/nnn/distinfo:1.20 Mon Jul 26 20:11:50 2021 +++ pkgsrc/sysutils/nnn/distinfo Tue Sep 28 23:31:04 2021 @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.20 2021/07/26 20:11:50 fcambus Exp $ +$NetBSD: distinfo,v 1.21 2021/09/28 23:31:04 sjmulder Exp $ SHA1 (nnn-4.2.tar.gz) = 53d3bc842e10f3bff87ee44f5fcc2347f22ed311 RMD160 (nnn-4.2.tar.gz) = a7c91f4aa7d73e5e275d2f0b4611cada613af2cb SHA512 (nnn-4.2.tar.gz) = 4d3ee102ad4d0067b40aec5e3b68fcd802ed4c5a9586b1e4cc81ea3525dd4190561887b0db4a1385adff699a095c9cf6de56a96e031db97f93e5bc7209422cd3 Size (nnn-4.2.tar.gz) = 229745 bytes +SHA1 (patch-src_nnn.c) = e7ea87e3584f3d19385df434a98868ac2e008e6a Added files: Index: pkgsrc/sysutils/nnn/patches/patch-src_nnn.c diff -u /dev/null pkgsrc/sysutils/nnn/patches/patch-src_nnn.c:1.4 --- /dev/null Tue Sep 28 23:31:04 2021 +++ pkgsrc/sysutils/nnn/patches/patch-src_nnn.c Tue Sep 28 23:31:04 2021 @@ -0,0 +1,43 @@ +$NetBSD: patch-src_nnn.c,v 1.4 2021/09/28 23:31:04 sjmulder Exp $ + +dprintf() polyfill for Solaris + +--- src/nnn.c.orig 2021-09-28 23:10:13.183444540 +0000 ++++ src/nnn.c +@@ -117,6 +117,10 @@ + #define alloca(size) __builtin_alloca(size) + #endif + ++#ifdef __sun ++#define NEED_DPRINTF ++#endif ++ + #include "nnn.h" + #include "dbg.h" + +@@ -834,6 +838,25 @@ static void notify_fifo(bool force); + + /* Functions */ + ++#ifdef NEED_DPRINTF ++static int dprintf(int fd, const char *format, ...) ++{ ++ va_list ap; ++ char *s; ++ ++ va_start(ap, format); ++ if (vasprintf(&s, format, ap) == -1) ++ { va_end(ap); return -1; } ++ va_end(ap); ++ ++ if (write(fd, s, strlen(s)) == -1) ++ { free(s); return -1; } ++ ++ free(s); ++ return 0; ++} ++#endif ++ + static void sigint_handler(int sig) + { + (void) sig; --_----------=_1632871864256110--