pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/x11/xephem
Module Name: pkgsrc
Committed By: gdt
Date: Sat Jan 31 18:10:10 UTC 2026
Modified Files:
pkgsrc/x11/xephem: distinfo
Added Files:
pkgsrc/x11/xephem/patches: patch-homeio.c
Log Message:
x11/xephem: Add/fix wayward patch
To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 pkgsrc/x11/xephem/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/x11/xephem/patches/patch-homeio.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/x11/xephem/distinfo
diff -u pkgsrc/x11/xephem/distinfo:1.18 pkgsrc/x11/xephem/distinfo:1.19
--- pkgsrc/x11/xephem/distinfo:1.18 Sat Jan 31 18:05:27 2026
+++ pkgsrc/x11/xephem/distinfo Sat Jan 31 18:10:10 2026
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.18 2026/01/31 18:05:27 gdt Exp $
+$NetBSD: distinfo,v 1.19 2026/01/31 18:10:10 gdt Exp $
BLAKE2s (XEphem-4.2.0.tar.gz) = 28bfc97fcd86769c3e9926695e9c77ac19da95c2f5d162ad63bc928cb875b77a
SHA512 (XEphem-4.2.0.tar.gz) = 97756bc299821e95cbc06facc3091795feb245db033193fdf587bcfd7a83142a15552a1f8aa53c040c87cb75021424b94bbed5a747fb9783f5a0cac6fb4ddb3e
Size (XEphem-4.2.0.tar.gz) = 17317398 bytes
SHA1 (patch-aa) = f72467338392d2cfc6f9bfde07c3c4f1e0f259d0
-SHA1 (patch-homeio.c) = 351bce4a3d4ac6e89ca9c873269f20725dc984d3
+SHA1 (patch-homeio.c) = b2891558c607b1e0a57a5a786b8e399c5f9102e8
SHA1 (patch-tools_xedb_xedb.c) = 3f1310401f5eb49d35f90a25f99d7bccc05cd79d
Added files:
Index: pkgsrc/x11/xephem/patches/patch-homeio.c
diff -u /dev/null pkgsrc/x11/xephem/patches/patch-homeio.c:1.1
--- /dev/null Sat Jan 31 18:10:10 2026
+++ pkgsrc/x11/xephem/patches/patch-homeio.c Sat Jan 31 18:10:10 2026
@@ -0,0 +1,64 @@
+$NetBSD: patch-homeio.c,v 1.1 2026/01/31 18:10:10 gdt Exp $
+
+In part, patch path to app-defaults.
+
+Not submitted upstream until a) better understood and b) upstream
+maintenance status is clearer.
+
+--- homeio.c.orig 2024-02-13 14:35:36.000000000 +0000
++++ homeio.c
+@@ -11,6 +11,9 @@
+ #include <time.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
++#if defined(__STDC__)
++#include <errno.h>
++#endif
+
+ #include "xephem.h"
+
+@@ -192,31 +195,11 @@ tempfilename (char *buf, char *name, cha
+ char *
+ getShareDir()
+ {
+- static char *basedir;
+-
+- if (!basedir) {
+- char *th = getenv ("TELHOME");
+- if (th) {
+- basedir = malloc (strlen(th) + 10);
+- if (basedir) {
+- (void) sprintf (basedir, "%s/xephem", th);
+- if (existsh(basedir) < 0) {
+- (void) sprintf (basedir, "%s/archive", th);
+- if (existsh(basedir) < 0) {
+- free (basedir);
+- basedir = NULL;
+- }
+- }
+- }
+- }
+- if (!basedir) {
+- char *homebase = expand_home (getXRes ("ShareDir", "."));
+- basedir = strcpy(malloc(strlen(homebase)+1), homebase);
+- }
+- }
+-
+- return (basedir);
+-
++ /*
++ * pkgsrc: just use pkgsrc version, for now, because a twisty maze
++ * of Xt calls wrongly returns "." for no apparent reason
++ */
++ return("@SHAREDIR@");
+ }
+
+ /* return a string for whatever is in errno right now.
+@@ -227,7 +210,6 @@ syserrstr ()
+ {
+ #if defined(__STDC__)
+ /* some older gcc don't have strerror */
+-#include <errno.h>
+ return (strerror (errno));
+ #else
+ #if defined(VMS)
Home |
Main Index |
Thread Index |
Old Index