unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#54311] [PATCH] gnu: tint2: Update to 17.0.2.
@ 2022-03-09 19:34 Wamm K. D
  2022-03-09 20:28 ` Maxime Devos
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Wamm K. D @ 2022-03-09 19:34 UTC (permalink / raw)
  To: 54311; +Cc: Wamm K. D

---
Noticed that the version currently is ~4 years old from the latest…
 gnu/packages/xdisorg.scm | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm
index 6dc40f0910..f5d981413c 100644
--- a/gnu/packages/xdisorg.scm
+++ b/gnu/packages/xdisorg.scm
@@ -54,6 +54,7 @@
 ;;; Copyright © 2021 jgart <jgart@dismail.de>
 ;;; Copyright © 2022 John Kehayias <john.kehayias@protonmail.com>
 ;;; Copyright © 2022 Jai Vetrivelan <jaivetrivelan@gmail.com>
+;;; Copyright © 2022 Wamm K. D. <jaft.r@outlook.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1791,15 +1792,15 @@ (define-public rofi-calc
 (define-public tint2
   (package
     (name "tint2")
-    (version "0.14.6")
+    (version "17.0.2")
     (source (origin
               (method url-fetch)
-              (uri (string-append "https://gitlab.com/o9000/" name
-                                  "/repository/archive.tar.gz?ref=" version))
+              (uri (string-append "https://gitlab.com/o9000/" name "/-/archive/"
+                                  version "/" name "-" version ".tar.gz"))
               (file-name (string-append name "-" version ".tar.gz"))
               (sha256
                (base32
-                "1kwzwxy4myagybm3rc7dgynfgp75742n348qibn1p2an9ggyivda"))))
+                "0k72kjr4rmprbrhs5ik1g7vwdi2lbzvkf5zw28gz6ckd2xz18zzq"))))
     (build-system cmake-build-system)
     (arguments
      '(#:tests? #f                      ;no test target
@@ -1811,7 +1812,7 @@ (define-public tint2
                (("/etc") "${CMAKE_INSTALL_PREFIX}/etc"))
              #t)))))
     (inputs
-     (list gtk+-2
+     (list gtk+
            imlib2
            librsvg
            libxcomposite
-- 
2.34.0





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

* [bug#54311] [PATCH] gnu: tint2: Update to 17.0.2.
  2022-03-09 19:34 [bug#54311] [PATCH] gnu: tint2: Update to 17.0.2 Wamm K. D
@ 2022-03-09 20:28 ` Maxime Devos
  2022-03-09 20:30 ` Maxime Devos
  2022-03-09 20:31 ` Maxime Devos
  2 siblings, 0 replies; 7+ messages in thread
From: Maxime Devos @ 2022-03-09 20:28 UTC (permalink / raw)
  To: Wamm K. D, 54311

[-- Attachment #1: Type: text/plain, Size: 268 bytes --]

Wamm K. D schreef op wo 09-03-2022 om 13:34 [-0600]:
>       '(#:tests? #f                      ;no test target


There seem to be some tests in the 'test' directory.

>              #t)))))

Trailing #t aren't necessary anymore.

Greetings,

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

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

* [bug#54311] [PATCH] gnu: tint2: Update to 17.0.2.
  2022-03-09 19:34 [bug#54311] [PATCH] gnu: tint2: Update to 17.0.2 Wamm K. D
  2022-03-09 20:28 ` Maxime Devos
@ 2022-03-09 20:30 ` Maxime Devos
  2022-03-09 21:46   ` Jaft
  2022-03-09 20:31 ` Maxime Devos
  2 siblings, 1 reply; 7+ messages in thread
From: Maxime Devos @ 2022-03-09 20:30 UTC (permalink / raw)
  To: Wamm K. D, 54311

[-- Attachment #1: Type: text/plain, Size: 456 bytes --]

Wamm K. D schreef op wo 09-03-2022 om 13:34 [-0600]:
> +              (uri (string-append "https://gitlab.com/o9000/" name "/-/archive/"
> +                                  version "/" name "-" version ".tar.gz"))

Is this uri stable?

Also, there seems to be a 'v' missing before version.  Does
"guix download
https://gitlab.com/o9000/tint2/-/archive/17.0.2/tint2-17.0.2.tar.gz"
succeed?

Greetings,
Maxime.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

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

* [bug#54311] [PATCH] gnu: tint2: Update to 17.0.2.
  2022-03-09 19:34 [bug#54311] [PATCH] gnu: tint2: Update to 17.0.2 Wamm K. D
  2022-03-09 20:28 ` Maxime Devos
  2022-03-09 20:30 ` Maxime Devos
@ 2022-03-09 20:31 ` Maxime Devos
  2 siblings, 0 replies; 7+ messages in thread
From: Maxime Devos @ 2022-03-09 20:31 UTC (permalink / raw)
  To: Wamm K. D, 54311

[-- Attachment #1: Type: text/plain, Size: 227 bytes --]

Wamm K. D schreef op wo 09-03-2022 om 13:34 [-0600]:
> @@ -1811,7 +1812,7 @@ (define-public tint2
>                 (("/etc") "${CMAKE_INSTALL_PREFIX}/etc"))

Is this still necessary?

Greetings,
Maxime.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

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

* [bug#54311] [PATCH] gnu: tint2: Update to 17.0.2.
  2022-03-09 20:30 ` Maxime Devos
@ 2022-03-09 21:46   ` Jaft
  2022-03-09 21:57     ` Tobias Geerinckx-Rice via Guix-patches via
  0 siblings, 1 reply; 7+ messages in thread
From: Jaft @ 2022-03-09 21:46 UTC (permalink / raw)
  To: 54311@debbugs.gnu.org, Maxime Devos

> On Wednesday, March 9, 2022, 02:30:14 PM CST, Maxime Devos <maximedevos@telenet.be> wrote: 
>
>
>
>
>
> Wamm K. D schreef op wo 09-03-2022 om 13:34 [-0600]:
>
> > +              (uri (string-append "https://gitlab.com/o9000/" name "/-/archive/"
> > +                                  version "/" name "-" version ".tar.gz"))
>
>
> Is this uri stable?

I think it's a standard GitLab URL? It's what was given when choosing to download the .tar.gz file from GitLab; I went with it to avoid a lot of changes to the original package definition but, given it's just Git, we could just use a git-download instead. Let me know if that's preferred.

> Also, there seems to be a 'v' missing before version.  Does
> "guix download
> https://gitlab.com/o9000/tint2/-/archive/17.0.2/tint2-17.0.2.tar.gz"
> succeed?

It does (I'm running version 17.0.2 on my machine, right now); the tint2 project tags versions with both no "v" and with a "v" so either would work. Both "https://gitlab.com/o9000/tint2/-/archive/17.0.2/tint2-17.0.2.tar.gz" and "https://gitlab.com/o9000/tint2/-/archive/v17.0.2/tint2-v17.0.2.tar.gz" should be valid (https://gitlab.com/o9000/tint2/-/tags).




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

* [bug#54311] [PATCH] gnu: tint2: Update to 17.0.2.
  2022-03-09 21:46   ` Jaft
@ 2022-03-09 21:57     ` Tobias Geerinckx-Rice via Guix-patches via
  2022-03-09 22:16       ` Jaft
  0 siblings, 1 reply; 7+ messages in thread
From: Tobias Geerinckx-Rice via Guix-patches via @ 2022-03-09 21:57 UTC (permalink / raw)
  To: Jaft, 54311@debbugs.gnu.org, Maxime Devos

What Maxime means is that some forges (like GitHub) generate these archives on the fly, instead of the author uploading a 'stable' file.  You can usually tell them apart by the URL, but I forget GitLab's conventions.

These archives might be cached for a while but if they are regenerated the hash could change even if the unpacked data didn't.  This has happened in the past and breaks e.g. guix time-machine even if 'fixed' on master.

Hence we prefer git-fetch when available, or tarballs that look human-generated.

Kind regards,

T G-R

Sent on the go.  Excuse or enjoy my brevity.




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

* [bug#54311] [PATCH] gnu: tint2: Update to 17.0.2.
  2022-03-09 21:57     ` Tobias Geerinckx-Rice via Guix-patches via
@ 2022-03-09 22:16       ` Jaft
  0 siblings, 0 replies; 7+ messages in thread
From: Jaft @ 2022-03-09 22:16 UTC (permalink / raw)
  To: 54311@debbugs.gnu.org, Maxime Devos, Tobias Geerinckx-Rice

> On Wednesday, March 9, 2022, 03:57:51 PM CST, Tobias Geerinckx-Rice <me@tobias.gr> wrote: 
>
>
>
>
>
> What Maxime means is that some forges (like GitHub) generate these archives on the fly, instead of the author uploading a 'stable' file.  You can usually tell them apart by the URL, but I forget GitLab's conventions.
>
> These archives might be cached for a while but if they are regenerated the hash could change even if the unpacked data didn't.  This has happened in the past and breaks e.g. guix time-machine even if 'fixed' on master.
>
> Hence we prefer git-fetch when available, or tarballs that look human-generated.
>
> Kind regards,
>
> T G-R

Ahhh; I see. Thanks a ton for the explanation, Tobias. I'll get this switched over to git-fetch, Maxime, while I look over your other feedback.




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

end of thread, other threads:[~2022-03-09 22:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-09 19:34 [bug#54311] [PATCH] gnu: tint2: Update to 17.0.2 Wamm K. D
2022-03-09 20:28 ` Maxime Devos
2022-03-09 20:30 ` Maxime Devos
2022-03-09 21:46   ` Jaft
2022-03-09 21:57     ` Tobias Geerinckx-Rice via Guix-patches via
2022-03-09 22:16       ` Jaft
2022-03-09 20:31 ` Maxime Devos

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).