Hello community, here is the log from the commit of package scdoc for openSUSE:Factory checked in at 2020-02-18 10:38:21 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/scdoc (Old) and /work/SRC/openSUSE:Factory/.scdoc.new.26092 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "scdoc" Tue Feb 18 10:38:21 2020 rev:12 rq:774820 version:1.10.1 Changes: -------- --- /work/SRC/openSUSE:Factory/scdoc/scdoc.changes 2019-09-13 15:00:20.753282390 +0200 +++ /work/SRC/openSUSE:Factory/.scdoc.new.26092/scdoc.changes 2020-02-18 10:39:07.648788060 +0100 @@ -1,0 +2,9 @@ +Mon Feb 17 10:07:06 UTC 2020 - Michael Vetter <mvet...@suse.com> + +- Update to 1.10.1: + * Replace str_t with struct str + * Expand preamble written to man page output + * Fix timezone-dependent tests + * Fix `date --date` dependent test + +------------------------------------------------------------------- Old: ---- 1.10.0.tar.gz New: ---- 1.10.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ scdoc.spec ++++++ --- /var/tmp/diff_new_pack.kNyZNb/_old 2020-02-18 10:39:09.364791561 +0100 +++ /var/tmp/diff_new_pack.kNyZNb/_new 2020-02-18 10:39:09.372791578 +0100 @@ -1,7 +1,7 @@ # # spec file for package scdoc # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,12 +12,12 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: scdoc -Version: 1.10.0 +Version: 1.10.1 Release: 0 Summary: A man page generator written in C99 License: MIT ++++++ 1.10.0.tar.gz -> 1.10.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/scdoc-1.10.0/Makefile new/scdoc-1.10.1/Makefile --- old/scdoc-1.10.0/Makefile 2019-09-11 21:15:23.000000000 +0200 +++ new/scdoc-1.10.1/Makefile 2020-02-14 22:38:03.000000000 +0100 @@ -1,4 +1,4 @@ -VERSION=1.10.0 +VERSION=1.10.1 CFLAGS+=-g -DVERSION='"$(VERSION)"' -Wall -Wextra -Werror -Wno-unused-parameter LDFLAGS+=-static INCLUDE+=-Iinclude diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/scdoc-1.10.0/include/str.h new/scdoc-1.10.1/include/str.h --- old/scdoc-1.10.0/include/str.h 2019-09-11 21:15:23.000000000 +0200 +++ new/scdoc-1.10.1/include/str.h 2020-02-14 22:38:03.000000000 +0100 @@ -7,11 +7,9 @@ size_t len, size; }; -typedef struct str str_t; - -str_t *str_create(); -void str_free(str_t *str); -void str_reset(str_t *str); -int str_append_ch(str_t *str, uint32_t ch); +struct str *str_create(); +void str_free(struct str *str); +void str_reset(struct str *str); +int str_append_ch(struct str *str, uint32_t ch); #endif diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/scdoc-1.10.0/src/main.c new/scdoc-1.10.1/src/main.c --- old/scdoc-1.10.0/src/main.c 2019-09-11 21:15:23.000000000 +0200 +++ new/scdoc-1.10.1/src/main.c 2020-02-14 22:38:03.000000000 +0100 @@ -17,7 +17,7 @@ char *strerror(int errnum); static int parse_section(struct parser *p) { - str_t *section = str_create(); + struct str *section = str_create(); uint32_t ch; while ((ch = parser_getch(p)) != UTF8_INVALID) { if (ch < 0x80 && isdigit(ch)) { @@ -43,8 +43,8 @@ return -1; } -static str_t *parse_extra(struct parser *p) { - str_t *extra = str_create(); +static struct str *parse_extra(struct parser *p) { + struct str *extra = str_create(); int ret = str_append_ch(extra, '"'); assert(ret != -1); uint32_t ch; @@ -66,9 +66,9 @@ } static void parse_preamble(struct parser *p) { - str_t *name = str_create(); + struct str *name = str_create(); int ex = 0; - str_t *extras[2] = { NULL }; + struct str *extras[2] = { NULL }; int section = -1; uint32_t ch; time_t date_time; @@ -446,7 +446,7 @@ struct table_cell { enum table_align align; - str_t *contents; + struct str *contents; struct table_cell *next; }; @@ -717,6 +717,8 @@ static void output_scdoc_preamble(struct parser *p) { fprintf(p->output, ".\\\" Generated by scdoc " VERSION "\n"); + fprintf(p->output, ".\\\" Complete documentation for this program is not " + "available as a GNU info page\n"); // Fix weird quotation marks // http://bugs.debian.org/507673 // http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/scdoc-1.10.0/src/string.c new/scdoc-1.10.1/src/string.c --- old/scdoc-1.10.0/src/string.c 2019-09-11 21:15:23.000000000 +0200 +++ new/scdoc-1.10.1/src/string.c 2020-02-14 22:38:03.000000000 +0100 @@ -3,7 +3,7 @@ #include "str.h" #include "unicode.h" -static int ensure_capacity(str_t *str, size_t len) { +static int ensure_capacity(struct str *str, size_t len) { if (len + 1 >= str->size) { char *new = realloc(str->str, str->size * 2); if (!new) { @@ -15,8 +15,8 @@ return 1; } -str_t *str_create() { - str_t *str = calloc(sizeof(str_t), 1); +struct str *str_create() { + struct str *str = calloc(sizeof(struct str), 1); str->str = malloc(16); str->size = 16; str->len = 0; @@ -24,13 +24,13 @@ return str; } -void str_free(str_t *str) { +void str_free(struct str *str) { if (!str) return; free(str->str); free(str); } -int str_append_ch(str_t *str, uint32_t ch) { +int str_append_ch(struct str *str, uint32_t ch) { int size = utf8_chsize(ch); if (size <= 0) { return -1; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/scdoc-1.10.0/test/preamble new/scdoc-1.10.1/test/preamble --- old/scdoc-1.10.0/test/preamble 2019-09-11 21:15:23.000000000 +0200 +++ new/scdoc-1.10.1/test/preamble 2020-02-14 22:38:03.000000000 +0100 @@ -41,37 +41,36 @@ unset SOURCE_DATE_EPOCH begin "Writes the appropriate header" -scdoc <<EOF | grep '^\.TH "test" "8" "'"$(date +'%F')"'"' >/dev/null +scdoc <<EOF | grep '^\.TH "test" "8" "'"$(date -u +'%F')"'"' >/dev/null test(8) EOF end 0 begin "Preserves dashes" -scdoc <<EOF | grep '^\.TH "test-manual" "8" "'"$(date +'%F')"'"' >/dev/null +scdoc <<EOF | grep '^\.TH "test-manual" "8" "'"$(date -u +'%F')"'"' >/dev/null test-manual(8) EOF end 0 begin "Handles extra footer field" -scdoc <<EOF | grep '^\.TH "test-manual" "8" "'"$(date +'%F')"'" "Footer"' >/dev/null +scdoc <<EOF | grep '^\.TH "test-manual" "8" "'"$(date -u +'%F')"'" "Footer"' >/dev/null test-manual(8) "Footer" EOF end 0 begin "Handles both extra fields" -scdoc <<EOF | grep '^\.TH "test-manual" "8" "'"$(date +'%F')"'" "Footer" "Header"' >/dev/null +scdoc <<EOF | grep '^\.TH "test-manual" "8" "'"$(date -u +'%F')"'" "Footer" "Header"' >/dev/null test-manual(8) "Footer" "Header" EOF end 0 begin "Emits empty footer correctly" -scdoc <<EOF | grep '^\.TH "test-manual" "8" "'"$(date +'%F')"'" "" "Header"' >/dev/null +scdoc <<EOF | grep '^\.TH "test-manual" "8" "'"$(date -u +'%F')"'" "" "Header"' >/dev/null test-manual(8) "" "Header" EOF end 0 -export TZ=UTC -export SOURCE_DATE_EPOCH=$(date --date="2017-12-09 23:18:57" +'%s') +export SOURCE_DATE_EPOCH=1512861537 begin "Supports \$SOURCE_DATE_EPOCH" scdoc <<EOF | grep '^\.TH "reproducible-manual" "8" "2017-12-09"' >/dev/null ++++++ scdoc-1.6.1-makefile.patch ++++++ --- /var/tmp/diff_new_pack.kNyZNb/_old 2020-02-18 10:39:09.444791724 +0100 +++ /var/tmp/diff_new_pack.kNyZNb/_new 2020-02-18 10:39:09.448791732 +0100 @@ -1,8 +1,8 @@ -diff -urEbw scdoc-1.10.0/Makefile scdoc-1.10.0.new/Makefile ---- scdoc-1.10.0/Makefile 2019-09-11 21:15:23.000000000 +0200 -+++ scdoc-1.10.0.new/Makefile 2019-09-12 08:37:10.876189064 +0200 +diff -urEbw scdoc-1.10.1/Makefile scdoc-1.10.1.new/Makefile +--- scdoc-1.10.1/Makefile 2020-02-14 22:38:03.000000000 +0100 ++++ scdoc-1.10.1.new/Makefile 2020-02-17 11:06:51.216722039 +0100 @@ -1,6 +1,5 @@ - VERSION=1.10.0 + VERSION=1.10.1 CFLAGS+=-g -DVERSION='"$(VERSION)"' -Wall -Wextra -Werror -Wno-unused-parameter -LDFLAGS+=-static INCLUDE+=-Iinclude