unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#64305] [PATCH 0/4] Fixup uwufetch.
@ 2023-06-26 17:10 Juliana Sims
  2023-06-26 17:14 ` [bug#64305] [PATCH 1/4] gnu: uwufetch: Fix typo in build phase name Juliana Sims
  0 siblings, 1 reply; 11+ messages in thread
From: Juliana Sims @ 2023-06-26 17:10 UTC (permalink / raw)
  To: 64305; +Cc: Juliana Sims

Hello,

While doing a periodic check on updates to packages I've submitted to Guix, I noticed that there were some issues with uwufetch - namely, running `guix shell --pure uwufetch` left you with a broken package. This patch series takes care of that and fixes some other minor issues I noticed along the way.

Thanks,
Juli

Juliana Sims (4):
  gnu: uwufetch: Fix typo in build phase name.
  gnu: uwufetch: Manually create missing include dir.
  gnu: uwufetch: Add missing propagated inputs.
  gnu: uwufetch: Add supported-systems.

 gnu/packages/admin.scm | 18 +++++++++++++++---
 1 file changed, 15 insertions(+), 3 deletions(-)


base-commit: 05a7f7bf6e30ca958a86c3853222d45e075459b0
-- 
2.40.1





^ permalink raw reply	[flat|nested] 11+ messages in thread

* [bug#64305] [PATCH 1/4] gnu: uwufetch: Fix typo in build phase name.
  2023-06-26 17:10 [bug#64305] [PATCH 0/4] Fixup uwufetch Juliana Sims
@ 2023-06-26 17:14 ` Juliana Sims
  2023-06-26 17:14   ` [bug#64305] [PATCH 2/4] gnu: uwufetch: Manually create missing include dir Juliana Sims
                     ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Juliana Sims @ 2023-06-26 17:14 UTC (permalink / raw)
  To: 64305; +Cc: Juliana Sims

* gnu/packages/admin.scm (uwufetch) [arguments]: Fix typo in build phase name.
---
 gnu/packages/admin.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index a81a3f3414..39d363272b 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -4020,7 +4020,7 @@ (define-public uwufetch
       #:phases
       #~(modify-phases %standard-phases
           (delete 'configure)
-          (add-before 'build 'path-source-paths
+          (add-before 'build 'patch-source-paths
             (lambda _
               (substitute* "uwufetch.c"
                 (("(/usr(/local)?)(.*;)" all _ _ rest)
-- 
2.40.1





^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [bug#64305] [PATCH 2/4] gnu: uwufetch: Manually create missing include dir.
  2023-06-26 17:14 ` [bug#64305] [PATCH 1/4] gnu: uwufetch: Fix typo in build phase name Juliana Sims
@ 2023-06-26 17:14   ` Juliana Sims
  2023-06-26 17:14   ` [bug#64305] [PATCH 3/4] gnu: uwufetch: Add missing propagated inputs Juliana Sims
  2023-06-26 17:14   ` [bug#64305] [PATCH 4/4] gnu: uwufetch: Add supported-systems Juliana Sims
  2 siblings, 0 replies; 11+ messages in thread
From: Juliana Sims @ 2023-06-26 17:14 UTC (permalink / raw)
  To: 64305; +Cc: Juliana Sims

* gnu/packages/admin.scm (uwufetch) [arguments]: Manually create missing
include dir.
---
 gnu/packages/admin.scm | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index 39d363272b..0af0ef4051 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -4024,7 +4024,11 @@ (define-public uwufetch
             (lambda _
               (substitute* "uwufetch.c"
                 (("(/usr(/local)?)(.*;)" all _ _ rest)
-                 (string-append #$output rest))))))))
+                 (string-append #$output rest)))))
+          ;; TODO this will be fixed in the next release of uwufetch
+          (add-before 'install 'make-include-dir
+            (lambda _
+              (mkdir-p (string-append #$output "/include")))))))
     (inputs (list lshw
                   ;; viu XXX not yet packaged in Guix
                   xwininfo))
-- 
2.40.1





^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [bug#64305] [PATCH 3/4] gnu: uwufetch: Add missing propagated inputs.
  2023-06-26 17:14 ` [bug#64305] [PATCH 1/4] gnu: uwufetch: Fix typo in build phase name Juliana Sims
  2023-06-26 17:14   ` [bug#64305] [PATCH 2/4] gnu: uwufetch: Manually create missing include dir Juliana Sims
@ 2023-06-26 17:14   ` Juliana Sims
  2023-08-08 15:23     ` [bug#64305] [PATCH 0/4] Fixup uwufetch Ludovic Courtès
  2023-06-26 17:14   ` [bug#64305] [PATCH 4/4] gnu: uwufetch: Add supported-systems Juliana Sims
  2 siblings, 1 reply; 11+ messages in thread
From: Juliana Sims @ 2023-06-26 17:14 UTC (permalink / raw)
  To: 64305; +Cc: Juliana Sims

* gnu/packages/admin.scm (uwufetch) [propagated-inputs]: Add missing
propagated inputs.
---
 gnu/packages/admin.scm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index 0af0ef4051..2c87976721 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -4029,6 +4029,8 @@ (define-public uwufetch
           (add-before 'install 'make-include-dir
             (lambda _
               (mkdir-p (string-append #$output "/include")))))))
+    (propagated-inputs (list gawk
+                             grep))
     (inputs (list lshw
                   ;; viu XXX not yet packaged in Guix
                   xwininfo))
-- 
2.40.1





^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [bug#64305] [PATCH 4/4] gnu: uwufetch: Add supported-systems.
  2023-06-26 17:14 ` [bug#64305] [PATCH 1/4] gnu: uwufetch: Fix typo in build phase name Juliana Sims
  2023-06-26 17:14   ` [bug#64305] [PATCH 2/4] gnu: uwufetch: Manually create missing include dir Juliana Sims
  2023-06-26 17:14   ` [bug#64305] [PATCH 3/4] gnu: uwufetch: Add missing propagated inputs Juliana Sims
@ 2023-06-26 17:14   ` Juliana Sims
  2023-07-27  4:03     ` Juliana Sims
  2 siblings, 1 reply; 11+ messages in thread
From: Juliana Sims @ 2023-06-26 17:14 UTC (permalink / raw)
  To: 64305; +Cc: Juliana Sims

* gnu/packages/admin.scm (uwufetch): Add supported-systems.
---
 gnu/packages/admin.scm | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index 2c87976721..1611b9f0a6 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -4042,7 +4042,13 @@ (define-public uwufetch
 well as a summary of system information.  UwUFetch's unique contribution is the
 uwu-ification of various words used in the description.  For example, Guix
 becomes gUwUix.")
-    (license license:gpl3+)))
+    (license license:gpl3+)
+    (supported-systems
+     (filter (lambda (sys)
+               (not (member sys (list "i586-gnu"
+                                      "mips64el-linux"
+                                      "powerpc-linux"))))
+             %supported-systems))))
 
 (define-public screenfetch
   (package
-- 
2.40.1





^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [bug#64305] [PATCH 4/4] gnu: uwufetch: Add supported-systems.
  2023-06-26 17:14   ` [bug#64305] [PATCH 4/4] gnu: uwufetch: Add supported-systems Juliana Sims
@ 2023-07-27  4:03     ` Juliana Sims
  0 siblings, 0 replies; 11+ messages in thread
From: Juliana Sims @ 2023-07-27  4:03 UTC (permalink / raw)
  To: 64305

Hey,

Pinging this since it's been up a month.

Upon further investigation into the usage of supported-systems, I don't 
think the 4th patch is correct and it can therefore be disregarded.

Thanks,
Juli






^ permalink raw reply	[flat|nested] 11+ messages in thread

* [bug#64305] [PATCH 0/4] Fixup uwufetch.
  2023-06-26 17:14   ` [bug#64305] [PATCH 3/4] gnu: uwufetch: Add missing propagated inputs Juliana Sims
@ 2023-08-08 15:23     ` Ludovic Courtès
  2023-08-10  1:20       ` [bug#65189] [PATCH] gnu: uwufetch: Add and use missing inputs Juliana Sims
  2023-08-10  2:37       ` [bug#64305] [PATCH] gnu: uwufetch: Add and use missing inputs Juliana Sims
  0 siblings, 2 replies; 11+ messages in thread
From: Ludovic Courtès @ 2023-08-08 15:23 UTC (permalink / raw)
  To: Juliana Sims; +Cc: 64305

Hi!

Finally applied patches #1 and #2, thanks!

Juliana Sims <juli@incana.org> skribis:

> * gnu/packages/admin.scm (uwufetch) [propagated-inputs]: Add missing
> propagated inputs.

[...]

> +    (propagated-inputs (list gawk
> +                             grep))

This is somewhat intrusive as installing uwufetch would now pull in
these two packages in the user’s profile.

Could we address the problem differently, for instance by changing a
mere reference to “gawk” to “/gnu/store/…/bin/gawk” in the source?

TIA,
Ludo’.




^ permalink raw reply	[flat|nested] 11+ messages in thread

* [bug#65189] [PATCH] gnu: uwufetch: Add and use missing inputs.
  2023-08-08 15:23     ` [bug#64305] [PATCH 0/4] Fixup uwufetch Ludovic Courtès
@ 2023-08-10  1:20       ` Juliana Sims
  2023-08-10  2:34         ` bug#65189: oops, emailed this wrong Juliana Sims
  2023-08-10  2:37       ` [bug#64305] [PATCH] gnu: uwufetch: Add and use missing inputs Juliana Sims
  1 sibling, 1 reply; 11+ messages in thread
From: Juliana Sims @ 2023-08-10  1:20 UTC (permalink / raw)
  To: 65189; +Cc: ludo, Juliana Sims

Hi Ludovic,

Putting the fully-qualified paths of binaries into the source like this had not
occurred to me before, but it seems so obviously correct now. Thanks for
suggesting it! This patch uses that technique; I'll be adding it to my bag of
packaging tricks for the future as well :)

Thanks,
Juli

* gnu/packages/admin.scm (uwufetch) [inputs]: Add missing inputs.
[phases]: Use the fully-qualified paths of the input gawk and grep.
---
 gnu/packages/admin.scm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index 33f9b703a7..6b6b05c4a0 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -4025,6 +4025,11 @@ (define-public uwufetch
           (delete 'configure)
           (add-before 'build 'patch-source-paths
             (lambda _
+              (substitute* "fetch.c"
+                (("grep")
+                 #$(file-append grep "/bin/grep"))
+                (("awk")
+                 #$(file-append gawk "/bin/awk")))
               (substitute* "uwufetch.c"
                 (("(/usr(/local)?)(.*;)" all _ _ rest)
                  (string-append #$output rest)))))
@@ -4033,6 +4038,8 @@ (define-public uwufetch
             (lambda _
               (mkdir-p (string-append #$output "/include")))))))
     (inputs (list lshw
+                  gawk
+                  grep
                   ;; viu XXX not yet packaged in Guix
                   xwininfo))
     (home-page "https://github.com/TheDarkBug/uwufetch")

base-commit: 90e34d25d5e7c14b7f3293a78f3cdad676c0d035
-- 
2.41.0





^ permalink raw reply related	[flat|nested] 11+ messages in thread

* bug#65189: oops, emailed this wrong
  2023-08-10  1:20       ` [bug#65189] [PATCH] gnu: uwufetch: Add and use missing inputs Juliana Sims
@ 2023-08-10  2:34         ` Juliana Sims
  0 siblings, 0 replies; 11+ messages in thread
From: Juliana Sims @ 2023-08-10  2:34 UTC (permalink / raw)
  To: 65189-done

i done did a bad and sent the email wrong :(






^ permalink raw reply	[flat|nested] 11+ messages in thread

* [bug#64305] [PATCH] gnu: uwufetch: Add and use missing inputs.
  2023-08-08 15:23     ` [bug#64305] [PATCH 0/4] Fixup uwufetch Ludovic Courtès
  2023-08-10  1:20       ` [bug#65189] [PATCH] gnu: uwufetch: Add and use missing inputs Juliana Sims
@ 2023-08-10  2:37       ` Juliana Sims
  2023-08-12 20:36         ` bug#64305: " Ludovic Courtès
  1 sibling, 1 reply; 11+ messages in thread
From: Juliana Sims @ 2023-08-10  2:37 UTC (permalink / raw)
  To: 64305; +Cc: ludo, Juliana Sims

Hi there,

Oops! I sent that last email wrong!

For Ludovic: this is the same as that other email, but I want to make sure
everything is threaded and catalogued properly.

For everyone else: this patch takes Ludovic's advice and substitutes references
to "grep" and "awk" in the uwufetch source code with references to the
fully-qualified paths of those binaries. It adds them as regular inputs rather
than the propagated inputs the previous version of this patch added them as.

Thanks,
Juli

* gnu/packages/admin.scm (uwufetch) [inputs]: Add missing inputs.
[phases]: Use the fully-qualified paths of the input gawk and grep.
---
 gnu/packages/admin.scm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index 33f9b703a7..6b6b05c4a0 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -4025,6 +4025,11 @@ (define-public uwufetch
           (delete 'configure)
           (add-before 'build 'patch-source-paths
             (lambda _
+              (substitute* "fetch.c"
+                (("grep")
+                 #$(file-append grep "/bin/grep"))
+                (("awk")
+                 #$(file-append gawk "/bin/awk")))
               (substitute* "uwufetch.c"
                 (("(/usr(/local)?)(.*;)" all _ _ rest)
                  (string-append #$output rest)))))
@@ -4033,6 +4038,8 @@ (define-public uwufetch
             (lambda _
               (mkdir-p (string-append #$output "/include")))))))
     (inputs (list lshw
+                  gawk
+                  grep
                   ;; viu XXX not yet packaged in Guix
                   xwininfo))
     (home-page "https://github.com/TheDarkBug/uwufetch")

base-commit: 90e34d25d5e7c14b7f3293a78f3cdad676c0d035
-- 
2.41.0





^ permalink raw reply related	[flat|nested] 11+ messages in thread

* bug#64305: [PATCH] gnu: uwufetch: Add and use missing inputs.
  2023-08-10  2:37       ` [bug#64305] [PATCH] gnu: uwufetch: Add and use missing inputs Juliana Sims
@ 2023-08-12 20:36         ` Ludovic Courtès
  0 siblings, 0 replies; 11+ messages in thread
From: Ludovic Courtès @ 2023-08-12 20:36 UTC (permalink / raw)
  To: Juliana Sims; +Cc: 64305-done

Hi,

Juliana Sims <juli@incana.org> skribis:

> Hi there,
>
> Oops! I sent that last email wrong!
>
> For Ludovic: this is the same as that other email, but I want to make sure
> everything is threaded and catalogued properly.
>
> For everyone else: this patch takes Ludovic's advice and substitutes references
> to "grep" and "awk" in the uwufetch source code with references to the
> fully-qualified paths of those binaries. It adds them as regular inputs rather
> than the propagated inputs the previous version of this patch added them as.
>
> Thanks,
> Juli
>
> * gnu/packages/admin.scm (uwufetch) [inputs]: Add missing inputs.
> [phases]: Use the fully-qualified paths of the input gawk and grep.

Perfect, thank you!

Ludo’.




^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2023-08-12 20:37 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-26 17:10 [bug#64305] [PATCH 0/4] Fixup uwufetch Juliana Sims
2023-06-26 17:14 ` [bug#64305] [PATCH 1/4] gnu: uwufetch: Fix typo in build phase name Juliana Sims
2023-06-26 17:14   ` [bug#64305] [PATCH 2/4] gnu: uwufetch: Manually create missing include dir Juliana Sims
2023-06-26 17:14   ` [bug#64305] [PATCH 3/4] gnu: uwufetch: Add missing propagated inputs Juliana Sims
2023-08-08 15:23     ` [bug#64305] [PATCH 0/4] Fixup uwufetch Ludovic Courtès
2023-08-10  1:20       ` [bug#65189] [PATCH] gnu: uwufetch: Add and use missing inputs Juliana Sims
2023-08-10  2:34         ` bug#65189: oops, emailed this wrong Juliana Sims
2023-08-10  2:37       ` [bug#64305] [PATCH] gnu: uwufetch: Add and use missing inputs Juliana Sims
2023-08-12 20:36         ` bug#64305: " Ludovic Courtès
2023-06-26 17:14   ` [bug#64305] [PATCH 4/4] gnu: uwufetch: Add supported-systems Juliana Sims
2023-07-27  4:03     ` Juliana Sims

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).