From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 1F099158094 for ; Fri, 15 Jul 2022 07:13:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5F36BE09A7; Fri, 15 Jul 2022 07:13:25 +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 32B7CE09A7 for ; Fri, 15 Jul 2022 07:13:25 +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 1E1AA3412CB for ; Fri, 15 Jul 2022 07:13:24 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A729C448 for ; Fri, 15 Jul 2022 07:13:22 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1657869139.4443c8095edbfbb98ec5cf1c3e6b5c109ae8bed4.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: kde-apps/libkgapi/files/, kde-apps/libkgapi/ X-VCS-Repository: repo/gentoo X-VCS-Files: kde-apps/libkgapi/files/libkgapi-22.04.2-gnu_source.patch kde-apps/libkgapi/libkgapi-22.04.3.ebuild X-VCS-Directories: kde-apps/libkgapi/ kde-apps/libkgapi/files/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 4443c8095edbfbb98ec5cf1c3e6b5c109ae8bed4 X-VCS-Branch: master Date: Fri, 15 Jul 2022 07:13:22 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: e37f09af-4919-405f-be56-850fb94f5ffa X-Archives-Hash: 72dd8dafb1e3c23980dbf1c71083b352 commit: 4443c8095edbfbb98ec5cf1c3e6b5c109ae8bed4 Author: Alfred Persson Forsberg catcream org> AuthorDate: Tue Jun 28 16:11:03 2022 +0000 Commit: Sam James gentoo org> CommitDate: Fri Jul 15 07:12:19 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4443c809 kde-apps/libkgapi: fix build for musl The issue here is that NI_MAXHOST is used inside saslplugin/plugin_common.c. That is a GNU extension only defined when _GNU_SOURCE is defined. Declarning that this is POSIX source code (_POSIX_SOURCE) is therefore misleading and breaks the build for musl. See: https://invent.kde.org/pim/libkgapi/-/merge_requests/29/diffs?commit_id=1e6a54a9f2d818aa4046e5291702e236a53ba987, https://invent.kde.org/pim/libkgapi/-/merge_requests/29/ Signed-off-by: Alfred Persson Forsberg catcream.org> Closes: https://github.com/gentoo/gentoo/pull/26116 Signed-off-by: Sam James gentoo.org> .../files/libkgapi-22.04.2-gnu_source.patch | 23 ++++++++++++++++++++++ kde-apps/libkgapi/libkgapi-22.04.3.ebuild | 2 ++ 2 files changed, 25 insertions(+) diff --git a/kde-apps/libkgapi/files/libkgapi-22.04.2-gnu_source.patch b/kde-apps/libkgapi/files/libkgapi-22.04.2-gnu_source.patch new file mode 100644 index 000000000000..88e3e2a3ed34 --- /dev/null +++ b/kde-apps/libkgapi/files/libkgapi-22.04.2-gnu_source.patch @@ -0,0 +1,23 @@ +https://invent.kde.org/pim/libkgapi/-/merge_requests/29 +https://invent.kde.org/pim/libkgapi/-/merge_requests/29/diffs?commit_id=1e6a54a9f2d818aa4046e5291702e236a53ba987 + +--- + src/saslplugin/CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/saslplugin/CMakeLists.txt b/src/saslplugin/CMakeLists.txt +index 61edd04..e8823fb 100644 +--- a/src/saslplugin/CMakeLists.txt ++++ b/src/saslplugin/CMakeLists.txt +@@ -2,7 +2,7 @@ include(CheckIncludeFile) + include(CheckStructHasMember) + + if (NOT CMAKE_SYSTEM_NAME MATCHES "FreeBSD") +- add_definitions(-D_POSIX_SOURCE) ++ add_definitions(-D_GNU_SOURCE) + endif() + + if (WIN32) +-- +2.35.1 + diff --git a/kde-apps/libkgapi/libkgapi-22.04.3.ebuild b/kde-apps/libkgapi/libkgapi-22.04.3.ebuild index 6b4d892a0c6a..2e26e8525db4 100644 --- a/kde-apps/libkgapi/libkgapi-22.04.3.ebuild +++ b/kde-apps/libkgapi/libkgapi-22.04.3.ebuild @@ -32,6 +32,8 @@ DEPEND=" " RDEPEND="${DEPEND}" +PATCHES=( "${FILESDIR}"/${PN}-22.04.2-gnu_source.patch ) + src_test() { local myctestargs=( # Both fail for multiple distros, see bug #832709 for more discussion