Good morning folks,

I'm one of the maintainers of the Linux From Scratch project, and we're trying to update to FOP 2.10 for the security update (CVE-2024-28168). We are currently shipping Java 22.0.2, and are in the process of upgrading to 23.0.1.

While trying to build the package, we're getting the following build error:

   [javac]
   
/sources/fop-2.10/fop-core/src/main/java/org/apache/fop/layoutmgr/KnuthSequence.java:147:
   error: removeLast() in KnuthSequence cannot implement removeLast()
   in List

   [javac] public ListElement removeLast() {

   [javac] return type ListElement is not compatible with T

   [javac] where E,T are type-variables:

   [javac] E extends Object declared in interface List

   [javac]
   
/sources/fop-2.10/fop-core/src/main/java/org/apache/fop/layoutmgr/KnuthSequence.java:137:
   error: getLast() in KnuthSequence cannot implement getLast() in List

   [javac] public ListElement getLast() {

   [javac] return type ListElement is not compatible with T

   [javac] where E,T are type-variables:

   [javac] E extends Object declared in interface List

   [javac]
   
/sources/fop-2.10/fop-core/src/main/java/org/apache/fop/layoutmgr/BlockKnuthSequence.java:28:
   error: methods removeLast() from KnuthSequence and removeLast() from
   ArrayList are inherited with the same signature

   [javac] public class BlockKnuthSequence extends KnuthSequence {

   [javac] ^

   [javac] where E is a type-variable:


We're using the following instructions to build fop:

https://linuxfromscratch.org/blfs/view/systemd/pst/fop.html

I've looked into it a bit and I think https://github.com/apache/xmlgraphics-fop/commit/3d750f3289559f3896a61ab694d7f1a4481d720b

Do you folks have any ideas on what we can do to resolve this?

Thank you for your time!

Douglas R. Reno
Linux From Scratch

Reply via email to