Package: rt-app
Version: 0.2~alpha2.20140716-2.1
Severity: important
Tags: patch pending

Dear maintainer,

The json-c upstream has dropped an compatibility layer from libjson0(-dev)
to libjson-c2(-dev) in current upstream release.

rt-app needs to update the build-depends from libjson0-dev to libjson-c-dev
and in order to fix https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=792177,
I'm going around each of the reverse dependencies of libjson0-dev.

I've prepared an NMU for rt-app (versioned as 0.2~alpha2.20140716-2.2) and
uploaded it to DELAYED/10. Please feel free to tell me if I
should delay it longer.

Regards.
diff -Nru rt-app-0.2~alpha2.20140716/debian/changelog rt-app-0.2~alpha2.20140716/debian/changelog
--- rt-app-0.2~alpha2.20140716/debian/changelog	2014-10-17 07:19:51.000000000 +0100
+++ rt-app-0.2~alpha2.20140716/debian/changelog	2016-02-21 11:50:46.000000000 +0000
@@ -1,3 +1,10 @@
+rt-app (0.2~alpha2.20140716-2.2) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Switch from libjson0-dev to libjson-c-dev
+
+ -- Neil Williams <[email protected]>  Sun, 21 Feb 2016 11:50:45 +0000
+
 rt-app (0.2~alpha2.20140716-2.1) unstable; urgency=low
 
   * timespec_to_nsec: unify the return type (Closes: #757082).
diff -Nru rt-app-0.2~alpha2.20140716/debian/control rt-app-0.2~alpha2.20140716/debian/control
--- rt-app-0.2~alpha2.20140716/debian/control	2014-07-17 12:09:54.000000000 +0100
+++ rt-app-0.2~alpha2.20140716/debian/control	2016-02-21 11:55:17.000000000 +0000
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: Linaro Packagers <[email protected]>
 Uploaders: Wookey <[email protected]>
-Build-Depends: debhelper (>= 9), dh-autoreconf, libjson0-dev
+Build-Depends: debhelper (>= 9), dh-autoreconf, libjson-c-dev
 Standards-Version: 3.9.5
 Homepage: https://github.com/gbagnoli/rt-app
 
diff -Nru rt-app-0.2~alpha2.20140716/debian/patches/json-c.diff rt-app-0.2~alpha2.20140716/debian/patches/json-c.diff
--- rt-app-0.2~alpha2.20140716/debian/patches/json-c.diff	1970-01-01 01:00:00.000000000 +0100
+++ rt-app-0.2~alpha2.20140716/debian/patches/json-c.diff	2016-02-21 12:21:05.000000000 +0000
@@ -0,0 +1,38 @@
+Description: Migrate to json-c
+ rt-app (0.2~alpha2.20140716-2.2) unstable; urgency=medium
+ .
+   * Non-maintainer upload.
+   * Switch from libjson0-dev to libjson-c-dev
+Author: Neil Williams <[email protected]>
+
+---
+
+--- rt-app-0.2~alpha2.20140716.orig/configure.ac
++++ rt-app-0.2~alpha2.20140716/configure.ac
+@@ -48,12 +48,12 @@ AC_ARG_WITH([json],
+ 	   )
+ LIBJSON=
+ AS_IF([test "x$with_json" != "xno"],
+-      [AC_CHECK_LIB([json], [json_object_from_file],
+-	      	    [AC_SUBST([LIBJSON], ["-ljson"])
++      [AC_CHECK_LIB([json-c], [json_object_from_file],
++	      	    [AC_SUBST([LIBJSON], ["-ljson-c"])
+         	     AC_DEFINE([JSON], [1], [Define if you have libjson])
+        	            ],
+        	            [AC_MSG_FAILURE([libjson test failed (use --without-json to disable or install json-c)])],
+-                    [-ljson]
++                    [-ljson-c]
+ 		   )
+       ]
+      ) 
+--- rt-app-0.2~alpha2.20140716.orig/src/rt-app_parse_config.h
++++ rt-app-0.2~alpha2.20140716/src/rt-app_parse_config.h
+@@ -36,7 +36,7 @@ Foundation, Inc., 51 Franklin Street, Fi
+ #ifdef DLSCHED
+ #include "dl_syscalls.h"
+ #endif
+-#include <json/json.h>
++#include <json-c/json.h>
+ 
+ #define DEFAULT_THREAD_PRIORITY 10
+ #define DEFAULT_THREAD_NICE	0
diff -Nru rt-app-0.2~alpha2.20140716/debian/patches/series rt-app-0.2~alpha2.20140716/debian/patches/series
--- rt-app-0.2~alpha2.20140716/debian/patches/series	2014-10-17 07:11:22.000000000 +0100
+++ rt-app-0.2~alpha2.20140716/debian/patches/series	2016-02-21 12:20:48.000000000 +0000
@@ -1,3 +1,4 @@
 update-readme-for-merge
 fix-const-parser-warnings
 longlong-u64.diff
+json-c.diff

Attachment: signature.asc
Description: PGP signature

Reply via email to