Bug 1161470

Summary: perl-Tk-804.032-4.fc22 FTBFS: No rule to make target 'pTk/default.h', needed by 'Tk.o'
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: perl-TkAssignee: Petr Pisar <ppisar>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: andreas.bierfert, perl-devel
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: http://koji.fedoraproject.org/koji/taskinfo?taskID=8061015
Whiteboard:
Fixed In Version: perl-Tk-804.032-5.fc22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-11-07 09:16:33 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:

Description Petr Pisar 2014-11-07 08:18:31 UTC
perl-Tk-804.032-4.fc22 fails to build in F22:

Running Mkbootstrap for Tk ()
TKGLUE
"/usr/bin/perl" "/usr/share/perl5/ExtUtils/xsubpp"  -typemap "/usr/share/perl5/ExtUtils/typemap" -typemap "/builddir/build/BUILD/Tk-804.032/Tk/typemap"  Tk.xs > Tk.xsc && mv Tk.xsc Tk.c
make: *** No rule to make target 'pTk/default.h', needed by 'Tk.o'.  Stop.

Difference between last working and failing build root is:

Removed packages:
	audit-libs-2.4
	groff-base-1.22.2
	hwdata-0.270
	libjpeg-turbo-1.3.1
	libjpeg-turbo-devel-1.3.1
	libpng-1.6.12
	libpng-devel-1.6.12
	perl-ExtUtils-MakeMaker-6.98
	perl-HTTP-Tiny-0.050
	perl-Pod-Perldoc-3.24
	perl-Pod-Usage-1.63
	systemd-216
	systemd-libs-216
	tzdata-2014h
Added packages:
	audit-libs-2.4.1
	hwdata-0.271
	libjpeg-turbo-1.3.90
	libjpeg-turbo-devel-1.3.90
	libpng-1.6.14
	libpng-devel-1.6.14
	perl-ExtUtils-MakeMaker-7.00
	perl-Pod-Parser-1.62
	systemd-217
	systemd-libs-217
	tzdata-2014i

This is probably caused by upgrading perl-ExtUtils-MakeMaker from 6.98 to 7.00 and fixed by upstream commit:

commit f579b535e68977bab6547ac58a0fe62791ea2309
Author: Slaven Rezic <slaven>
Date:   Thu Nov 6 20:02:45 2014 +0000

    Tk::MMutil: use $^X instead of $self->{PERL}
    
    Since ExtUtils::MakeMaker 6.99_10, the PERL object member is quoted.
    This caused the subsequent extraction commands to be run with an
    invalid command (the perl binary *with* quotes). Unfortunately
    this system() call failed silently, so the real problem showed
    up in a strange dependency problem, see
    https://rt.cpan.org/Ticket/Display.html?id=100044
    
    Instead of $self->{PERL}, now simply $^X is used. Also, the
    extraction commands do not fail silently anymore.
    
    Reference to the EUMM ticket:
    https://rt.cpan.org/Ticket/Display.html?id=100159