Hello community,

here is the log from the commit of package scdoc for openSUSE:Factory checked 
in at 2019-07-11 13:18:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/scdoc (Old)
 and      /work/SRC/openSUSE:Factory/.scdoc.new.4615 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "scdoc"

Thu Jul 11 13:18:52 2019 rev:9 rq:714540 version:1.9.6

Changes:
--------
--- /work/SRC/openSUSE:Factory/scdoc/scdoc.changes      2019-03-13 
09:12:56.607400896 +0100
+++ /work/SRC/openSUSE:Factory/.scdoc.new.4615/scdoc.changes    2019-07-11 
13:19:02.546755124 +0200
@@ -1,0 +2,10 @@
+Thu Jul 11 05:02:32 UTC 2019 - mvet...@suse.com
+
+- Update to 1.9.6:
+  * Fix regression with manual name check
+- Changes from 1.9.5:
+  * Use TZ=UTC in test case
+  * Disallow invalid name characters
+  * Enforce 1-step indentation
+
+-------------------------------------------------------------------

Old:
----
  1.9.4.tar.gz

New:
----
  1.9.6.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ scdoc.spec ++++++
--- /var/tmp/diff_new_pack.rglDCp/_old  2019-07-11 13:19:03.490754826 +0200
+++ /var/tmp/diff_new_pack.rglDCp/_new  2019-07-11 13:19:03.494754826 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           scdoc
-Version:        1.9.4
+Version:        1.9.6
 Release:        0
 Summary:        A man page generator written in C99
 License:        MIT

++++++ 1.9.4.tar.gz -> 1.9.6.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scdoc-1.9.4/.build.yml new/scdoc-1.9.6/.build.yml
--- old/scdoc-1.9.4/.build.yml  1970-01-01 01:00:00.000000000 +0100
+++ new/scdoc-1.9.6/.build.yml  2019-07-10 20:09:27.000000000 +0200
@@ -0,0 +1,27 @@
+image: alpine/edge
+packages:
+- flex
+- bison
+sources:
+- https://git.sr.ht/~sircmpwn/scdoc
+- https://git.sr.ht/~sircmpwn/annotatec
+secrets:
+- 52022781-b772-4d8d-b7fe-0d962a4947b6
+tasks:
+- build: |
+    cd scdoc
+    make
+- check: |
+    cd scdoc
+    make check
+- annotatec: |
+    cd annotatec
+    make
+    sudo make install PREFIX=/usr
+- annotations: |
+    cd ~/scdoc
+    # that version string, jesus christ
+    find src -name "*.c" | \
+      xargs annotatec -gC 'cpp -DVERSION='"'"'"0.0.0"'"'"' -std=c99 -Iinclude 
-U__GNUC__' \
+      >annotations.json
+    ~/upload-annotations annotations.json sircmpwn scdoc
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scdoc-1.9.4/Makefile new/scdoc-1.9.6/Makefile
--- old/scdoc-1.9.4/Makefile    2019-03-04 16:43:31.000000000 +0100
+++ new/scdoc-1.9.6/Makefile    2019-07-10 20:09:27.000000000 +0200
@@ -1,4 +1,4 @@
-VERSION=1.9.4
+VERSION=1.9.6
 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.9.4/src/main.c new/scdoc-1.9.6/src/main.c
--- old/scdoc-1.9.4/src/main.c  2019-03-04 16:43:31.000000000 +0100
+++ new/scdoc-1.9.6/src/main.c  2019-07-10 20:09:27.000000000 +0200
@@ -138,6 +138,8 @@
                        }
                        fprintf(p->output, "\n");
                        break;
+               } else if (section == -1) {
+                       parser_fatal(p, "Name characters must be A-Z, a-z, 0-9, 
`-`, `_`, or `.`");
                }
        }
        str_free(name);
@@ -284,19 +286,19 @@
                ++i;
        }
        parser_pushch(p, ch);
-       if (ch == '\n' && *indent != 0) {
-               // Don't change indent when we encounter empty lines
+       if ((ch == '\n' || ch == UTF8_INVALID) && *indent != 0) {
+               // Don't change indent when we encounter empty lines or EOF
                return *indent;
        }
        if (write) {
-               if (i < *indent) {
+               if ((i - *indent) > 1) {
+                       parser_fatal(p, "Indented by an amount greater than 1");
+               } else if (i < *indent) {
                        for (int j = *indent; i < j; --j) {
                                roff_macro(p, "RE", NULL);
                        }
                } else if (i == *indent + 1) {
                        fprintf(p->output, ".RS 4\n");
-               } else if (i != *indent && ch == '\t') {
-                       parser_fatal(p, "Indented by an amount greater than 1");
                }
        }
        *indent = i;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scdoc-1.9.4/test/indent new/scdoc-1.9.6/test/indent
--- old/scdoc-1.9.4/test/indent 2019-03-04 16:43:31.000000000 +0100
+++ new/scdoc-1.9.6/test/indent 2019-07-10 20:09:27.000000000 +0200
@@ -19,3 +19,38 @@
 Not indented
 EOF
 end 0
+
+begin "Disallows multi-step indents"
+scdoc <<EOF >/dev/null
+test(8)
+
+Not indented
+       Indented one level
+                       Indented three levels
+Not indented
+EOF
+end 1
+
+begin "Allows indentation changes > 1 in literal blocks"
+scdoc <<EOF >/dev/null
+test(8)
+
+This is some code:
+
+\`\`\`
+foobar:
+                # asdf
+\`\`\`
+EOF
+end 0
+
+begin "Allows multi-step dedents"
+scdoc <<EOF >/dev/null
+test(8)
+
+Not indented
+       Indented one level
+               Indented two levels
+Not indented
+EOF
+end 0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scdoc-1.9.4/test/lib.sh new/scdoc-1.9.6/test/lib.sh
--- old/scdoc-1.9.4/test/lib.sh 2019-03-04 16:43:31.000000000 +0100
+++ new/scdoc-1.9.6/test/lib.sh 2019-07-10 20:09:27.000000000 +0200
@@ -2,7 +2,7 @@
 trap "printf '\n'" EXIT
 
 begin() {
-       printf '%-40s' "$1"
+       printf '%-50s' "$1"
 }
 
 scdoc() {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scdoc-1.9.4/test/preamble 
new/scdoc-1.9.6/test/preamble
--- old/scdoc-1.9.4/test/preamble       2019-03-04 16:43:31.000000000 +0100
+++ new/scdoc-1.9.6/test/preamble       2019-07-10 20:09:27.000000000 +0200
@@ -70,10 +70,11 @@
 EOF
 end 0
 
+export TZ=UTC
 export SOURCE_DATE_EPOCH=$(date --date="2017-12-09 23:18:57" +'%s')
 
 begin "Supports \$SOURCE_DATE_EPOCH"
-scdoc <<EOF | grep '^\.TH "reproducible-manual" "8" "2017-12-10"' >/dev/null
+scdoc <<EOF | grep '^\.TH "reproducible-manual" "8" "2017-12-09"' >/dev/null
 reproducible-manual(8)
 EOF
 end 0

++++++ scdoc-1.6.1-makefile.patch ++++++
--- /var/tmp/diff_new_pack.rglDCp/_old  2019-07-11 13:19:03.554754807 +0200
+++ /var/tmp/diff_new_pack.rglDCp/_new  2019-07-11 13:19:03.554754807 +0200
@@ -2,7 +2,7 @@
 --- scdoc-1.9.4/Makefile       2019-03-04 16:43:31.000000000 +0100
 +++ scdoc-1.9.4.new/Makefile   2019-03-05 08:18:13.614838942 +0100
 @@ -1,6 +1,5 @@
- VERSION=1.9.4
+ VERSION=1.9.6
  CFLAGS+=-g -DVERSION='"$(VERSION)"' -Wall -Wextra -Werror 
-Wno-unused-parameter
 -LDFLAGS+=-static
  INCLUDE+=-Iinclude


Reply via email to