* [bug#47756] [PATCH] gnu: guile-git: Update to 0.5.0.
@ 2021-04-13 19:22 Xinglu Chen
2021-04-13 21:31 ` Ludovic Courtès
0 siblings, 1 reply; 4+ messages in thread
From: Xinglu Chen @ 2021-04-13 19:22 UTC (permalink / raw)
To: 47756
* gnu/packages/guile.scm (guile-git): Update to 0.5.0.
[source]: Use ‘git-fetch’ instead of ‘url-fetch’.
[native-inputs]: Add autoconf, automake, and texinfo.
---
I used ‘git-fetch’ because it is more flexible than ‘url-fetch’, users
can for example use package transformations to easily use a desired
commit/branch. Because the distributed tarball includes files that are
generated by running ‘./configure’, users would then have to manually
add some native-inputs to make it build with a custom version of the
package (this has happened to me a few times).
gnu/packages/guile.scm | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/gnu/packages/guile.scm b/gnu/packages/guile.scm
index 0dad390275..76741504c8 100644
--- a/gnu/packages/guile.scm
+++ b/gnu/packages/guile.scm
@@ -776,21 +776,24 @@ type system, elevating types to first-class status.")
(define-public guile-git
(package
(name "guile-git")
- (version "0.4.0")
+ (version "0.5.0")
(home-page "https://gitlab.com/guile-git/guile-git.git")
(source (origin
- (method url-fetch)
- (uri (string-append "https://gitlab.com/guile-git/guile-git/uploads/"
- "2600bb0dfdfb00bfbe46811dccad51d8/guile-git-"
- version ".tar.gz"))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://gitlab.com/guile-git/guile-git")
+ (commit (string-append "v" version))))
(sha256
(base32
- "1kxyg9x2aa1pg69cl48wysq0pbxvwfahy1xpl5ab6p8babhf7kic"))))
+ "1hqw3jy81cnsgybsbnfvwvhv1bajwq662hikkrr6dcgky6yspsxx"))))
(build-system gnu-build-system)
(arguments
`(#:make-flags '("GUILE_AUTO_COMPILE=0"))) ; to prevent guild warnings
(native-inputs
`(("pkg-config" ,pkg-config)
+ ("autoconf" ,autoconf)
+ ("automake" ,automake)
+ ("texinfo" ,texinfo)
("guile" ,guile-3.0)
("guile-bytestructures" ,guile-bytestructures)))
(inputs
base-commit: 82543e9649da2da9a5285ede4ec4f718fd740fcb
--
2.31.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [bug#47756] [PATCH] gnu: guile-git: Update to 0.5.0.
2021-04-13 19:22 [bug#47756] [PATCH] gnu: guile-git: Update to 0.5.0 Xinglu Chen
@ 2021-04-13 21:31 ` Ludovic Courtès
2021-04-14 12:53 ` Xinglu Chen
0 siblings, 1 reply; 4+ messages in thread
From: Ludovic Courtès @ 2021-04-13 21:31 UTC (permalink / raw)
To: Xinglu Chen; +Cc: 47756
Hi!
I pushed that update independently as
c2e83b71054f953953711e027f863d6c75c6ddb2.
Xinglu Chen <public@yoctocell.xyz> skribis:
> * gnu/packages/guile.scm (guile-git): Update to 0.5.0.
> [source]: Use ‘git-fetch’ instead of ‘url-fetch’.
> [native-inputs]: Add autoconf, automake, and texinfo.
> ---
> I used ‘git-fetch’ because it is more flexible than ‘url-fetch’, users
> can for example use package transformations to easily use a desired
> commit/branch.
I agree this is desirable. I didn’t do that because I thought it might
be a case where we need Guile-Git for ‘git-fetch’, but I think I was
wrong (I was confusing with Guile-Zlib, which we cannot obtain via
‘git-fetch’ because ‘git-fetch’ uses it.)
So after all, maybe we can use ‘git-fetch’?
Ludo’.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [bug#47756] [PATCH] gnu: guile-git: Update to 0.5.0.
2021-04-13 21:31 ` Ludovic Courtès
@ 2021-04-14 12:53 ` Xinglu Chen
2021-04-16 21:54 ` Ludovic Courtès
0 siblings, 1 reply; 4+ messages in thread
From: Xinglu Chen @ 2021-04-14 12:53 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: 47756
On Tue, Apr 13 2021, Ludovic Courtès wrote:
> Hi!
>
> I pushed that update independently as
> c2e83b71054f953953711e027f863d6c75c6ddb2.
Oh, cool.
>> I used ‘git-fetch’ because it is more flexible than ‘url-fetch’, users
>> can for example use package transformations to easily use a desired
>> commit/branch.
>
> I agree this is desirable. I didn’t do that because I thought it might
> be a case where we need Guile-Git for ‘git-fetch’, but I think I was
> wrong (I was confusing with Guile-Zlib, which we cannot obtain via
> ‘git-fetch’ because ‘git-fetch’ uses it.)
Yeah, ‘git-fetch’ in (guix build git) runs (invoke "git" args ...), it
doesn’t seem to have any dependency on Guile-Git.
> So after all, maybe we can use ‘git-fetch’?
I think that would a good idea. :)
^ permalink raw reply [flat|nested] 4+ messages in thread
* [bug#47756] [PATCH] gnu: guile-git: Update to 0.5.0.
2021-04-14 12:53 ` Xinglu Chen
@ 2021-04-16 21:54 ` Ludovic Courtès
0 siblings, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2021-04-16 21:54 UTC (permalink / raw)
To: Xinglu Chen; +Cc: 47756
Xinglu Chen <public@yoctocell.xyz> skribis:
> On Tue, Apr 13 2021, Ludovic Courtès wrote:
>
>> Hi!
>>
>> I pushed that update independently as
>> c2e83b71054f953953711e027f863d6c75c6ddb2.
>
> Oh, cool.
>
>>> I used ‘git-fetch’ because it is more flexible than ‘url-fetch’, users
>>> can for example use package transformations to easily use a desired
>>> commit/branch.
>>
>> I agree this is desirable. I didn’t do that because I thought it might
>> be a case where we need Guile-Git for ‘git-fetch’, but I think I was
>> wrong (I was confusing with Guile-Zlib, which we cannot obtain via
>> ‘git-fetch’ because ‘git-fetch’ uses it.)
>
> Yeah, ‘git-fetch’ in (guix build git) runs (invoke "git" args ...), it
> doesn’t seem to have any dependency on Guile-Git.
>
>> So after all, maybe we can use ‘git-fetch’?
>
> I think that would a good idea. :)
Done in 7a6625e83f68f6408ff0a82b12e7a95c6b0cc096!
Thanks,
Ludo’.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-04-16 22:26 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-13 19:22 [bug#47756] [PATCH] gnu: guile-git: Update to 0.5.0 Xinglu Chen
2021-04-13 21:31 ` Ludovic Courtès
2021-04-14 12:53 ` Xinglu Chen
2021-04-16 21:54 ` Ludovic Courtès
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).