On Tue, Nov 17, 2026 at 04:49:15PM +0000, Stuart Henderson wrote:
> On 2026/11/12 20:17, Jan Klemkow wrote:
> > On Thu, Nov 12, 2026 at 05:46:11PM +0000, Stuart Henderson wrote:
> > > ok? I've built everything that depends on it.
> > >
> > > (was prompted by looking at updating naev so I could update
> > > libunibreak, and that needed cmark>=0.31, but that got a bit
> > > more complicated than I wanted to deal with, but since I've
> > > tested the cmark update anyway thought I'd send it out).
> > >
> > > Index: pkg/PLIST
> > > ===================================================================
> > > RCS file: /cvs/ports/textproc/cmark/pkg/PLIST,v
> > > diff -u -p -r1.3 PLIST
> > > --- pkg/PLIST 30 Aug 2022 11:26:26 -0000 1.3
> > > +++ pkg/PLIST 12 Nov 2026 17:42:11 -0000
> > > @@ -8,7 +8,6 @@ lib/cmake/cmark/cmark-config-version.cma
> > > lib/cmake/cmark/cmark-config.cmake
> > > lib/cmake/cmark/cmark-targets${MODCMAKE_BUILD_SUFFIX}
> > > lib/cmake/cmark/cmark-targets.cmake
> > > -@static-lib lib/libcmark.a
> >
> > Cloud we keep the static library?
> >
> > I need it, for a private project, where I have to compile static C
> > program, which runs chrooted in /var/www.
> >
>
> It can be done like this but it's pretty ugly and I'm not sure if
> I got it right for pkg_add -u to work properly.
Whats your opinion about the version below?
bye,
jan
Index: Makefile
===================================================================
RCS file: /cvs/ports/textproc/cmark/Makefile,v
diff -u -p -r1.8 Makefile
--- Makefile 6 May 2024 12:24:07 -0000 1.8
+++ Makefile 24 Nov 2026 23:26:28 -0000
@@ -1,11 +1,8 @@
COMMENT = CommonMark parsing and rendering library and program in C
-GH_ACCOUNT = commonmark
-GH_PROJECT = cmark
-GH_TAGNAME = 0.30.3
-REVISION = 0
+DIST_TUPLE = github commonmark cmark 0.31.2 .
-SHARED_LIBS += cmark 0.1 # 0.29
+SHARED_LIBS += cmark 0.2
CATEGORIES = textproc
@@ -18,10 +15,11 @@ PERMIT_PACKAGE = Yes
WANTLIB += c
-MODULES = devel/cmake \
- lang/python
+MODULES = devel/cmake
-# tests only
-MODPY_RUNDEP = No
+CONFIGURE_ARGS += -DBUILD_SHARED_LIBS=On
+
+# for tests
+BUILD_DEPENDS = lang/python/3
.include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/textproc/cmark/distinfo,v
diff -u -p -r1.4 distinfo
--- distinfo 14 Feb 2023 15:37:19 -0000 1.4
+++ distinfo 24 Nov 2026 23:26:57 -0000
@@ -1,2 +1,2 @@
-SHA256 (cmark-0.30.3.tar.gz) = hen7UVUxzCya4XbWk/mHF3SDDPHzI6Z1j7GHpRSNexY=
-SIZE (cmark-0.30.3.tar.gz) = 246916
+SHA256 (commonmark-cmark-0.31.2.tar.gz) =
+bxco4vLC3J/AFYQD6xNdD52iHLjus7HdG3ij1cA1pc=
+SIZE (commonmark-cmark-0.31.2.tar.gz) = 267259
Index: patches/patch-src_CMakeLists_txt
===================================================================
RCS file: patches/patch-src_CMakeLists_txt
diff -N patches/patch-src_CMakeLists_txt
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_CMakeLists_txt 24 Nov 2026 23:30:13 -0000
@@ -0,0 +1,39 @@
+Index: src/CMakeLists.txt
+--- src/CMakeLists.txt.orig
++++ src/CMakeLists.txt
+@@ -5,7 +5,7 @@ configure_file(libcmark.pc.in
+ ${CMAKE_CURRENT_BINARY_DIR}/libcmark.pc
+ @ONLY)
+
+-add_library(cmark
++set(LIBRARY_SOURCES
+ blocks.c
+ buffer.c
+ cmark.c
+@@ -26,6 +26,8 @@ add_library(cmark
+ scanners.re
+ utf8.c
+ xml.c)
++
++add_library(cmark ${LIBRARY_SOURCES})
+ cmark_add_compile_options(cmark)
+ set_target_properties(cmark PROPERTIES
+ OUTPUT_NAME "cmark"
+@@ -47,9 +49,14 @@ target_include_directories(cmark INTERFACE
+ generate_export_header(cmark
+ BASE_NAME ${PROJECT_NAME})
+
+-# FIXME(compnerd) this should be removed, but exists solely to allow a
migration
+-# path for OSS Fuzz.
+-add_custom_target(cmark_static DEPENDS cmark)
++add_library(cmark_static STATIC ${LIBRARY_SOURCES})
++cmark_add_compile_options(cmark_static)
++set_target_properties(cmark_static PROPERTIES
++ OUTPUT_NAME "cmark")
++target_compile_definitions(cmark_static PRIVATE
++ CMARK_STATIC_DEFINE)
++install(TARGETS cmark_static
++ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
+
+ add_executable(cmark_exe
+ main.c)