Re: [aarch64] grub-efi cannot be built because of qemu changes

2023-01-12 Thread Ricardo Wurmus


Ricardo Wurmus  writes:

> commit 71b8707100e2fbc00f123566717ba3958c6afabb seems to have broken
> reconfiguration of my aarch64 machine.

See also https://issues.guix.gnu.org/60719

-- 
Ricardo



Re: WIP: zig-build-system

2023-01-12 Thread Ekaitz Zarraga

> Hi
> 
> I think I have something working!
> 
> It's not intended to be production-ready code but it should be near to that.
> 
> There are two files attached: the build system and a package to show how to 
> use it more or less.
> 
> Please take a look and tell me what you think. Let's see if we can merge this 
> someday.
> 
> Best,
> Ekaitz

Let me add the docs tooFrom e5029028d6cf6c7b9d61081d95f09e2d735648ba Mon Sep 17 00:00:00 2001
From: Ekaitz Zarraga 
Date: Thu, 12 Jan 2023 23:09:46 +0100
Subject: [PATCH 3/3] Add zig-build-system documentation

---
 doc/guix.texi | 22 ++
 1 file changed, 22 insertions(+)

diff --git a/doc/guix.texi b/doc/guix.texi
index aacf748838..c28dbf035a 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -9573,6 +9573,28 @@ Python package is used to run the script can be specified with the
 @code{#:python} parameter.
 @end defvr
 
+@defvr {Scheme Variable} zig-build-system This variable is exported by
+@code{(guix build-system zig)}. It implements the build procedure used by the
+Zig build system (@code{zig build} command).
+
+This build system adds @code{zig} to the package inputs, as well as the
+packages of @code{gnu-build-system}.
+
+There's no @code{configure} phase because zig packages typically don't need to
+be configured. The @code{#:zig-build-flags} parameter is taken as a list of
+flags passed to the @code{zig} command during the build.  The
+@code{#:zig-test-flags} parameter is taken as a list of flags passed to the
+@code{zig test} command during the @code{check} phase. The default compiler
+package can be overriden using the @code{#:zig} argument.
+
+The @code{zig-release-type} parameter can be passed to define the type of
+release to make. Possible values are: @code{safe}, @code{fast}, @code{small}.
+It's default value is @code{#f}, which doesn't include the release flag in the
+@code{zig} command, resulting in a @code{debug} build.
+
+@end defvr
+
+
 @defvr {Scheme Variable} scons-build-system
 This variable is exported by @code{(guix build-system scons)}.  It
 implements the build procedure used by the SCons software construction
-- 
2.38.0



[aarch64] grub-efi cannot be built because of qemu changes

2023-01-12 Thread Ricardo Wurmus
Hi Guix,

commit 71b8707100e2fbc00f123566717ba3958c6afabb seems to have broken
reconfiguration of my aarch64 machine.

That commit adds openbios-qemu-ppc to qemu, but the build of
openbios-qemu-ppc fails on aarch64:

--8<---cut here---start->8---
starting phase `configure'
Configuring OpenBIOS on aarch64 for qemu-ppc
Initializing build tree 
/tmp/guix-build-openbios-qemu-ppc-1.1.drv-0/source/obj-ppc...ok.
Creating target config.mak...ok.
Creating target rules.mak...ok.
Creating config files...ok.
phase `configure' succeeded after 0.9 seconds
starting phase `patch-generated-file-shebangs'
phase `patch-generated-file-shebangs' succeeded after 0.0 seconds
starting phase `build'
Building OpenBIOS for ppc
Building...
error:
/gnu/store/gm5mbaxkqhzafwy0wnimrg53j884glxn-linux-libre-headers-5.10.35/include/asm/sigcontext.h:128:2:
 error: unknown type name ‘__u32’
  128 |  __u32 size; /* size in bytes of the extra space */
  |  ^
/gnu/store/gm5mbaxkqhzafwy0wnimrg53j884glxn-linux-libre-headers-5.10.35/include/asm/sigcontext.h:129:2:
 error: unknown type name ‘__u32’
  129 |  __u32 __reserved[3];
  |  ^
/gnu/store/gm5mbaxkqhzafwy0wnimrg53j884glxn-linux-libre-headers-5.10.35/include/asm/sigcontext.h:136:2:
 error: unknown type name ‘__u16’
  136 |  __u16 vl;
  |  ^
/gnu/store/gm5mbaxkqhzafwy0wnimrg53j884glxn-linux-libre-headers-5.10.35/include/asm/sigcontext.h:137:2:
 error: unknown type name ‘__u16’
  137 |  __u16 __reserved[3];
  |  ^
make[1]: *** [rules.mak:83: host/kernel/bootstrap.o] Error 1
make[1]: *** Waiting for unfinished jobs
make[1]: Leaving directory 
'/tmp/guix-build-openbios-qemu-ppc-1.1.drv-0/source/obj-ppc'
make: *** [Makefile:19: build] Error 1
error: in phase 'build': uncaught exception:
%exception #< program: "make" arguments: ("-j" "2") exit-status: 2 
term-signal: #f stop-signal: #f> 
phase `build' failed after 0.6 seconds
--8<---cut here---end--->8---

What can be done about this?

With openbios-qemu-ppc failing, qemu-minimal cannot be built, so
grub-efi cannot be built on aarch64.

-- 
Ricardo



Re: WIP: zig-build-system

2023-01-12 Thread Ekaitz Zarraga
Hi

I think I have something working!

It's not intended to be production-ready code but it should be near to that.

There are two files attached: the build system and a package to show how to use 
it more or less.

Please take a look and tell me what you think. Let's see if we can merge this 
someday.

Best,
EkaitzFrom 5e26b25b9ed50a6c7c5e696d1fdc06e531c416d3 Mon Sep 17 00:00:00 2001
From: Ekaitz Zarraga 
Date: Thu, 15 Dec 2022 13:02:25 +0100
Subject: [PATCH 2/2] Add a sample package for testing the zig build system

---
 gnu/packages/zig.scm | 34 +-
 1 file changed, 33 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/zig.scm b/gnu/packages/zig.scm
index cda93bed2e..ff3caf144f 100644
--- a/gnu/packages/zig.scm
+++ b/gnu/packages/zig.scm
@@ -25,7 +25,9 @@ (define-module (gnu packages zig)
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix build-system cmake)
   #:use-module (gnu packages)
-  #:use-module (gnu packages llvm))
+  #:use-module (gnu packages llvm)
+  #:use-module (guix build-system zig)
+  #:use-module (gnu packages commencement))
 
 (define-public zig
   (package
@@ -104,3 +106,33 @@ (define-public zig
 ;; https://github.com/ziglang/zig/issues/6485
 (supported-systems %64bit-supported-systems)
 (license license:expat)))
+
+
+(define-public tigerbeetle
+  (let ((commit-id "2022-12-12-weekly")
+(revision "0"))
+(package
+  (name "tigerbeetle")
+  (version (string-append revision "-" commit-id))
+  (source
+(origin
+  (method git-fetch)
+  (uri (git-reference
+ (url "https://github.com/tigerbeetledb/tigerbeetle.git;)
+ (commit commit-id)))
+  (file-name (git-file-name name version))
+  (sha256
+(base32 "18rawl8rhyplw8hpa3fzbq9fqg088x0calz688c7zdff6y6f6mcr"
+  (build-system zig-build-system)
+
+  (arguments
+ `(#:zig-release-type "safe"))
+
+  (synopsis "Distributed financial accounting database designed for mission
+critical safety and performance")
+
+  (description "Financial accounting database designed for mission critical
+safet y and performance to power the future of financial
+services.")
+  (home-page "https://github.com/tigerbeetledb/tigerbeetle.git;)
+  (license license:asl2.0
-- 
2.38.0

From b70dffe126d84ef4de32f931cf88ac0a3abbd747 Mon Sep 17 00:00:00 2001
From: Ekaitz Zarraga 
Date: Thu, 15 Dec 2022 13:01:23 +0100
Subject: [PATCH 1/2] WIP: Add a zig-build-system

---
 Makefile.am   |   2 +
 etc/snippets/yas/scheme-mode/guix-package |   5 +-
 guix/build-system/zig.scm | 123 ++
 guix/build/zig-build-system.scm   | 100 ++
 4 files changed, 228 insertions(+), 2 deletions(-)
 create mode 100644 guix/build-system/zig.scm
 create mode 100644 guix/build/zig-build-system.scm

diff --git a/Makefile.am b/Makefile.am
index b54288c0fc..4cc7c2e5cf 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -179,6 +179,7 @@ MODULES =	\
   guix/build-system/scons.scm			\
   guix/build-system/texlive.scm			\
   guix/build-system/trivial.scm			\
+  guix/build-system/zig.scm			\
   guix/ftp-client.scm\
   guix/http-client.scm\
   guix/gnupg.scm\
@@ -263,6 +264,7 @@ MODULES =	\
   guix/build/graft.scm\
   guix/build/bournish.scm			\
   guix/build/qt-utils.scm			\
+  guix/build/zig-build-system.scm		\
   guix/build/make-bootstrap.scm			\
   guix/search-paths.scm\
   guix/packages.scm\
diff --git a/etc/snippets/yas/scheme-mode/guix-package b/etc/snippets/yas/scheme-mode/guix-package
index 724a392f81..3bb6307659 100644
--- a/etc/snippets/yas/scheme-mode/guix-package
+++ b/etc/snippets/yas/scheme-mode/guix-package
@@ -43,8 +43,9 @@
   "scons-build-system"
   "texlive-build-system"
   "trivial-build-system"
-  "waf-build-system")})
+  "waf-build-system"
+  "zig-build-system")})
 (home-page "$4")
 (synopsis "$5")
 (description "$6")
-(license $7)))
\ No newline at end of file
+(license $7)))
diff --git a/guix/build-system/zig.scm b/guix/build-system/zig.scm
new file mode 100644
index 00..8c1709ef3b
--- /dev/null
+++ b/guix/build-system/zig.scm
@@ -0,0 +1,123 @@
+;;; GNU Guix --- Functional package management for GNU
+;;; Copyright © 2023 Ekaitz Zarraga 
+;;;
+;;; This file is part of GNU Guix.
+;;;
+;;; GNU Guix is free software; you can redistribute it and/or modify it
+;;; under the terms of the GNU General Public License as published by
+;;; the Free Software Foundation; either version 3 of the License, or (at
+;;; your option) any later version.
+;;;
+;;; GNU Guix is distributed in the hope that it will be useful, 

Re: monero-gui-wallet does not show up in GNOME

2023-01-12 Thread jgart
> Done in commit ef0613a81dca73602e702cb5f5444ee94566f983.

Awesome, thanks for doing that!

all best,

jgart



Re: bug#58813: can't substitute etc/teams.scm command as doc suggests

2023-01-12 Thread Simon Tournier
Hi Maxim,

On mer., 11 janv. 2023 at 22:00, Maxim Cournoyer  
wrote:

> It's developed as part of U-Boot and available at
> https://u-boot.readthedocs.io/en/latest/develop/patman.html.  It's
> generated from the same sources as the info manual from
> u-boot-documentation referenced above.

Oh thanks!  I do not know why I did not found it when using my favorite
search engine. :-)

>> On my side, if I have to do more than just click to read documentation,
>> then I give up.  And then, if I have to parse lengthy documentation,
>> then it depends on my motivation but it is also possible that I give
>> up–the well-known RTFM trap.  In other words, I am lazy. :-)
>
> The 'Patman patch manager' section is relatively compact; I read it from
> the comfort of Emacs ;-).  There's also some alternative short text
> available as 'patman -H' if you are in a hurry.

Well, I still think that examples about how to use it are worth and will
help for adoption. :-)

For instance, this section of the manual [1] describes how to use
git-format-patch and git-send-email with details applied to Guix
examples.  It appears to me better than just pointing [2] and [3]. ;-)


1: 
2: 
3: 

Cheers,
simon



Re: monero-gui-wallet does not show up in GNOME

2023-01-12 Thread Guillaume Le Vaillant
Guillaume Le Vaillant  skribis:

> "jgart"  skribis:
>
>> Hi,
>>
>> Even after logging out and in I still can't see `monero-wallet-gui` 
>> executable show up when I press the "windows" key in the GNOME desktop.
>>
>> See this screenshot:
>>
>> https://up.nixnet.services/vyv1z6ia.png
>>
>> I installed monero-gui like this:
>>
>> https://git.sr.ht/~whereiseveryone/confetti/tree/gnome/item/home.scm
>>
>> WDYT
>
> Hi,
> It looks like there is no "monero-gui.desktop" file in the sources of
> monero-gui; we could add a phase creating one in "share/applications/"...

Done in commit ef0613a81dca73602e702cb5f5444ee94566f983.


signature.asc
Description: PGP signature


Re: properties for default version? (was bug#60200: Incompatibilities between gcc-toolchain and R packages)

2023-01-12 Thread pukkamustard


Simon Tournier  writes:

> $ guix shell ocaml ocaml-ppxlib -- ocaml --version
> The OCaml toplevel, version 5.0.0

I also encountered this and was surprised.

> Personally, I find the -next trick useful because the package name
> reflects that it is not the default.  However, it can be annoying to
> update manifest files when this -next is becoming default.
>
> Well, what do people think about this Lars’s patch?

I like it.

I think adding the `default?` property is nicer than the -next
trick. Only nitpick: I would maybe call the property `default-version?`
to make meaning of the property more explicit.

Cheers,
pukkamustard