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/patches/0001-missing_pthread.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 debian/patches/0001-missing_pthread.patch (limited to 'debian/patches/0001-missing_pthread.patch') 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) -- cgit v1.2.3 From d3f17d40ea57a789b3466db81a3b70fb1294242c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sat, 13 Jul 2019 18:02:05 +0200 Subject: Rewrite build process; Refresh symbols file --- debian/patches/0001-missing_pthread.patch | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'debian/patches/0001-missing_pthread.patch') diff --git a/debian/patches/0001-missing_pthread.patch b/debian/patches/0001-missing_pthread.patch index 3054ce9..8afe6ae 100644 --- a/debian/patches/0001-missing_pthread.patch +++ b/debian/patches/0001-missing_pthread.patch @@ -2,12 +2,30 @@ Index: trunk/CMakeLists.txt =================================================================== --- trunk.orig/CMakeLists.txt +++ trunk/CMakeLists.txt -@@ -209,7 +209,7 @@ if(URIPARSER_BUILD_TOOLS) +@@ -212,7 +212,8 @@ if(URIPARSER_BUILD_TOOLS) tool/uriparse.c ) - target_link_libraries(uriparse PUBLIC uriparser) ++ find_package(Threads REQUIRED) + target_link_libraries(uriparse PUBLIC uriparser pthread) if(HAIKU) # Function inet_ntop needs -lsocket or -lnetwork (see pull request #45) +@@ -245,6 +246,7 @@ if(URIPARSER_BUILD_TESTS) + enable_testing() + + find_package(GTest 1.8.1 REQUIRED) ++ find_package(Threads REQUIRED) + + add_executable(testrunner + test/FourSuite.cpp +@@ -274,7 +276,7 @@ if(URIPARSER_BUILD_TESTS) + ) + + target_link_libraries(testrunner PUBLIC +- ${GTEST_BOTH_LIBRARIES} ++ ${GTEST_BOTH_LIBRARIES} pthread + ) + + add_test( -- cgit v1.2.3 From b6e126f1cae754951cedb0659a4c383eb2db5f7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sat, 13 Jul 2019 18:38:58 +0200 Subject: Add patch description --- debian/patches/0001-missing_pthread.patch | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'debian/patches/0001-missing_pthread.patch') diff --git a/debian/patches/0001-missing_pthread.patch b/debian/patches/0001-missing_pthread.patch index 8afe6ae..1567ac4 100644 --- a/debian/patches/0001-missing_pthread.patch +++ b/debian/patches/0001-missing_pthread.patch @@ -1,3 +1,8 @@ +Description: Add missing pthread to build system +Author: Jörg Frings-Fürst +Last-Update: 2019-07-13 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ Index: trunk/CMakeLists.txt =================================================================== --- trunk.orig/CMakeLists.txt -- cgit v1.2.3