Bug 411101

Summary: Building x86_64 packages with 'BuildRequires: glew-devel' fails
Product: [Fedora] Fedora Reporter: Bruno Postle <bruno>
Component: mockAssignee: David Cantrell <dcantrell>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: medium    
Version: 8CC: mebrown
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-12-05 04:52:17 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 Bruno Postle 2007-12-04 21:33:34 UTC
Description of problem:

fedora-8-x86_64.cfg contains a pattern glob to exclude i386 packages except
those beginning in 'gl', so any package that has 'BuildRequires: glew-devel'
pulls in glew.i386 which then fails to pull in mesa-libGL.

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

mock-0.8.9-1.fc8

How reproducible:

Always

Steps to Reproduce:
1. wget
http://download.fedora.redhat.com/pub/fedora/linux/releases/8/Everything/source/SRPMS/enblend-3.0-6.fc8.src.rpm
2. mock --arch=x86_64 -rfedora-8-x86_64 --rebuild enblend-3.0-6.fc8.src.rpm
  
Actual results:

Error: Missing Dependency: libGLU.so.1 is needed by package glew
Error: Missing Dependency: libGL.so.1 is needed by package glew
Error: Missing Dependency: libX11.so.6 is needed by package glew

Expected results:

Nice shiny x86_64 rpm

Additional info:

This can be fixed by changing the 'exclude' line in the config to this:

exclude=[A-Za-fh-z]*.i*86 g[a-km-z]*.i?86 glib2.i?86 glib.i?86 glib-devel.i?86
glib2-devel.i?86 glew.i?86 glew-devel.i?86

Though looking around there are some other packages on my system that begin with
'gl', so maybe some other solution is optimal.

Comment 1 Michael E Brown 2007-12-05 04:15:53 UTC
awesome. 

thanks for the report. Will test and get a fix for this in.


Comment 2 Michael E Brown 2007-12-05 04:51:26 UTC
Fixed in upstream git. (will be released as 0.8.15 or higher.)

Changed exclude= to:

exclude=[!g]*.i*86 g[!l]*.i?86  gl[!i]*.i?86 gli[!b]*.i?86 glib[!c]*.i?86

which should be bulletproof.