pkgsrc-Changes archive

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

CVS commit: pkgsrc/geography/libnova



Module Name:    pkgsrc
Committed By:   jperkin
Date:           Mon Jun 10 10:50:33 UTC 2024

Modified Files:
        pkgsrc/geography/libnova: distinfo
Added Files:
        pkgsrc/geography/libnova/patches: patch-src_julian__day.c

Log Message:
libnova: Fix build on SunOS.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 pkgsrc/geography/libnova/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/geography/libnova/patches/patch-src_julian__day.c

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

Modified files:

Index: pkgsrc/geography/libnova/distinfo
diff -u pkgsrc/geography/libnova/distinfo:1.6 pkgsrc/geography/libnova/distinfo:1.7
--- pkgsrc/geography/libnova/distinfo:1.6       Tue Oct 26 10:45:11 2021
+++ pkgsrc/geography/libnova/distinfo   Mon Jun 10 10:50:32 2024
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.6 2021/10/26 10:45:11 nia Exp $
+$NetBSD: distinfo,v 1.7 2024/06/10 10:50:32 jperkin Exp $
 
 BLAKE2s (libnova-0.15.0.tar.gz) = ec96b7b6ee6d6bcbc72657722bf7f66ff3e180fe1c0bc140628d5097296d30b5
 SHA512 (libnova-0.15.0.tar.gz) = 77ab0ccbfe462c03a21e88656cb4d6389994ea1da0ee8da997f19a83d24ad8fd9e505e70e1580b75332e826e5b7859b5f2af4417f65eb811440493ba586f2574
 Size (libnova-0.15.0.tar.gz) = 1533794 bytes
+SHA1 (patch-src_julian__day.c) = 94114ed1e49a2a4eb426cdda33ed4290c362fd6d

Added files:

Index: pkgsrc/geography/libnova/patches/patch-src_julian__day.c
diff -u /dev/null pkgsrc/geography/libnova/patches/patch-src_julian__day.c:1.1
--- /dev/null   Mon Jun 10 10:50:33 2024
+++ pkgsrc/geography/libnova/patches/patch-src_julian__day.c    Mon Jun 10 10:50:32 2024
@@ -0,0 +1,18 @@
+$NetBSD: patch-src_julian__day.c,v 1.1 2024/06/10 10:50:32 jperkin Exp $
+
+SunOS does not have gmtoff.
+
+--- src/julian_day.c.orig      2024-06-10 10:48:17.096625904 +0000
++++ src/julian_day.c
+@@ -298,7 +298,11 @@ void ln_get_local_date (double JD, struc
+ #else
+       curtime = time (NULL);
+       loctime = localtime(&curtime);
++#ifdef __sun
++      gmtoff = 0;
++#else
+       gmtoff = loctime->tm_gmtoff;
++#endif
+       // otherwise there is no reasonable way how to get that:(
+       // tm_gmtoff already included DST
+ #endif



Home | Main Index | Thread Index | Old Index