Bug 2503871

Summary: erlang-amf: FTBFS in Fedora rawhide/f45
Product: [Fedora] Fedora Reporter: Fedora Release Engineering <releng>
Component: erlang-amfAssignee: Peter Lemenkov <lemenkov>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: lemenkov
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: erlang-amf-0-0.43.20170825git8fea004.fc45 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-07-29 12:52:37 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: 2433833    
Attachments:
Description Flags
build.log
none
root.log
none
state.log none

Description Fedora Release Engineering 2026-07-21 18:27:06 UTC
erlang-amf failed to build from source in Fedora rawhide/f45

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


For details on the mass rebuild see:

https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
Please fix erlang-amf 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,
erlang-amf will be orphaned. Before branching of Fedora 46,
erlang-amf 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 2026-07-21 18:27:12 UTC
Created attachment 2149756 [details]
build.log

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

Comment 2 Fedora Release Engineering 2026-07-21 18:27:17 UTC
Created attachment 2149757 [details]
root.log

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

Comment 3 Fedora Release Engineering 2026-07-21 18:27:20 UTC
Created attachment 2149758 [details]
state.log

Comment 4 Peter Lemenkov 2026-07-29 12:52:37 UTC
Fixed in erlang-amf-0-0.43.20170825git8fea004.fc45.

The FTBFS was caused by a behaviour change in OTP 27: gb_trees:next/1 now returns 'none' when the iterator is exhausted instead of '[]'. The encode_as_reference/2 function in amf0.erl only handled the empty list case via a function clause, causing a {case_clause, none} crash at runtime when encoding objects, arrays or typed objects. Added a 'none' clause to fix the issue.