public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/flexmark-java] epel10: Fix FTBFS due to changes in jsoup >= 1.20
@ 2026-07-17 19:15 Jerry James
0 siblings, 0 replies; only message in thread
From: Jerry James @ 2026-07-17 19:15 UTC (permalink / raw)
To: git-commits
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}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-17 19:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-17 19:15 [rpms/flexmark-java] epel10: Fix FTBFS due to changes in jsoup >= 1.20 Jerry James
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox