libarchive: fix ext2fs build race error condition
authorPetr Štetiar <ynezz@true.cz>
Thu, 16 Jun 2022 11:38:11 +0000 (13:38 +0200)
committerJosef Schlehofer <pepe.schlehofer@gmail.com>
Wed, 13 Jul 2022 06:47:54 +0000 (08:47 +0200)
commit0bab8ae2a7cbbef2236d3d3cc706fc37097a8b29
treebf40ac1ab3afbfa6959012a2994dc18c2483d13f
parent742ef3c1207b5efc19a0e358f3d61d870d277ef3
libarchive: fix ext2fs build race error condition

libarchive looks for ext2fs headers during configure, and if it finds
them it will expect to find them during compile, or on the rare occasion
when they aren't it will fail:

 libarchive/archive_entry.c:59:55: fatal error: ext2fs/ext2_fs.h: No such file or directory

As we just need headers for some type constants, let's re-use headers
from tools/e2fsprogs package which are always available.

Reported-by: Adam Dov <adov@maxlinear.com>
Suggested-by: Paul Eggleton <paul.eggleton@linux.intel.com>
References: https://git.yoctoproject.org/poky/commit/?id=f0b9a7cf9f80be1917e45266fa201f464a28c1e5
Signed-off-by: Petr Štetiar <ynezz@true.cz>
(cherry picked from commit 797945dfaa0e7de8d6b0ada472bda63bb27f0cdc)
libs/libarchive/Makefile