kumquat-buildroot/package/tvheadend/0003-Fix-FTBFS-in-utils-c.patch
Fabrice Fontaine bbb3370efb package/tvheadend: fix FTBFS
Fix the folloing build failure raised since commit
04164b81e7:

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 <fontaine.fabrice@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2022-04-21 19:31:40 +02:00

29 lines
1004 B
Diff
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

From fd01737270d98c28465c86a688bd7d1c640486c5 Mon Sep 17 00:00:00 2001
From: Michael Marley <michael@michaelmarley.com>
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 <fontaine.fabrice@gmail.com>
---
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;