head 1.14; access; symbols pkgsrc-2023Q4:1.13.0.4 pkgsrc-2023Q4-base:1.13 pkgsrc-2023Q3:1.13.0.2 pkgsrc-2023Q3-base:1.13 pkgsrc-2023Q2:1.12.0.4 pkgsrc-2023Q2-base:1.12 pkgsrc-2023Q1:1.12.0.2 pkgsrc-2023Q1-base:1.12 pkgsrc-2022Q4:1.11.0.10 pkgsrc-2022Q4-base:1.11 pkgsrc-2022Q3:1.11.0.8 pkgsrc-2022Q3-base:1.11 pkgsrc-2022Q2:1.11.0.6 pkgsrc-2022Q2-base:1.11 pkgsrc-2022Q1:1.11.0.4 pkgsrc-2022Q1-base:1.11 pkgsrc-2021Q4:1.11.0.2 pkgsrc-2021Q4-base:1.11 pkgsrc-2021Q3:1.9.0.2 pkgsrc-2021Q3-base:1.9 pkgsrc-2021Q2:1.8.0.18 pkgsrc-2021Q2-base:1.8 pkgsrc-2021Q1:1.8.0.16 pkgsrc-2021Q1-base:1.8 pkgsrc-2020Q4:1.8.0.14 pkgsrc-2020Q4-base:1.8 pkgsrc-2020Q3:1.8.0.12 pkgsrc-2020Q3-base:1.8 pkgsrc-2020Q2:1.8.0.10 pkgsrc-2020Q2-base:1.8 pkgsrc-2020Q1:1.8.0.6 pkgsrc-2020Q1-base:1.8 pkgsrc-2019Q4:1.8.0.8 pkgsrc-2019Q4-base:1.8 pkgsrc-2019Q3:1.8.0.4 pkgsrc-2019Q3-base:1.8 pkgsrc-2019Q2:1.8.0.2 pkgsrc-2019Q2-base:1.8 pkgsrc-2019Q1:1.6.0.10 pkgsrc-2019Q1-base:1.6 pkgsrc-2018Q4:1.6.0.8 pkgsrc-2018Q4-base:1.6 pkgsrc-2018Q3:1.6.0.6 pkgsrc-2018Q3-base:1.6 pkgsrc-2018Q2:1.6.0.4 pkgsrc-2018Q2-base:1.6 pkgsrc-2018Q1:1.6.0.2 pkgsrc-2018Q1-base:1.6 pkgsrc-2017Q4:1.5.0.8 pkgsrc-2017Q4-base:1.5 pkgsrc-2017Q3:1.5.0.6 pkgsrc-2017Q3-base:1.5 pkgsrc-2017Q2:1.5.0.2 pkgsrc-2017Q2-base:1.5 pkgsrc-2017Q1:1.4.0.6 pkgsrc-2017Q1-base:1.4 pkgsrc-2016Q4:1.4.0.4 pkgsrc-2016Q4-base:1.4 pkgsrc-2016Q3:1.4.0.2 pkgsrc-2016Q3-base:1.4 pkgsrc-2016Q2:1.3.0.2 pkgsrc-2016Q2-base:1.3 pkgsrc-2016Q1:1.2.0.2 pkgsrc-2016Q1-base:1.2; locks; strict; comment @# @; 1.14 date 2024.01.30.20.00.13; author adam; state Exp; branches; next 1.13; commitid AwVwYkqXjt9KJvWE; 1.13 date 2023.08.14.05.25.21; author wiz; state Exp; branches; next 1.12; commitid LOSB79OLVxvXjIAE; 1.12 date 2023.01.24.08.27.49; author adam; state Exp; branches; next 1.11; commitid WexE4MixJIimPLaE; 1.11 date 2021.11.29.10.44.16; author cirnatdan; state Exp; branches; next 1.10; commitid Obz8LGNXg4Kt7GiD; 1.10 date 2021.10.09.19.20.08; author adam; state Exp; branches; next 1.9; commitid DcIbSnOQ4Sy2CacD; 1.9 date 2021.07.17.16.29.31; author adam; state Exp; branches; next 1.8; commitid e2ez5YhYzIqxmm1D; 1.8 date 2019.04.25.07.33.23; author maya; state Exp; branches; next 1.7; commitid 1FEMQBEPb9uTxHkB; 1.7 date 2019.04.09.06.04.13; author adam; state Exp; branches; next 1.6; commitid ZquodYnCyU59ADiB; 1.6 date 2018.01.18.17.11.38; author adam; state Exp; branches; next 1.5; commitid LcStXkUNWW6XBnnA; 1.5 date 2017.05.23.10.37.20; author mef; state Exp; branches; next 1.4; commitid vXY0SnJbILKZ8vSz; 1.4 date 2016.09.17.11.45.14; author mef; state Exp; branches; next 1.3; commitid jcKM3QMxKoDVuDmz; 1.3 date 2016.06.09.06.23.40; author wiz; state Exp; branches; next 1.2; commitid XLM7sK11wHgWVK9z; 1.2 date 2016.02.28.14.02.32; author kamil; state Exp; branches; next 1.1; commitid jnZfDHlKOCoKKGWy; 1.1 date 2016.02.28.13.33.58; author kamil; state Exp; branches; next ; commitid fsWSGk5hesHHAGWy; desc @@ 1.14 log @cmark: updated to 0.31.0 0.31.0 * Update to 0.31.2 spec.txt. * Treat unicode Symbols like Punctuation, as per the 0.31 spec. * Add a new function to `utf8.h`: `int cmark_utf8proc_is_punctuation_or_symbol(int32_t uc)`. The old `cmark_utf8proc_is_punctuation` has been kept for now, but it is no longer used. * Add new exported function `cmark_parser_new_with_mem_into_root` (API change) (John Ericson). * Avoid repeated `language-` in info string * Fix quadratic behavior in `S_insert_emph` (Nick Wellnhofer). Fixes part of GHSA-66g8-4hjf-77xh. * Fix quadratic behavior in `check_open_blocks` (Nick Wellnhofer). Fixes part of GHSA-66g8-4hjf-77xh. * Track underscore bottom separately mod 3, like asterisk (Michael Howell). This was already implemented correctly for asterisks, but not for underscore. * Use `fwrite` instead of `printf` to print results in main This avoids a massive slowdown in MSYS2. * commonmark writer: less aggressive escaping for `!` * Update libFuzzer build (Nick Wellnhofer): + Move fuzzing files into their own directory. + Use libFuzzer the modern way by compiling and linking with `-fsanitize=fuzzer(-no-link)` without requiring `LIB_FUZZER_PATH`. + Update the `libFuzzer` rule in Makefile and the README.md. * CMake build changes (Saleem Abdulrasool). + Inline multiple variables in CMake, following CMake recommendations. + Simplify the version computation. + Remove the `CMARK_STATIC` and `CMARK_SHARED` options as one of the two must be enabled always as the cmark executable depends on the library. Instead of having a custom flag to discern between the library type, use the native CMake option `BUILD_SHARED_LIBS`, allowing the user to control which library to build. This matches CMake recommendations to only build a single copy of the library. + Introduce an author warning for the use of `CMARK_SHARED` and `CMARK_STATIC` to redirect the author of the dependent package to `BUILD_SHARED_LIBS`. + Permit incremental linking on Windows. Although incremental linking does introduce padding in the binary for incremental links, that should not matter for release mode builds in theory as `/OPT:REF` and `/OPT:ICF` will trigger full links, which is the default in release mode. + Hoist the CMake module inclusion to the top level. + Minor tweaks for speeding up the configure phase. Restructure the file layout to place the custom modules into the `cmake/modules` directory that is the common layout for CMake based projects. + Squelch C4232 warnings on MSVC builds. + Remove check for `__builtin_expect`. Use `__has_builtin` to check at compile time if the feature is supported. This macro is supported by both clang and GCC (as of 10). In the case that the compiler in use is not new enough, we still provide the fallback so that the code will compile but without the additional hints for the branch probability. `config.h` has been removed from the code base as it is no longer needed. + Remove `/TP` usage on MSVC and replace `CMARK_INLINE` with `inline`. These were workarounds for pre-VS2015 compilers, which are no longer supported. + Hoist the C visibility settings to top level + Clean up C4267 warnings on MSVC builds. + Remove some compiler compatibility checks that are no longer needed because VS 2013 is no longer supported + Adjust the policy to silence warnings on MSVC builds CMake 3.15+ remove `/W3` from the language flags under MSVC with CMP0092. Set the policy to new to avoid the D9025 warning. + Reflow some text to match CMake documentation style + Use generator expression for path computation. + Use CMake to propagate `CMARK_STATIC_DEFINE`. + Clean up an obsoleted variable (NFC). + Hoist the policy settings. Policy settings may impact how `project` functions. They should be set immediately after `cmake_minimum_required` (which implicitly sets policies). Use the `POLICY` check to see if a policy is defined rather than using a version check. + Replace `CMARK_TESTS` with CMake sanctioned `BUILD_TESTING`. + Correct typo and adjust command invocation. Use the proper generator expression for the python interpreter and adjust a typo in the component name. + Add an upgrade path for newer CMake. CMake 3.12 deprecated `FindPythonInterp`, and with CMake 3.27, were obsoleted with CMP0148. Add a version check and switch to the new behaviour to allow building with newer releases. * Fix regex syntax warnings in `pathological_tests.py` (Nick Wellnhofer). * `test/cmark.py`: avoid star imports (Jakub Wilk). * `spec_tests.py`: Add option to generate fuzz corpus (Nick Wellnhofer). Add an option `--fuzz-corpus` that writes the test cases to separate files including the options header, so they can be used as seed corpus for fuzz testing. * Fix some cmark.3 man rendering issues so we can do a clean regen (John Ericson). * Update Windows compilation instructions @ text @# $NetBSD: Makefile,v 1.13 2023/08/14 05:25:21 wiz Exp $ DISTNAME= cmark-0.31.0 CATEGORIES= textproc MASTER_SITES= ${MASTER_SITE_GITHUB:=jgm/} MAINTAINER= pkgsrc-users@@NetBSD.org HOMEPAGE= https://github.com/commonmark/cmark COMMENT= CommonMark parsing and rendering library and program in C LICENSE= 2-clause-bsd USE_LANGUAGES= c c++ USE_TOOLS+= pkg-config PKGCONFIG_OVERRIDE+= src/libcmark.pc.in CMAKE_CONFIGURE_ARGS+= -DBUILD_SHARED_LIBS=ON PYTHON_FOR_BUILD_ONLY= yes PYTHON_VERSIONS_INCOMPATIBLE= 27 TEST_ENV+= LD_LIBRARY_PATH=${WRKSRC}/build/src # For Darwin TEST_ENV+= DYLD_LIBRARY_PATH=${WRKSRC}/build/src TEST_TARGET= test .include "../../devel/cmake/build.mk" .include "../../lang/python/tool.mk" .include "../../mk/bsd.pkg.mk" @ 1.13 log @*: recursive bump for Python 3.11 as new default @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.12 2023/01/24 08:27:49 adam Exp $ d3 1 a3 2 DISTNAME= cmark-0.30.3 PKGREVISION= 1 a11 1 USE_CMAKE= yes a13 2 CONFIGURE_DIRS= build CMAKE_ARG_PATH= ${WRKSRC} d15 1 d26 1 a26 3 post-extract: ${MKDIR} ${WRKSRC}/build @ 1.12 log @cmark: updated to 0.30.3 0.30.3 * Fix quadratic complexity bug with repeated `![[]()`. Resolves CVE-2023-22486. Add new pathological test. * Allow declarations with no space, as per spec. * Set `enumi*` counter correctly in LaTeX output. * Allow ` and -->`. Since the scanner finds the longest match, we had to move some of the logic outside of the scanner. * Fix quadratic parsing issue with repeated `