Re: List build dependencies of a store item

2019-10-23 Thread Arun Isaac

> The script is here:
> https://lists.gnu.org/archive/html/guix-devel/2018-07/msg00212.html

Yes, this is the one. Thank you!


signature.asc
Description: PGP signature


Re: Tons of packages get rebuild

2019-10-23 Thread Marius Bakke
Hartmut Goebel  writes:

> Am 22.10.19 um 05:27 schrieb Maxim Cournoyer:
>> I can only think that one of the packages you updated as part of your
>> work on the KDE Framework must be a dependency of many others (such as
>> Python, or another core tool)?
>
> Of course the updated package have many dependencies. But I would expect
> all these packages to be build at ci.guix.gnu.org and be fetched from there.

Does your /etc/guix/acl contain an entry such as

(public-key 
 (ecc 
  (curve Ed25519)
  (q #8D156F295D24B0D9A86FA5741A840FF2D24F60F7B6C4134814AD55625971B394#)
  )
 )

?

Does 'guix weather' give any clues?


signature.asc
Description: PGP signature


Re: Run GuixSD on Raspberry pi

2019-10-23 Thread Vagrant Cascadian
On 2019-10-23, Farshid Karimi wrote:
> I know that could install guix as a package manager on armhf
> architecture.Including raspberry pi board.
> But is there any way to install guixsd image on raspberry pi?
> I saw the gnu/system/install.scm and there is some little board that
> supported by it.

If you treat the non-free boot firmware like people treat BIOS/EFI on
x86 systems, and leave it up to the end-user to set that up, it's
probably technically possible.

There may be some drivers that require non-free firmware (e.g. wireless)
that will not work with Guix's linux-libre kernel.

The two options I see would be to add support for the boot configuration
used by the raspberry pi firmware, or for a little more flexible option,
configure the raspberry pi firmware to load u-boot and then use the
existing infrastructure to generate u-boot configuration files.

Since there's at least one major non-free component involved, I'm not
quite sure how it all sits with following the FSDG:

  https://www.gnu.org/distros/free-system-distribution-guidelines.html

Though, one could treat that like BIOS/EFI on x86...


live well,
  vagrant


signature.asc
Description: PGP signature


Re: core-updates unbound variable

2019-10-23 Thread Marius Bakke
Hello Rene,

Rene  writes:

> ice-9/eval.scm:293:34: ice-9/eval.scm:293:34: error: 
> repository-working-directory: unbound variable
> hint: Did you forget `(use-modules (git repository))'?

This means your installed version of Guile-Git is too old: you need
version 0.2 or later.

Typically `guix environment guix` takes care of that, provided you ran
'guix pull' in the last 10 months.


signature.asc
Description: PGP signature


Run GuixSD on Raspberry pi

2019-10-23 Thread Farshid Karimi
Hello
I know that could install guix as a package manager on armhf
architecture.Including raspberry pi board.
But is there any way to install guixsd image on raspberry pi?
I saw the gnu/system/install.scm and there is some little board that
supported by it.
Regards.


Re: List build dependencies of a store item

2019-10-23 Thread Arun Isaac

>> I am customizing the git-minimal package, and for some reason python is
>> getting rebuilt from source, and I'm not able to figure out why.

I figured this is due to git-minimal depending on curl which in turn
depends on python as a native-input.

> I assume git-minimal is used for the guile-git bindings, and I don't
> think that shows up in the graph.

guile-git only depends on libgit2.


signature.asc
Description: PGP signature


Re: List build dependencies of a store item

2019-10-23 Thread Gábor Boskovits
Hello,

Arun Isaac  ezt írta (időpont: 2019. okt. 23.,
Sze, 18:43):

>
> > I think a store item doesn't know where it comes from, so you can only
> > find its runtime references.
>
> That's a good point. I missed that.
>
> > If you have a package foo, you can find its build-time dependencies
> > with guix graph:
> >
> > guix graph foo
>
> Indeed, this is what I want but for a modified version of a package
> defined in a file. I realized I could do it with
>
> guix graph -e '(load "/path/to/file.scm")'
>
> However, it might be nicer to have something like
>
> guix graph -f /path/to/file.scm
>
> similar to
>
> guix build -f /path/to/file.scm
>
> > There's even a script that was shared here to show the path between
> > two nodes of a guix graph, but I can't find it anymore.
>
> Yes, I remember such a script too. It would be very useful to have. But,
> even I am unable to find it. If someone knows where to find that script,
> please share a link.
>

The script is here:
https://lists.gnu.org/archive/html/guix-devel/2018-07/msg00212.html


-- 
OpenPGP Key Fingerprint: 7988:3B9F:7D6A:4DBF:3719:0367:2506:A96C:CF63:0B21


Re: List build dependencies of a store item

2019-10-23 Thread Arun Isaac

> I think a store item doesn't know where it comes from, so you can only
> find its runtime references.

That's a good point. I missed that.

> If you have a package foo, you can find its build-time dependencies
> with guix graph:
>
> guix graph foo

Indeed, this is what I want but for a modified version of a package
defined in a file. I realized I could do it with

guix graph -e '(load "/path/to/file.scm")'

However, it might be nicer to have something like

guix graph -f /path/to/file.scm

similar to

guix build -f /path/to/file.scm

> There's even a script that was shared here to show the path between
> two nodes of a guix graph, but I can't find it anymore.

Yes, I remember such a script too. It would be very useful to have. But,
even I am unable to find it. If someone knows where to find that script,
please share a link.


signature.asc
Description: PGP signature


Re: Errors in modules are suppressed?

2019-10-23 Thread Daniel Schäfer

The manual says in 14.4 Packaging Guidelines:

> If the package is unknown to the guix command, it may be that the 
source file
> contains a syntax error, or lacks a define-public clause to export 
the package
> variable. To figure it out, you may load the module from Guile to get 
more

> information about the actual error:
>
> ./pre-inst-env guile -c '(use-modules (gnu packages gnew))'

Is something like that possible for reconfiguring the system?

Thanks,
Daniel

On 10/14/19 12:50 AM, Daniel Schäfer wrote:

Hi all,

I'm using modules to split up my system configuration in multiple 
files (not sure whether that's the right approach).
However, when a used module contains an error, `guix system` does not 
provide a helpful error message, it just says:


  $ sudo guix system build config.scm
  ice-9/eval.scm:223:20: In procedure proc:
  error: bar: unbound variable
  hint: Did you forget `(use-modules (foo))'?

when I try to use `bar` in my original file.

For a minimal working example, change your system's configuration file 
like this:


+(add-to-load-path ".")
-(use-modules (gnu))
+(use-modules (gnu)
+     (foo))
 (use-service-modules desktop networking ssh xorg)

 (operating-system
-  (locale "en_US.utf8")
+  (locale bar)


And add the new module foo.scm, which contains an error by design:

(define-module (foo)
 #:export (bar))

(this is not defined)
(define bar "en_US.utf8")


I'd be glad to hear about any tips to get the proper error message.

Thanks,
Daniel





Re: The cookbook is on-line!

2019-10-23 Thread Pierre Neidhardt
By the way, the original tutorial was published here in Org format:

https://ambrevar.xyz/guix-packaging/index.html

So it's possible to export it to texi with Org.
That should save some work.

-- 
Pierre Neidhardt
https://ambrevar.xyz/


signature.asc
Description: PGP signature


Re: List build dependencies of a store item

2019-10-23 Thread Efraim Flashner
On Wed, Oct 23, 2019 at 11:03:37AM +0530, Arun Isaac wrote:
> 
> I am customizing the git-minimal package, and for some reason python is
> getting rebuilt from source, and I'm not able to figure out why.
> 
> I can recursively list/graph runtime dependencies (references) of a
> store item using the following commands.
> 

I assume git-minimal is used for the guile-git bindings, and I don't
think that shows up in the graph.


-- 
Efraim Flashner  אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted


signature.asc
Description: PGP signature


Re: List build dependencies of a store item

2019-10-23 Thread Julien Lepiller
Le 23 octobre 2019 07:33:37 GMT+02:00, Arun Isaac  
a écrit :
>
>I am customizing the git-minimal package, and for some reason python is
>getting rebuilt from source, and I'm not able to figure out why.
>
>I can recursively list/graph runtime dependencies (references) of a
>store item using the following commands.
>
>guix size /gnu/store/...
>guix graph -t references /gnu/store/...
>
>How do I list the build dependencies (inputs of the build derivation)
>of
>a store item?
>
>Thanks,
>Arun.

I think a store item doesn't know where it comes from, so you can only find its 
runtime references. If you have a package foo, you can find its build-time 
dependencies with guix graph:

guix graph foo

There's even a script that was shared here to show the path between two nodes 
of a guix graph, but I can't find it anymore.