Well I got this package to build (needed it to unclog things in raspbian, I'd really rather not do removals for reasons I won't get into here) but I'm not sure how useful the resulting package will be. In particular I ended up disabling liblognorm completely due to.

sagan.c:874:9: error: too few arguments to function ‘ln_normalize’

I looked upstream to see if anything had been done but it seems the code in that area had been totally changed since the version in debian.

debdiff attatched, no intent to NMU in debian.
diff -Nru sagan-0.2.1.r1/debian/changelog sagan-0.2.1.r1/debian/changelog
--- sagan-0.2.1.r1/debian/changelog     2012-04-16 20:33:24.000000000 +0000
+++ sagan-0.2.1.r1/debian/changelog     2014-08-16 00:23:20.000000000 +0000
@@ -1,3 +1,12 @@
+sagan (0.2.1.r1-1+rpi1) jessie-staging; urgency=medium
+
+  * Add libee-dev to build-depends.
+  * Force /usr/include/json-c onto include path
+  * add #include <libee/ctx.h> to sagan.c
+  * Disable liblognorm.
+
+ -- Peter Michael Green <plugw...@raspbian.org>  Wed, 13 Aug 2014 21:43:06 
+0000
+
 sagan (0.2.1.r1-1) unstable; urgency=low
 
   * Imported Upstream version 0.2.1-r1
diff -Nru sagan-0.2.1.r1/debian/control sagan-0.2.1.r1/debian/control
--- sagan-0.2.1.r1/debian/control       2012-04-16 20:18:01.000000000 +0000
+++ sagan-0.2.1.r1/debian/control       2014-08-13 21:13:39.000000000 +0000
@@ -11,7 +11,8 @@
     libmysqlclient-dev,
     libpq-dev,
     libprelude-dev,
-    liblognorm-dev
+    liblognorm-dev,
+    libee-dev
 Standards-Version: 3.9.3
 Homepage: http://sagan.softwink.com/
 #Vcs-Git: git://git.debian.org/collab-maint/sagan.git
diff -Nru sagan-0.2.1.r1/debian/patches/add-include.diff 
sagan-0.2.1.r1/debian/patches/add-include.diff
--- sagan-0.2.1.r1/debian/patches/add-include.diff      1970-01-01 
00:00:00.000000000 +0000
+++ sagan-0.2.1.r1/debian/patches/add-include.diff      2014-08-16 
00:20:17.000000000 +0000
@@ -0,0 +1,26 @@
+Description:  add #include <libee/ctx.h> to sagan.c
+Author: Peter Michael Green <plugw...@raspbian.org>
+
+---
+The information above should follow the Patch Tagging Guidelines, please
+checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
+are templates for supplementary fields that you might want to add:
+
+Origin: <vendor|upstream|other>, <url of original patch>
+Bug: <url in upstream bugtracker>
+Bug-Debian: http://bugs.debian.org/<bugnumber>
+Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
+Forwarded: <no|not-needed|url proving that it has been forwarded>
+Reviewed-By: <name and email of someone who approved the patch>
+Last-Update: <YYYY-MM-DD>
+
+--- sagan-0.2.1.r1.orig/src/sagan.c
++++ sagan-0.2.1.r1/src/sagan.c
+@@ -49,6 +49,7 @@
+ #include <arpa/inet.h>
+ #include <netinet/in.h>
+ #include <sys/socket.h>
++#include <libee/ctx.h>
+ 
+ #include "sagan.h"
+ 
diff -Nru sagan-0.2.1.r1/debian/patches/series 
sagan-0.2.1.r1/debian/patches/series
--- sagan-0.2.1.r1/debian/patches/series        2011-12-18 14:01:26.000000000 
+0000
+++ sagan-0.2.1.r1/debian/patches/series        2014-08-16 00:19:55.000000000 
+0000
@@ -1 +1,2 @@
 01-do-not-include-lognorm-private-header.patch
+add-include.diff
diff -Nru sagan-0.2.1.r1/debian/rules sagan-0.2.1.r1/debian/rules
--- sagan-0.2.1.r1/debian/rules 2012-04-16 20:18:10.000000000 +0000
+++ sagan-0.2.1.r1/debian/rules 2014-08-16 00:19:18.000000000 +0000
@@ -12,9 +12,11 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+export DEB_CFLAGS_MAINT_APPEND=-I/usr/include/json-c
+
 override_dh_auto_configure:
        dh_testdir
-       dh_auto_configure -- --with-postgresql-includes=/usr/include/postgresql 
--disable-libdnet LIBS="-lm -lestr -lee"
+       dh_auto_configure -- --with-postgresql-includes=/usr/include/postgresql 
--disable-libdnet --disable-lognorm LIBS="-lm -lestr -lee"
 
 override_dh_auto_install:
        dh_auto_install

Reply via email to