[Buildroot] [git commit] package/tvheadend: fix FTBFS

Arnout Vandecappelle (Essensium/Mind) arnout at mind.be
Thu Apr 21 17:31:40 UTC 2022


commit: https://git.buildroot.net/buildroot/commit/?id=bbb3370efbe92132cf4a00fa7bb267f9f4d6bc8a
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

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 <fontaine.fabrice at gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout at mind.be>
---
 package/tvheadend/0003-Fix-FTBFS-in-utils-c.patch | 28 +++++++++++++++++++++++
 1 file changed, 28 insertions(+)

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 <michael at 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 at 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;



More information about the buildroot mailing list