From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 04 00:23:28 2025 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 ) 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 ) 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 ) 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 ) 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 To: guix-patches@gnu.org From: John Kehayias Subject: [PATCH 0/2] Add hyprland-qtutils; use it Hyprland Message-ID: 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-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit Cc: John Kehayias , hako@ultrarare.space, collin@rekahsoft.ca X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Hi all, As pointed out in , 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 messa= ge 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 calli= ng 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 investig= ate further but maybe the qt-team could chime in. On the Hyprland end, it just checks for these utlities somewhere on the PAT= H (or something like that) so I just used propagated-inputs. The package/bu= ild does not otherwise depend or try to find these at build time. Using pro= pagated-inputs seems to me the easiest and most straight forward method her= e (the source does not just hardcode something like "/usr/bin/hyprland-dial= og" 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 From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 04 00:26:11 2025 Received: (at 75337) by debbugs.gnu.org; 4 Jan 2025 05:26:11 +0000 Received: from localhost ([127.0.0.1]:53010 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tTwfr-0002Gr-7J for submit@debbugs.gnu.org; Sat, 04 Jan 2025 00:26:11 -0500 Received: from mail-40133.protonmail.ch ([185.70.40.133]:35171) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tTwfo-0002Gb-9l for 75337@debbugs.gnu.org; Sat, 04 Jan 2025 00:26:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1735968361; x=1736227561; bh=GePzfvXIA/YBhMIH3qGN3COLUQI0dCtmn71q3cVTdd8=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector:List-Unsubscribe:List-Unsubscribe-Post; b=Udq4uiw9yfi4/y1/XKQ+6tNUpdr7srDUfWW6TL0iNDUZefUl5eMaD8ABqiHpyzI9U tMQiK9P8fsT6e8SdAKnSmScayoAICjK6DuwLImNPdWuzceJpyk5clOEe02XoC7yChp HfrS3sv6xbX4oiXcVRhXdpUkAuJFpIzCNzNbyrozhH46Lt6R7xPlJKGR7AxUlXGHAc jHOAhRQxeJdiGsB+8x3LLSDHjH1VCHdduBBlIv6qTVHE313e+xmKwjXDxkX4XaGcYf cxaawz3lM4T1Ydr1Tpl9riFw90Jn4mEgBOss26M67C8v79Udu6sa09W8eN5ItIwmrh 0B9N62t3mz+mQ== Date: Sat, 04 Jan 2025 05:25:57 +0000 To: 75337@debbugs.gnu.org From: John Kehayias Subject: [PATCH 1/2] gnu: Add hyprland-qtutils. Message-ID: <44509052eae6c1694b2094d23fd0984b956394c0.1735967250.git.john.kehayias@protonmail.com> In-Reply-To: References: Feedback-ID: 7805494:user:proton X-Pm-Message-ID: 84075a654be87ff83b9f55ee62dc6995420ae178 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 75337 Cc: John Kehayias , hako@ultrarare.space, collin@rekahsoft.ca X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/qt.scm (hyprland-qtutils): New variable. Change-Id: I11d1460e29e456c3f69ea3bf018ef9f19969e342 --- gnu/packages/qt.scm | 55 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm index e51962e0a7..44b61e2e7b 100644 --- a/gnu/packages/qt.scm +++ b/gnu/packages/qt.scm @@ -33,6 +33,7 @@ ;;; Copyright =C2=A9 2023 Simon South ;;; Copyright =C2=A9 2024 Foundation Devices, Inc. ;;; Copyright =C2=A9 2024 Josep Bigorra +;;; Copyright =C2=A9 2025 John Kehayias ;;; ;;; This file is part of GNU Guix. ;;; @@ -5396,6 +5397,60 @@ (define-public soqt of the InventorXt GUI component toolkit.") (license license:bsd-3))) +(define-public hyprland-qtutils + (package + (name "hyprland-qtutils") + (version "0.1.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/hyprwm/hyprland-qtutils") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "02ymf8xypnxhknb3d0bxbp96hargwrg9syb9xs3va3rmx909r7b6")))) + (build-system cmake-build-system) + (arguments + (list #:tests? #f ;There are no tests. + #:phases + #~(modify-phases %standard-phases + (add-after 'install 'wrap-programs + (lambda _ + (for-each + (lambda (prog) + (wrap-program (string-append #$output "/bin/" prog) + `("QML_IMPORT_PATH" ":" prefix + #$(map (lambda (i) + (file-append (this-package-input i) "/l= ib/qt6/qml")) + '("kirigami" + "qqc2-desktop-style" + "qtdeclarative" + "qtwayland"))) + `("QT_PLUGIN_PATH" ":" prefix + #$(map (lambda (i) + (file-append (this-package-input i) "/l= ib/qt6/plugins")) + '("qqc2-desktop-style" "qtwayland"))))) + '("hyprland-dialog" "hyprland-update-screen"))))))) + (native-inputs (list gcc-14 pkg-config)) + (inputs + (list bash-minimal + hyprutils + kirigami + libxkbcommon + qqc2-desktop-style + qtbase + qtdeclarative + qtwayland + wayland)) + (home-page "https://github.com/hyprwm/hyprland-qtutils") + (synopsis "Hyprland QT/QML utility apps") + (description + "This package provides some QT/QML utilities that might be used by +various hypr* apps.") + (license license:bsd-3))) + + (define-public libdbusmenu-qt (package (name "libdbusmenu-qt") -- 2.47.1 From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 04 00:26:23 2025 Received: (at 75337) by debbugs.gnu.org; 4 Jan 2025 05:26:24 +0000 Received: from localhost ([127.0.0.1]:53014 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tTwg3-0002HJ-Ju for submit@debbugs.gnu.org; Sat, 04 Jan 2025 00:26:23 -0500 Received: from mail-4316.protonmail.ch ([185.70.43.16]:18861) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tTwg0-0002H1-4D for 75337@debbugs.gnu.org; Sat, 04 Jan 2025 00:26:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1735968373; x=1736227573; bh=KQCdVaMOoefOergrTL2VfrZAcwOkqnRPHlm5eGEHKxc=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector:List-Unsubscribe:List-Unsubscribe-Post; b=UTm5TV9/y9zyDOgFNOdwzqPCIvl3eilArSH84GwuEV1l8e2YZO2J7qoICWAMPi2Mj bp6LBrsL9jEybSDhyehy1s6pZcI05lgVJ9xdBR7puC2d90do9erZv1Q5W3BSz5fxwo tT72DL/03TNHoeS0VmelXUAj0boxX95q+k7ExRCl3z7+JJFsnSjnEQoSYOrU5E3pHx dnb5F8Uy8NbO3PAg4ucIeOY6P/GEW2w7ey/NFG+hISqKVkaiR2TKK/yCbIjqrSOeZs Co2tZ8WxKSpF12XpTOsxSSKN1YivxCWN4w2RLxzuvZIhhj1tLnLSyY03XwOQCGjCki Vrh2nUq4/1NFw== Date: Sat, 04 Jan 2025 05:26:09 +0000 To: 75337@debbugs.gnu.org From: John Kehayias Subject: [PATCH 2/2] gnu: hyprland: Add hyprland-qtutils to propagated-inputs. Message-ID: <1c131cce476629bbff9794bc69ac186316c52fa5.1735967250.git.john.kehayias@protonmail.com> In-Reply-To: References: Feedback-ID: 7805494:user:proton X-Pm-Message-ID: 989421dce37976f68967d4684edcde73e80c11d0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 75337 Cc: John Kehayias , hako@ultrarare.space, collin@rekahsoft.ca X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hyprland will warn and suggest on running that it expects to find binaries from hyprland-qtutils. * gnu/packages/wm.scm (hyprland)[propagated-inputs]: New field. Change-Id: I54a2331181636b7aad9abdf7dfef9e1ac9c9fc3c --- gnu/packages/wm.scm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm index e7a6cb6afc..4d53861ceb 100644 --- a/gnu/packages/wm.scm +++ b/gnu/packages/wm.scm @@ -169,6 +169,7 @@ (define-module (gnu packages wm) #:use-module (gnu packages python-build) #:use-module (gnu packages python-crypto) #:use-module (gnu packages python-xyz) + #:use-module (gnu packages qt) #:use-module (gnu packages readline) #:use-module (gnu packages regex) #:use-module (gnu packages serialization) @@ -423,6 +424,7 @@ (define-public hyprland xcb-util-errors xcb-util-wm xorg-server-xwayland)) + (propagated-inputs (list hyprland-qtutils)) (home-page "https://hyprland.org/") (synopsis "Dynamic tiling Wayland compositor") (description -- 2.47.1 From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 04 10:40:14 2025 Received: (at 75337) by debbugs.gnu.org; 4 Jan 2025 15:40:14 +0000 Received: from localhost ([127.0.0.1]:56735 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tU6G5-0006oK-Im for submit@debbugs.gnu.org; Sat, 04 Jan 2025 10:40:14 -0500 Received: from mx.boiledscript.com ([88.99.243.112]:37698) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tU60D-0005m3-Ho for 75337@debbugs.gnu.org; Sat, 04 Jan 2025 10:24:58 -0500 Date: Sat, 04 Jan 2025 22:58:34 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=mail; t=1736004226; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=v3S0hUO1hJuJ9s/s4i24L8mDE7Byg1xAjydOG8h37vY=; b=GDXUKgHrxHGIjEHptnrA2O7sf3PTMyBT8PNYT/NfXP1gui3vn6zMxQgz8y+mrTzqUu5//d pkKMcKmOtEwTYq53o/VMyPxD93+nsnSQcwXrOmCIheZJsvjvXf6U0kxxl89A6G+iSXC7dy TijyhSuGE5pDEQnyHcRNUWZPjElM4ea7plC9XypO7tYl5DjvrkVXhz4dRsqFGkJVnX01vh jUzMCbF5M5fPkKh2MuP6N36Aqto5oZOOxjTDDTJTdV6EAwXoWBsEDkLtAIIKdmHa4/3KS9 +/D9ONB3AO+8MA9U7PcP1rsHA2NgzCLnT3H7BfYF+Ke4heljAOJA5lpaT2xfQQ== Message-ID: <87o70mmxr9.wl-hako@ultrarare.space> From: Hilton Chain To: John Kehayias Subject: Re: [PATCH 0/2] Add hyprland-qtutils; use it Hyprland In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 75337 Cc: 75337@debbugs.gnu.org, collin@rekahsoft.ca X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Sat, 04 Jan 2025 13:23:05 +0800, John Kehayias wrote: > > Hi all, > > As pointed out in , 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 > > From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 06 14:37:27 2025 Received: (at 75337-done) by debbugs.gnu.org; 6 Jan 2025 19:37:27 +0000 Received: from localhost ([127.0.0.1]:40158 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tUsuk-0006hx-WB for submit@debbugs.gnu.org; Mon, 06 Jan 2025 14:37:27 -0500 Received: from mail-10630.protonmail.ch ([79.135.106.30]:54943) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tUsui-0006he-IY for 75337-done@debbugs.gnu.org; Mon, 06 Jan 2025 14:37:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1736192237; x=1736451437; bh=VbX/Bs7sJMLLBg6jhw5BkWUDDw2aRGhOQuIA6iJvu6U=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector:List-Unsubscribe:List-Unsubscribe-Post; b=aN23KIXhUMP2PGSyU8H0Yn1CfKslcrC2Fp8lK08bJWW6La1F0NnqzPmplTdSeGYvP uGkXV2oBC8PtopKIjga6flI0PEgeYcMV90T0MPivmBfPOx/9xWybUU0+C9g7CMSlI7 uEVyNciyRc8Aamv5wqvWi6H4rufaOSx82oQzDXe8qflsOv96ja/WuphW9Twk+hBudo 6u3Kqzsvcrp7pBbGtSJwSaHKZXi/TjocxxMJCEaPcjsJ4L6yYTDgfBHvSg0tEiePo0 zs9aTrdfvzgQzlTWRxkqGN3S0NqYGjPtnIGceFKP+R7DI3MJDSfv5zpvT/G0wniCiV 1WqVbIMvyalsw== Date: Mon, 06 Jan 2025 19:37:11 +0000 To: Hilton Chain From: John Kehayias Subject: Re: [PATCH 0/2] Add hyprland-qtutils; use it Hyprland Message-ID: <87o70jka3i.fsf@protonmail.com> In-Reply-To: <87o70mmxr9.wl-hako@ultrarare.space> References: <87o70mmxr9.wl-hako@ultrarare.space> Feedback-ID: 7805494:user:proton X-Pm-Message-ID: 0a41876e962103d39d7d7efb06e45616351259e2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 75337-done Cc: 75337-done@debbugs.gnu.org, collin@rekahsoft.ca X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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 need= ed QT >> environment variables to get them to work. Using qt-buid-system or calli= ng >> 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 investigat= e >> 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/b= uild >> does not otherwise depend or try to find these at build time. Using >> propagated-inputs seems to me the easiest and most straight forward meth= od >> 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 From unknown Wed Aug 20 06:40:18 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 04 Feb 2025 12:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator