Bug 1603820

Summary: dos2unix: FTBFS in Fedora rawhide
Product: [Fedora] Fedora Reporter: Mohan Boddu <mboddu>
Component: dos2unixAssignee: Tim Waugh <twaugh>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: twaugh, waterlan
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: dos2unix-7.4.0-5.fc29 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-07-23 11:34: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: 1551327, 1602938    
Attachments:
Description Flags
build.log
none
root.log
none
state.log none

Description Mohan Boddu 2018-07-19 19:02:45 UTC
dos2unix failed to build from source in Fedora rawhide

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


For details on the mass rebuild see:

https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Please fix dos2unix 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,
dos2unix will be orphaned. Before branching of Fedora 30,
dos2unix will be retired, if it still fails to build.

For more details on the FTBFS policy, please visit:
https://fedoraproject.org/wiki/Fails_to_build_from_source

Comment 1 Mohan Boddu 2018-07-19 19:02:54 UTC
Created attachment 1461504 [details]
build.log

Comment 2 Mohan Boddu 2018-07-19 19:02:58 UTC
Created attachment 1461505 [details]
root.log

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

Comment 3 Mohan Boddu 2018-07-19 19:03:05 UTC
Created attachment 1461506 [details]
state.log

Comment 4 Erwin Waterlander 2018-07-21 14:58:21 UTC
Need to add CC=gcc to make build command.
The default value of CC is cc, which command is not available any more as it seems.

Comment 5 Erwin Waterlander 2018-07-21 15:02:55 UTC
Correction.

The default value of CC is gcc. So it looks like CC is set in the environment to "cc", which breaks compilation.

To me it looks like that this is actually an environment problem and not a dos2unix problem. The environment sets CC to "cc" which is not available.

Comment 6 Igor Raits 2018-07-23 11:08:03 UTC
Matches:
make: cc: Command not found

Suggested fix:
BuildRequires:  gcc

Comment 7 Erwin Waterlander 2018-07-30 22:00:50 UTC
Thanks fixing!