Bug 1987588

Summary: jansi-native: FTBFS in Fedora rawhide/f35
Product: [Fedora] Fedora Reporter: Fedora Release Engineering <releng>
Component: jansi-nativeAssignee: Java Package Maintainers <java-maint-sig>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: hdegoede, java-maint-sig, loganjerry, mizdebsk
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-08-03 09:24:12 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: 1927309    
Attachments:
Description Flags
build.log
none
root.log
none
state.log none

Description Fedora Release Engineering 2021-07-29 15:19:51 UTC
jansi-native failed to build from source in Fedora rawhide/f35

https://koji.fedoraproject.org/koji/taskinfo?taskID=72383787


For details on the mass rebuild see:

https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Please fix jansi-native at your earliest convenience and set the bug's status to
ASSIGNED when you start fixing it. If the bug remains in NEW state for 8 weeks,
jansi-native will be orphaned. Before branching of Fedora 36,
jansi-native will be retired, if it still fails to build.

For more details on the FTBFS policy, please visit:
https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/

Comment 1 Fedora Release Engineering 2021-07-29 15:19:55 UTC
Created attachment 1807776 [details]
build.log

Comment 2 Fedora Release Engineering 2021-07-29 15:19:58 UTC
Created attachment 1807777 [details]
root.log

file root.log too big, will only attach last 32768 bytes

Comment 3 Fedora Release Engineering 2021-07-29 15:20:00 UTC
Created attachment 1807778 [details]
state.log

Comment 4 Fedora Release Engineering 2021-08-01 04:28:13 UTC
Dear Maintainer,

your package has an open Fails To Build From Source bug for Fedora 35.
Action is required from you.

If you can fix your package to build, perform a build in koji, and either create
an update in bodhi, or close this bug without creating an update, if updating is
not appropriate [1]. If you are working on a fix, set the status to ASSIGNED to
acknowledge this. If you have already fixed this issue, please close this Bugzilla report.

Following the policy for such packages [2], your package will be orphaned if
this bug remains in NEW state more than 8 weeks (not sooner than 2021-09-23).

A week before the mass branching of Fedora 36 according to the schedule [3],
any packages not successfully rebuilt at least on Fedora 34 will be
retired regardless of the status of this bug.

[1] https://docs.fedoraproject.org/en-US/fesco/Updates_Policy/
[2] https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/
[3] https://fedorapeople.org/groups/schedule/f-36/f-36-key-tasks.html

Comment 5 Hans de Goede 2021-08-02 13:08:23 UTC
The error is:

"""
[ERROR] Source option 1.4 is no longer supported. Use 6 or later.
[ERROR] Target option 1.4 is no longer supported. Use 1.6 or later.
"""

I've tried adding the following to the spec-file to fix things:

"""
# Set source + target versions to fix build
%pom_xpath_inject pom:properties "
    <java.version>1.8</java.version>
    <maven.compiler.source>1.8</maven.compiler.source>
    <maven.compiler.target>1.8</maven.compiler.target>"
"""

This make the changes which I want it to make to the pom-file,
but the error does not go away.

If someone with more java-packaging experience can lend a hand here, then that would be great.

(moving to assigned to indicate that this is being worked on)

Comment 6 Jerry James 2021-08-02 19:14:46 UTC
Here's my take on a fix:

https://src.fedoraproject.org/rpms/jansi-native/pull-request/4

Comment 7 Hans de Goede 2021-08-03 09:24:12 UTC
(In reply to Jerry James from comment #6)
> Here's my take on a fix:
> 
> https://src.fedoraproject.org/rpms/jansi-native/pull-request/4

Thank you so much for that, figuring that out would have taken me ages.

Merged and build, closing.