GNU bug report logs - #65079
[PATCH 07/13] gnu: Add go-github-com-pkg-profile

Previous Next

Package: guix-patches;

Reported by: Fries <fries1234 <at> protonmail.com>

Date: Sat, 5 Aug 2023 08:53:11 UTC

Severity: normal

Tags: moreinfo, patch

Merged with 65072, 65073, 65074, 65075, 65076, 65077, 65078, 65080, 65081, 65082, 65083, 65084, 65085

Done: Sharlatan Hellseher <sharlatanus <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 65079 in the body.
You can then email your comments to 65079 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#65079; Package guix-patches. (Sat, 05 Aug 2023 08:53:11 GMT) Full text and rfc822 format available.

Acknowledgement sent to Fries <fries1234 <at> protonmail.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Sat, 05 Aug 2023 08:53:11 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Fries <fries1234 <at> protonmail.com>
To: guix-patches <at> gnu.org
Cc: Fries <fries1234 <at> protonmail.com>
Subject: [PATCH 07/13] gnu: Add go-github-com-pkg-profile
Date: Sat, 05 Aug 2023 07:00:34 +0000
* gnu/packages/golang.scm (go-github-com-pkg-profile): New variable.
---
 gnu/packages/golang.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 208b88d934..daa811a5dc 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -2113,6 +2113,36 @@ (define-public go-github-com-dhowett-go-plist
 types.")
       (license license:giftware))))
 
+(define-public go-github-com-pkg-profile
+  (package
+    (name "go-github-com-pkg-profile")
+    (version "1.7.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/pkg/profile")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0ifr9gnycjwh7dbvsb5vgs9kzlr548cb4m45zvl8i8lgd3qhppy1"))))
+    (build-system go-build-system)
+    (arguments
+     '(#:import-path "github.com/pkg/profile"
+       #:phases (modify-phases %standard-phases
+                  ;; profile drops a cpu.pprof file inside its source directory
+                  ;; after tests which makes it unreproducable so we remove it.
+                  (add-after 'check 'delete-test-file
+                    (lambda _
+                      (delete-file "src/github.com/pkg/profile/cpu.pprof"))))))
+    (propagated-inputs `(("go-github-com-felixge-fgprof" ,go-github-com-felixge-fgprof)))
+    (home-page "https://github.com/pkg/profile")
+    (synopsis "Simple profiling for Go")
+    (description
+     "Profile provides a simple way to manage runtime/pprof profiling of your
+Go application.")
+    (license license:bsd-2)))
+
 (define-public go-github-com-felixge-fgprof
   (package
     (name "go-github-com-felixge-fgprof")
-- 
2.41.0






Information forwarded to guix-patches <at> gnu.org:
bug#65079; Package guix-patches. (Sat, 05 Aug 2023 09:22:02 GMT) Full text and rfc822 format available.

Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "(" <paren <at> disroot.org>
To: Fries <fries1234 <at> protonmail.com>
Cc: guix-patches <at> gnu.org, 65079 <at> debbugs.gnu.org
Subject: Re: [bug#65079] [PATCH 07/13] gnu: Add go-github-com-pkg-profile
Date: Sat, 05 Aug 2023 10:19:20 +0100
Fries via Guix-patches via <guix-patches <at> gnu.org> writes:
> +    (build-system go-build-system)
> +    (arguments
> +     '(#:import-path "github.com/pkg/profile"

Use LIST and #~.

> +       #:phases (modify-phases %standard-phases
> +                  ;; profile drops a cpu.pprof file inside its source directory
> +                  ;; after tests which makes it unreproducable so we remove it.

s/unreproducable/unreproducible/

> +                  (add-after 'check 'delete-test-file
> +                    (lambda _
> +                      (delete-file "src/github.com/pkg/profile/cpu.pprof"))))))

You can make this neater like so:

  (add-after 'check 'delete-test-file
    (lambda* (#:key import-path #:allow-other-keys)
      (delete-file (string-append "src/" import-path "/cpu.pprof"))))

> +    (propagated-inputs `(("go-github-com-felixge-fgprof" ,go-github-com-felixge-fgprof)))

LIST here too.

  -- (




Information forwarded to guix-patches <at> gnu.org:
bug#65079; Package guix-patches. (Sat, 05 Aug 2023 09:22:03 GMT) Full text and rfc822 format available.

Merged 65072 65073 65074 65075 65076 65077 65078 65079 65080 65081 65082 65083 65084 65085. Request was from Fries <fries1234 <at> protonmail.com> to control <at> debbugs.gnu.org. (Sat, 05 Aug 2023 10:27:03 GMT) Full text and rfc822 format available.

Disconnected #65072 from all other report(s). Request was from Fries <fries1234 <at> protonmail.com> to control <at> debbugs.gnu.org. (Sun, 06 Aug 2023 06:33:04 GMT) Full text and rfc822 format available.

Disconnected #65073 from all other report(s). Request was from Fries <fries1234 <at> protonmail.com> to control <at> debbugs.gnu.org. (Sun, 06 Aug 2023 06:33:05 GMT) Full text and rfc822 format available.

Disconnected #65075 from all other report(s). Request was from Fries <fries1234 <at> protonmail.com> to control <at> debbugs.gnu.org. (Sun, 06 Aug 2023 06:33:06 GMT) Full text and rfc822 format available.

Disconnected #65076 from all other report(s). Request was from Fries <fries1234 <at> protonmail.com> to control <at> debbugs.gnu.org. (Sun, 06 Aug 2023 06:33:07 GMT) Full text and rfc822 format available.

Disconnected #65077 from all other report(s). Request was from Fries <fries1234 <at> protonmail.com> to control <at> debbugs.gnu.org. (Sun, 06 Aug 2023 06:33:07 GMT) Full text and rfc822 format available.

Disconnected #65078 from all other report(s). Request was from Fries <fries1234 <at> protonmail.com> to control <at> debbugs.gnu.org. (Sun, 06 Aug 2023 06:33:08 GMT) Full text and rfc822 format available.

Disconnected #65079 from all other report(s). Request was from Fries <fries1234 <at> protonmail.com> to control <at> debbugs.gnu.org. (Sun, 06 Aug 2023 06:33:09 GMT) Full text and rfc822 format available.

Merged 65072 65073 65074 65075 65076 65077 65078 65079. Request was from Fries <fries1234 <at> protonmail.com> to control <at> debbugs.gnu.org. (Sun, 06 Aug 2023 06:33:13 GMT) Full text and rfc822 format available.

Merged 65072 65073 65074 65075 65076 65077 65078 65079 65082. Request was from Fries <fries1234 <at> protonmail.com> to control <at> debbugs.gnu.org. (Sun, 06 Aug 2023 06:33:14 GMT) Full text and rfc822 format available.

Merged 65072 65073 65074 65075 65076 65077 65078 65079 65080 65082. Request was from Fries <fries1234 <at> protonmail.com> to control <at> debbugs.gnu.org. (Sun, 06 Aug 2023 06:33:14 GMT) Full text and rfc822 format available.

Merged 65072 65073 65074 65075 65076 65077 65078 65079 65080 65081 65082. Request was from Fries <fries1234 <at> protonmail.com> to control <at> debbugs.gnu.org. (Sun, 06 Aug 2023 06:33:15 GMT) Full text and rfc822 format available.

Merged 65072 65073 65074 65075 65076 65077 65078 65079 65080 65081 65082 65084. Request was from Fries <fries1234 <at> protonmail.com> to control <at> debbugs.gnu.org. (Sun, 06 Aug 2023 06:33:16 GMT) Full text and rfc822 format available.

Merged 65072 65073 65074 65075 65076 65077 65078 65079 65080 65081 65082 65084 65085. Request was from Fries <fries1234 <at> protonmail.com> to control <at> debbugs.gnu.org. (Sun, 06 Aug 2023 06:33:16 GMT) Full text and rfc822 format available.

Merged 65072 65073 65074 65075 65076 65077 65078 65079 65080 65081 65082 65083 65084 65085. Request was from Fries <fries1234 <at> protonmail.com> to control <at> debbugs.gnu.org. (Sun, 06 Aug 2023 06:33:17 GMT) Full text and rfc822 format available.

Added tag(s) moreinfo. Request was from Maxim Cournoyer <maxim.cournoyer <at> gmail.com> to control <at> debbugs.gnu.org. (Fri, 01 Sep 2023 12:09:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 05 May 2024 11:24:12 GMT) Full text and rfc822 format available.

This bug report was last modified 11 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.