Bug 1857991
Summary: | jericho-html fails to build with java-11-openjdk | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | jiri vanek <jvanek> |
Component: | jericho-html | Assignee: | Terje Røsten <terje.rosten> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | decathorpe, java-maint-sig, jvanek, puntogil, sgehwolf, terje.rosten |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-07-19 07:22:14 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1825969 |
Description
jiri vanek
2020-07-16 20:03:55 UTC
highlight: This was rebuild in sidetag f33-java11. Thus --target is really necessary to reproduce failure. please note: This side tag, f33-java11, will be merged to main f33 buildroot in aprox 14 days. From logs: native2ascii: command not found where is that command located in JDK 11 stack? (In reply to Terje Røsten from comment #2) > From logs: > > native2ascii: command not found > > where is that command located in JDK 11 stack? It's been removed in JDK 9. See: https://bugs.openjdk.java.net/browse/JDK-8074431 From the logs I see it's doing some conversion: + for s in src/java/net/htmlparser/jericho/{Renderer,StreamEncodingDetector}.java + native2ascii -encoding UTF8 src/java/net/htmlparser/jericho/Renderer.java src/java/net/htmlparser/jericho/Renderer.java Are you sure this is needed? If it's needed try to use iconv instead, perhaps? Something like this should do the trick, perhaps? diff --git a/jericho-html.spec b/jericho-html.spec index 3d1c265..d5d378d 100644 --- a/jericho-html.spec +++ b/jericho-html.spec @@ -37,7 +37,8 @@ find \( -name '*.java' -o -name '*.bat' -o -name '*.txt' -o -name '*.jsp' -o -na # fix non ASCII chars for s in src/java/net/htmlparser/jericho/{Renderer,StreamEncodingDetector}.java ; do - native2ascii -encoding UTF8 ${s} ${s} + iconv -f WINDOWS-1252 -t UTF-8 ${s} > ${s}.new + mv ${s}.new ${s} done %build @@ -51,7 +52,7 @@ export CLASSPATH=$(build-classpath slf4j/api commons-logging log4j) %javadoc -encoding UTF-8 -classpath classes:$CLASSPATH -quiet -Xdoclint:none \ -windowtitle "Jericho HTML Parser %version" -use -d docs/javadoc \ -subpackages net.htmlparser.jericho -exclude net.htmlparser.jericho.nodoc \ - -noqualifier net.htmlparser.jericho -group "Core Package" \ + -noqualifier net.htmlparser.jericho -sourcepath src/java -group "Core Package" \ src/java/net/htmlparser/jericho/*.java \ src/java/net/htmlparser/jericho/nodoc/*.java Thanks, that worked fine: https://koji.fedoraproject.org/koji/taskinfo?taskID=47418333 Pushed: https://koji.fedoraproject.org/koji/buildinfo?buildID=1543649 |