Bug 1037777

Summary: Missing drm include files after changes in rhbz#962824 (kernel-2.6.32-415.el6)
Product: Red Hat Enterprise Linux 6 Reporter: Carlos Santos <casantos>
Component: kernelAssignee: Rob Clark <rclark>
Status: CLOSED NOTABUG QA Contact: Desktop QE <desktop-qa-list>
Severity: low Docs Contact:
Priority: high    
Version: 6.5CC: aquini, ccui, fleite, tpelka
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-04-08 15:05:19 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1056244    
Attachments:
Description Flags
VirtualBox Guest Additions installation log none

Description Carlos Santos 2013-12-03 19:24:07 UTC
Created attachment 832263 [details]
VirtualBox Guest Additions installation log

Description of problem:

The DRM backport for 6.5 (rhbz#962824) removed several include files under include/drm/

     1. include/drm/drm.h
     2. include/drm/drm_fourcc.h
     3. include/drm/drm_mode.h
     4. include/drm/drm_sarea.h
     5. include/drm/i810_drm.h
     6. include/drm/mga_drm.h
     7. include/drm/nouveau_drm.h
     8. include/drm/r128_drm.h
     9. include/drm/radeon_drm.h
    10. include/drm/savage_drm.h
    11. include/drm/sis_drm.h
    12. include/drm/via_drm.h

The problem is that files 1-4 are required to build the VirtualBox Guest Additions (VBGA) driver, and possibly other drivers. Without them it is impossible to build VBGA.

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

    kernel-2.6.32-415.el6

How reproducible:


Steps to Reproduce:

1. Install RHEL 6.5 on a VirtualBox VM (Desktop installation)
2. Install kernel-devel-2.6.32-431.el6
2. Mount the Guest Additions CD image on /mnt/vbga
3. Try to install the Guest Additions and build the kernel driver

   # cd /mnt/vbga
   # ./VBoxLinuxAdditions.run
   Verifying archive integrity... All good.
   ...

Actual results:

The "Building the OpenGL support module" step fails.

Expected results:

All installation steps should succeed.

Additional info:

This problem is caused by commit 11d83130a9d33bee09502c650ca6cc1848ee5dfe

This problem has been discussed in the VirtualBox forums, where e workaround was proposed:

    https://forums.virtualbox.org/viewtopic.php?f=3&t=58855

Comment 1 Carlos Santos 2013-12-03 19:29:39 UTC
How reproducible: Always

Comment 3 Carlos Santos 2014-01-07 12:56:22 UTC
***** WARNING *****

I made this bug public, since it was linked to a Red Hat customer case and the customer needs to watch the progress.

Comment 5 Rob Clark 2014-04-08 15:05:19 UTC
drm is not kabi.  Trying to pretend it is, is asking for trouble.

That said, I'd recommend to vbox folks.. firstly, get your driver upstream so this is not a problem in the future.  But until then, you'll have better luck pretending (from drm perspective) that rhel6 kernel is newer upstream kernel.  (For rhel65, pretend it is 3.9.

Comment 6 Carlos Santos 2014-04-09 12:10:43 UTC
I added a comment to the discussion in the VirtualBox forum referring to this BZ.