Description of problem: perl-GD emits header related warnings during its build -- eitehr its expectation, of that of gd-devel as to header placement are wrong, and the warning should be addressed Version-Release number of selected component (if applicable): perl-GD-2.35-2.fc6.src.rpm $ rpm -qf /usr/include/gd.h gd-devel-2.0.33-9.3.fc6 How reproducible: rpmbuild --rebuild perl-GD-2.35-2.fc6.src.rpm 2>&1 | grep Warning Steps to Reproduce: 1. 2. 3. Actual results: (from my error and warning checker) Error: perl cruft found -|1|- ** WARNING: found gd.h header file in /usr/include/gd.h, but it is expected at /usr/include/gd.h. This may cause compile errors! ** Expected results: no warning to stderr, and no error as well [ a > /dev/null is inappropriate ;) ] Additional info:
This patch eliminates the warning (but using File::Spec should provide a better solution): diff -ruN GD-2.35-orig/Makefile.PL GD-2.35/Makefile.PL --- GD-2.35-orig/Makefile.PL»···2006-08-17 23:10:31.000000000 +0100 +++ GD-2.35/Makefile.PL»2007-06-22 01:07:14.000000000 +0100 @@ -295,6 +295,11 @@ my $problems; foreach (keys %libraries) { s/\blib\b/include/; + # + # The previous statement changes "/usr/lib/" into "/usr/include/" and + # that fails to match the %official_libraries hash "/usr/include" key + # + s/\/$//; next if $official_libraries{$_}; · next unless -e "${_}/gd.h";
Based on the date this bug was created, it appears to have been reported during the development of Fedora 8. In order to refocus our efforts as a project we are changing the version of this bug to '8'. If this bug still exists in rawhide, please change the version back to rawhide. (If you're unable to change the bug's version, add a comment to the bug and someone will change it for you.) Thanks for your help and we apologize for the interruption. The process we're following is outlined here: http://fedoraproject.org/wiki/BugZappers/F9CleanUp We will be following the process here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping to ensure this doesn't happen again.
This bug continues with the latest RawHide and perl-GD-2.35-7.fc9.src.rpm Checking for stray libgd header files... ** WARNING: found gd.h header file in /usr/include/gd.h, but it is expected at /usr/include/gd.h. This may cause compile errors! ** ** Possible problems found ** + make -j2 'OPTIMIZE=-O2 -g -pipe -Wall -Wp,-D_FORTIF
Fixed in rawhide (2.39-1).