From cb602bce7004aedcad88f5a22e4d6acd9372da8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sun, 28 Apr 2019 20:10:31 +0200 Subject: Some work to fix build errors --- debian/control | 4 +++- debian/patches/0001-missing_pthread.patch | 13 +++++++++++++ debian/patches/series | 1 + debian/rules | 4 +++- 4 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 debian/patches/0001-missing_pthread.patch create mode 100644 debian/patches/series (limited to 'debian') diff --git a/debian/control b/debian/control index 5de9921..d5658ca 100644 --- a/debian/control +++ b/debian/control @@ -3,8 +3,10 @@ Section: libs Priority: optional Maintainer: Jörg Frings-Fürst Build-Depends: + cmake, debhelper (>= 11), - dh-exec (>=0.3) + dh-exec (>=0.3), + libgtest-dev Build-Depends-Indep: doxygen, graphviz, diff --git a/debian/patches/0001-missing_pthread.patch b/debian/patches/0001-missing_pthread.patch new file mode 100644 index 0000000..3054ce9 --- /dev/null +++ b/debian/patches/0001-missing_pthread.patch @@ -0,0 +1,13 @@ +Index: trunk/CMakeLists.txt +=================================================================== +--- trunk.orig/CMakeLists.txt ++++ trunk/CMakeLists.txt +@@ -209,7 +209,7 @@ if(URIPARSER_BUILD_TOOLS) + tool/uriparse.c + ) + +- target_link_libraries(uriparse PUBLIC uriparser) ++ target_link_libraries(uriparse PUBLIC uriparser pthread) + + if(HAIKU) + # Function inet_ntop needs -lsocket or -lnetwork (see pull request #45) diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..39a7230 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +0001-missing_pthread.patch diff --git a/debian/rules b/debian/rules index 3245017..0639e27 100755 --- a/debian/rules +++ b/debian/rules @@ -25,7 +25,9 @@ endif dh $@ --with autoreconf override_dh_auto_configure: - ./configure $(confflags) + dh_auto_configure --buildsystem=cmake +#$(confflags) +# ./configure $(confflags) override_dh_auto_build-indep: dh_auto_build -- cgit v1.2.3