harfbuzz: security bump to version 1.4.4
[buildroot-gz.git] / package / xfsprogs / 0002-libxfs-do-not-try-to-run-the-crc32selftest.patch
blob372a5301bdb828b86a2f5437e9c3b30c93ee437c
1 From 3a77dfc54271059dcac305384bf6ace34fe1f3d3 Mon Sep 17 00:00:00 2001
2 From: "Yann E. MORIN" <yann.morin.1998@free.fr>
3 Date: Sun, 18 Dec 2016 15:37:27 +0100
4 Subject: [PATCH] libxfs: do not try to run the crc32selftest
6 Even though the crc32selftest is natively compiled (because it is to be
7 executed), it fails in cross-compilation as the host may lack the
8 required headers, like uuid/uuid.h (e.g. in a minimal environment).
10 Moreover, running the crc32selftest natively is completely wrong,
11 because it passing on the host does not mean it would still pass n the
12 target (because endianness or bitness or alignment differences).
14 So, just disable running the crc32selftest altogether.
16 Note that there's a remaining bug-in-hiding, because the crc32 table
17 generator is natively built, but with the target CFLAGS.
19 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
20 ---
21 libxfs/Makefile | 4 ++--
22 1 file changed, 2 insertions(+), 2 deletions(-)
24 diff --git a/libxfs/Makefile b/libxfs/Makefile
25 index 62608bd..e021625 100644
26 --- a/libxfs/Makefile
27 +++ b/libxfs/Makefile
28 @@ -112,9 +112,9 @@ LTLIBS = $(LIBPTHREAD) $(LIBRT)
29 # don't try linking xfs_repair with a debug libxfs.
30 DEBUG = -DNDEBUG
32 -LDIRT = gen_crc32table crc32table.h crc32selftest
33 +LDIRT = gen_crc32table crc32table.h
35 -default: crc32selftest ltdepend $(LTLIBRARY)
36 +default: ltdepend $(LTLIBRARY)
38 crc32table.h: gen_crc32table.c
39 @echo " [CC] gen_crc32table"
40 --
41 2.7.4