pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/libtai



Module Name:    pkgsrc
Committed By:   nia
Date:           Tue Mar 17 14:58:31 UTC 2026

Modified Files:
        pkgsrc/devel/libtai: distinfo
        pkgsrc/devel/libtai/patches: patch-leapsecs__read.c
Added Files:
        pkgsrc/devel/libtai/patches: patch-check.c patch-easter.c
            patch-leapsecs.c patch-nowutc.c patch-yearcal.c

Log Message:
libtai: Fix building with recent GCC.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 pkgsrc/devel/libtai/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/libtai/patches/patch-check.c \
    pkgsrc/devel/libtai/patches/patch-easter.c \
    pkgsrc/devel/libtai/patches/patch-leapsecs.c \
    pkgsrc/devel/libtai/patches/patch-nowutc.c \
    pkgsrc/devel/libtai/patches/patch-yearcal.c
cvs rdiff -u -r1.2 -r1.3 pkgsrc/devel/libtai/patches/patch-leapsecs__read.c

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

Modified files:

Index: pkgsrc/devel/libtai/distinfo
diff -u pkgsrc/devel/libtai/distinfo:1.11 pkgsrc/devel/libtai/distinfo:1.12
--- pkgsrc/devel/libtai/distinfo:1.11   Tue Oct 26 10:15:29 2021
+++ pkgsrc/devel/libtai/distinfo        Tue Mar 17 14:58:30 2026
@@ -1,9 +1,14 @@
-$NetBSD: distinfo,v 1.11 2021/10/26 10:15:29 nia Exp $
+$NetBSD: distinfo,v 1.12 2026/03/17 14:58:30 nia Exp $
 
 BLAKE2s (libtai-0.60.tar.gz) = 5ecaf311bdcfb2466409d46f8965075dd6f05c375821f6de1c51b62c6ac1c121
 SHA512 (libtai-0.60.tar.gz) = e3e6e3e46f3cb869bcd661b0c87aa63116fb0c795078a4e194cffa7fd5425ae322af2c17e8ef37799dad7bac93a72b2e458e9dbd80d825857403060e71ad26b7
 Size (libtai-0.60.tar.gz) = 17300 bytes
 SHA1 (patch-Makefile) = 738372e27b6391b033c3c90f09bba5be8a0f5dde
+SHA1 (patch-check.c) = 7a064931dd84face4837b04f38668a7d929cc0bb
+SHA1 (patch-easter.c) = f93f80e19f1f45734f2b112bcb4e7d48d53f7216
 SHA1 (patch-leapsecs.3) = 537c8c8a03a89b0f8af8d2ecc539e60c7cf15560
+SHA1 (patch-leapsecs.c) = d18a6dc15e8b195ec818e176d2a2093f2c00f240
 SHA1 (patch-leapsecs.txt) = 69707a6ada0d40435154241cff6fbf1aeeb0099a
-SHA1 (patch-leapsecs__read.c) = 064ba81ef40d9dd4bd18f9e1064ce2737517f45b
+SHA1 (patch-leapsecs__read.c) = ef08f731460a62f467502eb4f2221b0171a5aae7
+SHA1 (patch-nowutc.c) = 830586a38d45ed69c92dfb23c5ea31ad46c28a8c
+SHA1 (patch-yearcal.c) = 7e3b11bb385d9cfa81e803c05f4f28984d66bd35

Index: pkgsrc/devel/libtai/patches/patch-leapsecs__read.c
diff -u pkgsrc/devel/libtai/patches/patch-leapsecs__read.c:1.2 pkgsrc/devel/libtai/patches/patch-leapsecs__read.c:1.3
--- pkgsrc/devel/libtai/patches/patch-leapsecs__read.c:1.2      Mon Jun 26 01:06:08 2017
+++ pkgsrc/devel/libtai/patches/patch-leapsecs__read.c  Tue Mar 17 14:58:30 2026
@@ -1,19 +1,20 @@
-$NetBSD: patch-leapsecs__read.c,v 1.2 2017/06/26 01:06:08 schmonz Exp $
+$NetBSD: patch-leapsecs__read.c,v 1.3 2026/03/17 14:58:30 nia Exp $
 
 #include <unistd.h> in leapsecs_read.c so we can read leapsecs.dat.
 Respect PKG_SYSCONFDIR.
 
 --- leapsecs_read.c.orig       1998-10-13 16:52:20.000000000 +0000
 +++ leapsecs_read.c
-@@ -2,6 +2,7 @@
+@@ -2,6 +2,8 @@
  #include <sys/stat.h>
  #include <fcntl.h>
  #include <errno.h>
 +#include <unistd.h>
++#include <stdlib.h>
  extern int errno;
  #include "tai.h"
  #include "leapsecs.h"
-@@ -18,7 +19,7 @@ int leapsecs_read()
+@@ -18,7 +20,7 @@ int leapsecs_read()
    int i;
    struct tai u;
  

Added files:

Index: pkgsrc/devel/libtai/patches/patch-check.c
diff -u /dev/null pkgsrc/devel/libtai/patches/patch-check.c:1.1
--- /dev/null   Tue Mar 17 14:58:31 2026
+++ pkgsrc/devel/libtai/patches/patch-check.c   Tue Mar 17 14:58:30 2026
@@ -0,0 +1,20 @@
+$NetBSD: patch-check.c,v 1.1 2026/03/17 14:58:30 nia Exp $
+
+ANSIfy.
+
+--- check.c.orig       2026-03-17 14:48:54.718452452 +0000
++++ check.c
+@@ -1,4 +1,5 @@
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <time.h>
+ #include "tai.h"
+ #include "leapsecs.h"
+@@ -11,6 +12,7 @@ char *dayname[7] = { "Sun", "Mon", "Tue"
+ char out[101];
+ char x[TAI_PACK];
+ 
++int
+ main()
+ {
+   struct tai t;
Index: pkgsrc/devel/libtai/patches/patch-easter.c
diff -u /dev/null pkgsrc/devel/libtai/patches/patch-easter.c:1.1
--- /dev/null   Tue Mar 17 14:58:31 2026
+++ pkgsrc/devel/libtai/patches/patch-easter.c  Tue Mar 17 14:58:30 2026
@@ -0,0 +1,23 @@
+$NetBSD: patch-easter.c,v 1.1 2026/03/17 14:58:30 nia Exp $
+
+ANSIfy.
+
+--- easter.c.orig      2026-03-17 14:48:43.284644903 +0000
++++ easter.c
+@@ -1,13 +1,13 @@
+ #include <stdio.h>
++#include <stdlib.h>
+ #include "caldate.h"
+ 
+ char *dayname[7] = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" } ;
+ 
+ char out[101];
+ 
+-main(argc,argv)
+-int argc;
+-char **argv;
++int
++main(int argc, char **argv)
+ {
+   struct caldate cd;
+   long day;
Index: pkgsrc/devel/libtai/patches/patch-leapsecs.c
diff -u /dev/null pkgsrc/devel/libtai/patches/patch-leapsecs.c:1.1
--- /dev/null   Tue Mar 17 14:58:31 2026
+++ pkgsrc/devel/libtai/patches/patch-leapsecs.c        Tue Mar 17 14:58:30 2026
@@ -0,0 +1,20 @@
+$NetBSD: patch-leapsecs.c,v 1.1 2026/03/17 14:58:30 nia Exp $
+
+ANSIfy.
+
+--- leapsecs.c.orig    2026-03-17 14:45:27.142514914 +0000
++++ leapsecs.c
+@@ -1,4 +1,5 @@
+ #include <stdio.h>
++#include <stdlib.h>
+ #include "tai.h"
+ #include "leapsecs.h"
+ #include "caldate.h"
+@@ -9,6 +10,7 @@
+ 
+ char line[100];
+ 
++int
+ main()
+ {
+   struct caldate cd;
Index: pkgsrc/devel/libtai/patches/patch-nowutc.c
diff -u /dev/null pkgsrc/devel/libtai/patches/patch-nowutc.c:1.1
--- /dev/null   Tue Mar 17 14:58:31 2026
+++ pkgsrc/devel/libtai/patches/patch-nowutc.c  Tue Mar 17 14:58:30 2026
@@ -0,0 +1,20 @@
+$NetBSD: patch-nowutc.c,v 1.1 2026/03/17 14:58:30 nia Exp $
+
+ANSIfy.
+
+--- nowutc.c.orig      2026-03-17 14:46:08.956924034 +0000
++++ nowutc.c
+@@ -1,4 +1,5 @@
+ #include <stdio.h>
++#include <stdlib.h>
+ #include "leapsecs.h"
+ #include "tai.h"
+ #include "taia.h"
+@@ -10,6 +11,7 @@ struct caltime ct;
+ 
+ char x[TAIA_FMTFRAC];
+ 
++int
+ main()
+ {
+   if (leapsecs_init() == -1) {
Index: pkgsrc/devel/libtai/patches/patch-yearcal.c
diff -u /dev/null pkgsrc/devel/libtai/patches/patch-yearcal.c:1.1
--- /dev/null   Tue Mar 17 14:58:31 2026
+++ pkgsrc/devel/libtai/patches/patch-yearcal.c Tue Mar 17 14:58:31 2026
@@ -0,0 +1,23 @@
+$NetBSD: patch-yearcal.c,v 1.1 2026/03/17 14:58:31 nia Exp $
+
+ANSIfy.
+
+--- yearcal.c.orig     2026-03-17 14:45:52.086768142 +0000
++++ yearcal.c
+@@ -1,4 +1,5 @@
+ #include <stdio.h>
++#include <stdlib.h>
+ #include "caldate.h"
+ 
+ char *montab[] = {
+@@ -16,9 +17,7 @@ char *montab[] = {
+ , "December"
+ } ;
+ 
+-void main(argc,argv)
+-int argc;
+-char **argv;
++int main(int argc, char **argv)
+ {
+   int year;
+   long daystart;



Home | Main Index | Thread Index | Old Index