[arch-commits] Commit in kdenetwork-kopete/trunk (PKGBUILD kopete-pthread-link.patch)
Antonio Rojas
arojas at archlinux.org
Wed Apr 5 09:18:01 UTC 2017
Date: Wednesday, April 5, 2017 @ 09:18:00
Author: arojas
Revision: 292096
openssl-1.0 1.0.2.k-3 rebuild
Added:
kdenetwork-kopete/trunk/kopete-pthread-link.patch
Modified:
kdenetwork-kopete/trunk/PKGBUILD
---------------------------+
PKGBUILD | 12 ++++++++----
kopete-pthread-link.patch | 12 ++++++++++++
2 files changed, 20 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-04-05 09:03:06 UTC (rev 292095)
+++ PKGBUILD 2017-04-05 09:18:00 UTC (rev 292096)
@@ -5,7 +5,7 @@
pkgname=kdenetwork-kopete
pkgver=16.12.3
-pkgrel=2
+pkgrel=3
pkgdesc='Instant Messenger'
url='https://kde.org/applications/internet/kopete/'
arch=('i686' 'x86_64')
@@ -15,10 +15,11 @@
makedepends=('cmake' 'automoc4' 'boost' 'mediastreamer' 'libgadu' 'jsoncpp')
optdepends=('mediastreamer: jingle support' 'libgadu: Gadu-Gadu protocol')
source=("https://download.kde.org/stable/applications/${pkgver}/src/kopete-${pkgver}.tar.xz"{,.sig}
- kopete-mediastreamer2.14.patch)
+ kopete-mediastreamer2.14.patch kopete-pthread-link.patch)
sha256sums=('61be9e45cb08e42a00bdc0e99f5d7ad7872299ac2e104124a3c0d939422376b6'
'SKIP'
- 'c34a268aaa058e563174581dbe37c15fed91e82326ec704d2a872463139865e0')
+ 'c34a268aaa058e563174581dbe37c15fed91e82326ec704d2a872463139865e0'
+ 'a7ebdd8dd4336b7ec085ef254bf18040f473b73379a8cd84569b28441a6c71df')
validpgpkeys=(CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7) # Albert Astals Cid <aacid at kde.org>
prepare() {
@@ -27,6 +28,8 @@
# Fix build with mediastreamer 2.14
cd kopete-$pkgver
patch -p1 -i ../kopete-mediastreamer2.14.patch
+# Fix linking to pthread in libjingle-call
+ patch -p1 -i ../kopete-pthread-link.patch
}
build() {
@@ -37,10 +40,11 @@
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_SKIP_RPATH=ON \
-DWITH_Libmsn=OFF \
+ -DCMAKE_LD_FLAGS="$LDFLAGS -lpthread" \
-DOPENSSL_INCLUDE_DIR=/usr/include/openssl-1.0 \
-DOPENSSL_SSL_LIBRARY=/usr/lib/openssl-1.0/libssl.so \
-DOPENSSL_CRYPTO_LIBRARY=/usr/lib/openssl-1.0/libcrypto.so
- make
+ make VERBOSE=1
}
package() {
Added: kopete-pthread-link.patch
===================================================================
--- kopete-pthread-link.patch (rev 0)
+++ kopete-pthread-link.patch 2017-04-05 09:18:00 UTC (rev 292096)
@@ -0,0 +1,12 @@
+diff --git a/protocols/jabber/libjingle/CMakeLists.txt b/protocols/jabber/libjingle/CMakeLists.txt
+index 7ea8c3eb6..4b73085b8 100644
+--- a/protocols/jabber/libjingle/CMakeLists.txt
++++ b/protocols/jabber/libjingle/CMakeLists.txt
+@@ -288,6 +288,7 @@ set ( call_LIBS
+ ${MEDIASTREAMER_LIBRARIES}
+ ${LIBORTP_LIBRARY}
+ ${CMAKE_DL_LIBS}
++ pthread
+ )
+
+ if ( NOT WIN32 )
More information about the arch-commits
mailing list