public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jerry James <loganjerry@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/flexmark-java] epel10: Fix FTBFS due to changes in jsoup >= 1.20
Date: Fri, 17 Jul 2026 19:15:50 GMT [thread overview]
Message-ID: <178431575039.1.9089672273733934752.rpms-flexmark-java-b8bbda9bf7c4@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/flexmark-java
Branch : epel10
Commit : b8bbda9bf7c4a75d52deaff2b4d762e449aa66ff
Author : Jerry James <loganjerry@gmail.com>
Date : 2025-07-28T16:14:57-06:00
Stats : +136/-0 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/flexmark-java/c/b8bbda9bf7c4a75d52deaff2b4d762e449aa66ff?branch=epel10
Log:
Fix FTBFS due to changes in jsoup >= 1.20
---
diff --git a/578.patch b/578.patch
new file mode 100644
index 0000000..0a303ad
--- /dev/null
+++ b/578.patch
@@ -0,0 +1,54 @@
+From 1148f93980a9986b3cf4ef8fb13e0d5dbfa44246 Mon Sep 17 00:00:00 2001
+From: palexdev <alessandro.parisi406@gmail.com>
+Date: Mon, 12 Jun 2023 17:57:06 +0200
+Subject: [PATCH] Fix for issue #577, avoid using reflection
+
+Signed-off-by: palexdev <alessandro.parisi406@gmail.com>
+---
+ .../flexmark/util/misc/BitFieldSet.java | 18 +++++-------------
+ 1 file changed, 5 insertions(+), 13 deletions(-)
+
+diff --git a/flexmark-util-misc/src/main/java/com/vladsch/flexmark/util/misc/BitFieldSet.java b/flexmark-util-misc/src/main/java/com/vladsch/flexmark/util/misc/BitFieldSet.java
+index f1b86a63a..62fb72ca3 100644
+--- a/flexmark-util-misc/src/main/java/com/vladsch/flexmark/util/misc/BitFieldSet.java
++++ b/flexmark-util-misc/src/main/java/com/vladsch/flexmark/util/misc/BitFieldSet.java
+@@ -3,7 +3,6 @@
+ import org.jetbrains.annotations.NotNull;
+
+ import java.io.Serializable;
+-import java.lang.reflect.Field;
+ import java.util.AbstractSet;
+ import java.util.Collection;
+ import java.util.Iterator;
+@@ -36,26 +35,19 @@ static class UniverseLoader {
+
+ @SuppressWarnings("rawtypes")
+ @NotNull
+- public static Enum[] getUniverseSlow(Class elementType) {
++ public static <E extends Enum<E>> Enum[] getUniverseSlow(Class<E> elementType) {
+ assert (elementType.isEnum());
+ Enum[] cachedUniverse = enumUniverseMap.get(elementType);
+ if (cachedUniverse != null) return cachedUniverse;
+
+- Field[] fields = elementType.getFields();
+- int enums = 0;
+- for (Field field : fields) {
+- if (field.getType().isEnum()) enums++;
+- }
+-
++ E[] constants = elementType.getEnumConstants();
++ int enums = constants.length;
+ if (enums > 0) {
+ cachedUniverse = new Enum[enums];
+
+ enums = 0;
+- for (Field field : fields) {
+- if (field.getType().isEnum()) {
+- //noinspection unchecked
+- cachedUniverse[enums++] = Enum.valueOf((Class<Enum>) field.getType(), field.getName());
+- }
++ for (E constant : constants) {
++ cachedUniverse[enums++] = constant;
+ }
+ } else {
+ cachedUniverse = ZERO_LENGTH_ENUM_ARRAY;
diff --git a/flexmark-java-jsoup.patch b/flexmark-java-jsoup.patch
new file mode 100644
index 0000000..a84789c
--- /dev/null
+++ b/flexmark-java-jsoup.patch
@@ -0,0 +1,78 @@
+--- flexmark-java-0.64.6/flexmark-html2md-converter/src/test/resources/html_attribute_converter_issue_spec.md.orig 2023-05-17 10:39:03.000000000 -0600
++++ flexmark-java-0.64.6/flexmark-html2md-converter/src/test/resources/html_attribute_converter_issue_spec.md 2025-07-28 16:09:12.840411609 -0600
+@@ -1246,26 +1246,26 @@ Issue #MN-408
+
+
+ ```````````````````````````````` example Issue MN-408: 2
+-*
+ * Equipment
+-*
++
+ * Chemicals
+-*
++
+ * Consumables
+-*
++
+ * Enzymes
+-*
++
+ * GMO
+-*
++
+ * Antibodies
+-*
++
+ * DNA Constructs
+-*
++
+ * RNA Constructs
+-*
++
+ * Vectors
+-*
++
+ * Oligos
++
+ .
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+ <html>
+--- flexmark-java-0.64.6/flexmark-html2md-converter/src/test/resources/html_converter_issue_spec.md.orig 2023-05-17 10:39:03.000000000 -0600
++++ flexmark-java-0.64.6/flexmark-html2md-converter/src/test/resources/html_converter_issue_spec.md 2025-07-28 16:09:24.671955109 -0600
+@@ -1246,26 +1246,26 @@ Issue #MN-408
+
+
+ ```````````````````````````````` example Issue MN-408: 2
+-*
+ * Equipment
+-*
++
+ * Chemicals
+-*
++
+ * Consumables
+-*
++
+ * Enzymes
+-*
++
+ * GMO
+-*
++
+ * Antibodies
+-*
++
+ * DNA Constructs
+-*
++
+ * RNA Constructs
+-*
++
+ * Vectors
+-*
++
+ * Oligos
++
+ .
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+ <html>
diff --git a/flexmark-java.spec b/flexmark-java.spec
index c90e62e..c57d7ad 100644
--- a/flexmark-java.spec
+++ b/flexmark-java.spec
@@ -15,6 +15,10 @@ VCS: git:%{url}.git
Source: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
# https://github.com/vsch/flexmark-java/pull/635
Patch: 0001-Fix-abbreviations-matching-with-Java-19.patch
+# Fix issue with native images
+Patch: %{url}/pull/578.patch
+# Adapt to changes in jsoup >= 1.20
+Patch: %{name}-jsoup.patch
BuildArch: noarch
ExclusiveArch: noarch %{java_arches}
reply other threads:[~2026-07-17 19:15 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178431575039.1.9089672273733934752.rpms-flexmark-java-b8bbda9bf7c4@fedoraproject.org \
--to=loganjerry@gmail.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox