# Contributor: A. Wilcox # Maintainer: A. Wilcox pkgname=baloo pkgver=5.94.0 pkgrel=1 pkgdesc="Semantic desktop search framework" url="https://www.kde.org/" arch="all" # Test #4 in the suite, bin/querytest: # Test cleanup method is not run after testTermEqual. # This leaves a `db` handle stale, which is using the single-reader-per-thread # pthread_key that lmdb provides. # This causes the next test, testTermStartsWith, to fail to acquire a reader # transaction because the previous transaction was not committed or aborted. # Since the test does not check for a transaction failure and blindly uses the # transaction object returned, it attempts to access 0xc (accessing a member of # the returned nullptr), and segfaults. # Three other tests in the suite fail in the same way. # This may be a bug in libQtTest, or in musl. I have not debugged further. # This has already taken up two days of my time and I just want to ship Plasma options="!check" license="LGPL-2.0+" depends="" depends_dev="kcoreaddons-dev kfilemetadata-dev" docdepends="kcoreaddons-doc kfilemetadata-doc" makedepends="$depends_dev cmake extra-cmake-modules python3 doxygen graphviz qt5-qtbase-dev qt5-qttools-dev kconfig-dev kcrash-dev kdbusaddons-dev ki18n-dev kidletime-dev kio-dev lmdb-dev solid-dev icu-dev $docdepends" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" source="https://download.kde.org/stable/frameworks/${pkgver%.*}/baloo-$pkgver.tar.xz initialise-variable.patch " build() { if [ "$CBUILD" != "$CHOST" ]; then CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" fi cmake \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_SHARED_LIBS=True \ -DCMAKE_BUILD_TYPE=RelWithDebugInfo \ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ -DCMAKE_C_FLAGS="$CFLAGS" \ -DBUILD_QCH:BOOL=ON \ ${CMAKE_CROSSOPTS} . \ -Bbuild make -C build } check() { CTEST_OUTPUT_ON_FAILURE=TRUE make -C build test } package() { make DESTDIR="$pkgdir" -C build install } sha512sums="e79fa98d86daca96fd813e8778cfffa16488d0c5fc050eaa4b72b5bfc33243fcd777e8508425bf64ecd451e0f150c02dd18fb892d215fa6a05cb17e03bd349f7 baloo-5.94.0.tar.xz a6e4965d63ea42a09f831489eb493a621a0fa4ec9528a86b0d444e4c4d7e6a3d29adad007d1286f829877ae7e6a7485a8f8e865d2b519c7192fcd72cb2f40505 initialise-variable.patch"