[Git][java-team/flexmark-java][debian/latest] 3 commits: Drop the JMH benchmark; fixes the nocheck build (Closes: #1152807)
Juan Manuel Méndez Rey (@mendezr)
gitlab at salsa.debian.org
Thu Nov 12 04:26:14 GMT 2026
Juan Manuel Méndez Rey pushed to branch debian/latest at Debian Java Maintainers / flexmark-java
Commits:
9c801416 by Juan Manuel Méndez Rey at 2026-11-12T04:25:03+01:00
Drop the JMH benchmark; fixes the nocheck build (Closes: #1152807)
- - - - -
91c546b3 by Juan Manuel Méndez Rey at 2026-11-12T04:51:45+01:00
d/maven.rules: drop the default-only rules
- - - - -
6b7977bd by Juan Manuel Méndez Rey at 2026-11-12T04:52:03+01:00
d/changelog: do not split the package name
- - - - -
6 changed files:
- debian/changelog
- debian/control
- debian/maven.ignoreRules
- debian/maven.rules
- + debian/patches/0002-drop-jmh-benchmark.patch
- debian/patches/series
Changes:
=====================================
debian/changelog
=====================================
@@ -1,3 +1,13 @@
+flexmark-java (0.64.8+ds-2) UNRELEASED; urgency=medium
+
+ * Drop the JMH benchmark, which the build never runs, and the
+ libjmh-java build dependency. Fixes the build with the nocheck
+ profile (Closes: #1152807).
+ * d/maven.rules: drop the rules that only map the version to debian,
+ the default.
+
+ -- Juan Manuel Méndez Rey <juan.mendezr at proton.me> Thu, 12 Nov 2026 04:25:03 +0100
+
flexmark-java (0.64.8+ds-1) unstable; urgency=medium
* Initial release. (Closes: #1149770)
=====================================
debian/control
=====================================
@@ -13,7 +13,6 @@ Build-Depends:
libfreetype6 <!nocheck>,
libharfbuzz0b <!nocheck>,
libjetbrains-annotations-java,
- libjmh-java <!nocheck>,
maven-debian-helper
Standards-Version: 4.7.4
Vcs-Browser: https://salsa.debian.org/java-team/flexmark-java
=====================================
debian/maven.ignoreRules
=====================================
@@ -1,5 +1,7 @@
# Declared as test dependencies of the core module but not used by any test.
org.apache.logging.log4j * * * * *
+# Only used by the benchmark, removed by 0002-drop-jmh-benchmark.patch.
+org.openjdk.jmh * * * * *
# Builds an extra flexmark-util "lib" jar that merges the utility modules;
# upstream does not publish it and the package installs the modules.
org.apache.maven.plugins maven-assembly-plugin * * * *
=====================================
debian/maven.rules
=====================================
@@ -1,8 +1 @@
-# flexmark-java's own artifacts.
-com.vladsch.flexmark * * s/.*/debian/ * *
-# Dependencies, at the versions Debian has.
-org.jetbrains annotations * s/.*/debian/ * *
-org.nibor.autolink autolink * s/.*/debian/ * *
-# Test dependencies.
junit junit * s/.*/4.x/ * *
-org.openjdk.jmh * * s/.*/debian/ * *
=====================================
debian/patches/0002-drop-jmh-benchmark.patch
=====================================
@@ -0,0 +1,67 @@
+Description: Drop the JMH benchmark from the test sources
+ The benchmark is never run by the build. Without it the tests do not need
+ JMH, so the package also builds with the nocheck profile.
+Author: Juan Manuel Méndez Rey <juan.mendezr at proton.me>
+Bug-Debian: https://bugs.debian.org/1152807
+Forwarded: not-needed
+Last-Update: 2026-11-12
+---
+diff --git a/flexmark-core-test/src/test/java/com/vladsch/flexmark/core/test/util/parser/SpecBenchmark.java b/flexmark-core-test/src/test/java/com/vladsch/flexmark/core/test/util/parser/SpecBenchmark.java
+deleted file mode 100644
+index f715b93..0000000
+--- a/flexmark-core-test/src/test/java/com/vladsch/flexmark/core/test/util/parser/SpecBenchmark.java
++++ /dev/null
+@@ -1,53 +0,0 @@
+-package com.vladsch.flexmark.core.test.util.parser;
+-
+-import com.vladsch.flexmark.html.HtmlRenderer;
+-import com.vladsch.flexmark.parser.Parser;
+-import com.vladsch.flexmark.test.specs.TestSpecLocator;
+-import com.vladsch.flexmark.test.util.spec.SpecReader;
+-import org.openjdk.jmh.annotations.Benchmark;
+-import org.openjdk.jmh.annotations.Scope;
+-import org.openjdk.jmh.annotations.State;
+-import org.openjdk.jmh.runner.Runner;
+-import org.openjdk.jmh.runner.options.CommandLineOptions;
+-import org.openjdk.jmh.runner.options.Options;
+-import org.openjdk.jmh.runner.options.OptionsBuilder;
+-
+-import java.util.Collections;
+-import java.util.List;
+-
+- at State(Scope.Benchmark)
+-public class SpecBenchmark {
+- final private static String SPEC = TestSpecLocator.DEFAULT_RESOURCE_LOCATION.getResourceText();
+- final private static List<String> SPEC_EXAMPLES =
+- SpecReader.createAndReadExamples(TestSpecLocator.DEFAULT_RESOURCE_LOCATION, false)
+- .getExamplesSourceAsString();
+- final private static Parser PARSER = Parser.builder().build();
+- final private static HtmlRenderer RENDERER = HtmlRenderer.builder().build();
+-
+- public static void main(String[] args) throws Exception {
+- Options options = new OptionsBuilder()
+- .parent(new CommandLineOptions(args))
+- .include(SpecBenchmark.class.getName() + ".*")
+- .build();
+- new Runner(options).run();
+- }
+-
+- @Benchmark
+- public long wholeSpec() {
+- return parseAndRender(Collections.singletonList(SPEC));
+- }
+-
+- @Benchmark
+- public long examples() {
+- return parseAndRender(SPEC_EXAMPLES);
+- }
+-
+- private static long parseAndRender(List<String> examples) {
+- long length = 0;
+- for (String example : examples) {
+- String result = RENDERER.render(PARSER.parse(example));
+- length += result.length();
+- }
+- return length;
+- }
+-}
=====================================
debian/patches/series
=====================================
@@ -1 +1,2 @@
0001-build-only-the-kept-modules.patch
+0002-drop-jmh-benchmark.patch
View it on GitLab: https://salsa.debian.org/java-team/flexmark-java/-/compare/9002db825c55f99a39328f532edb74eb7c21bd32...6b7977bdb5bcbecd34f4ffd4fcac9c61b0c2035b
--
View it on GitLab: https://salsa.debian.org/java-team/flexmark-java/-/compare/9002db825c55f99a39328f532edb74eb7c21bd32...6b7977bdb5bcbecd34f4ffd4fcac9c61b0c2035b
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-commits/attachments/20261112/af99dfd6/attachment.htm>
More information about the pkg-java-commits
mailing list