Re: make check never finishes

2023-05-23 Thread Greg Hogan
On Tue, May 23, 2023 at 1:23 PM Soren Stoutner via  wrote:
>
> I just tried it again with 6783f558fa2bcbc662e021e1b3bf502c64706177 and
> had the same issue.

proot-static fails to build. The issue has been reported upstream.
  https://github.com/proot-me/proot/issues/352

The recent 5.4.0 release fixes the hung tests but the previous issue
is still outstanding.
   
https://github.com/proot-me/proot/commit/a5ee0b79001d4ca338a74b4259d12ad9e40a3a38

One workaround is to checkout the Guix source and configure a
development environment, disabling the proot tests locally. I
understand that this broken test may indicate a regression, but there
must be a better path forward than allowing this to linger for months
breaking Guix functionality.



Re: Guix on mobile phones

2023-05-23 Thread W. T. Meyer


Caleb Herbert  writes:

> I hope there's a way to suppress compiling from source. I don't want
> to be compiling stuff on a mobile device.

I think offloading build processes to another machine defined in
/etc/guix/machines.scm would be a more useful solution than to suppress
building things from source.

For initially provisioning a system one could probably try to make use
of guix system image to create an initial base image of Guix for a
respective mobile device to keep the amount of work to be done at said
device to a minimum.

- Wilko




Re: make check never finishes

2023-05-23 Thread Soren Stoutner via
I just tried it again with 6783f558fa2bcbc662e021e1b3bf502c64706177 and 
had the same issue.


---
Soren Stoutner
so...@stoutner.com
623-262-6169

On 2023-05-23 07:27, Soren Stoutner via wrote:

Simon,

I had this error with a couple of commits.  The most recent was:

263f235cd0a2955e865fe38036f84c2bf34375ff


---
Soren Stoutner
so...@stoutner.com
623-262-6169


Could you provide with commit have you built and run the test suite?


Cheers,
simon




Re: to save my Guix System installation

2023-05-23 Thread Felix Lechner via
Hi Florian,

On Tue, May 23, 2023 at 9:33 AM pelzflorian (Florian Pelz)
 wrote:
>
> yes, making a backup is good.

I don't think Gottfried is making a backup. I think he is leaving us.

We failed a beginner who is absolutely dedicated to free software.

Kind regards
Felix



Re: to save my Guix System installation

2023-05-23 Thread pelzflorian (Florian Pelz)
Hi Gottfried,

yes, making a backup is good.

You will want to backup the Guix configuration files and your data.

So probably this means you should copy /etc/config.scm and the files in
your home directory.

You could plug in an ext4-formatted external disk and copy the files
with the “cp -a” command.  Or learn to use a complicated backup tool
like borg, which other pages on the web explain better than I can.

However, note that installing Guix on the same disk as another operating
system will only be easy if you are using grub-efi-bootloader and if
your computer has an OS selection tool built in or if you have installed
something like rEFInd.

Regards,
Florian



Re: cookbook in german language

2023-05-23 Thread pelzflorian (Florian Pelz)
Hello Gottfried.

If I understand correctly, unreadable overlong lines is an issue with
the PDF version of the cookbook in any language.  The issue is not there
if you select the HTML manual.

On first sight, it looks like complicated TeX tricks are needed to fix
this.  I do not know.

Could you open a bug at the issue tracker

by sending an e-mail to  instead of help-guix?  Please
make clear the issue is with PDF.  This way, we can keep track of the
issue.

Thank you for your bug reports,

Florian



Re: How to declare symlinks in the configuration?

2023-05-23 Thread Felix Lechner via
Hi,

On Tue, May 23, 2023 at 8:13 AM Gary Johnson  wrote:
>
> 2. Including the contents of these files directly in the
>`operating-system` declaration. In this case, you see me specifying
>key-value pairs for the main Postgresql config file in a nested list
>under the `extra-config` record parameter.

A more explicit example via 'plain-file' [1] can be found here. [2]

Kind regards
Felix

[1] https://guix.gnu.org/en/manual/devel/en/guix.html#index-plain_002dfile
[2] 
https://codeberg.org/lechner/system-config/src/commit/81f867ca39ba6149e1efb49f3c1437614085e970/host/wallace-server/operating-system.scm#L697-L704



Re: How to declare symlinks in the configuration?

2023-05-23 Thread Gary Johnson
Marek Paśnikowski  writes:

> Thank you Gary.
>
> This is the kind of answer I was hoping for. Could you also share with
> me the corresponding service-type for the system configuration?

Hi Marek,

  In the system configuration, most of the files that you would edit by
hand on another distro (e.g., config files under /etc) are not managed
directly by a single service in Guix System. Instead, you typically add
services (e.g., `postgresql-service-type`, `cups-service-type`,
`strongswan-service-type`) to your `operating-system` definition and
declare their configurations within each service's scheme code.

For example, here is how you might edit the config files for a
Postgresql server:

```scheme
(use-modules
 ((gnu packages databases) #:select (postgresql))
 ((gnu packages geo)   #:select (postgis))
 ((gnu services)   #:select (service))
 ((gnu services databases) #:select (postgresql-service-type 
postgresql-configuration postgresql-config-file))
 ((gnu services desktop)   #:select (%desktop-services))
 ((gnu system) #:select (operating-system))
 ((guix gexp)  #:select (local-file)))

(operating-system
 ;; ...Eliding all the fields except `services`...
 (services (cons (service postgresql-service-type
  (postgresql-configuration
   (postgresql postgresql)
   (extension-packages (list postgis))
   (config-file
(postgresql-config-file
 (hba-file (local-file "etcfiles/pg_hba.conf"))
 (extra-config '(("max_worker_processes" "12")
 ("max_parallel_workers" "40")
 
("max_parallel_maintenance_workers" "8")
 ("max_parallel_workers_per_gather" 
"4")
 ("parallel_leader_participation"
 "on")))
 %desktop-services)))
```

In this example, I showed two ways of specifying the contents of a
config file for this service:

1. Using `local-file` to pull in the contents of a text file somewhere
   on disk. In this case, I keep my system-wide service config files
   under a directory called "etcfiles" (in my home directory). For
   config files referenced in my `guix home` configuration, I use a
   directory called "dotfiles".

2. Including the contents of these files directly in the
   `operating-system` declaration. In this case, you see me specifying
   key-value pairs for the main Postgresql config file in a nested list
   under the `extra-config` record parameter.

===

Now...having provided the above explanation as the typical usage pattern
for configuring services on Guix System, I will add that there is an
escape hatch that you can use (as a last resort if there isn't an
existing service that controls the files you want to edit).

This is the service called `etc-service-type`. You can use it to declare
any arbitrary files that would like added immutably under the top level
"/etc" directory. You can use it like so:

```scheme
(use-modules
 ((gnu services)   #:select (service etc-service-type))
 ((gnu services desktop)   #:select (%desktop-services))
 ((gnu system) #:select (operating-system))
 ((guix gexp)  #:select (local-file)))

(operating-system
 ;; ...Eliding all the fields except `services`...
 (services (cons (service etc-service-type
  `(("resolv.conf" ,(local-file 
"etcfiles/resolv.conf"
 %desktop-services)))
```

Now you know, and knowing is half the battle. ;)
Have fun and happy hacking on Guix!

  ~Gary

-- 
Protect yourself from surveillance: https://emailselfdefense.fsf.org
===
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments

Why is HTML email a security nightmare? See https://useplaintext.email/

Please avoid sending me MS-Office attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html



Re: make check never finishes

2023-05-23 Thread Soren Stoutner via

Simon,

I had this error with a couple of commits.  The most recent was:

263f235cd0a2955e865fe38036f84c2bf34375ff


---
Soren Stoutner
so...@stoutner.com
623-262-6169


Could you provide with commit have you built and run the test suite?


Cheers,
simon




Re: make check never finishes

2023-05-23 Thread Simon Tournier
Hi,

On Wed, 17 May 2023 at 07:47, Soren Stoutner via  wrote:

> PASS: tests/guix-pack-localstatedir.sh
>
> I think the problem happens while processing guix-pack-relocatable.sh.  
> The final lines of guix-pack-relocatable.log are the following:
>
> The following derivations will be built:
>
> /gnu/store/6nbb5kb2wj2lja5s77qckvfnabsf786s-sed-tarball-pack.tar.gz.drv
>/gnu/store/xd5xhbpcgcmy1cvypw4qhag17gbll4lh-profile-directory.drv
>/gnu/store/s2c4kin834znnc56s4bhy32pqw5vnbiv-profile.drv
>/gnu/store/g4xjkpaicqmi23nfhp0qhja4c92s5wcz-sed-4.8R.drv
>/gnu/store/q323ryqh9wa4vinx8d0v3gqmw8lvv119-proot-static-5.3.0.drv
>
> building 
> /gnu/store/q323ryqh9wa4vinx8d0v3gqmw8lvv119-proot-static-5.3.0.drv...

Could you provide with commit have you built and run the test suite?


Cheers,
simon



to save my Guix System installation

2023-05-23 Thread Gottfried


Hi,

I have on one harddisk Guix installed,
on a second harddisk GNUinOS.

I want to reinstall GNUinOS

and may be later on the same harddisk,
on which Guix resides, reduce the size of the harddisk
and install Trisquel on a second partition on it.

To be on the save side
I would like to copy... my Guix to a separate harddisk
in order not to loose it.

So that I can in the worst case replace it/I don’t know what to call it

What are the options.

I was reading the cookbook, but the procedure is not clear to me.

What are the commands to copy/replicate my Guix System installation
to an external harddisk (via USB connected) and later in case
recopy it.


Kind regards

Gottfried



OpenPGP_0x61FAF349C9FB7F94.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature