GNU bug report logs - #33010
[PATCH 2/3] gnu: Add guix-minimal.

Previous Next

Package: guix-patches;

Reported by: ericbavier <at> centurylink.net

Date: Thu, 11 Oct 2018 01:54:02 UTC

Severity: normal

Tags: patch

Done: Eric Bavier <ericbavier <at> centurylink.net>

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 33010 in the body.
You can then email your comments to 33010 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#33010; Package guix-patches. (Thu, 11 Oct 2018 01:54:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to ericbavier <at> centurylink.net:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Thu, 11 Oct 2018 01:54:02 GMT) Full text and rfc822 format available.

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

From: ericbavier <at> centurylink.net
To: guix-patches <at> gnu.org
Cc: Eric Bavier <bavier <at> cray.com>
Subject: [PATCH 2/3] gnu: Add guix-minimal.
Date: Wed, 10 Oct 2018 20:52:45 -0500
From: Eric Bavier <bavier <at> cray.com>

* gnu/packages/guile.scm (guile-2.0.13): New variable.
* gnu/packages/package-management.scm (guix)[arguments]: Adjust 'wrap-program'
phase to handle "missing" inputs.
(guix-minimal): New variable.
---
 gnu/packages/guile.scm              | 14 ++++++++++++++
 gnu/packages/package-management.scm | 17 +++++++++++++++--
 2 files changed, 29 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/guile.scm b/gnu/packages/guile.scm
index 912b0218e..216f7c6d5 100644
--- a/gnu/packages/guile.scm
+++ b/gnu/packages/guile.scm
@@ -226,6 +226,20 @@ without requiring the source code to be rewritten.")
    (home-page "https://www.gnu.org/software/guile/")
    (license license:lgpl3+)))
 
+(define-public guile-2.0.13
+  ;; For testing a "minimal" Guix
+  (hidden-package
+   (package (inherit guile-2.0)
+            (name "guile")
+            (version "2.0.13")
+            (source (origin
+                      (method url-fetch)
+                      (uri (string-append "mirror://gnu/guile/guile-" version
+                                          ".tar.xz"))
+                      (sha256
+                       (base32
+                        "12yqkr974y91ylgw6jnmci2v90i90s7h9vxa4zk0sai8vjnz4i1p")))))))
+
 (define-public guile-2.2
   (package (inherit guile-2.0)
     (name "guile")
diff --git a/gnu/packages/package-management.scm b/gnu/packages/package-management.scm
index 000c28632..4ddcb55f4 100644
--- a/gnu/packages/package-management.scm
+++ b/gnu/packages/package-management.scm
@@ -232,13 +232,13 @@
                                         (map (cut string-append <>
                                                   "/share/guile/site/"
                                                   effective)
-                                             deps)
+                                             (delete #f deps))
                                         ":"))
                                (gopath (string-join
                                         (map (cut string-append <>
                                                   "/lib/guile/" effective
                                                   "/site-ccache")
-                                             deps)
+                                             (delete #f deps))
                                         ":")))
 
                           (wrap-program (string-append out "/bin/guix")
@@ -371,6 +371,19 @@ the Nix package manager.")
        ("guile-ssh" ,guile2.0-ssh)
        ("guile-git" ,guile2.0-git)))))
 
+(define-public guix-minimal
+  (let ((guix guile2.0-guix))
+    (package
+      (inherit guix)
+      (name "guix-minimal")
+      (inputs
+       `(("guile" ,guile-2.0.13)
+         ,@(alist-delete "guile" (package-inputs guix))))
+      (propagated-inputs
+       (fold alist-delete
+             (package-propagated-inputs guix)
+             '("guile-json" "guile-ssh"))))))
+
 (define (source-file? file stat)
   "Return true if FILE is likely a source file, false if it is a typical
 generated file."
-- 
2.19.0





Information forwarded to guix-patches <at> gnu.org:
bug#33010; Package guix-patches. (Sun, 14 Oct 2018 21:44:01 GMT) Full text and rfc822 format available.

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

From: ludo <at> gnu.org (Ludovic Courtès)
To: ericbavier <at> centurylink.net
Cc: Eric Bavier <bavier <at> cray.com>, 33010 <at> debbugs.gnu.org
Subject: Re: [bug#33010] [PATCH 2/3] gnu: Add guix-minimal.
Date: Sun, 14 Oct 2018 23:42:58 +0200
Hi,

ericbavier <at> centurylink.net skribis:

> From: Eric Bavier <bavier <at> cray.com>
>
> * gnu/packages/guile.scm (guile-2.0.13): New variable.
> * gnu/packages/package-management.scm (guix)[arguments]: Adjust 'wrap-program'
> phase to handle "missing" inputs.
> (guix-minimal): New variable.

What’s the intended use case?  Is it to check that Guix compiles against
an old Guile 2.0 and without optional dependencies?

I wonder whether we should add packages “just” for this, especially
given that 2.0 support is reaching end-of-life and that 2.0.13 is pretty
old.

Thank you,
Ludo’.




Information forwarded to guix-patches <at> gnu.org:
bug#33010; Package guix-patches. (Mon, 15 Oct 2018 09:03:01 GMT) Full text and rfc822 format available.

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

From: Efraim Flashner <efraim <at> flashner.co.il>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: Eric Bavier <bavier <at> cray.com>, ericbavier <at> centurylink.net,
 33010 <at> debbugs.gnu.org
Subject: Re: [bug#33010] [PATCH 2/3] gnu: Add guix-minimal.
Date: Mon, 15 Oct 2018 12:02:04 +0300
[Message part 1 (text/plain, inline)]
On Sun, Oct 14, 2018 at 11:42:58PM +0200, Ludovic Courtès wrote:
> Hi,
> 
> ericbavier <at> centurylink.net skribis:
> 
> > From: Eric Bavier <bavier <at> cray.com>
> >
> > * gnu/packages/guile.scm (guile-2.0.13): New variable.
> > * gnu/packages/package-management.scm (guix)[arguments]: Adjust 'wrap-program'
> > phase to handle "missing" inputs.
> > (guix-minimal): New variable.
> 
> What’s the intended use case?  Is it to check that Guix compiles against
> an old Guile 2.0 and without optional dependencies?
> 
> I wonder whether we should add packages “just” for this, especially
> given that 2.0 support is reaching end-of-life and that 2.0.13 is pretty
> old.
> 

It might be old but it's still hanging around. Right now iirc Debian
stable and Ubuntu 18.04 both ship with Guile-2.0 and with guile packages
built against it. If someone wanted to build Guix from source using the
various guile libraries there's a fair amount of packaging to do.

-- 
Efraim Flashner   <efraim <at> flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#33010; Package guix-patches. (Mon, 15 Oct 2018 14:22:01 GMT) Full text and rfc822 format available.

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

From: Eric Bavier <ericbavier <at> centurylink.net>
To: ludo <at> gnu.org (Ludovic Courtès)
Cc: Eric Bavier <bavier <at> cray.com>, 33010 <at> debbugs.gnu.org
Subject: Re: [bug#33010] [PATCH 2/3] gnu: Add guix-minimal.
Date: Mon, 15 Oct 2018 09:21:43 -0500
[Message part 1 (text/plain, inline)]
On Sun, 14 Oct 2018 23:42:58 +0200
ludo <at> gnu.org (Ludovic Courtès) wrote:

> Hi,
> 
> ericbavier <at> centurylink.net skribis:
> 
> > From: Eric Bavier <bavier <at> cray.com>
> >
> > * gnu/packages/guile.scm (guile-2.0.13): New variable.
> > * gnu/packages/package-management.scm (guix)[arguments]: Adjust 'wrap-program'
> > phase to handle "missing" inputs.
> > (guix-minimal): New variable.  
> 
> What’s the intended use case?  Is it to check that Guix compiles against
> an old Guile 2.0 and without optional dependencies?

Right, to make sure that what we're advertising to the outside
world as far as minimum dependencies will actually work.

> 
> I wonder whether we should add packages “just” for this, especially
> given that 2.0 support is reaching end-of-life and that 2.0.13 is pretty
> old.

This package would be updated as needed to reflect changes in Guix
dependencies.

`~Eric
[Message part 2 (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#33010; Package guix-patches. (Mon, 15 Oct 2018 15:48:01 GMT) Full text and rfc822 format available.

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

From: Jonathan Brielmaier <jonathan.brielmaier <at> web.de>
To: Efraim Flashner <efraim <at> flashner.co.il>, Ludovic Courtès
 <ludo <at> gnu.org>
Cc: Eric Bavier <bavier <at> cray.com>, 33010 <at> debbugs.gnu.org
Subject: Re: [bug#33010] [PATCH 2/3] gnu: Add guix-minimal.
Date: Mon, 15 Oct 2018 17:46:48 +0200
On 10/15/18 11:02 AM, Efraim Flashner wrote:
> On Sun, Oct 14, 2018 at 11:42:58PM +0200, Ludovic Courtès wrote:
>> Hi,
>>
>> ericbavier <at> centurylink.net skribis:
>>
>>> From: Eric Bavier <bavier <at> cray.com>
>>>
>>> * gnu/packages/guile.scm (guile-2.0.13): New variable.
>>> * gnu/packages/package-management.scm (guix)[arguments]: Adjust 'wrap-program'
>>> phase to handle "missing" inputs.
>>> (guix-minimal): New variable.
>>
>> What’s the intended use case?  Is it to check that Guix compiles against
>> an old Guile 2.0 and without optional dependencies?
>>
>> I wonder whether we should add packages “just” for this, especially
>> given that 2.0 support is reaching end-of-life and that 2.0.13 is pretty
>> old.
>>
> 
> It might be old but it's still hanging around. Right now iirc Debian
> stable and Ubuntu 18.04 both ship with Guile-2.0 and with guile packages
> built against it. If someone wanted to build Guix from source using the
> various guile libraries there's a fair amount of packaging to do.
> 

I'm still work to bring guile2.2 to openSUSE. The problem is that
autogen 5.18.14 has no guile2.2 support, the new release of autogen
5.18.16 should have it. I'm still trying to get it building...

The whole status of guix with guile2.2 on openSUSE can be found here.
Not that it's very work-in-progress:
https://build.opensuse.org/project/show/home:sleep_walker:guile




Information forwarded to guix-patches <at> gnu.org:
bug#33010; Package guix-patches. (Mon, 15 Oct 2018 19:27:04 GMT) Full text and rfc822 format available.

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

From: ludo <at> gnu.org (Ludovic Courtès)
To: Jonathan Brielmaier <jonathan.brielmaier <at> web.de>
Cc: Eric Bavier <bavier <at> cray.com>, Efraim Flashner <efraim <at> flashner.co.il>,
 33010 <at> debbugs.gnu.org
Subject: Re: [bug#33010] [PATCH 2/3] gnu: Add guix-minimal.
Date: Mon, 15 Oct 2018 21:26:36 +0200
Jonathan Brielmaier <jonathan.brielmaier <at> web.de> skribis:

> I'm still work to bring guile2.2 to openSUSE. The problem is that
> autogen 5.18.14 has no guile2.2 support, the new release of autogen
> 5.18.16 should have it. I'm still trying to get it building...

Note that it’s possible to have 2.0 and 2.2 (and 3.0) installed in
parallel:

  https://www.gnu.org/software/guile/manual/html_node/Parallel-Installations.html

So you don’t have to switch all packages to Guile 2.2 overnight.

> The whole status of guix with guile2.2 on openSUSE can be found here.
> Not that it's very work-in-progress:
> https://build.opensuse.org/project/show/home:sleep_walker:guile

Neat, thanks a lot for your work on this!  (And thanks to Tomáš as
well!)

Ludo’.




Information forwarded to guix-patches <at> gnu.org:
bug#33010; Package guix-patches. (Mon, 15 Oct 2018 19:29:02 GMT) Full text and rfc822 format available.

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

From: ludo <at> gnu.org (Ludovic Courtès)
To: Eric Bavier <ericbavier <at> centurylink.net>
Cc: Eric Bavier <bavier <at> cray.com>, 33010 <at> debbugs.gnu.org
Subject: Re: [bug#33010] [PATCH 2/3] gnu: Add guix-minimal.
Date: Mon, 15 Oct 2018 21:28:31 +0200
Eric Bavier <ericbavier <at> centurylink.net> skribis:

> On Sun, 14 Oct 2018 23:42:58 +0200
> ludo <at> gnu.org (Ludovic Courtès) wrote:
>
>> Hi,
>> 
>> ericbavier <at> centurylink.net skribis:
>> 
>> > From: Eric Bavier <bavier <at> cray.com>
>> >
>> > * gnu/packages/guile.scm (guile-2.0.13): New variable.
>> > * gnu/packages/package-management.scm (guix)[arguments]: Adjust 'wrap-program'
>> > phase to handle "missing" inputs.
>> > (guix-minimal): New variable.  
>> 
>> What’s the intended use case?  Is it to check that Guix compiles against
>> an old Guile 2.0 and without optional dependencies?
>
> Right, to make sure that what we're advertising to the outside
> world as far as minimum dependencies will actually work.

I see.

>> I wonder whether we should add packages “just” for this, especially
>> given that 2.0 support is reaching end-of-life and that 2.0.13 is pretty
>> old.
>
> This package would be updated as needed to reflect changes in Guix
> dependencies.

OK.  It does sound like an interesting CI job, but maybe not great as a
package users can install.  Though of course we can mark it as hidden
and then it’s just an easy way to write that CI job.  Thoughts?

Ludo’.




Information forwarded to guix-patches <at> gnu.org:
bug#33010; Package guix-patches. (Mon, 15 Oct 2018 19:44:02 GMT) Full text and rfc822 format available.

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

From: Eric Bavier <bavier <at> cray.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: Eric Bavier <ericbavier <at> centurylink.net>, 33010 <at> debbugs.gnu.org
Subject: Re: [bug#33010] [PATCH 2/3] gnu: Add guix-minimal.
Date: Mon, 15 Oct 2018 14:43:08 -0500
On Mon, Oct 15, 2018 at 09:28:31PM +0200, Ludovic Courtès wrote:
> Eric Bavier <ericbavier <at> centurylink.net> skribis:
> 
> > On Sun, 14 Oct 2018 23:42:58 +0200
> > ludo <at> gnu.org (Ludovic Courtès) wrote:
> >> I wonder whether we should add packages “just” for this, especially
> >> given that 2.0 support is reaching end-of-life and that 2.0.13 is pretty
> >> old.
> >
> > This package would be updated as needed to reflect changes in Guix
> > dependencies.
> 
> OK.  It does sound like an interesting CI job, but maybe not great as a
> package users can install.  Though of course we can mark it as hidden
> and then it’s just an easy way to write that CI job.  Thoughts?

I think marking it "hidden" would be fine.  Do the build farms
automatically build hidden packages too?

-- 
Eric Bavier, Scientific Libraries, Cray Inc.




Information forwarded to guix-patches <at> gnu.org:
bug#33010; Package guix-patches. (Tue, 16 Oct 2018 11:29:01 GMT) Full text and rfc822 format available.

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

From: ludo <at> gnu.org (Ludovic Courtès)
To: Eric Bavier <bavier <at> cray.com>
Cc: Eric Bavier <ericbavier <at> centurylink.net>, 33010 <at> debbugs.gnu.org
Subject: Re: [bug#33010] [PATCH 2/3] gnu: Add guix-minimal.
Date: Tue, 16 Oct 2018 13:28:01 +0200
Hi Eric,

Eric Bavier <bavier <at> cray.com> skribis:

> On Mon, Oct 15, 2018 at 09:28:31PM +0200, Ludovic Courtès wrote:
>> Eric Bavier <ericbavier <at> centurylink.net> skribis:
>> 
>> > On Sun, 14 Oct 2018 23:42:58 +0200
>> > ludo <at> gnu.org (Ludovic Courtès) wrote:
>> >> I wonder whether we should add packages “just” for this, especially
>> >> given that 2.0 support is reaching end-of-life and that 2.0.13 is pretty
>> >> old.
>> >
>> > This package would be updated as needed to reflect changes in Guix
>> > dependencies.
>> 
>> OK.  It does sound like an interesting CI job, but maybe not great as a
>> package users can install.  Though of course we can mark it as hidden
>> and then it’s just an easy way to write that CI job.  Thoughts?
>
> I think marking it "hidden" would be fine.

OK, let’s do that, along with a comment explaining the purpose of this
package.

> Do the build farms automatically build hidden packages too?

Yes I think so (see ‘all-packages’ in build-aux/hydra/gnu-system.scm.)

Thanks!

Ludo’.




Reply sent to Eric Bavier <ericbavier <at> centurylink.net>:
You have taken responsibility. (Tue, 16 Oct 2018 22:34:02 GMT) Full text and rfc822 format available.

Notification sent to ericbavier <at> centurylink.net:
bug acknowledged by developer. (Tue, 16 Oct 2018 22:34:02 GMT) Full text and rfc822 format available.

Message #34 received at 33010-done <at> debbugs.gnu.org (full text, mbox):

From: Eric Bavier <ericbavier <at> centurylink.net>
Cc: 33010-done <at> debbugs.gnu.org
Subject: Re: [bug#33010] [PATCH 2/3] gnu: Add guix-minimal.
Date: Tue, 16 Oct 2018 17:33:24 -0500
[Message part 1 (text/plain, inline)]
On Tue, 16 Oct 2018 13:28:01 +0200
ludo <at> gnu.org (Ludovic Courtès) wrote:

> Hi Eric,
> 
> Eric Bavier <bavier <at> cray.com> skribis:
> 
> > On Mon, Oct 15, 2018 at 09:28:31PM +0200, Ludovic Courtès wrote:  
> >> Eric Bavier <ericbavier <at> centurylink.net> skribis:
> >>   
> >> > On Sun, 14 Oct 2018 23:42:58 +0200
> >> > ludo <at> gnu.org (Ludovic Courtès) wrote:  
> >> >> I wonder whether we should add packages “just” for this, especially
> >> >> given that 2.0 support is reaching end-of-life and that 2.0.13 is pretty
> >> >> old.  
> >> >
> >> > This package would be updated as needed to reflect changes in Guix
> >> > dependencies.  
> >> 
> >> OK.  It does sound like an interesting CI job, but maybe not great as a
> >> package users can install.  Though of course we can mark it as hidden
> >> and then it’s just an easy way to write that CI job.  Thoughts?  
> >
> > I think marking it "hidden" would be fine.  
> 
> OK, let’s do that, along with a comment explaining the purpose of this
> package.


Pushed with the above changes in
6f1ce09d79fa6148459c90120881e825551651b2
[Message part 2 (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 14 Nov 2018 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 6 years and 215 days ago.

Previous Next


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