[bug#78188] gnu: kwallet-pam: Fix socat not in 'libexec/pam_kwallet_init' wrapper path.
Message ID | a73931b2adbba2b1949b30d9d3bf6e63662d0da2.1746106891.git.sergio.pastorperez@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id A494427BC4B; Thu, 1 May 2025 14:55:22 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL, RCVD_IN_VALIDITY_SAFE,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 3159627BC49 for <patchwork@mira.cbaines.net>; Thu, 1 May 2025 14:55:22 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces@gnu.org>) id 1uAUNT-0002FD-EO; Thu, 01 May 2025 09:55:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1uAUNS-0002F5-9A for guix-patches@gnu.org; Thu, 01 May 2025 09:55:02 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1uAUNR-0005Z0-T1 for guix-patches@gnu.org; Thu, 01 May 2025 09:55:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=3o6tBd2dtSkv0ls5KHdAT8nTgdEGNhg/85lzZq3JKgU=; b=QcvEVu5/tLxZ48PH76dZiITi1IN29f3c7ta0HnJTB6Z3D3kzVlh060O3Uud05gXF9l1rV/4uIPg3C4DtMqp6gSIYy79/LCouqeKKRgSeuy4/ouD1vkgpg34jPjiaeVKJ13nG3jw5q+rUMYZ8KCsvZqw9lTFMy9+rR3ONoq6fLBDxWY8RjEjfPP6v8EmhzuB3axLJiLgQjhMQxdg2e6v4vcPUcuwp+ZvYh4cxdwP7rcEbv8IGcdvWzx9A0BspEOUhcBj3S8ByqiqGCx46EuLgNZ5ku51QI4KSwYhjh5ZgQwNYtpsOjy2daRMXBK/+hyshLkRvqWsiR+Mx6gsKad5x0w==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1uAUNR-0001yv-JY; Thu, 01 May 2025 09:55:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#78188] [PATCH] gnu: kwallet-pam: Fix socat not in 'libexec/pam_kwallet_init' wrapper path. Resent-From: Sergio Pastor =?utf-8?b?UMOpcmV6?= <sergio.pastorperez@gmail.com> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: sughosha@disroot.org, z572@z572.online, guix-patches@gnu.org Resent-Date: Thu, 01 May 2025 13:55:01 +0000 Resent-Message-ID: <handler.78188.B78188.17461076697536@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 78188 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 78188@debbugs.gnu.org Cc: Sergio Pastor =?utf-8?b?UMOpcmV6?= <sergio.pastorperez@gmail.com>, Sughosha <sughosha@disroot.org>, Zheng Junjie <z572@z572.online> X-Debbugs-Original-Xcc: Sughosha <sughosha@disroot.org>, Zheng Junjie <z572@z572.online> Received: via spool by 78188-submit@debbugs.gnu.org id=B78188.17461076697536 (code B ref 78188); Thu, 01 May 2025 13:55:01 +0000 Received: (at 78188) by debbugs.gnu.org; 1 May 2025 13:54:29 +0000 Received: from localhost ([127.0.0.1]:49955 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1uAUMv-0001xT-El for submit@debbugs.gnu.org; Thu, 01 May 2025 09:54:29 -0400 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]:44080) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <sergio.pastorperez@gmail.com>) id 1uAUMs-0001x9-1A for 78188@debbugs.gnu.org; Thu, 01 May 2025 09:54:26 -0400 Received: by mail-wr1-x431.google.com with SMTP id ffacd0b85a97d-39c1efc4577so383085f8f.0 for <78188@debbugs.gnu.org>; Thu, 01 May 2025 06:54:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1746107659; x=1746712459; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=3o6tBd2dtSkv0ls5KHdAT8nTgdEGNhg/85lzZq3JKgU=; b=W7mzE4AaZRn1uAo63j5CcGHL0ajOI/RktUGQ/F0Molhogl0x9U8/exNT0FgcTABfLu UbHr3h+Fb2SL6QppteanY84g7kiie8wuTZmtF2MvgQQsG2OfcM5yEbQAkksoCnHA7WTB 7kYv3g0DSD18krlFYdVwOuhXRj1qBytyE3QdGNCgdgB0qrC//P5j1MN/Q+PGioUB6Jwv 7JEqGPGsUcoPjC97Chkdjlys2S0KaAVmHUVlEFGLRAhahb7fKhkMtE4AcaAgdZ/tMcEa jywH9QkvNnS+rbz1G9Wj3g/i5ZmN6RZMfes/OjNibacVyBYJS95SnwJ7XFr8fPkoJGXs kX7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746107659; x=1746712459; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3o6tBd2dtSkv0ls5KHdAT8nTgdEGNhg/85lzZq3JKgU=; b=D/D0DnBqZcxystRapcBjpn2tBwoheI4ruQ2JL0j59urlhjMDmpu72fiF931m87AL+b 0Ti+dyaiGKPNT2M7Ze7W4u9CeP+7k7uWgMiVJzxIp5HJ4Fqdj3PNerRkla+7zFqsuX0j VBnHLbtaP5g73ZRcdj0SjTAHu1QD0vNLfWuxjA+NM5mmPlczwki2OoKOBQ/kUos/uMND 5nxj3KtPBdrzu6BAed9110GO0ahSZyJrZGoGZca7T9febEZB0lgz5LX3Cij2+ZAyxN0/ FfAS2xC8PysOnrjtbqvJMJrDNQ7mdURvGqDJOyEZ3cXcPqXKF1YT5yEWShFnGOs0eUe4 /Fgg== X-Gm-Message-State: AOJu0Yyl6/RRFGAZATN+RnxZAkdGJlewNndbn8b3xiaEl0Zq1ylot0y2 Hgf3bHgH+pJPHGyZYevSpIuXYSkFI6ceGGE6FpvKX0TM1fyoaJFeHFVxju4l X-Gm-Gg: ASbGncvJhYr+VFsyc+M1rzfV8BAwmITWM9MLfXQccSKFIFHEuhjOTaGc5y2WiZz6iBe yRrN8BWg8SQUR++XqtI/Uxm7e8qq4CwE+bbAvH0+1XvYo0vE3fb0f1DCZYouQ5S84uM2sDoURFh vkeLex2aLKTMsNYq/BK9xNiguVLC9W0talAL54UeTdpc024tjGkGjHkYYWlkr2uyYE0nBG2T4s2 hflLxy+nK+Pej2ur7yYbaUAMUl7CIQaMSGVaBRyEvSZm/c1+hCzgahHBXDy/Z8RPpG4vbV4SOTU EaRWKotcifvNqMFw4bx/OkWB9JYpql91qy+5weqxctkb3efFQ3mfcw== X-Google-Smtp-Source: AGHT+IGxMbWdYRowCRfw4N+KfAXbhiCPpZ3jsvwzQbOfLILguOJzr0/+S3D+GgW1wHN4X/upPxTQvg== X-Received: by 2002:a5d:59ae:0:b0:39e:dce8:1c07 with SMTP id ffacd0b85a97d-3a094178889mr1963112f8f.46.1746107658836; Thu, 01 May 2025 06:54:18 -0700 (PDT) Received: from localhost ([2a0c:5a85:d206:4200:cd7d:99ee:cee8:cc4a]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3a095a3dfa8sm926449f8f.13.2025.05.01.06.54.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 May 2025 06:54:18 -0700 (PDT) From: Sergio Pastor =?utf-8?b?UMOpcmV6?= <sergio.pastorperez@gmail.com> Date: Thu, 1 May 2025 15:53:59 +0200 Message-ID: <a73931b2adbba2b1949b30d9d3bf6e63662d0da2.1746106891.git.sergio.pastorperez@gmail.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <cover.1746106890.git.sergio.pastorperez@gmail.com> References: <cover.1746106890.git.sergio.pastorperez@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: <guix-patches.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/guix-patches> List-Post: <mailto:guix-patches@gnu.org> List-Help: <mailto:guix-patches-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=subscribe> Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches |
Series |
[bug#78188] gnu: kwallet-pam: Fix socat not in 'libexec/pam_kwallet_init' wrapper path.
|
|
Commit Message
Sergio Pastor Pérez
May 1, 2025, 1:53 p.m. UTC
* gnu/packages/kde-plasma.scm (kwallet-pam)[phase]: Wrapper phase not setting PATH variable to access 'socat' input. Change-Id: I6e7a421af3dbbc844e319b7852246c89d979609c --- gnu/packages/kde-plasma.scm | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-)
Comments
Sergio Pastor Pérez <sergio.pastorperez@gmail.com> writes: > * gnu/packages/kde-plasma.scm (kwallet-pam)[phase]: Wrapper phase not setting > PATH variable to access 'socat' input. > > Change-Id: I6e7a421af3dbbc844e319b7852246c89d979609c > --- > gnu/packages/kde-plasma.scm | 14 +++++++++++--- > 1 file changed, 11 insertions(+), 3 deletions(-) > > diff --git a/gnu/packages/kde-plasma.scm b/gnu/packages/kde-plasma.scm > index 679a68cef6..a15f7ad8a2 100644 > --- a/gnu/packages/kde-plasma.scm > +++ b/gnu/packages/kde-plasma.scm > @@ -1303,9 +1303,17 @@ (define-public kwallet-pam > "0dif5y7qbayb2yfgl7940978ayyir948kpjavczvgkr70czb293k")))) > (build-system qt-build-system) > (arguments > - (list > - #:qtbase qtbase > - #:tests? #f)) ;no tests > + `(#:qtbase ,qtbase > + #:tests? #f ;no tests > + #:phases > + (modify-phases %standard-phases please use gexp. > + (add-after 'install 'wrap-program > + (lambda* (#:key inputs outputs #:allow-other-keys) > + (let ((socat (search-input-file inputs "bin/socat"))) > + (wrap-program (search-input-file outputs > + "libexec/pam_kwallet_init") > + `("PATH" ":" prefix > + ,(list (dirname socat)))))))))) This is just a sh script, I prefer to replace socat in the pam_kwallet_init file after unpack > (native-inputs (list extra-cmake-modules pkg-config)) > (inputs (list linux-pam kwallet libgcrypt socat)) > (synopsis "PAM Integration with KWallet")
Z572 <z572@z572.online> writes: > Sergio Pastor Pérez <sergio.pastorperez@gmail.com> writes: > >> * gnu/packages/kde-plasma.scm (kwallet-pam)[phase]: Wrapper phase not setting >> PATH variable to access 'socat' input. >> >> Change-Id: I6e7a421af3dbbc844e319b7852246c89d979609c >> --- >> gnu/packages/kde-plasma.scm | 14 +++++++++++--- >> 1 file changed, 11 insertions(+), 3 deletions(-) >> >> diff --git a/gnu/packages/kde-plasma.scm b/gnu/packages/kde-plasma.scm >> index 679a68cef6..a15f7ad8a2 100644 >> --- a/gnu/packages/kde-plasma.scm >> +++ b/gnu/packages/kde-plasma.scm >> @@ -1303,9 +1303,17 @@ (define-public kwallet-pam >> "0dif5y7qbayb2yfgl7940978ayyir948kpjavczvgkr70czb293k")))) >> (build-system qt-build-system) >> (arguments >> - (list >> - #:qtbase qtbase >> - #:tests? #f)) ;no tests >> + `(#:qtbase ,qtbase >> + #:tests? #f ;no tests >> + #:phases >> + (modify-phases %standard-phases > > please use gexp. > >> + (add-after 'install 'wrap-program >> + (lambda* (#:key inputs outputs #:allow-other-keys) >> + (let ((socat (search-input-file inputs "bin/socat"))) >> + (wrap-program (search-input-file outputs >> + "libexec/pam_kwallet_init") >> + `("PATH" ":" prefix >> + ,(list (dirname socat)))))))))) > > This is just a sh script, I prefer to replace socat in the > pam_kwallet_init file after unpack Done!
diff --git a/gnu/packages/kde-plasma.scm b/gnu/packages/kde-plasma.scm index 679a68cef6..a15f7ad8a2 100644 --- a/gnu/packages/kde-plasma.scm +++ b/gnu/packages/kde-plasma.scm @@ -1303,9 +1303,17 @@ (define-public kwallet-pam "0dif5y7qbayb2yfgl7940978ayyir948kpjavczvgkr70czb293k")))) (build-system qt-build-system) (arguments - (list - #:qtbase qtbase - #:tests? #f)) ;no tests + `(#:qtbase ,qtbase + #:tests? #f ;no tests + #:phases + (modify-phases %standard-phases + (add-after 'install 'wrap-program + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((socat (search-input-file inputs "bin/socat"))) + (wrap-program (search-input-file outputs + "libexec/pam_kwallet_init") + `("PATH" ":" prefix + ,(list (dirname socat)))))))))) (native-inputs (list extra-cmake-modules pkg-config)) (inputs (list linux-pam kwallet libgcrypt socat)) (synopsis "PAM Integration with KWallet")