svn commit: r553710 - in head/deskutils/calendar: . files
Stefan Eßer
se at FreeBSD.org
Fri Oct 30 18:23:59 UTC 2020
Author: se
Date: Fri Oct 30 18:23:58 2020
New Revision: 553710
URL: https://svnweb.freebsd.org/changeset/ports/553710
Log:
Upgrade to to FreeBSD base SVN revision r367173
The order of events printed was reversed due to the way a link list was
updated. This version prints the events in the order they appear in in
the data file.
Added:
head/deskutils/calendar/files/patch-dates.c (contents, props changed)
head/deskutils/calendar/files/patch-tests_regress.s5.out (contents, props changed)
Modified:
head/deskutils/calendar/Makefile
head/deskutils/calendar/distinfo
Modified: head/deskutils/calendar/Makefile
==============================================================================
--- head/deskutils/calendar/Makefile Fri Oct 30 18:21:59 2020 (r553709)
+++ head/deskutils/calendar/Makefile Fri Oct 30 18:23:58 2020 (r553710)
@@ -1,7 +1,7 @@
# $FreeBSD$
PORTNAME= calendar
-DISTVERSION= 0.5
+DISTVERSION= 0.6
CATEGORIES= deskutils
MAINTAINER= se at FreeBSD.org
@@ -15,7 +15,7 @@ USE_GITHUB= yes
GH_ACCOUNT= bsdimp
GH_TAGNAME= fcc5d31
-CFLAGS+= -D_PATH_LOCALBASE=\"${LOCALBASE}\" -g -O0 # -DDEBUG
+CFLAGS+= -D_PATH_LOCALBASE=\"${LOCALBASE}\"
LDFLAGS+= -lm -lutil
PLIST_FILES= bin/calendar \
Modified: head/deskutils/calendar/distinfo
==============================================================================
--- head/deskutils/calendar/distinfo Fri Oct 30 18:21:59 2020 (r553709)
+++ head/deskutils/calendar/distinfo Fri Oct 30 18:23:58 2020 (r553710)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1604068556
-SHA256 (bsdimp-calendar-0.5-fcc5d31_GH0.tar.gz) = ad7d0b51c4b834241aebbf6c50d187e5720f6c46c02615b27841a923e082aebc
-SIZE (bsdimp-calendar-0.5-fcc5d31_GH0.tar.gz) = 132824
+TIMESTAMP = 1604081560
+SHA256 (bsdimp-calendar-0.6-fcc5d31_GH0.tar.gz) = ad7d0b51c4b834241aebbf6c50d187e5720f6c46c02615b27841a923e082aebc
+SIZE (bsdimp-calendar-0.6-fcc5d31_GH0.tar.gz) = 132824
Added: head/deskutils/calendar/files/patch-dates.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/deskutils/calendar/files/patch-dates.c Fri Oct 30 18:23:58 2020 (r553710)
@@ -0,0 +1,35 @@
+--- dates.c.orig 2020-10-18 03:01:26 UTC
++++ dates.c
+@@ -28,7 +28,7 @@
+ */
+
+ #include <sys/cdefs.h>
+-__FBSDID("$FreeBSD$");
++__FBSDID("$FreeBSD: head/usr.bin/calendar/dates.c 367173 2020-10-30 15:43:52Z se $");
+
+ #include <stdio.h>
+ #include <stdlib.h>
+@@ -64,6 +64,7 @@ struct cal_day {
+ struct cal_month *month; /* points back */
+ struct cal_year *year; /* points back */
+ struct event *events;
++ struct event *lastevent;
+ };
+
+ int debug_remember = 0;
+@@ -446,8 +447,13 @@ void
+ addtodate(struct event *e, int year, int month, int day)
+ {
+ struct cal_day *d;
++ struct event *ee;
+
+ d = find_day(year, month, day);
+- e->next = d->events;
+- d->events = e;
++ ee = d->lastevent;
++ if (ee != NULL)
++ ee->next = e;
++ else
++ d->events = e;
++ d->lastevent = e;
+ }
Added: head/deskutils/calendar/files/patch-tests_regress.s5.out
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/deskutils/calendar/files/patch-tests_regress.s5.out Fri Oct 30 18:23:58 2020 (r553710)
@@ -0,0 +1,7 @@
+--- tests/regress.s5.out.orig 2020-10-18 03:01:26 UTC
++++ tests/regress.s5.out
+@@ -1,3 +1,3 @@
+-Jun 21* sunthird
+ Jun 21 jun 21
++Jun 21* sunthird
+ Jun 22 jun 22
More information about the svn-ports-all
mailing list