update textproc/scdoc to 1.11.2

changelog:
 - escape ' at the beginning of lines
 - cleanup the installation process
 - check for and abort on failed memory allocations
 - disallows differing row lengths in table

while here regen patches and drop -Werror (which would break the build
on clang 15 due to -Wstrict-prototypes.)

ok sthen@ jca@
This commit is contained in:
op 2023-01-10 14:03:58 +00:00
parent c03bc10778
commit 017c7f13a3
4 changed files with 13 additions and 9 deletions

View File

@ -1,5 +1,5 @@
COMMENT = convert scdoc text files to man(7) pages
VERSION = 1.11.1
VERSION = 1.11.2
DISTNAME = scdoc-${VERSION}
CATEGORIES = textproc
HOMEPAGE = https://git.sr.ht/~sircmpwn/scdoc

View File

@ -1,2 +1,2 @@
SHA256 (scdoc-1.11.1.tar.gz) = EJih7S4IdZb8Cz9lfByKXgBBImeqS682GeNoJDBmRbE=
SIZE (scdoc-1.11.1.tar.gz) = 12510
SHA256 (scdoc-1.11.2.tar.gz) = 6f+ZgbWFQwF4mmd47mTvH20eX0gpqd0+WKmmPqzC5vA=
SIZE (scdoc-1.11.2.tar.gz) = 12746

View File

@ -1,12 +1,15 @@
In OpenBSD, we do not compile programs statically when it isn't necessary.
Drop -Werror
Index: Makefile
--- Makefile.orig
+++ Makefile
@@ -1,6 +1,5 @@
VERSION=1.10.1
CFLAGS+=-g -DVERSION='"$(VERSION)"' -Wall -Wextra -Werror -Wno-unused-parameter
@@ -1,7 +1,6 @@
VERSION=1.11.2
CFLAGS?=-g
-MAINFLAGS:=-DVERSION='"$(VERSION)"' -Wall -Wextra -Werror -Wno-unused-parameter
-LDFLAGS+=-static
+MAINFLAGS:=-DVERSION='"$(VERSION)"' -Wall -Wextra -Wno-unused-parameter
INCLUDE+=-Iinclude
PREFIX?=/usr/local
_INSTDIR=$(DESTDIR)$(PREFIX)
BINDIR?=$(PREFIX)/bin

View File

@ -1,7 +1,8 @@
Simple software acting as an stdio filter, no third party libraries,
not big churn, so this is a good candidate for pledge.
--- src/main.c.old
Index: src/main.c
--- src/main.c.orig
+++ src/main.c
@@ -15,6 +15,7 @@
@ -11,7 +12,7 @@ not big churn, so this is a good candidate for pledge.
static struct str *parse_section(struct parser *p) {
struct str *section = str_create();
@@ -755,6 +756,12 @@ int main(int argc, char **argv) {
@@ -770,6 +771,12 @@ int main(int argc, char **argv) {
fprintf(stderr, "Usage: scdoc < input.scd > output.roff\n");
return 1;
}