Bug 732987

Summary: Matplotlib has broken build dependencies
Product: [Fedora] Fedora EPEL Reporter: Oded Arbel <oded>
Component: python-matplotlibAssignee: Jef Spaleta <jspaleta>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: el6CC: jspaleta
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-09-15 18:49:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Oded Arbel 2011-08-24 11:57:06 UTC
Description of problem:
When trying to build python-matplotlib on a newly installed CentOS 5 machine, the build fails mid way due to missing dependencies

Version-Release number of selected component (if applicable):
0.99.1.2-1

How reproducible:
Always

Steps to Reproduce:
1. Install a minimal CentOS 5
2. download python-matplotlib source RPM
3. install all the dependencies listed in BuildRequires and try to build matplotlib
  
Actual results:
The build fails to complete due to missing numpy development packages, and when that is satisfied it fails to build when it tries to use gcc to compile a c++ file.

Expected results:
The build should complete successfully.

Additional info:
The RPM spec files should list numpy-devel and gcc-c++ as a build requirements.

Comment 1 Jef Spaleta 2011-09-15 18:44:20 UTC
First, let me state that as per Fedora packaging guidance gcc-c++ is purposefully not part of the build requirements for any package. 

For reference, please see:
 http://fedoraproject.org/wiki/Packaging:Guidelines#Exceptions_2

there are alternative compilers than gcc available for users. We try hard to to require any specific compiler and expect sysadmins to have prepped a build environment.

If you want to replicate the fedora build environment, I would suggest you look at using mock locally to prep a clean Fedora assumed environment. 

As for the numpy-devel, I'm not sure what to tell you there. Makes you wonder how this got through the build system back when this was build originally.  Maybe some other updated packages moved their devel bits around. 

For reference when I do a scratch build in koji from the git checkout of the packaging bits:
fedpkg build --scratch

I get a clean build.

http://koji.fedoraproject.org/koji/taskinfo?taskID=3353821

This builds cleanly against the fedora buildsystem and if you look at the logs numpy is sufficient according to the koji build. Weird.

can you give me the full package name for the numpy you have installed?

-jef

Comment 2 Jef Spaleta 2011-09-15 18:49:33 UTC
numpy-devel does not appear to exist as a package for RHEL 5. Soooooo I have to wonder, is that maybe a numpy package you picked up out of tree? 

I'm closing this bug. I can't adjust the packaging for an EPEL package for builddeps which don't exist in the target build environment.

-jef