Bug 245225 - perl-GD build warning perl-GD-2.35-2.fc6.src.rpm
Summary: perl-GD build warning perl-GD-2.35-2.fc6.src.rpm
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: perl-GD
Version: 8
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Tom "spot" Callaway
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-06-21 19:18 UTC by R P Herrold
Modified: 2008-07-21 19:04 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-07-21 19:04:28 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description R P Herrold 2007-06-21 19:18:07 UTC
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:

Comment 1 Jose Pedro Oliveira 2007-06-22 00:13:13 UTC
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";

Comment 2 Bug Zapper 2008-04-04 12:50:53 UTC
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.

Comment 3 R P Herrold 2008-04-08 18:01:53 UTC
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

Comment 4 Tom "spot" Callaway 2008-07-21 19:04:28 UTC
Fixed in rawhide (2.39-1).


Note You need to log in before you can comment on or make changes to this bug.