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>
This commit is contained in:
parent
d1e207f976
commit
bbb3370efb
28
package/tvheadend/0003-Fix-FTBFS-in-utils-c.patch
Normal file
28
package/tvheadend/0003-Fix-FTBFS-in-utils-c.patch
Normal file
@ -0,0 +1,28 @@
|
||||
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;
|
Loading…
Reference in New Issue
Block a user