From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1602829-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A418B158041 for <garchives@archives.gentoo.org>; Thu, 22 Feb 2024 10:09:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D69E5E2A5D; Thu, 22 Feb 2024 10:09:09 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B3340E2A59 for <gentoo-commits@lists.gentoo.org>; Thu, 22 Feb 2024 10:09:09 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9A69B3430F5 for <gentoo-commits@lists.gentoo.org>; Thu, 22 Feb 2024 10:09:08 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 346A6131B for <gentoo-commits@lists.gentoo.org>; Thu, 22 Feb 2024 10:09:07 +0000 (UTC) From: "Andreas Sturmlechner" <asturm@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" <asturm@gentoo.org> Message-ID: <1708596266.cdda2b4470aa4bba18bf1650b4566a8eef3d16c5.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: kde-apps/dolphin/, kde-apps/dolphin/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: kde-apps/dolphin/dolphin-23.08.5.ebuild kde-apps/dolphin/files/dolphin-23.08.5-musl.patch X-VCS-Directories: kde-apps/dolphin/files/ kde-apps/dolphin/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: cdda2b4470aa4bba18bf1650b4566a8eef3d16c5 X-VCS-Branch: master Date: Thu, 22 Feb 2024 10:09:07 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f75c270d-197d-4d2c-8a72-7f22c475cdfd X-Archives-Hash: 6b9773a788b20c9458ee4b3d81613737 commit: cdda2b4470aa4bba18bf1650b4566a8eef3d16c5 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> AuthorDate: Wed Feb 21 21:51:24 2024 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Thu Feb 22 10:04:26 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cdda2b44 kde-apps/dolphin: Fix musl build Closes: https://bugs.gentoo.org/925195 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> kde-apps/dolphin/dolphin-23.08.5.ebuild | 2 + kde-apps/dolphin/files/dolphin-23.08.5-musl.patch | 64 +++++++++++++++++++++++ 2 files changed, 66 insertions(+) diff --git a/kde-apps/dolphin/dolphin-23.08.5.ebuild b/kde-apps/dolphin/dolphin-23.08.5.ebuild index f253b8e0a372..3116f5e5d438 100644 --- a/kde-apps/dolphin/dolphin-23.08.5.ebuild +++ b/kde-apps/dolphin/dolphin-23.08.5.ebuild @@ -64,6 +64,8 @@ RDEPEND="${DEPEND} ) " +PATCHES=( "${FILESDIR}/${P}-musl.patch" ) + src_configure() { local mycmakeargs=( -DCMAKE_DISABLE_FIND_PACKAGE_PackageKitQt5=ON diff --git a/kde-apps/dolphin/files/dolphin-23.08.5-musl.patch b/kde-apps/dolphin/files/dolphin-23.08.5-musl.patch new file mode 100644 index 000000000000..044a0caef830 --- /dev/null +++ b/kde-apps/dolphin/files/dolphin-23.08.5-musl.patch @@ -0,0 +1,64 @@ +From 32a5f1c041d00cdd0246cf7e764a447588f30f3a Mon Sep 17 00:00:00 2001 +From: Bart Ribbers <bribbers@disroot.org> +Date: Wed, 9 Aug 2023 14:07:46 +0200 +Subject: [PATCH] Fix musl build by using fts_* from external library + +musl does not support fts. There is however a standalone package that +can be used, but it must be linked against. This commit adds a check +that makes sure to link to the external library if it is required. +--- + CMakeLists.txt | 17 +++++++++++++++++ + src/CMakeLists.txt | 2 ++ + 2 files changed, 19 insertions(+) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 8a0b97c635..0a655babb3 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -27,6 +27,8 @@ include(GenerateExportHeader) + include(FeatureSummary) + include(ECMQtDeclareLoggingCategory) + include(ECMDeprecationSettings) ++include(CheckIncludeFiles) ++include(CheckLibraryExists) + + ecm_setup_version(${RELEASE_SERVICE_VERSION} VARIABLE_PREFIX DOLPHIN + VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/src/dolphin_version.h" +@@ -150,6 +152,21 @@ else() + set(HAVE_TERMINAL TRUE) + endif() + ++# Compatibility with platforms without native fts (e.g. musl) ++check_include_files("sys/types.h;sys/stat.h;fts.h" HAVE_FTS_H) ++if(HAVE_FTS_H) ++ check_function_exists(fts_open HAVE_FTS_OPEN) ++ if(NOT HAVE_FTS_OPEN) ++ check_library_exists(fts fts_open "" HAVE_LIB_FTS) ++ endif() ++endif() ++ ++if(HAVE_LIB_FTS) ++ set(FTS_LIB fts) ++else() ++ set(FTS_LIB "") ++endif() ++ + add_subdirectory(src) + add_subdirectory(doc) + +diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt +index 5a481e39ff..fa7de5cc23 100644 +--- a/src/CMakeLists.txt ++++ b/src/CMakeLists.txt +@@ -213,6 +213,8 @@ target_link_libraries( + KF5::WindowSystem + KF5::WidgetsAddons + KF5::Codecs ++ ++ ${FTS_LIB} + ) + + if(HAVE_BALOO) +-- +GitLab +