Skip Menu |

This queue is for tickets about the Quota CPAN distribution.

Report information
The Basics
Id: 104652
Status: resolved
Priority: 0/
Queue: Quota

People
Owner: Nobody in particular
Requestors: c.affolter [...] purplehaze.ch
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.7.0
Fixed in: (no value)



Subject: make fails on Linux Kernel >= 4.0.0
make fails on Linux Kernel >= 4.0.0 as the myconfig.h symlink is missing: uname -rs Linux 4.0.4-gentoo perl Makefile.PL WARNING: No appropriate hints found for this OS: 'Linux 4.0.4-gentoo - see INSTALL' make cp Quota.pm blib/lib/Quota.pm AutoSplitting blib/lib/Quota.pm (blib/lib/auto/Quota) Running Mkbootstrap for Quota () chmod 644 Quota.bs /usr/bin/perl /usr/lib64/perl5/5.20.2/ExtUtils/xsubpp -typemap /usr/lib64/perl5/5.20.2/ExtUtils/typemap Quota.xs > Quota.xsc && mv Quota.xsc Quota.c You need to make a myconfig.h. See the file INSTALL. Makefile:1030: recipe for target 'myconfig.h' failed make: *** [myconfig.h] Error 1 The OS regex [1] needs to be change so that it either accepts Linux kernel versions starting with 4, or better, doesn't take the version into account at all (unless needed in the future). Without the version: --- Makefile.PL.orig 2013-04-02 19:05:28.000000000 +0200 +++ Makefile.PL 2015-05-24 11:43:34.020628352 +0200 @@ -13,7 +13,7 @@ elsif($os =~ /^IRIX 5/) { $config='irix_5.h'; } elsif($os =~ /^IRIX\d* 6/) { $config='irix_6.h'; } elsif($os =~ /^OSF1/) { $config='dec_osf.h'; } -elsif($os =~ /^Linux [23]/){ $config='linux.h'; $picobj='linuxapi.o'; } +elsif($os =~ /^Linux/) { $config='linux.h'; $picobj='linuxapi.o'; } elsif($os =~ /^AIX/) { $config='aix_4_1.h'; } elsif($os =~ /^BSD\/OS 2/ || $os =~ /^Darwin/ || Accepting >= 4.0.0 Kernel's --- Makefile.PL.orig 2013-04-02 19:05:28.000000000 +0200 +++ Makefile.PL 2015-05-24 11:44:23.859481700 +0200 @@ -13,7 +13,7 @@ elsif($os =~ /^IRIX 5/) { $config='irix_5.h'; } elsif($os =~ /^IRIX\d* 6/) { $config='irix_6.h'; } elsif($os =~ /^OSF1/) { $config='dec_osf.h'; } -elsif($os =~ /^Linux [23]/){ $config='linux.h'; $picobj='linuxapi.o'; } +elsif($os =~ /^Linux [234]/){ $config='linux.h'; $picobj='linuxapi.o'; } elsif($os =~ /^AIX/) { $config='aix_4_1.h'; } elsif($os =~ /^BSD\/OS 2/ || $os =~ /^Darwin/ || Downstream Gentoo bug ID #550194 [2] [1] https://metacpan.org/source/TOMZO/Quota-1.7.0/Makefile.PL#L16 [2] https://bugs.gentoo.org/show_bug.cgi?id=550194
Fixed as suggested in Quota-1.7.2