Bug 6427

Summary: grub x86-64 packages contains sparc64 file
Product: [Build System, Metadata & Runtime] Other YP Layers Reporter: Volker <lists.volker>
Component: layersAssignee: Nitin Kamble <nitin.a.kamble>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: poky.bs.watcher, poky.watcher, richard.purdie
Version: 1.6   
Target Milestone: 1.7   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Volker 2014-06-11 15:37:55 UTC
The grub package for x86-64 contains the grub-sparc64-setup file.

I neither see a reason for that, nor do I see this file in other x86-64 Linux installation of different distributions.
Comment 1 Nitin Kamble 2014-08-15 18:58:02 UTC
For more details. There is a file named grub-sparc64-setup packaged, which is actually a x86_64 file. Note that, it is not a sparc binary. 


I also checked how other distros handle this case, and I find fedora 20 do provide this file in the grub2-tools rpm.

rpm -qpl grub2-tools-2.00-26.fc20.x86_64.rpm  | grep sparc
/usr/sbin/grub2-sparc64-setup


I am preparing a patch to avoid building of the grub-sparc64-setup files. I am not much familiar with this part of the code, but I guess it may be used to prepare a bootable disk for sparc64 system from an x86 platform. So it is not really relevant for the x86 BSPs functionality, and can be dropped from the x86 builds of the grub-2.
Comment 2 Nitin Kamble 2014-08-15 19:47:04 UTC
Sent a fix for this to the oecore mailing list.
Comment 3 Nitin Kamble 2014-09-11 15:54:12 UTC
commit cae5cf2d97fe4537f6c5ebed78fcce2839557403
Author: Nitin A Kamble <nitin.a.kamble@intel.com>
Date:   Fri Aug 15 12:34:52 2014 -0700

    grub_2.00: strip the sparc64 files from building
    
    Avoid building and packaging of sparc64 specific files in the x86 builds.
    
    Fixes Bug:
    [YOCTO #6427]
    
    (From OE-Core rev: e9d1264a63f47965c2f10e18e532b117bbda26be)
    
    Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
    Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>