Message ID | cover.1735967250.git.john.kehayias@protonmail.com |
---|---|
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 44CC227BBE9; Sat, 4 Jan 2025 05:24:35 +0000 (GMT) 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_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 autolearn=unavailable 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 BCDBD27BBE2 for <patchwork@mira.cbaines.net>; Sat, 4 Jan 2025 05:24:31 +0000 (GMT) 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 1tTwdx-0006lN-I9; Sat, 04 Jan 2025 00:24:13 -0500 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 1tTwdo-0006l0-Va for guix-patches@gnu.org; Sat, 04 Jan 2025 00:24:05 -0500 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 1tTwdm-00070s-Nz for guix-patches@gnu.org; Sat, 04 Jan 2025 00:24:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:From:Date:To:Subject; bh=Wi1qNc0ZiQwUu95U518+9DargjD1KsZwbZ6XYUtbzFg=; b=up12E3d9GjQbhsem6x/C2rlKU/zBdjs987DYsNohQZhkyZYtCut1N+x7dp873t9ZATFt0aJiDdwrKdQm2c3KO9Hk8ZgoeDYQ/kTraOnfSAum181zSybZCMUy/AVF+GNlmR6W72NVPZjC1bqbBBGKVU7n/TlHLI1qOllH6pJ7ob1rGyEduHJeqaFxA1K9lsVuOnfBDyXW0RDjpF2o3uiG5lfReMsKSbK4McEVue/O02n9ibjv7bRa/nFLDXEmeZRo1WA7IZIk0Dg7OZe6exkHm2u1QIqHp0xPYTCGFYUmOObIQUv3RlStrYqbiH+EOG7H3v3BDbBz3pkBs6vdyFeTWQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1tTwdm-00027F-3F for guix-patches@gnu.org; Sat, 04 Jan 2025 00:24:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#75337] [PATCH 0/2] Add hyprland-qtutils; use it Hyprland Resent-From: John Kehayias <john.kehayias@protonmail.com> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 04 Jan 2025 05:24:01 +0000 Resent-Message-ID: <handler.75337.B.17359682088083@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 75337 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 75337@debbugs.gnu.org Cc: John Kehayias <john.kehayias@protonmail.com>, hako@ultrarare.space, collin@rekahsoft.ca X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.17359682088083 (code B ref -1); Sat, 04 Jan 2025 05:24:01 +0000 Received: (at submit) by debbugs.gnu.org; 4 Jan 2025 05:23:28 +0000 Received: from localhost ([127.0.0.1]:52996 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1tTwdE-00026J-7M for submit@debbugs.gnu.org; Sat, 04 Jan 2025 00:23:28 -0500 Received: from lists.gnu.org ([2001:470:142::17]:35802) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <john.kehayias@protonmail.com>) id 1tTwdA-000261-8I for submit@debbugs.gnu.org; Sat, 04 Jan 2025 00:23:26 -0500 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 <john.kehayias@protonmail.com>) id 1tTwd3-0006hi-BH for guix-patches@gnu.org; Sat, 04 Jan 2025 00:23:17 -0500 Received: from mail-40133.protonmail.ch ([185.70.40.133]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <john.kehayias@protonmail.com>) id 1tTwd1-0006yY-0S for guix-patches@gnu.org; Sat, 04 Jan 2025 00:23:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1735968190; x=1736227390; bh=Wi1qNc0ZiQwUu95U518+9DargjD1KsZwbZ6XYUtbzFg=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector: List-Unsubscribe:List-Unsubscribe-Post; b=YkaV3lsiuOnCfi5rCfgR4hRMqHX5s0JW0AJn8hdsOf8kG7cgmrs1NJeoH6fYgcLYy eMmTQak0cy9ELQueJvM8uGf3KFiox0uE8jfHGZOtMprMbnQH7OtPNRnUlHnl9spJuO 8vNIgq4cSA2QVrOfVOPHHVmj+0Z1ZQXGZEJyS0831KXF7A4tUsahQrt1zwqgxtcITn ehVuFHNZqo0jEwjZFOTVla7yN80AyurlbejOBhTb2bWkGv+tjjO1k4yNQg38HrAKG1 csblY69SKX+PIaPkwC48R48NLxenKIVcS/Q1r9xZGxllimC91pqMLh9EicV/Ik0zU+ keWB3X/s1EciQ== Date: Sat, 04 Jan 2025 05:23:05 +0000 Message-ID: <cover.1735967250.git.john.kehayias@protonmail.com> Feedback-ID: 7805494:user:proton X-Pm-Message-ID: d6dcbbad1d819e386ba30d9c66c2114ddf280a81 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.40.133; envelope-from=john.kehayias@protonmail.com; helo=mail-40133.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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> Reply-to: John Kehayias <john.kehayias@protonmail.com> X-ACL-Warn: , John Kehayias via Guix-patches <guix-patches@gnu.org> From: John Kehayias via Guix-patches via <guix-patches@gnu.org> 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 |
Add hyprland-qtutils; use it Hyprland
|
|
Message
John Kehayias
Jan. 4, 2025, 5:23 a.m. UTC
Hi all, As pointed out in <https://issues.guix.gnu.org/75036#2>, Hyprland now wants binaries from the hyprland-qtutils package, which this patch series adds. I checked that it builds and I can run the utlities. One is to send a message if Hyprland is updated, which isn't relevant for our package, but I didn't look into any easy way to disable that from the source if that's what we want to do. One thing to point out is that I manually wrapped the binaries with needed QT environment variables to get them to work. Using qt-buid-system or calling qt-wrap-program (or qt-wrap-all-programs) did not do much: it just added the plugin path for qtbase-5 (not an input here). I didn't try to investigate further but maybe the qt-team could chime in. On the Hyprland end, it just checks for these utlities somewhere on the PATH (or something like that) so I just used propagated-inputs. The package/build does not otherwise depend or try to find these at build time. Using propagated-inputs seems to me the easiest and most straight forward method here (the source does not just hardcode something like "/usr/bin/hyprland-dialog" to patch with a store path). I have not actually tried running the latest Hyprland which will warn (but otherwise should work) about these. Thanks all! John John Kehayias (2): gnu: Add hyprland-qtutils. gnu: hyprland: Add hyprland-qtutils to propagated-inputs. gnu/packages/qt.scm | 55 +++++++++++++++++++++++++++++++++++++++++++++ gnu/packages/wm.scm | 2 ++ 2 files changed, 57 insertions(+) base-commit: a707ebe5d3875a49523bc17de2d36af6f1c18f7e prerequisite-patch-id: 3efc585c869da704ca71214328a78b6e6bbad919 prerequisite-patch-id: 82bcb22fe1f5bd69d26626e575b7629f6f223ae3 prerequisite-patch-id: b12f224a58be29cf89415a53dc245e4057139e22 prerequisite-patch-id: 9fa5469aa4528c28962598256414bf4a4f517dce -- 2.47.1
Comments
On Sat, 04 Jan 2025 13:23:05 +0800, John Kehayias wrote: > > Hi all, > > As pointed out in <https://issues.guix.gnu.org/75036#2>, Hyprland now wants > binaries from the hyprland-qtutils package, which this patch series adds. I > checked that it builds and I can run the utlities. One is to send a message if > Hyprland is updated, which isn't relevant for our package, but I didn't look > into any easy way to disable that from the source if that's what we want to > do. > > One thing to point out is that I manually wrapped the binaries with needed QT > environment variables to get them to work. Using qt-buid-system or calling > qt-wrap-program (or qt-wrap-all-programs) did not do much: it just added the > plugin path for qtbase-5 (not an input here). I didn't try to investigate > further but maybe the qt-team could chime in. qt-build-system has a #:qtbase argument, you can set it to qtbase. > On the Hyprland end, it just checks for these utlities somewhere on the PATH > (or something like that) so I just used propagated-inputs. The package/build > does not otherwise depend or try to find these at build time. Using > propagated-inputs seems to me the easiest and most straight forward method > here (the source does not just hardcode something like > "/usr/bin/hyprland-dialog" to patch with a store path). Found a pattern to bypass the check :) --8<---------------cut here---------------start------------->8--- (substitute* ... (("!executableExistsInPath.*\".") "false") (("hyprland-update-screen" cmd) (search-input-file inputs (in-vicinity "bin" cmd)))) --8<---------------cut here---------------end--------------->8--- > I have not actually tried running the latest Hyprland which will warn (but > otherwise should work) about these. > > Thanks all! > John > > John Kehayias (2): > gnu: Add hyprland-qtutils. > gnu: hyprland: Add hyprland-qtutils to propagated-inputs. > > gnu/packages/qt.scm | 55 +++++++++++++++++++++++++++++++++++++++++++++ > gnu/packages/wm.scm | 2 ++ > 2 files changed, 57 insertions(+) > > > base-commit: a707ebe5d3875a49523bc17de2d36af6f1c18f7e > prerequisite-patch-id: 3efc585c869da704ca71214328a78b6e6bbad919 > prerequisite-patch-id: 82bcb22fe1f5bd69d26626e575b7629f6f223ae3 > prerequisite-patch-id: b12f224a58be29cf89415a53dc245e4057139e22 > prerequisite-patch-id: 9fa5469aa4528c28962598256414bf4a4f517dce > -- > 2.47.1 > >
Hi, On Sat, Jan 04, 2025 at 10:58 PM, Hilton Chain wrote: > On Sat, 04 Jan 2025 13:23:05 +0800, > John Kehayias wrote: >> One thing to point out is that I manually wrapped the binaries with needed QT >> environment variables to get them to work. Using qt-buid-system or calling >> qt-wrap-program (or qt-wrap-all-programs) did not do much: it just added the >> plugin path for qtbase-5 (not an input here). I didn't try to investigate >> further but maybe the qt-team could chime in. > > qt-build-system has a #:qtbase argument, you can set it to qtbase. > Right, and I swear I tried that but I guess that's what happens when you do a bunch of things at the same time late at night :) Or maybe it was when I was just using the wrap-qt-program phase and didn't quite do it correctly. Anyway, that does indeed work and is much cleaner now. >> On the Hyprland end, it just checks for these utlities somewhere on the PATH >> (or something like that) so I just used propagated-inputs. The package/build >> does not otherwise depend or try to find these at build time. Using >> propagated-inputs seems to me the easiest and most straight forward method >> here (the source does not just hardcode something like >> "/usr/bin/hyprland-dialog" to patch with a store path). > > Found a pattern to bypass the check :) > --8<---------------cut here---------------start------------->8--- > (substitute* ... > (("!executableExistsInPath.*\".") "false") > (("hyprland-update-screen" cmd) > (search-input-file inputs (in-vicinity "bin" cmd)))) > --8<---------------cut here---------------end--------------->8--- > Ah nice, thanks! I used that and made hyprland-qtutils just a regular input (after checking the substitutions were correct in both files and searching Hyprland to make sure that there were no other instances). I added you as co-author to that patch. Pushed both, as 8f261686ec0e5a988935e76e5495898e036f9fa7 and 0b4b22b6d363d0dd0bdaee65e47bda5cac72475c Thanks for the help! John