]> code.ossystems Code Review - openembedded-core.git/commit
grub-efi: fix build failure
authorMaxin B. John <maxin.john@intel.com>
Thu, 22 Mar 2018 08:53:07 +0000 (10:53 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 5 Apr 2018 14:11:15 +0000 (15:11 +0100)
commita57e3e387a962a253e8f4f1519141eb7f8ce5e41
tree0547ebb2e91eddd560db9072617af360986ac6be
parent5055bcabca542074cad00c92edf79f3a1551ac32
grub-efi: fix build failure

grub-efi build fails with the following error on Fedora 26:

| ../grub-2.00/util/raid.c: In function 'grub_util_raid_getmembers':
| ../grub-2.00/util/raid.c:91:13: error: In the GNU C Library, "makedev"
is defined
|  by <sys/sysmacros.h>. For historical compatibility, it is
|  currently defined by <sys/types.h> as well, but we plan to
|  remove this soon. To use "makedev", include <sys/sysmacros.h>
|  directly. If you did not intend to use a system-defined macro
|  "makedev", you should undefine it after including <sys/types.h>.
[-Werror]
|         makedev (disk.major, disk.minor));
|              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Resolve the build error by backporting the fix from upstream.

[YOCTO #12595]

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/recipes-bsp/grub/files/0001-configure-fix-check-for-sys-sysmacros.h-under-glibc-.patch [new file with mode: 0644]
meta/recipes-bsp/grub/grub-efi_2.00.bb