From unknown Fri Jun 20 07:15:42 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#65107 <65107@debbugs.gnu.org> To: bug#65107 <65107@debbugs.gnu.org> Subject: Status: [PATCH] gnu: Add gf. Reply-To: bug#65107 <65107@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:15:42 +0000 retitle 65107 [PATCH] gnu: Add gf. reassign 65107 guix-patches submitter 65107 dan severity 65107 normal tag 65107 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 06 01:52:35 2023 Received: (at submit) by debbugs.gnu.org; 6 Aug 2023 05:52:35 +0000 Received: from localhost ([127.0.0.1]:58547 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSWgs-0004EK-Rm for submit@debbugs.gnu.org; Sun, 06 Aug 2023 01:52:35 -0400 Received: from lists.gnu.org ([2001:470:142::17]:58934) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSWgp-0004Dx-JZ for submit@debbugs.gnu.org; Sun, 06 Aug 2023 01:52:33 -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 ) id 1qSWgj-0000kv-RM for guix-patches@gnu.org; Sun, 06 Aug 2023 01:52:25 -0400 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qSWgi-0004qF-2m for guix-patches@gnu.org; Sun, 06 Aug 2023 01:52:25 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 647583200754 for ; Sun, 6 Aug 2023 01:52:21 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Sun, 06 Aug 2023 01:52:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dan.games; h=cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:message-id:mime-version:reply-to:sender :subject:subject:to:to; s=fm1; t=1691301140; x=1691387540; bh=XE ifcOeLlIDhtPz1ZgGcyXZ0EetFfgnwBU0zGAyEics=; b=0i/8HhBshvf7wU2y50 dBfg9I3wNrDQbccZpPZXxa8+zxWjnQDrHaelQaX098AFppaa75Ca2eMblqOectXl /bGPJMw+YkcBAMXn9k1SvxDM/MtethXL+pR3dYRP02Z6nhPXoynqrvJ0igi8lq2V zgiScvkj+BQ2rf7f95Soq8LYEe5MEZNx26vJ1mfUddoD/9hGMX120p/Qepqe+Bfe pGSOj3/aEqUMEPiFPGkm9KS5aoTbSzYDiMfZ28+uziUJoOViuXnmPe2PsDBn3CLX 9Blh/s+0MEuEciuf4sPnnIZ7HMBOdm1WUbFnQ4w8h5weI9MNflwmQNPNZosqedi+ h2OQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; t=1691301140; x=1691387540; bh=XEifcOeLlIDht Pz1ZgGcyXZ0EetFfgnwBU0zGAyEics=; b=M9Aier5LQZzhDSDj6GCew3XQTIRKI gz1LZD0nfJ8bhronchY9c0zNcIHR8Ku2OA/PQ2N6vgtTMqxKfP+ZBva2HlrJgyc1 Y7Y1XEqSwhHJONMhfcPJcelfA4vJaySLPGwFyfLFOUnxO0tLU7NP+QNJPe3oUYPC nPSP4DlQ0IX07pZ/g6y9SGKVh0CYLVqJn6/MxeD4IGSUo7KMM0eBxY9toSeHDxBn bGFnxR6P8BH6BCCVGll+UQWmaOt5dBEIMB7bgUINYV99hRXsbrAEdEAXcqGNhPO+ 9TUYQguPBFqsEANplFU92YvJ19ZLKcmTMKqMkBhAr4BtsX+hqXhvPVl/Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrkeejgddutdduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofggtgfgsehtkeertd ertdejnecuhfhrohhmpegurghnuceoihesuggrnhdrghgrmhgvsheqnecuggftrfgrthht vghrnheptddtuddtjedvgedvteefieeiveelffetheffgfevueeiteelleevfedvudevje fgnecuffhomhgrihhnpehgihhthhhusgdrtghomhenucevlhhushhtvghrufhiiigvpedt necurfgrrhgrmhepmhgrihhlfhhrohhmpehisegurghnrdhgrghmvghs X-ME-Proxy: Feedback-ID: i3b5946ed:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Sun, 6 Aug 2023 01:52:19 -0400 (EDT) From: dan To: guix-patches@gnu.org Subject: [PATCH] gnu: Add gf. Date: Sun, 6 Aug 2023 13:52:12 +0800 Message-ID: <20230806055213.29704-1-i@dan.games> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=64.147.123.25; envelope-from=i@dan.games; helo=wout2-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.6 (/) X-Debbugs-Envelope-To: submit 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.4 (/) --- gnu/packages/debug.scm | 56 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/gnu/packages/debug.scm b/gnu/packages/debug.scm index e2a29a3ae9..104ecc3091 100644 --- a/gnu/packages/debug.scm +++ b/gnu/packages/debug.scm @@ -13,6 +13,7 @@ ;;; Copyright © 2022 Matthew James Kraai ;;; Copyright © 2023 Andy Tai ;;; Copyright © 2023 Ricardo Wurmus +;;; Copyright © 2023 dan ;;; ;;; This file is part of GNU Guix. ;;; @@ -50,6 +51,7 @@ (define-module (gnu packages debug) #:use-module (gnu packages code) #:use-module (gnu packages compression) #:use-module (gnu packages flex) + #:use-module (gnu packages fontutils) #:use-module (gnu packages gdb) #:use-module (gnu packages glib) #:use-module (gnu packages gtk) @@ -918,3 +920,57 @@ (define-public delve (synopsis "Debugger for the Go programming language") (description "Delve is a debugger for the Go programming language.") (license license:expat))) + +(define-public gf + (let ((commit "77a1f69204ceca5e62936976f97c62085a705126") + (revision "0")) + (package + (name "gf") + (version (git-version "0.0.0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/nakst/gf") + (commit commit))) + (sha256 + (base32 + "167ykfv7vf5vajxd5m3ggw4avpcim0i0bfmbxb495n8rgpaiizdy")) + (file-name (git-file-name name version)))) + (build-system gnu-build-system) + (arguments + (list #:tests? #f ; no test + #:phases #~(modify-phases %standard-phases + (delete 'configure) + (replace 'build + (lambda* _ + (invoke "g++" + "gf2.cpp" + "-o" + "gf2" + "-g" + "-O2" + "-lX11" + "-lfreetype" + "-pthread" + (string-append "-I" + #$freetype + "/include/freetype2") + "-DUI_FREETYPE" + "-DUI_NO_COLOR_PICKER" + "-DUI_SSE2" + "-Wall" + "-Wextra" + "-Wno-unused-parameter" + "-Wno-unused-result" + "-Wno-missing-field-initializers" + "-Wno-format-truncation"))) + (replace 'install + (lambda* _ + (install-file "gf2" + (string-append #$output "/bin"))))))) + (inputs (list libx11 libxext libxcursor freetype)) + (propagated-inputs (list gdb)) + (home-page "https://github.com/nakst/gf") + (synopsis "GDB frontend") + (description "A graphical GDB frontend for Linux.") + (license license:expat)))) base-commit: c4b9f726e3a1889b92a4b14a2af1c25f10798469 -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 06 10:51:52 2023 Received: (at 65107) by debbugs.gnu.org; 6 Aug 2023 14:51:52 +0000 Received: from localhost ([127.0.0.1]:59783 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSf6m-0001cY-D7 for submit@debbugs.gnu.org; Sun, 06 Aug 2023 10:51:52 -0400 Received: from mail.boiledscript.com ([144.168.59.46]:33322) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSf6h-0001cL-UL for 65107@debbugs.gnu.org; Sun, 06 Aug 2023 10:51:51 -0400 Date: Sun, 06 Aug 2023 22:51:30 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1691333496; 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=eemZYJW4Lld03wn93N0oe4vULNwRtmIxoJr3l2vijdI=; b=G3RFEa7dU2oIxcDqR6KKY0rN4uh9dSa8NXMZTCucomuUsQOKNN5jUJLZKYOS6pZwTPcNDh Q7p23BjHli90/x635nZGtnu4Sr+oHArGlMieOSwHK7cI1t1wsatlHRzklITxdWduZ0HebX HzbqtMp6ZUtvSnqww/R9x1IaGWxXOA2dMNwb+CB0XO306yjNq8Tgz84RyXfAE3q4m3okyC 7aohPMijkYSebLCrAWvsNxzIMrFzZhrut7VIPNCHE/s+eO40eZwqidJnGZe6ZFDrSijefU zMF0hgZXwmQ73dQnAfaHgWJmXoFtRNkX0CGuIGqmvJC5G7HL2Ar4A7ZKre+zbA== Message-ID: <87v8ds4425.wl-hako@ultrarare.space> From: Hilton Chain To: dan Subject: Re: [bug#65107] [PATCH] gnu: Add gf. In-Reply-To: <20230806055213.29704-1-i@dan.games> References: <20230806055213.29704-1-i@dan.games> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Authentication-Results: mail.boiledscript.com; auth=pass smtp.mailfrom=hako@ultrarare.space X-Spamd-Bar: / X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 65107 Cc: 65107@debbugs.gnu.org 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 dan, On Sun, 06 Aug 2023 13:52:12 +0800, dan wrote: > > --- > gnu/packages/debug.scm | 56 ++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 56 insertions(+) > > diff --git a/gnu/packages/debug.scm b/gnu/packages/debug.scm > index e2a29a3ae9..104ecc3091 100644 > --- a/gnu/packages/debug.scm > +++ b/gnu/packages/debug.scm [...] > + (build-system gnu-build-system) > + (arguments > + (list #:tests? #f ; no test > + #:phases #~(modify-phases %standard-phases > + (delete 'configure) > + (replace 'build > + (lambda* _ > + (invoke "g++" > + "gf2.cpp" > + "-o" > + "gf2" > + "-g" > + "-O2" > + "-lX11" > + "-lfreetype" > + "-pthread" > + (string-append "-I" > + #$freetype > + "/include/freetype2") I think #$freetype can be changed to #$(this-package-input "freetype") > + "-DUI_FREETYPE" > + "-DUI_NO_COLOR_PICKER" > + "-DUI_SSE2" > + "-Wall" > + "-Wextra" > + "-Wno-unused-parameter" > + "-Wno-unused-result" > + "-Wno-missing-field-initializers" > + "-Wno-format-truncation"))) Can you move these flags to #:make-flags? For example: --8<---------------cut here---------------start------------->8--- (arguments (list [...] #:make-flags #~(list "-g" "-O2" [...]) #:phases #~(modify-phases %standard-phases (replace 'build (lambda* (#:key make-flags #:allow-other-keys) (apply invoke `(#$(cxx-for-target) "gf2.cpp" "-o" "gf2" ,@make-flags))))))) --8<---------------cut here---------------end--------------->8--- > + (replace 'install > + (lambda* _ > + (install-file "gf2" > + (string-append #$output "/bin"))))))) > + (inputs (list libx11 libxext libxcursor freetype)) > + (propagated-inputs (list gdb)) There're$B!V(B"gdb"$B!W(Boccurrences in the source, can adding gdb to inputs and substituting them avoid the propagation? --8<---------------cut here---------------start------------->8--- (substitute* "gf2.cpp" (("\"gdb\"") (format #f "\"~a\"" (search-input-file inputs "/bin/gdb")))) --8<---------------cut here---------------end--------------->8--- (A keyword argument inputs should be added to the relevant procedure) And the program seems to depend on Vim as well. > + (home-page "https://github.com/nakst/gf") > + (synopsis "GDB frontend") > + (description "A graphical GDB frontend for Linux.") > + (license license:expat)))) > > base-commit: c4b9f726e3a1889b92a4b14a2af1c25f10798469 > -- > 2.41.0 I have built the package locally, running it with xvfb-run reports "vim: command not found". XWayland is disabled in my setup so I haven't checked whether the program works. Thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 06 22:00:27 2023 Received: (at 65107) by debbugs.gnu.org; 7 Aug 2023 02:00:27 +0000 Received: from localhost ([127.0.0.1]:60219 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSpXn-0004Sr-Hm for submit@debbugs.gnu.org; Sun, 06 Aug 2023 22:00:27 -0400 Received: from mail.boiledscript.com ([144.168.59.46]:32768) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSpXi-0004Sf-GG for 65107@debbugs.gnu.org; Sun, 06 Aug 2023 22:00:26 -0400 Date: Mon, 07 Aug 2023 09:58:24 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1691373611; 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=sfAkZbCLV/wl/yqqdZ/spiRwoRNRPZKRc8pL+Rxg0Vg=; b=Nsom0BuP32b/dEat8dPYci6lYI4uARxkxKqvLcxEjxjnEnqmNmmQC2BPOZRgkYhIJX9RZm DEHrWLJ1tTBuD2dxcML4zeRyhzfl+DmKDYmJC36HX1vAJZcuKWybrRZk+4TGI6z5XS8aGY dXlx3Vl98k6yO7KlozE6SpeKb09Sk65lNmhuyu8cdn8XM5Bjl8fO/ipG3632Zbdoj92NQf AQ334UXKxkgPmNKKDPQEmQUe1LwLiezJGGUkcbe6WosUQ6rL2jawyZeRuWy/GJ1BATqmku MUJYUFqfloV/ssVxDg4z9UZ8zNyKsb8JgF7nfxwBV0PHSl8XfsdJpH4a+BRsFg== Message-ID: <874jlbwr3z.wl-hako@ultrarare.space> From: Hilton Chain To: dan Subject: Re: [bug#65107] [PATCH] gnu: Add gf. In-Reply-To: <87v8ds4425.wl-hako@ultrarare.space> References: <20230806055213.29704-1-i@dan.games> <87v8ds4425.wl-hako@ultrarare.space> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Authentication-Results: mail.boiledscript.com; auth=pass smtp.mailfrom=hako@ultrarare.space X-Spamd-Bar: / X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 65107 Cc: 65107@debbugs.gnu.org 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 Sun, 06 Aug 2023 22:51:30 +0800, Hilton Chain wrote: > Can you move these flags to #:make-flags? > > For example: > --8<---------------cut here---------------start------------->8--- > (arguments > (list [...] > #:make-flags > #~(list "-g" "-O2" [...]) > #:phases > #~(modify-phases %standard-phases > (replace 'build > (lambda* (#:key make-flags #:allow-other-keys) > (apply invoke > `(#$(cxx-for-target) "gf2.cpp" "-o" "gf2" > ,@make-flags))))))) > --8<---------------cut here---------------end--------------->8--- Sorry, `quasiquote' is not necessary here because `apply' accepts one list for the last argument and the above code just makes a list. The `apply' invocation I wrote should be replaced to: --8<---------------cut here---------------start------------->8--- (apply invoke #$(cxx-for-target) "gf2.cpp" "-o" "gf2" make-flags) --8<---------------cut here---------------end--------------->8--- Thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 07 21:59:02 2023 Received: (at 65107) by debbugs.gnu.org; 8 Aug 2023 01:59:02 +0000 Received: from localhost ([127.0.0.1]:34609 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qTBzy-0000yT-Ah for submit@debbugs.gnu.org; Mon, 07 Aug 2023 21:59:02 -0400 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:44219) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qTBzt-0000xw-Sb for 65107@debbugs.gnu.org; Mon, 07 Aug 2023 21:59:01 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 88A9F32002F9 for <65107@debbugs.gnu.org>; Mon, 7 Aug 2023 21:58:51 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Mon, 07 Aug 2023 21:58:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dan.games; h=cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:message-id:mime-version:reply-to:sender :subject:subject:to:to; s=fm1; t=1691459930; x=1691546330; bh=oE kf9gBVig9mCE7o9DK2+nxCch0Wm1KBPlHh71GC/zQ=; b=X0zK8LArKRq48z0m/6 iXaflU0GS237v+mKg0+3wyZGX/w7bb5FVq2JpWLLHUsxB2SSFiOvACCA65+V0qcS 7JX1Vlf87GOBeWh5cLogFavaZtACufSvP8JDAxl6iB50GPpubwL4yhTRsGRgvsQf +jbc7QFThD48e5lLHqMWQWix0dCuXH2CMeyGcEDNNQz5aW23+N1lUeyPsJGH+xtb HuWDPdQgRMpl1l288p78tcnl295Lnw5ukEPxPrF+Jd3dAsoY9dj+xqhlMRYo9w2r A6S4wJs8wCha78vzmLIEXYWdorCly28UB45gkScti/UdrLLiMjIIu2jlyIffgBER c0iQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; t=1691459930; x=1691546330; bh=oEkf9gBVig9mC E7o9DK2+nxCch0Wm1KBPlHh71GC/zQ=; b=xCO1UVgPrt/nPMBsTyCsrrCUyME/J KogvhWi2mSz3pc89APtO3pALRMI32Sr8GA4Cjgaufmz1IKrWHAzosZOZ2uwKCVb6 DHzgx0e88ygQMzhaetQBnm94/MQITrVZH4Hmxk05yXpbEwXAGikRX6/Jc98HruoJ ANJOvO8zQr1blgZeM7/bCav/RmlWMxZ2An2QL+QbONuv9lI+HRe1iewCxz1K/vjg iwZXtDjkwBmqim5uJGIji6EeqTDMTeg+Tyo4eT79RJNB42S3kNDGF1Rd96EzEZ+6 OeA58tWEtIVTZSxPCp8sPIIE96+ifGS2hZPhk4dICYr8FNfaKvIkuP3NQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrledugdehtdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffogggtgfesthekredtre dtjeenucfhrhhomhepuggrnhcuoehisegurghnrdhgrghmvghsqeenucggtffrrghtthgv rhhnpedttddutdejvdegvdetfeeiieevleffteehfffgveeuieetleelveefvdduveejgf enucffohhmrghinhepghhithhhuhgsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptden ucfrrghrrghmpehmrghilhhfrhhomhepihesuggrnhdrghgrmhgvsh X-ME-Proxy: Feedback-ID: i3b5946ed:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for <65107@debbugs.gnu.org>; Mon, 7 Aug 2023 21:58:45 -0400 (EDT) From: dan To: 65107@debbugs.gnu.org Subject: [PATCH v2] gnu: Add gf. Date: Tue, 8 Aug 2023 09:57:59 +0800 Message-ID: <20230808015808.5485-1-i@dan.games> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 65107 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.7 (-) The following is the updated patch changed according to Hilton's suggestion. Note that for the vim version in guix we don't have `--servername' support, but I patched it anyway. --- gnu/packages/debug.scm | 91 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 91 insertions(+) diff --git a/gnu/packages/debug.scm b/gnu/packages/debug.scm index e2a29a3ae9..57d0d3b479 100644 --- a/gnu/packages/debug.scm +++ b/gnu/packages/debug.scm @@ -13,6 +13,7 @@ ;;; Copyright © 2022 Matthew James Kraai ;;; Copyright © 2023 Andy Tai ;;; Copyright © 2023 Ricardo Wurmus +;;; Copyright © 2023 dan ;;; ;;; This file is part of GNU Guix. ;;; @@ -50,6 +51,8 @@ (define-module (gnu packages debug) #:use-module (gnu packages code) #:use-module (gnu packages compression) #:use-module (gnu packages flex) + #:use-module (gnu packages fontutils) + #:use-module (gnu packages gawk) #:use-module (gnu packages gdb) #:use-module (gnu packages glib) #:use-module (gnu packages gtk) @@ -71,6 +74,7 @@ (define-module (gnu packages debug) #:use-module (gnu packages readline) #:use-module (gnu packages serialization) #:use-module (gnu packages texinfo) + #:use-module (gnu packages vim) #:use-module (gnu packages virtualization) #:use-module (gnu packages xdisorg) #:use-module (gnu packages xorg) @@ -918,3 +922,90 @@ (define-public delve (synopsis "Debugger for the Go programming language") (description "Delve is a debugger for the Go programming language.") (license license:expat))) + +(define-public gf + (let ((commit "77a1f69204ceca5e62936976f97c62085a705126") + (revision "0")) + (package + (name "gf") + (version (git-version "0.0.0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/nakst/gf") + (commit commit))) + (sha256 + (base32 + "167ykfv7vf5vajxd5m3ggw4avpcim0i0bfmbxb495n8rgpaiizdy")) + (file-name (git-file-name name version)))) + (build-system gnu-build-system) + (arguments + (list #:tests? #f ; no test + #:make-flags #~(list "-g" + "-O2" + "-lX11" + "-lfreetype" + "-pthread" + (string-append "-I" + #$(this-package-input + "freetype") + "/include/freetype2") + "-DUI_FREETYPE" + "-DUI_NO_COLOR_PICKER" + "-DUI_SSE2" + "-Wall" + "-Wextra" + "-Wno-unused-parameter" + "-Wno-unused-result" + "-Wno-missing-field-initializers" + "-Wno-format-truncation") + #:phases #~(modify-phases %standard-phases + (add-after 'unpack 'patch-path + (lambda* (#:key inputs outputs #:allow-other-keys) + (substitute* "gf2.cpp" + (("\"gdb\";") + (format #f "\"~a\";" + (search-input-file inputs "/bin/gdb"))) + (("\"vim ") + (format #f "\"~a " + (search-input-file inputs "/bin/vim"))) + (("grep") + (format #f "~a" + (search-input-file inputs "/bin/grep"))) + (("fc-list") + (format #f "~a" + (search-input-file inputs + "/bin/fc-list"))) + (("fc-match") + (format #f "~a" + (search-input-file inputs + "/bin/fc-match"))) + (("awk") + (format #f "~a" + (search-input-file inputs "/bin/awk")))))) + (delete 'configure) + (replace 'build + (lambda* (#:key make-flags #:allow-other-keys) + (apply invoke + #$(cxx-for-target) + "gf2.cpp" + "-o" + "gf2" + make-flags))) + (replace 'install + (lambda* _ + (install-file "gf2" + (string-append #$output "/bin"))))))) + (inputs (list fontconfig + freetype + gawk + gdb + grep + libx11 + libxext + libxcursor + vim)) + (home-page "https://github.com/nakst/gf") + (synopsis "GDB frontend") + (description "A graphical GDB frontend for Linux.") + (license license:expat)))) base-commit: d43b53c476b4e9322b31274b788e851d37e72302 -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 16 10:24:44 2023 Received: (at 65107) by debbugs.gnu.org; 16 Aug 2023 14:24:44 +0000 Received: from localhost ([127.0.0.1]:41782 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qWHRz-0004D7-Vh for submit@debbugs.gnu.org; Wed, 16 Aug 2023 10:24:44 -0400 Received: from mail.boiledscript.com ([144.168.59.46]:37182) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qWHRx-0004Cy-Fa for 65107@debbugs.gnu.org; Wed, 16 Aug 2023 10:24:42 -0400 Date: Wed, 16 Aug 2023 22:23:27 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1692195862; 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=GiqCSgkee9wcuhJQGL+KP6OjNFii/gv6JU2QCTLsJNA=; b=oJ89GPg39yvUckWD35RrsPFV2rXaiQyg/WU5D1jSbjhcbEnsPvYNQyqOnMe8MT5Si2WHv6 qNRj6BEfn7pco6k5riiDnQnO4M3TjX1x3y0otpN3my5izoHOs+EeGIvGxdpwpXm8jwq9WS UgKLTxkDL9/V+a3epOcYKoiBO96fpUWmu+j2fQ1fE3Hd0ZdVn6AUz3Qf/ilQB953V78GH6 QptITRw+qk7fnNlMqFSkeOOwb9ic1utZQB2/7q4sLZNp7wgjHgzAjS0+IEQPy8eMQ6tITn p+CESrrhqcEXzQiKNumyF08B+u31b1QTtsP1S2T8c5NRYUrjDQ8aKlH7Cn+mqg== Authentication-Results: mail.boiledscript.com; auth=pass smtp.mailfrom=hako@ultrarare.space Message-ID: <87y1ibqd5s.wl-hako@ultrarare.space> From: Hilton Chain To: dan Subject: Re: [bug#65107] [PATCH v2] gnu: Add gf. In-Reply-To: <20230808015808.5485-1-i@dan.games> References: <20230806055213.29704-1-i@dan.games> <20230808015808.5485-1-i@dan.games> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spamd-Bar: / X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 65107 Cc: 65107@debbugs.gnu.org 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 dan, On Tue, 08 Aug 2023 09:57:59 +0800, dan wrote: > > The following is the updated patch changed according to Hilton's > suggestion. Note that for the vim version in guix we don't have `--servername' > support, but I patched it anyway. > > --- If you want to add explanation which isn't part of the commit message to a patch, you can add it below the first "---" (i.e. here). Content above that line is used as git commit message. And in Guix there's a vim-full package. > gnu/packages/debug.scm | 91 ++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 91 insertions(+) > > diff --git a/gnu/packages/debug.scm b/gnu/packages/debug.scm > index e2a29a3ae9..57d0d3b479 100644 > --- a/gnu/packages/debug.scm > +++ b/gnu/packages/debug.scm [...] > + #:phases #~(modify-phases %standard-phases > + (add-after 'unpack 'patch-path > + (lambda* (#:key inputs outputs #:allow-other-keys) > + (substitute* "gf2.cpp" > + (("\"gdb\";") > + (format #f "\"~a\";" > + (search-input-file inputs "/bin/gdb"))) > + (("\"vim ") > + (format #f "\"~a " > + (search-input-file inputs "/bin/vim"))) > + (("grep") > + (format #f "~a" > + (search-input-file inputs "/bin/grep"))) > + (("fc-list") > + (format #f "~a" > + (search-input-file inputs > + "/bin/fc-list"))) > + (("fc-match") > + (format #f "~a" > + (search-input-file inputs > + "/bin/fc-match"))) > + (("awk") > + (format #f "~a" > + (search-input-file inputs "/bin/awk")))))) Then here, search-input-file returns a string so those (format #f "~a" ...) invocations are unnecessary, some of the substitutions can be merged into one as well: --8<---------------cut here---------------start------------->8--- (("grep|fc-list|fc-match|awk" cmd) (search-input-file inputs (string-append "/bin/" cmd))) --8<---------------cut here---------------end--------------->8--- Thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 12 16:16:21 2025 Received: (at 65107) by debbugs.gnu.org; 12 Feb 2025 21:16:21 +0000 Received: from localhost ([127.0.0.1]:38678 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tiK5k-0006jb-Ky for submit@debbugs.gnu.org; Wed, 12 Feb 2025 16:16:21 -0500 Received: from mailtransmit05.runbox.com ([2a0c:5a00:149::26]:53158) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tiK5d-0006iv-ND for 65107@debbugs.gnu.org; Wed, 12 Feb 2025 16:16:15 -0500 Received: from mailtransmit02.runbox ([10.9.9.162] helo=aibo.runbox.com) by mailtransmit05.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1tiK5W-000Yap-8f for 65107@debbugs.gnu.org; Wed, 12 Feb 2025 22:16:06 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=futurile.net; s=selector2; h=Content-Type:MIME-Version:Message-ID:Subject: To:From:Date; bh=aJ7y7A1s82fGcK2aeCSo6PDBzBpIWACoKrwWZBniic4=; b=UjH4auMKTyBE aDraMg71tCRwnxFzta/tqdE1ij7fE2gfhw0kaj3hg/Qbg7MSnVV/H5ZwFv6/KKpk3cVozLbIKb2ZG ti2j4BBW+SXj2W+XP5pzVFbOVY/MJ0srsCpp6jKJUbU9cH7rXjHblrhV5uPFSiiIf3oOIYkTDggzt 1IdTOq1sNpnzhkTYHFVrECYX/x+vOB0QWuNjhgzv9iMSP5/efKZzQlovgUT5nT12XqJBvWUMsmwvl JPVIHYO9xmgly3r8IufAy+1HVuZyOGWfNarYT0zMAV8DHlIZNz9mn1strrJqisGEsHbTH8d+zo0j2 P5Pdn1n4L9KDkUC++b5L+A==; Received: from [10.9.9.72] (helo=submission01.runbox) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1tiK5V-0008GO-Pl; Wed, 12 Feb 2025 22:16:05 +0100 Received: by submission01.runbox with esmtpsa [Authenticated ID (641962)] (TLS1.2:ECDHE_SECP256R1__RSA_SHA256__AES_256_GCM:256) (Exim 4.93) id 1tiK5M-0051wv-7F; Wed, 12 Feb 2025 22:15:56 +0100 Date: Wed, 12 Feb 2025 21:15:55 +0000 From: Steve George To: 65107@debbugs.gnu.org, 65107-submitter@debbugs.gnu.org Subject: RE: Adding 'gf' to Guix Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 65107 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.7 (-) Hi Dan, I'm bumping your #65107 which you submitted a while ago. Looks like there was just two comments to resolve from Hilton's review. Still interested in doing that? https://issues.guix.gnu.org/issue/65107 Thanks! Steve / Futurile