From: Daniel Dickman Subject: htmldoc: 1.9.16 -> 1.9.17 To: Benoit Lecocq Cc: ports@openbsd.org Date: Fri, 19 Jan 2024 18:10:06 -0500 Hi Benoit, here's an update of htmldoc to 1.9.17. Here are some of the main changes from CHANGES.md: - Added new `--pre-indent` option - Now link to CUPS library instead of embedding its HTTP code. - Updated PostScript and PDF date/time information to use UTC And a few fixes are mentioned as well: - Fixed a markdown parsing bug - Fixed a relative URL handling bug - Fixed a crash bug with bad title images - Fixed some minor CodeQL warnings. The main change in our port is that we add a new LIB_DEPENDS on print/cups,-libs (and ssl and crypto can be removed from WANTLIB as a result). It also looks like the patch to work around an llvm 8 bug can go away at this point? Indeed the build did not freeze for me when I compiled on an amd64 box. ok on the update below? Index: Makefile =================================================================== RCS file: /cvs/ports/print/htmldoc/Makefile,v diff -u -p -u -r1.57 Makefile --- Makefile 27 Sep 2023 14:32:02 -0000 1.57 +++ Makefile 19 Jan 2024 23:02:40 -0000 @@ -1,6 +1,6 @@ COMMENT = convert HTML pages to PDF/PS format -V = 1.9.16 +V = 1.9.17 DISTNAME = htmldoc-${V} CATEGORIES = print www @@ -11,7 +11,7 @@ MAINTAINER = Benoit Lecocq - #endif /* HAVE_POLL */ - -+#if defined(__OpenBSD__) -+# define CUPS_RAND() arc4random() -+# define CUPS_SRAND(v) -+#endif - - /* - * Some operating systems have done away with the Fxxxx constants for Index: patches/patch-htmldoc_ps-pdf_cxx =================================================================== RCS file: patches/patch-htmldoc_ps-pdf_cxx diff -N patches/patch-htmldoc_ps-pdf_cxx --- patches/patch-htmldoc_ps-pdf_cxx 11 Mar 2022 19:51:02 -0000 1.3 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,16 +0,0 @@ -Work around an LLVM 8.0.0 optimizer bug that causes htmldoc to spin. -https://github.com/michaelrsweet/htmldoc/issues/349 -https://bugs.llvm.org/show_bug.cgi?id=41998 - -Index: htmldoc/ps-pdf.cxx ---- htmldoc/ps-pdf.cxx.orig -+++ htmldoc/ps-pdf.cxx -@@ -5440,7 +5440,7 @@ parse_pre(tree_t *t, /* I - Tree to parse */ - line[10240], - *lineptr, - *dataptr; -- int col; -+ volatile int col; - float width, - height, - rgb[3];