Bug 1858080
Summary: | resteasy fails to build with java-11-openjdk | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | jiri vanek <jvanek> |
Component: | resteasy | Assignee: | Dinesh Prasanth <dmoluguw> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | alee, ascheel, dchen, decathorpe, dmoluguw, edewata, java-maint-sig, java-sig-commits, jvanek, markku.korkeala, puntogil, sgehwolf, stewardship-sig, weli |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Fixed In Version: | resteasy-3.0.26-4.fc33 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-07-22 08:32:17 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 21:56:21 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. Build fails due to missing native2ascii tool, see below the RPM build error. The tool is removed from JDK11: The native2ascii tool has been removed from the JDK. Because JDK 9 and later re‐leases support UTF-8 based properties resource bundles, the conversion tool forUTF-8 based properties resource bundles to ISO-8859-1 is no longer needed. Is the "Fixing JDK7 ASCII issues" still relevant for JDK11? Build log: RPM build errors: + for f in ${files} + native2ascii -encoding UTF8 resteasy-jaxrs/src/main/java/org/jboss/resteasy/annotations/Query.java resteasy-jaxrs/src/main/java/org/jboss/resteasy/annotations/Query.java /var/tmp/rpm-tmp.bufPIw: line 182: native2ascii: command not found error: Bad exit status from /var/tmp/rpm-tmp.bufPIw (%prep) Bad exit status from /var/tmp/rpm-tmp.bufPIw (%prep) Finish: rpmbuild resteasy-3.0.26-3.fc33.src.rpm (In reply to Markku Korkeala from comment #2) > Build fails due to missing native2ascii tool, see below the RPM build error. > The tool is removed from JDK11: > The native2ascii tool has been removed from the JDK. Because JDK 9 and later > re‐leases support UTF-8 based properties resource bundles, the conversion > tool forUTF-8 based properties resource bundles to ISO-8859-1 is no longer > needed. > > Is the "Fixing JDK7 ASCII issues" still relevant for JDK11? > > Build log: > > RPM build errors: > + for f in ${files} > + native2ascii -encoding UTF8 > resteasy-jaxrs/src/main/java/org/jboss/resteasy/annotations/Query.java > resteasy-jaxrs/src/main/java/org/jboss/resteasy/annotations/Query.java > /var/tmp/rpm-tmp.bufPIw: line 182: native2ascii: command not found > error: Bad exit status from /var/tmp/rpm-tmp.bufPIw (%prep) > Bad exit status from /var/tmp/rpm-tmp.bufPIw (%prep) > Finish: rpmbuild resteasy-3.0.26-3.fc33.src.rpm I'd suggest to try building without the conversion. Failing that, try using iconv instead like I've proposed for bug 1857991. It remains to be seen whether or not that's the only issue. Yeah, it built fine without native2ascii conversion, and some minor modifications for APIs that were removed in OpenJDK 11. https://koji.fedoraproject.org/koji/buildinfo?buildID=1544749 |