Red Hat Bugzilla – Bug 1279214
[epel7s390x] jboss-jstl-1.2-api SRPM does not build correctly on s390x (using IBM Java)
Last modified: 2016-07-19 04:23:32 EDT
The EPEL 7 SRPM for jboss-jstl-1.2-api
does not build correctly in Mock on s390x.
The extension xml.jar shipped with IBM JDK already contains a version of class "org.apache.xpath.res.XPATHErrorResources", which is incompatible with this SRPM. Thus building this project would fail due to "symbol cannot be found" compilation error.
We can fix this issue by specifying openJDK (instead of java-devel) as the build requirement in spec file for now.
We have found a workaround to fix this issue.
We add 2 maven plugins:
1. copying xalan-j2.jar to a directory under build directory
2. use -Djava.endorsed.dirs option to endorse the directory which contains the copied jar.
After applying these changes, jboss-jstl can be built correctly on s390x.
Ideally, it would be better to endorse /usr/share/java instead, as this is where xalan-j2.jar originally located in Mock.
However, endorsing that directory will create another conflict. To avoid this conflict, xalan-j2.jar is copied to a different directory and that directory is endorsed instead.
Created attachment 1091300 [details]
patch to endorse xalan-j2.jar on IBM JDK
------- Comment From firstname.lastname@example.org 2015-11-08 17:13 EDT-------
------- Comment From email@example.com 2015-11-11 12:45 EDT-------
jboss-jstl-1.2-api-1.0.3-13.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2015-48ef56dfbb
------- Comment From firstname.lastname@example.org 2015-11-11 13:14 EDT-------
jboss-jstl-1.2-api-1.0.3-13.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'yum --enablerepo=epel-testing update jboss-jstl-1.2-api'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2015-48ef56dfbb
------- Comment From email@example.com 2015-12-02 20:55 EDT-------
I just tested the new SRPM from https://dl.fedoraproject.org/pub/epel/testing/7/SRPMS/j/jboss-jstl-1.2-api-1.0.3-13.el7.src.rpm. I can build this SRPM on s390x on Mock now. Thank you!
------- Comment From firstname.lastname@example.org 2016-03-16 06:57 EDT-------
Closing as per previous comment
Now we use pom macros, patch1 is removed in 1.1.2.Final
sorry, how much longer this bug will have to stay open?
It has not already been solved?
Thanks in advance
jboss-jstl-1.2-api-1.0.3-13.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.