linaro-pkg team mailing list archive
-
linaro-pkg team
-
Mailing list archive
-
Message #02138
Bug#966594: rt-app: patch for newer json-c
-
To:
submit@xxxxxxxxxxxxxxx
-
From:
Gianfranco Costamagna <locutusofborg@xxxxxxxxxx>
-
Date:
Fri, 31 Jul 2020 10:14:09 +0200
-
Autocrypt:
addr=locutusofborg@xxxxxxxxxx; prefer-encrypt=mutual; keydata= xsFNBFQVPswBEADg0sXR4vDrZAWn+keyphrNX9OeuRf2nYTd/uwfkwx0Gqp1MFYmKy0cnTc8 4XXawlqtbdc7ZAzcGCJU0x2S6KY5I3/+4TcxEtuJ19aqJqjfkgQ9e/n5o8mtAGO4vsE6JKNb CaWt6XzoCVtHa/uG6yMlAN2bR7Gcd3dPO0RIol2D2MCaY3mPIeFGyLvS+JjAZjA2wT2bCCWo QFBl2+IJstZtZHMPX7Hr3qATl8oMB7M6SXHHH+R3EPOjovUn9MGNgl3TbLApGvpyA6P/HdGw OLhcSo2fzo2Dfa+llYcNxTEE57J0kMfXEuYUFh2VQdImH0I2J2xEv8UkqDlbI9mES/WkZLkU MhmtrV7ty4+AyzkNVVaRulOvUJVsJARxhYYsnlzdw5zLWSNftrloqjTw0IfBOTj7JCv99Vw/ gMiav8yikQXmvEZ6hDBO3xTagcMEYuJSN9eBbM8pxn6n4DzN3MF4gB7Ta6ESlX5rH/5t0Wbk Wu593+xEy60Oqm4AAwnGAyDwHSmvKZ4qxvvj27GsL2b1IqJhQe4laX2eIaGAt3FHj6mFcFo0 ZKXe0UtrF3GpYlKpTO77PSSiqs4Kwk9FeaV7Jbb+zlQhodRanbU4KN7s8xFLj7pNitWcXjwS nhMUztqN7IGEOy3wrrPYryR0daeFWVpe+e5bzugvz8qRT+bdUwARAQABzTBHaWFuZnJhbmNv IENvc3RhbWFnbmEgPGxvY3V0dXNvZmJvcmdAZGViaWFuLm9yZz7CwXcEEwEIACEFAlYKceMC GwMFCwkIBwMFFQoJCAsFFgIDAQACHgECF4AACgkQ808JdE6fXdnfVQ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
-
Reply-to:
Gianfranco Costamagna <locutusofborg@xxxxxxxxxx>, 966594@xxxxxxxxxxxxxxx
-
Resent-cc:
Linaro Packagers <linaro-pkg@xxxxxxxxxxxxxxxxxxx>
-
Resent-date:
Fri, 31 Jul 2020 08:18:02 +0000
-
Resent-from:
Gianfranco Costamagna <locutusofborg@xxxxxxxxxx>
-
Resent-message-id:
<handler.966594.B.15961832573247@xxxxxxxxxxxxxxx>
-
Resent-to:
debian-bugs-dist@xxxxxxxxxxxxxxxx
-
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0
Source: rt-app
Version: 0.3-2
Severity: serious
tags: patch
hello, attached a patch that makes it build with newer json-c
thanks
G.
diff -Nru rt-app-0.3/debian/changelog rt-app-0.3/debian/changelog
--- rt-app-0.3/debian/changelog 2017-03-09 14:44:33.000000000 +0100
+++ rt-app-0.3/debian/changelog 2020-07-31 10:09:43.000000000 +0200
@@ -1,3 +1,9 @@
+rt-app (0.3-2.1) unstable; urgency=medium
+
+ * Patch for newer json-c (Closes: #-1)
+
+ -- Gianfranco Costamagna <locutusofborg@xxxxxxxxxx> Fri, 31 Jul 2020 10:09:43 +0200
+
rt-app (0.3-2) unstable; urgency=medium
* Fix FTBFS on some arches by defining unsigned long long as __u64
diff -Nru rt-app-0.3/debian/patches/new-jsoncpp.patch rt-app-0.3/debian/patches/new-jsoncpp.patch
--- rt-app-0.3/debian/patches/new-jsoncpp.patch 1970-01-01 01:00:00.000000000 +0100
+++ rt-app-0.3/debian/patches/new-jsoncpp.patch 2020-07-31 10:09:32.000000000 +0200
@@ -0,0 +1,35 @@
+Description: Patch for newer json-c removed is_error
+Author: Gianfranco Costamagna <locutusofborg@xxxxxxxxxx>
+Last-Update: 2020-07-30
+
+Index: rt-app-0.3/src/rt-app_parse_config.c
+===================================================================
+--- rt-app-0.3.orig/src/rt-app_parse_config.c
++++ rt-app-0.3/src/rt-app_parse_config.c
+@@ -18,9 +18,16 @@
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+-#include <json-c/bits.h>
+ #include "rt-app_parse_config.h"
+
++// not exported anymore by new json-c
++#ifndef TRUE
++#define TRUE 1
++#endif
++#ifndef FALSE
++#define FALSE 0
++#endif
++
+ #define PFX "[json] "
+ #define PFL " "PFX
+ #define PIN PFX" "
+@@ -886,7 +893,7 @@
+ {
+ struct json_object *global, *tasks, *resources;
+
+- if (is_error(root)) {
++ if (root == NULL) {
+ log_error(PFX "Error while parsing input JSON");
+ exit(EXIT_INV_CONFIG);
+ }
diff -Nru rt-app-0.3/debian/patches/series rt-app-0.3/debian/patches/series
--- rt-app-0.3/debian/patches/series 2017-03-09 14:44:33.000000000 +0100
+++ rt-app-0.3/debian/patches/series 2020-07-31 10:09:39.000000000 +0200
@@ -1 +1,2 @@
longlong-u64.diff
+new-jsoncpp.patch
Follow ups