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 439E6158083 for ; Sun, 1 Sep 2024 09:26:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7AAAC2BC01E; Sun, 1 Sep 2024 09:26:31 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 60FE22BC01E for ; Sun, 1 Sep 2024 09:26:31 +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 A292C341DD0 for ; Sun, 1 Sep 2024 09:26:30 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 19AC11671 for ; Sun, 1 Sep 2024 09:26:29 +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: <1725182673.876a5e69fe11b38c85839fd3906d4c5fca3f4a03.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-auth/polkit/, sys-auth/polkit/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-auth/polkit/files/polkit-125-musl.patch sys-auth/polkit/polkit-125.ebuild X-VCS-Directories: sys-auth/polkit/ sys-auth/polkit/files/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 876a5e69fe11b38c85839fd3906d4c5fca3f4a03 X-VCS-Branch: master Date: Sun, 1 Sep 2024 09:26:29 +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: d624ee97-8481-48be-90ec-74c245797441 X-Archives-Hash: 0731e63fa9ed6c24d1d64a3898b1faab commit: 876a5e69fe11b38c85839fd3906d4c5fca3f4a03 Author: Sam James gentoo org> AuthorDate: Sun Sep 1 09:24:33 2024 +0000 Commit: Sam James gentoo org> CommitDate: Sun Sep 1 09:24:33 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=876a5e69 sys-auth/polkit: fix musl build Closes: https://bugs.gentoo.org/938874 Signed-off-by: Sam James gentoo.org> sys-auth/polkit/files/polkit-125-musl.patch | 34 +++++++++++++++++++++++++++++ sys-auth/polkit/polkit-125.ebuild | 4 ++++ 2 files changed, 38 insertions(+) diff --git a/sys-auth/polkit/files/polkit-125-musl.patch b/sys-auth/polkit/files/polkit-125-musl.patch new file mode 100644 index 000000000000..ee0a444c919e --- /dev/null +++ b/sys-auth/polkit/files/polkit-125-musl.patch @@ -0,0 +1,34 @@ +https://github.com/polkit-org/polkit/commit/13bea3e08f924002a6a5c2f275d4bf1588fc3d02 + +From 13bea3e08f924002a6a5c2f275d4bf1588fc3d02 Mon Sep 17 00:00:00 2001 +From: Sertonix +Date: Sun, 11 Aug 2024 00:26:51 +0200 +Subject: [PATCH] Fix missing arguments with HAVE_PTHREAD_CONDATTR_SETCLOCK + +Fixes <64f5e4dda52> Add syslog-style log levels support +--- a/src/polkitbackend/polkitbackendduktapeauthority.c ++++ b/src/polkitbackend/polkitbackendduktapeauthority.c +@@ -767,12 +767,14 @@ runaway_killer_common(PolkitBackendJsAuthority *authority, RunawayKillerCtx *ctx + #ifdef HAVE_PTHREAD_CONDATTR_SETCLOCK + if ((pthread_err = pthread_condattr_init(&attr))) { + polkit_backend_authority_log (POLKIT_BACKEND_AUTHORITY (authority), ++ LOG_LEVEL_ERROR, + "Error initializing condition variable attributes: %s", + strerror(pthread_err)); + return FALSE; + } + if ((pthread_err = pthread_condattr_setclock(&attr, PK_CLOCK))) { + polkit_backend_authority_log (POLKIT_BACKEND_AUTHORITY (authority), ++ LOG_LEVEL_ERROR, + "Error setting condition variable attributes: %s", + strerror(pthread_err)); + goto err_clean_condattr; +@@ -780,6 +782,7 @@ runaway_killer_common(PolkitBackendJsAuthority *authority, RunawayKillerCtx *ctx + /* Init again, with needed attr */ + if ((pthread_err = pthread_cond_init(&ctx->cond, &attr))) { + polkit_backend_authority_log (POLKIT_BACKEND_AUTHORITY (authority), ++ LOG_LEVEL_ERROR, + "Error initializing condition variable: %s", + strerror(pthread_err)); + goto err_clean_condattr; + diff --git a/sys-auth/polkit/polkit-125.ebuild b/sys-auth/polkit/polkit-125.ebuild index 53939dcb72eb..fa58387359d1 100644 --- a/sys-auth/polkit/polkit-125.ebuild +++ b/sys-auth/polkit/polkit-125.ebuild @@ -80,6 +80,10 @@ QA_MULTILIB_PATHS=" usr/lib/polkit-1/polkitd " +PATCHES=( + "${FILESDIR}"/${P}-musl.patch +) + python_check_deps() { python_has_version "dev-python/dbus-python[${PYTHON_USEDEP}]" && python_has_version "dev-python/python-dbusmock[${PYTHON_USEDEP}]"