pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/net/telescope
Module Name: pkgsrc
Committed By: vins
Date: Mon Sep 8 09:52:02 UTC 2025
Modified Files:
pkgsrc/net/telescope: Makefile distinfo
Added Files:
pkgsrc/net/telescope/patches: patch-dprintf.h patch-ui.c
Log Message:
net/telescope: fix build on SunOS.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 pkgsrc/net/telescope/Makefile
cvs rdiff -u -r1.2 -r1.3 pkgsrc/net/telescope/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/net/telescope/patches/patch-dprintf.h \
pkgsrc/net/telescope/patches/patch-ui.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/net/telescope/Makefile
diff -u pkgsrc/net/telescope/Makefile:1.3 pkgsrc/net/telescope/Makefile:1.4
--- pkgsrc/net/telescope/Makefile:1.3 Sat Jul 26 21:41:39 2025
+++ pkgsrc/net/telescope/Makefile Mon Sep 8 09:52:02 2025
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.3 2025/07/26 21:41:39 vins Exp $
+# $NetBSD: Makefile,v 1.4 2025/09/08 09:52:02 vins Exp $
DISTNAME= telescope-0.11
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= net
MASTER_SITES= https://ftp.telescope-browser.org/
@@ -16,10 +16,13 @@ USE_TOOLS+= autoconf automake autoreconf
USE_CURSES= wide
FAKE_NCURSES= yes
-CFLAGS.NetBSD+= -D_OPENBSD_SOURCE # strtonum()
-CFLAGS.SunOS+= -D__EXTENSIONS__ -D_XOPEN_SOURCE=600 # CMSG_ functions
+CFLAGS.NetBSD+= -D_OPENBSD_SOURCE # strtonum()
+CFLAGS.SunOS+= -D__EXTENSIONS__ -D_XOPEN_SOURCE=600 # CMSG_ functions
LDFLAGS.SunOS+= -lxnet
+# Do not warn about deprecated declarations when using OpenSSL 3.x
+CFLAGS+= -Wno-deprecated-declarations
+
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= YACC=${YACC:Q}
CONFIGURE_ARGS+= --with-default-editor=vi
Index: pkgsrc/net/telescope/distinfo
diff -u pkgsrc/net/telescope/distinfo:1.2 pkgsrc/net/telescope/distinfo:1.3
--- pkgsrc/net/telescope/distinfo:1.2 Sat Jul 26 21:41:39 2025
+++ pkgsrc/net/telescope/distinfo Mon Sep 8 09:52:02 2025
@@ -1,9 +1,11 @@
-$NetBSD: distinfo,v 1.2 2025/07/26 21:41:39 vins Exp $
+$NetBSD: distinfo,v 1.3 2025/09/08 09:52:02 vins Exp $
BLAKE2s (telescope-0.11.tar.gz) = a94ae8dae9f95ba47d17d6a5a081cb55dce9167ada16cba46b110cfd00bbae95
SHA512 (telescope-0.11.tar.gz) = d00b94b3f31e05d0ad2223e79c1259786fc722adab38978ce4dbd0c4e99d3a3e5ef605037a0104cebb438779c0accaebfcc52c5e27c77b87a8095e26486d5d93
Size (telescope-0.11.tar.gz) = 1159443 bytes
SHA1 (patch-certs.c) = 23e400841e53d4b42f4b4825d101aac099f1f3b2
SHA1 (patch-control.c) = d90efd407d5e5b72726ace34510df23cbc806db7
+SHA1 (patch-dprintf.h) = e94f6b8916b8b052939d4d239065e9cad75e6acb
SHA1 (patch-fs.c) = 80ed55e5632839bfd4ccd06f6b3503ee47b20459
SHA1 (patch-telescope.c) = 9a3f75c9414eab042cb41dc4ad6537d867551d34
+SHA1 (patch-ui.c) = a210541f64991025c9216a680432ee547915f98a
Added files:
Index: pkgsrc/net/telescope/patches/patch-dprintf.h
diff -u /dev/null pkgsrc/net/telescope/patches/patch-dprintf.h:1.1
--- /dev/null Mon Sep 8 09:52:03 2025
+++ pkgsrc/net/telescope/patches/patch-dprintf.h Mon Sep 8 09:52:02 2025
@@ -0,0 +1,11 @@
+$NetBSD: patch-dprintf.h,v 1.1 2025/09/08 09:52:02 vins Exp $
+
+Solaris before 11.4 lacks dprintf().
+Provide a local implementation.
+
+--- dprintf.h.orig 2025-09-08 09:10:17.612928006 +0000
++++ dprintf.h
+@@ -0,0 +1,3 @@
++#include <stdarg.h>
++
++extern int dprintf(int fd, const char *restrict format, ...);
Index: pkgsrc/net/telescope/patches/patch-ui.c
diff -u /dev/null pkgsrc/net/telescope/patches/patch-ui.c:1.1
--- /dev/null Mon Sep 8 09:52:03 2025
+++ pkgsrc/net/telescope/patches/patch-ui.c Mon Sep 8 09:52:02 2025
@@ -0,0 +1,49 @@
+$NetBSD: patch-ui.c,v 1.1 2025/09/08 09:52:02 vins Exp $
+
+Support dprintf() on SunOS.
+
+--- ui.c.orig 2024-12-30 09:09:40.000000000 +0000
++++ ui.c
+@@ -1,4 +1,4 @@
+-/*
++#define _XPG7 1/*
+ * Copyright (c) 2021, 2024 Omar Polo <op%omarpolo.com@localhost>
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+@@ -32,6 +32,12 @@
+
+ #include "compat.h"
+
++#if defined(__illumos__)
++#define _XPG7 1
++#elif defined(__sun)
++#include "dprintf.h"
++#endif
++
+ #include <sys/time.h>
+ #include <sys/wait.h>
+
+@@ -122,6 +128,23 @@ static struct timeval loading_tv = { 0,
+
+ static char keybuf[64];
+
++#if defined(__sun) && !defined(__illumos__)
++int
++dprintf(int fd, const char *restrict format, ...)
++{
++ va_list ap;
++ FILE *f = fdopen(fd, "w");
++ if (!f) {
++ return -1;
++ }
++ va_start(ap, format);
++ int result = fprintf(f, format, ap);
++ va_end(ap);
++
++ return result;
++}
++#endif
++
+ /* XXX: don't forget to init these in main() */
+ struct kmap global_map,
+ minibuffer_map,
Home |
Main Index |
Thread Index |
Old Index