dev-db/sqliteman: add patch to solve build failure on uclibc caused by underlinking
authorMichael Palimaka <kensington@gentoo.org>
Wed, 29 Jun 2016 18:25:13 +0000 (04:25 +1000)
committerMichael Palimaka <kensington@gentoo.org>
Wed, 29 Jun 2016 18:27:06 +0000 (04:27 +1000)
Gentoo-bug: 587076

Package-Manager: portage-2.3.0

dev-db/sqliteman/files/sqliteman-1.2.2-lpthread.patch [new file with mode: 0644]
dev-db/sqliteman/sqliteman-1.2.2-r1.ebuild

diff --git a/dev-db/sqliteman/files/sqliteman-1.2.2-lpthread.patch b/dev-db/sqliteman/files/sqliteman-1.2.2-lpthread.patch
new file mode 100644 (file)
index 0000000..a9bf4f4
--- /dev/null
@@ -0,0 +1,19 @@
+Resolves underlinking issue causing build failure on uclibc.
+
+Author: René Rhéaume <rene.rheaume@gmail.com>
+Gentoo-bug: 587076
+
+--- a/sqliteman/CMakeLists.txt
++++ b/sqliteman/CMakeLists.txt
+@@ -183,7 +183,10 @@ IF (WIN32)
+     # don't use console subsystem
+     IF (MINGW)
+         TARGET_LINK_LIBRARIES(${EXE_NAME} "-mwindows")
+-      ENDIF (MINGW)
++    ENDIF (MINGW)
++ELSE (WIN32)
++      FIND_PACKAGE(Threads)
++      TARGET_LINK_LIBRARIES(${EXE_NAME} ${CMAKE_THREAD_LIBS_INIT})
+ ENDIF (WIN32)
index edadcb76a46268bc9cd5dd5da87473b396fa9374..e10a0cab9a74adf47e0a1e44e85aa122d203e0a5 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -23,6 +23,7 @@ RDEPEND="
 DEPEND="${RDEPEND}"
 
 DOCS=( AUTHORS README )
+PATCHES=( "${FILESDIR}/${P}-lpthread.patch" )
 
 src_prepare() {
        # remove bundled lib