pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/baloo5 baloo5: Support SunOS.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/209c38532130
branches:  trunk
changeset: 379467:209c38532130
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Tue May 17 17:17:57 2022 +0000

description:
baloo5: Support SunOS.

diffstat:

 sysutils/baloo5/Makefile                                 |   4 +-
 sysutils/baloo5/distinfo                                 |   4 ++-
 sysutils/baloo5/patches/patch-CMakeLists.txt             |  18 ++++++++++++++++
 sysutils/baloo5/patches/patch-src_file_timeestimator.cpp |  15 +++++++++++++
 4 files changed, 38 insertions(+), 3 deletions(-)

diffs (71 lines):

diff -r 85916fb14f30 -r 209c38532130 sysutils/baloo5/Makefile
--- a/sysutils/baloo5/Makefile  Tue May 17 17:03:47 2022 +0000
+++ b/sysutils/baloo5/Makefile  Tue May 17 17:17:57 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.54 2022/04/25 06:36:45 markd Exp $
+# $NetBSD: Makefile,v 1.55 2022/05/17 17:17:57 jperkin Exp $
 
 DISTNAME=      baloo-${KF5VER}
 PKGNAME=       baloo5-${KF5VER}
@@ -38,7 +38,7 @@
 
 .include "../../mk/bsd.prefs.mk"
 
-.if ${OPSYS} != "Linux"
+.if ${OPSYS} != "Linux" && ${OPSYS} != "SunOS"
 .include "../../devel/libinotify/buildlink3.mk"
 .endif
 .include "../../databases/lmdb/buildlink3.mk"
diff -r 85916fb14f30 -r 209c38532130 sysutils/baloo5/distinfo
--- a/sysutils/baloo5/distinfo  Tue May 17 17:03:47 2022 +0000
+++ b/sysutils/baloo5/distinfo  Tue May 17 17:17:57 2022 +0000
@@ -1,5 +1,7 @@
-$NetBSD: distinfo,v 1.14 2022/04/25 06:36:45 markd Exp $
+$NetBSD: distinfo,v 1.15 2022/05/17 17:17:57 jperkin Exp $
 
 BLAKE2s (baloo-5.93.0.tar.xz) = cce213dd6619642366fbb8016ffa0ab5c208984c1c85f622b192f154953d5f14
 SHA512 (baloo-5.93.0.tar.xz) = d75c097db7a5badbf0cdbecfc5e9a8597d2693a4358096b6b02a9322b17291d365deb2e316c4901127d8a9be2d3906c8fca23cf38309e7e3c68a8836b37e2cfb
 Size (baloo-5.93.0.tar.xz) = 287692 bytes
+SHA1 (patch-CMakeLists.txt) = 6ee8651d42703842cae8a58823f0fd758142fb52
+SHA1 (patch-src_file_timeestimator.cpp) = 3f3dc48f4a744060ea23c1cf15acee1b6208a371
diff -r 85916fb14f30 -r 209c38532130 sysutils/baloo5/patches/patch-CMakeLists.txt
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/baloo5/patches/patch-CMakeLists.txt      Tue May 17 17:17:57 2022 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-CMakeLists.txt,v 1.3 2022/05/17 17:17:57 jperkin Exp $
+
+Avoid inotify on SunOS.
+
+--- CMakeLists.txt.orig        2022-04-02 10:13:54.000000000 +0000
++++ CMakeLists.txt
+@@ -82,7 +82,11 @@ add_definitions(-DKF_DISABLE_DEPRECATED_
+ find_package(Inotify)
+ set_package_properties(Inotify PROPERTIES
+     PURPOSE "Filesystem alteration notifications using inotify")
++if(CMAKE_SYSTEM_NAME MATCHES "SunOS")
++set(BUILD_KINOTIFY 0)
++else()
+ set(BUILD_KINOTIFY ${Inotify_FOUND})
++endif()
+ 
+ configure_file(config.h.in ${CMAKE_BINARY_DIR}/config.h)
+ 
diff -r 85916fb14f30 -r 209c38532130 sysutils/baloo5/patches/patch-src_file_timeestimator.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/baloo5/patches/patch-src_file_timeestimator.cpp  Tue May 17 17:17:57 2022 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_file_timeestimator.cpp,v 1.1 2022/05/17 17:17:57 jperkin Exp $
+
+Avoid ambiguous function call.
+
+--- src/file/timeestimator.cpp.orig    2022-04-02 10:13:54.000000000 +0000
++++ src/file/timeestimator.cpp
+@@ -10,6 +10,8 @@
+ #include "timeestimator.h"
+ #include "filecontentindexerprovider.h"
+ 
++using std::sqrt;
++
+ using namespace Baloo;
+ 
+ TimeEstimator::TimeEstimator(QObject* parent)



Home | Main Index | Thread Index | Old Index