Install image with custom services

2019-12-19 Thread Jack Hill

Hello Guix,

I'm trying to create an installation image that uses Network Manager to 
configure networking (For use at a site with WPA-Enterprise networks). I 
came up with the following:


```scheme
(define-module (jackhill system install)
  #:use-module ((gnu packages gnome) #:select (network-manager) #:prefix 
package:)
  #:use-module (gnu services)
  #:use-module (gnu services networking)
  #:use-module (gnu system)
  #:use-module (gnu system install)
  #:use-module (srfi srfi-1)
  #:export (my-installation-os))

(define my-installation-os
  (operating-system
(inherit installation-os)
(packages (cons package:network-manager
 (operating-system-packages installation-os)))
(services (cons (service network-manager-service-type)
(remove (lambda (service)
  (eq? (service-kind service) connman-service-type))
(operating-system-services installation-os))

my-installation-os
```

However, passing that to guix system disk-image results in:

```
guix system: error: more than one target service of type 'shepherd-root'
```

Thinking that I had done something wrong with removing the connman-service 
and adding the network-manager-service, I created a more minimal operating 
system definition:


```scheme
(define my-installation-os
  (operating-system
(inherit installation-os)
(packages (cons package:network-manager
 (operating-system-packages installation-os)))
(services (operating-system-services installation-os
```

To my surprise, this also fails with

```
guix system: error: more than one target service of type 'account'
```

However,

```scheme
(define my-installation-os
  (operating-system
(inherit installation-os)
(packages (cons package:network-manager
 (operating-system-packages installation-os)
```

sucseeds.

Should these last two operating system definitions not be equivalent? 
What's going on here?


Thanks,
Jack



Re: Cannot build libdbi-drivers: "dbd_mysql.c:54:10: fatal error: mysql.h: No such file or directory"

2019-12-19 Thread Jorge P . de Morais Neto
Hello.

Em [2019-12-18 qua 22:38:13+0100], Marius Bakke escreveu:

> This is fixed with commit 9077cf68ec57c0303ef7746e203c3fe5ed041add.

I confirm the problem is solved.  A few minutes ago I have invoked
~guix pull~ and then I was able to build Gnucash.  Then I fired up
Gnucash and it showed its welcome dialog.

Thank you!
-- 
- 
- I am Brazilian.  I hope my English is correct and I welcome feedback.
- Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z.
- Free/libre software for Replicant, LineageOS and Android: https://f-droid.org
- [[https://www.gnu.org/philosophy/free-sw.html][What is free software?]]



Re: gpg-agent error: No pinentry

2019-12-19 Thread Marco van Hulten
correction follows inline—

Any help is appreciated.

Je 19 dec 09:22 skribis Marco:
> Je 18 dec 22:50 skribis Andreas:
> > On Wed, Dec 18, 2019 at 10:41:27PM +0100, Marco van Hulten wrote:  
> > > Do I need to do any more actions accept for 'guix package -i gnupg
> > > pinentry'?
> > 
> > I also have a file .gnupg/gpg-agent.conf in my home directory
> > containing the following lines:
> > 
> > default-cache-ttl 300
> > max-cache-ttl 3600
> > pinentry-program /home/USERNAME/.guix-profile/bin/pinentry-curses  
> 
> Thank you, Andreas and Gábor, very useful to know that pinentry-program
> should be set.  I did so:
> 
> $ file $(realpath $(grep ^pinentry-program ~/.gnupg/gpg-agent.conf | awk 
> '{print $2}'))
> /gnu/store/12gagy0ql4v7qlv9px54lz5fy4d7gff9-pinentry-tty-1.1.0/bin/pinentry-tty:
> ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked,
> interpreter 
> /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/lib/ld-linux-x86-64.so.2,
> for GNU/Linux 2.6.32, not stripped
> 
> Importing a public and private key pair, following [1], worked properly
> now, but it still complains when decrypting a file.
> 
> [1]: https://www.debuntu.org/how-to-importexport-gpg-key-pair/
> 
> To be sure, if I now try to remove the key, 'gpg --delete-key publiko',
> it says that I need to use option "--delete-secret-keys" to delete the
> private key first.  So it appears to be really there.  However,
> 
> $ date | gpg -e > jadaja.gpg
> gpg: encrypted with 4096-bit RSA key, ID 54AE7D44B93BDBDF, created 
> 2019-05-30
>   "Marco van Hulten (publiko) "
> gpg: public key decryption failed: No pinentry
> gpg: decryption failed: No secret key

Sorry, the lines were not copied consistently.  Now the whole
encryption/decryption process verbatimly copied from my terminal:

$ date > test.txt
$ gpg --output test.txt.gpg --encrypt --recipient ma...@hulten.org test.txt
$ gpg --decrypt test.txt.gpg 
gpg: encrypted with 4096-bit RSA key, ID 54AE7D44B93BDBDF, created 
2019-05-30
  "Marco van Hulten (publiko) "
gpg: public key decryption failed: No pinentry
gpg: decryption failed: No secret key

> I tried killing gpg-agent to be sure it uses the current configuration,
> but again it complains about pinentry.
> 
> Apropos, I this e-mail is signed with this very key.
> 
> —Marco


pgprh8_1KrGWw.pgp
Description: OpenPGP digitale handtekening


Re: build issues w/ system glibc

2019-12-19 Thread Julien Lepiller
Le 19 décembre 2019 00:50:18 GMT+01:00, Michael Zucchi  a 
écrit :
>
>Morning,
>
>Just a couple of comments re: building from git.  Well that was the 
>intention, but it's turned into a failure to build.
>
>1) bootstrap isn't mentioned anywhere in the README, it just mentions 
>configure
>2) i know the README is for a web service to reformat, but it's really 
>miserable trying to read it from a shell
>3) using "guix environment guix" the build fails.
>
>$ make V=1
>...
>g++ -Wall -std=c++11 -g -O2   -o guix-daemon 
>nix/nix-daemon/guix_daemon-nix-daemon.o 
>nix/nix-daemon/guix_daemon-guix-daemon.o libstore.a libutil.a 
>libformat.a -lz 
>-L/gnu/store/i6l1579g80387rda658jy9cfqq82643d-sqlite-3.28.0/lib 
>-lsqlite3 -L/usr/lib64 -lgcrypt -lbz2
>/usr/bin/ld: 
>/gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/lib/libpthread.so.0:
>
>undefined reference to `__libc_vfork@GLIBC_PRIVATE'
>collect2: error: ld returned 1 exit status
>make[2]: *** [Makefile:3469: guix-daemon] Error 1
>make[2]: Leaving directory '/home/notzed/src/guix'
>make[1]: *** [Makefile:4766: all-recursive] Error 1
>make[1]: Leaving directory '/home/notzed/src/guix'
>make: *** [Makefile:3257: all] Error 2
>notzed@shitzone:~/src/guix$
>
>I'm using guix on Slackware-current and that (currently) uses 
>glibc-2.30, and when using the platform compiler it links against that 
>and not the guix glibc.
>
>I tried installing gcc-toolchain but the same thing happens.  I tried 
>-L/gnu/store/ but that doesn't work.
>
>Regards,
>  Z

Hi, have you tried runinhg everything in a pure environment, from the 
bootstrap? Guix environment guix --pure should give you an environment where 
none of your system is visible.