From bceccda3fd48a00bbe8263fd3b846dfb4cd79ac3 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Mon, 11 Apr 2022 23:50:02 +0200 Subject: [PATCH] package/tvheadend: fix FTBFS Fix the folloing build failure raised since commit 04164b81e76e29fb9482245e808b46af2aa67bc6: src/utils.c: In function 'sha512sum256': src/utils.c:619:45: error: token " " is not valid in preprocessor expressions 619 | #if OPENSSL_VERSION_NUMBER >= 0x1010101fL && !defined(LIBRESSL_VERSION_NUMBER) | ^ Fixes: - http://autobuild.buildroot.org/results/caf0f5e4c6ad0f2764f07d33f594b6121cea87bc Signed-off-by: Fabrice Fontaine Signed-off-by: Arnout Vandecappelle (Essensium/Mind) (cherry picked from commit bbb3370efbe92132cf4a00fa7bb267f9f4d6bc8a) Signed-off-by: Peter Korsgaard --- .../tvheadend/0003-Fix-FTBFS-in-utils-c.patch | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 package/tvheadend/0003-Fix-FTBFS-in-utils-c.patch diff --git a/package/tvheadend/0003-Fix-FTBFS-in-utils-c.patch b/package/tvheadend/0003-Fix-FTBFS-in-utils-c.patch new file mode 100644 index 0000000000..2caa281490 --- /dev/null +++ b/package/tvheadend/0003-Fix-FTBFS-in-utils-c.patch @@ -0,0 +1,28 @@ +From fd01737270d98c28465c86a688bd7d1c640486c5 Mon Sep 17 00:00:00 2001 +From: Michael Marley +Date: Wed, 6 Apr 2022 21:47:49 -0400 +Subject: [PATCH] Fix FTBFS in utils.c + +U+0020 SPACE and U+00A0 NO-BREAK SPACE look the same, but they +aren't the same. + +[Retrieved from: +https://github.com/tvheadend/tvheadend/commit/fd01737270d98c28465c86a688bd7d1c640486c5] +Signed-off-by: Fabrice Fontaine +--- + src/utils.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/utils.c b/src/utils.c +index eecb10e116..bc6401d22f 100644 +--- a/src/utils.c ++++ b/src/utils.c +@@ -616,7 +616,7 @@ sha256sum ( const char *str, int lowercase ) + char * + sha512sum256 ( const char *str, int lowercase ) + { +-#if OPENSSL_VERSION_NUMBER >= 0x1010101fL && !defined(LIBRESSL_VERSION_NUMBER) ++#if OPENSSL_VERSION_NUMBER >= 0x1010101fL && !defined(LIBRESSL_VERSION_NUMBER) + return openssl_hash_hexstr(str, lowercase, EVP_sha512_256(), 32); + #else + return NULL;