Bug 1605031

Summary: xmkmf or imake exits silently without generation of a Makefile, e.g. xvkbd: FTBFS in Fedora rawhide
Product: [Fedora] Fedora Reporter: Raphael Groner <projects.rg>
Component: imakeAssignee: Tom "spot" Callaway <tcallawa>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: ajax, alexl, caillon+fedoraproject, igor.raits, john.j5live, mbarnes, negativo17, rhughes, rstrode, sandmann
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
URL: http://apps.fedoraproject.org/koschei/package/xvkbd
Whiteboard:
Fixed In Version: imake-1.0.7-14.fc29 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-07-28 12:02:28 UTC Type: Bug
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: 1602938, 1606828    
Attachments:
Description Flags
Imakefile none

Description Raphael Groner 2018-07-20 03:49:37 UTC
Description of problem:
Package xvkbd fails to build from source in Fedora rawhide.

Version-Release number of selected component (if applicable):
3.9-1.fc29

Steps to Reproduce:
koji build --scratch f29 xvkbd-3.9-1.fc29.src.rpm

Additional info:
This package is tracked by Koschei. See:
http://apps.fedoraproject.org/koschei/package/xvkbd

Comment 1 Raphael Groner 2018-07-20 03:53:26 UTC
It seems recent mass-rebuild broke imake. From build.log of xvkbd:
+ xmkmf -a
+ sed -i.mode -e 's|-m 0444|-m 0644|' Makefile
sed: can't read Makefile: No such file or directory

I'll extract and attach the used Imakefile to have better reproducibility.

Comment 2 Raphael Groner 2018-07-20 03:58:26 UTC
Created attachment 1464851 [details]
Imakefile

Fails in F29 but not in F28.

Comment 3 Raphael Groner 2018-07-28 09:44:46 UTC
Thanks to spot for the fix with commit 68ed50.

It seems imake must Require: gcc to be able to generate Makefile.

+ xmkmf -a
imake -DUseInstalled -I/usr/share/X11/config
sh: gcc: command not found
/usr/bin/xmkmf: line 53:  1684 Aborted                 (core dumped) imake $imake_defines $args

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

Comment 4 Igor Raits 2018-07-28 12:02:28 UTC
You seem to be right, it's entirely broken without cc.

Comment 5 Raphael Groner 2018-07-28 14:40:56 UTC
Thanks again, Igor and Tom. Koschei does not complain any more.