Package: libcsv-dev
Version: 3.0.3+dfsg-2
Severity: minor
Tags: patch
The examples need a little change to compile on Debian.
Also, a convenience Makefile would not hurd.
See attached trivial patch.
diff -uraN /usr/share/doc/libcsv-dev/examples/csvfix.c examples/csvfix.c
--- /usr/share/doc/libcsv-dev/examples/csvfix.c 2012-05-01 21:12:38.000000000 +0000
+++ examples/csvfix.c 2015-10-22 10:40:18.515946579 +0000
@@ -7,7 +7,8 @@
#include <stdlib.h>
#include <string.h>
#include <errno.h>
-#include "libcsv/csv.h"
+
+#include <csv.h>
void cb1 (void *s, size_t i, void *outfile) {
csv_fwrite((FILE *)outfile, s, i);
diff -uraN /usr/share/doc/libcsv-dev/examples/csvinfo.c examples/csvinfo.c
--- /usr/share/doc/libcsv-dev/examples/csvinfo.c 2012-05-01 21:12:46.000000000 +0000
+++ examples/csvinfo.c 2015-10-22 10:46:21.407939934 +0000
@@ -7,7 +7,8 @@
#include <string.h>
#include <errno.h>
#include <stdlib.h>
-#include "libcsv/csv.h"
+
+#include <csv.h>
struct counts {
long unsigned fields;
diff -uraN /usr/share/doc/libcsv-dev/examples/csvtest.c examples/csvtest.c
--- /usr/share/doc/libcsv-dev/examples/csvtest.c 2012-05-01 21:12:53.000000000 +0000
+++ examples/csvtest.c 2015-10-22 10:42:35.751944066 +0000
@@ -8,7 +8,8 @@
#include <stdlib.h>
#include <string.h>
#include <errno.h>
-#include "libcsv/csv.h"
+
+#include <csv.h>
static int put_comma;
diff -uraN /usr/share/doc/libcsv-dev/examples/csvvalid.c examples/csvvalid.c
--- /usr/share/doc/libcsv-dev/examples/csvvalid.c 2012-05-01 21:13:20.000000000 +0000
+++ examples/csvvalid.c 2015-10-22 10:43:28.415943102 +0000
@@ -7,7 +7,8 @@
#include <stdlib.h>
#include <string.h>
#include <errno.h>
-#include "libcsv/csv.h"
+
+#include <csv.h>
int
main (int argc, char *argv[])
diff -uraN /usr/share/doc/libcsv-dev/examples/Makefile examples/Makefile
--- /usr/share/doc/libcsv-dev/examples/Makefile 1970-01-01 00:00:00.000000000 +0000
+++ examples/Makefile 2015-10-22 10:48:31.015937561 +0000
@@ -0,0 +1,8 @@
+LDFLAGS=-lcsv
+
+EXAMPLES = csvfix csvinfo csvtest csvvalid
+
+all: $(EXAMPLES)
+
+clean:
+ rm -f $(EXAMPLES) *~