pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/pkgsrc-2017Q1]: pkgsrc/x11/qt5-qtbase Pullup ticket #5335 - requested...
details: https://anonhg.NetBSD.org/pkgsrc/rev/505dccb5d74f
branches: pkgsrc-2017Q1
changeset: 360300:505dccb5d74f
user: bsiegert <bsiegert%pkgsrc.org@localhost>
date: Tue Apr 25 18:29:40 2017 +0000
description:
Pullup ticket #5335 - requested by maya
x11/qt5-qtbase: build fix
Revisions pulled up:
- x11/qt5-qtbase/Makefile 1.42
- x11/qt5-qtbase/distinfo 1.32
- x11/qt5-qtbase/patches/patch-src_corelib_thread_qwaitcondition__unix.cpp 1.1
---
Module Name: pkgsrc
Committed By: maya
Date: Thu Apr 20 18:38:09 UTC 2017
Modified Files:
pkgsrc/x11/qt5-qtbase: Makefile
Log Message:
qt5-qtbase: FreeBSD needs -lutil
PR pkg/52181 from Santhosh Raju
---
Module Name: pkgsrc
Committed By: maya
Date: Mon Apr 24 12:27:59 UTC 2017
Modified Files:
pkgsrc/x11/qt5-qtbase: distinfo
Added Files:
pkgsrc/x11/qt5-qtbase/patches:
patch-src_corelib_thread_qwaitcondition__unix.cpp
Log Message:
qt5-qtbase: fix build on NetBSD < 6.1 (no pthread_condattr_setclock)
Invert logic from !defined && to defined || for simplicity and use
a netbsd version check.
diffstat:
x11/qt5-qtbase/Makefile | 3 +-
x11/qt5-qtbase/distinfo | 3 +-
x11/qt5-qtbase/patches/patch-src_corelib_thread_qwaitcondition__unix.cpp | 27 ++++++++++
3 files changed, 31 insertions(+), 2 deletions(-)
diffs (65 lines):
diff -r 369535c50ea6 -r 505dccb5d74f x11/qt5-qtbase/Makefile
--- a/x11/qt5-qtbase/Makefile Tue Apr 25 18:18:40 2017 +0000
+++ b/x11/qt5-qtbase/Makefile Tue Apr 25 18:29:40 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.41 2017/02/12 06:24:57 ryoon Exp $
+# $NetBSD: Makefile,v 1.41.2.1 2017/04/25 18:29:40 bsiegert Exp $
DISTNAME= qtbase-opensource-src-${QTVERSION}
PKGNAME= qt5-qtbase-${QTVERSION}
@@ -97,6 +97,7 @@
. if exists(/usr/lib/libexecinfo.so)
LDFLAGS+= -lexecinfo
. endif
+LDFLAGS.FreeBSD+= -lutil
.endif
.if ${OPSYS} == "NetBSD" || ${OPSYS} == "OpenBSD"
LDFLAGS+= -lkvm # see patch-src_corelib_io_qlockfile__unix.cpp
diff -r 369535c50ea6 -r 505dccb5d74f x11/qt5-qtbase/distinfo
--- a/x11/qt5-qtbase/distinfo Tue Apr 25 18:18:40 2017 +0000
+++ b/x11/qt5-qtbase/distinfo Tue Apr 25 18:29:40 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.31 2016/12/04 21:46:54 marino Exp $
+$NetBSD: distinfo,v 1.31.4.1 2017/04/25 18:29:40 bsiegert Exp $
SHA1 (qtbase-opensource-src-5.5.1.tar.xz) = 0b651543fa013ae151b7a11f0d0dee092050aa3f
RMD160 (qtbase-opensource-src-5.5.1.tar.xz) = ce4bccd0703aaf8d904fbecd1f334ef13d698a44
@@ -23,6 +23,7 @@
SHA1 (patch-src_corelib_io_qlockfile__unix.cpp) = f07812f0867bd04dfdea736847a668843a5fe646
SHA1 (patch-src_corelib_io_qstandardpaths_unix.cpp) = de4b6c6be89524763e40698bcf5e8f413abdb938
SHA1 (patch-src_corelib_io_qstorageinfo_unix.cpp) = 688de65bf3364cb8c982a7f82c9b67f5ecbebd10
+SHA1 (patch-src_corelib_thread_qwaitcondition__unix.cpp) = 331c3ced6554da7164a6927b0d8052447ae804d0
SHA1 (patch-src_network_kernel_qhostinfo__unix.cpp) = 0335273353daa7c980ccb4febb6eed11b452e50d
SHA1 (patch-src_openglextensions_openglextensions.pro) = e79effc1433ddda744b79d7e1f47764fee406580
SHA1 (patch-src_platformsupport_devicediscovery_devicediscovery.pri) = 2cd24768b41c813d0aee0943f97f913308794611
diff -r 369535c50ea6 -r 505dccb5d74f x11/qt5-qtbase/patches/patch-src_corelib_thread_qwaitcondition__unix.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/qt5-qtbase/patches/patch-src_corelib_thread_qwaitcondition__unix.cpp Tue Apr 25 18:29:40 2017 +0000
@@ -0,0 +1,27 @@
+$NetBSD: patch-src_corelib_thread_qwaitcondition__unix.cpp,v 1.1.2.2 2017/04/25 18:29:40 bsiegert Exp $
+
+don't have pthread_condattr_setclock on NetBSD < 6.1, don't
+use it.
+
+--- src/corelib/thread/qwaitcondition_unix.cpp.orig 2015-10-13 04:35:30.000000000 +0000
++++ src/corelib/thread/qwaitcondition_unix.cpp
+@@ -45,6 +45,7 @@
+
+ #include <errno.h>
+ #include <sys/time.h>
++#include <sys/param.h>
+ #include <time.h>
+
+ #ifndef QT_NO_THREAD
+@@ -77,7 +78,10 @@ void qt_initialize_pthread_cond(pthread_
+ #if defined(Q_OS_ANDROID)
+ if (local_condattr_setclock && QElapsedTimer::clockType() == QElapsedTimer::MonotonicClock)
+ local_condattr_setclock(&condattr, CLOCK_MONOTONIC);
+-#elif !defined(Q_OS_MAC) && !defined(Q_OS_HAIKU)
++#elif (defined(Q_OS_NETBSD) && (__NetBSD_Version__ < 600010000)) || \
++ defined(Q_OS_MAC) || defined(Q_OS_HAIKU)
++ /* nothing, don't have pthread_condattr_setclock */
++#else
+ if (QElapsedTimer::clockType() == QElapsedTimer::MonotonicClock)
+ pthread_condattr_setclock(&condattr, CLOCK_MONOTONIC);
+ #endif
Home |
Main Index |
Thread Index |
Old Index