Re: problems for install Skribilo-0.9.2 in Guix-0.6

2014-06-07 Thread Carlos Carleos
Ludovic Courtès l...@gnu.org escribió / skribis [*]:

 I think you did not authorize installation of substitutes signed by
 hydra.gnu.org (info (guix) Substitutes):

   guix archive --authorize  hydra.gnu.org.pub

The substitutes gave many

  @ substituter-started ...
  [...]
  @ substituted-succeded ...

and these warnings:

  (Please consider upgrading Guile to get proper progress report.)

This machine is Ubuntu 12.4 with Guile 2.0.5.

Now I get:

--8--corte-desde-aquí---tranĉu-de-ĉi-tie--8--
carleos@carleos:~$ ~/.guix-profile/bin/skribilo --version
Backtrace:
In ice-9/boot-9.scm:
2864: 19 [resolve-interface (skribilo) #:select ...]
2789: 18 [#procedure bc9620 at ice-9/boot-9.scm:2777:4 (name #:optional 
autoload version #:key ensure) # ...]
3065: 17 [try-module-autoload (skribilo) #f]
2401: 16 [save-module-excursion #procedure c77e40 at ice-9/boot-9.scm:3066:17 
()]
3085: 15 [#procedure c77e40 at ice-9/boot-9.scm:3066:17 ()]
In unknown file:
   ?: 14 [primitive-load-path skribilo ...]
In skribilo.scm:
  32: 13 [#procedure b3a7a0 ()]
In ice-9/boot-9.scm:
2951: 12 [define-module* (skribilo) #:filename ...]
2926: 11 [resolve-imports ((#) (#) (#) (#) ...)]
2864: 10 [resolve-interface (skribilo utils syntax) #:select ...]
2789: 9 [#procedure bc9620 at ice-9/boot-9.scm:2777:4 (name #:optional 
autoload version #:key ensure) # ...]
3065: 8 [try-module-autoload (skribilo utils syntax) #f]
2401: 7 [save-module-excursion #procedure c77cf0 at ice-9/boot-9.scm:3066:17 
()]
3085: 6 [#procedure c77cf0 at ice-9/boot-9.scm:3066:17 ()]
In unknown file:
   ?: 5 [primitive-load-path skribilo/utils/syntax ...]
In skribilo/utils/syntax.scm:
  22: 4 [#procedure bc6d00 ()]
In ice-9/boot-9.scm:
2951: 3 [define-module* (skribilo utils syntax) #:filename ...]
2926: 2 [resolve-imports ((#) (#) (#))]
2867: 1 [resolve-interface (system reader library) #:select ...]
In unknown file:
   ?: 0 [scm-error misc-error #f ...]

ERROR: In procedure scm-error:
ERROR: no code for module (system reader library)
carleos@carleos:~$
--8--corte-hasta-aquí--tranĉu-ĝis-ĉi-tie--8--

So I installed Guix' Guile:

--8--corte-desde-aquí---tranĉu-de-ĉi-tie--8--
carleos@carleos:~$ guix package -i guile
guix package: warning: ambiguous package specification uile'
guix package: warning: choosing guile-2.0.11 from
gnu/packages/guile.scm:110:2
The following package will be installed:
   guile-2.0.11 out /gnu/store/725n5w5vcpd9ihzr27vn7c731hx2ky0j-guile-2.0.11

The following derivation will be built:
   /gnu/store/9f94zzb70a77ap3fqf20ypx4yrp9ixf3-profile.drv
@ build-started /gnu/store/9f94zzb70a77ap3fqf20ypx4yrp9ixf3-profile.drv
   - x86_64-linux
   
/usr/local/var/log/guix/drvs/9f//94zzb70a77ap3fqf20ypx4yrp9ixf3-profile.drv.bz2
@ build-succeeded
   /gnu/store/9f94zzb70a77ap3fqf20ypx4yrp9ixf3-profile.drv -
2 packages in profile
The following environment variable definitions may be needed:
   export GUILE_LOAD_PATH=/home/carleos/.guix-profile/share/guile/site/2.0
   export 
GUILE_LOAD_COMPILED_PATH=/home/carleos/.guix-profile/share/guile/site/2.0
carleos@carleos:~$ ls .guix-profile/bin/
guild  guile  guile-config  guile-snarf  guile-tools  skribilo skribilo-config
carleos@carleos:~$ echo $PATH
/home/carleos/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
carleos@carleos:~$ export PATH=~/.guix-profile/bin:$PATH
carleos@carleos:~$ export 
GUILE_LOAD_PATH=/home/carleos/.guix-profile/share/guile/site/2.0
carleos@carleos:~$ export 
GUILE_LOAD_COMPILED_PATH=/home/carleos/.guix-profile/share/guile/site/2.0
carleos@carleos:~$ guile --version
guile (GNU Guile) 2.0.11
Copyright (C) 2014 Free Software Foundation, Inc.

License LGPLv3+: GNU LGPL 3 or later
http://gnu.org/licenses/lgpl.html.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
carleos@carleos:~$ skribilo --version
Backtrace:
In ice-9/boot-9.scm:
2864: 19 [resolve-interface (skribilo) #:select ...]
2789: 18 [#procedure 13ae7a0 at ice-9/boot-9.scm:2777:4 (name #:optional 
autoload version #:key ensure) # ...]
3065: 17 [try-module-autoload (skribilo) #f]
2401: 16 [save-module-excursion #procedure 12f0e70 at ice-9/boot-9.scm:3066:17 
()]
3085: 15 [#procedure 12f0e70 at ice-9/boot-9.scm:3066:17 ()]
In unknown file:
   ?: 14 [primitive-load-path skribilo ...]
In skribilo.scm:
  32: 13 [#procedure 13aa8a0 ()]
In ice-9/boot-9.scm:
2951: 12 [define-module* (skribilo) #:filename ...]
2926: 11 [resolve-imports ((#) (#) (#) (#) ...)]
2864: 10 [resolve-interface (skribilo utils syntax) #:select ...]
2789: 9 [#procedure 13ae7a0 at ice-9/boot-9.scm:2777:4 (name #:optional 
autoload version #:key ensure) # ...]
3065: 8 [try-module-autoload (skribilo utils syntax) #f]
2401: 7 [save-module-excursion #procedure 12f0d20 at ice-9/boot-9.scm:3066:17 
()]
3085: 6 [#procedure 12f0d20 at ice-9/boot-9.scm:3066:17 ()]
In unknown file:
   ?: 5 [primitive-load-path 

Re: [PATCH] gnu: rdup: Fix check phase.

2014-06-07 Thread Ludovic Courtès
Eric Bavier ericbav...@gmail.com skribis:

 This patch should fix the failing rdup build.

Seems to me that the test suite was bound to fail in a chroot setup, no?

 I'm sending it to the list because I wonder if there's a better way to
 handle the missing script shebangs?

[...]

 + (alist-cons-before
 +  'check 'pre-check
 +  (lambda _
 +(setenv HOME (getcwd))
 +(substitute* 
 testsuite/rdup/rdup.rdup-up-t-with-file.exp
 +   ((/bin/cat) (which cat)))
 +;; Some test scripts are missing shebangs, which cause
 +;; could not execute errors.  Add shebangs.
 +(for-each
 + (lambda (testscript)
 +   (with-atomic-file-replacement
 +(string-append testsuite/rdup/ testscript)
 +(lambda (in out)
 +  (begin
 +(format out #!~a\n (which sh))
 +(dump-port in out)
 + '(rdup.hardlink.helper
 +   rdup.hardlink-strip.helper
 +   rdup.hardlink-strip2.helper
 +   rdup.pipeline.helper)))

That looks like the right approach to me.

It would be even nicer to make it a ‘snippet’ in the ‘origin’ structure;
the only difference is that the snippet would use “#!/bin/sh” (that
would later be patched in the patch-shebangs anyway.)  Same for
s,/bin/cat,cat,g.

The advantage is that ‘guix build -S’ would return something equivalent
to what we’re actually building.

Could you try that?

Thanks,
Ludo’.



Re: problems for install Skribilo-0.9.2 in Guix-0.6

2014-06-07 Thread Ludovic Courtès
Carlos Carleos carl...@uniovi.es skribis:

 Ludovic Courtès l...@gnu.org escribió / skribis [*]:

 I think you did not authorize installation of substitutes signed by
 hydra.gnu.org (info (guix) Substitutes):

   guix archive --authorize  hydra.gnu.org.pub

 The substitutes gave many

   @ substituter-started ...
   [...]
   @ substituted-succeded ...

It means it successfully downloaded the pre-built binaries (though it
should probably be less verbose.)

 and these warnings:

   (Please consider upgrading Guile to get proper progress report.)

 This machine is Ubuntu 12.4 with Guile 2.0.5.

Yes, that’s 2.5 years old.

 --8--corte-desde-aquí---tranĉu-de-ĉi-tie--8--
 carleos@carleos:~$ ~/.guix-profile/bin/skribilo --version

[...]

 ERROR: In procedure scm-error:
 ERROR: no code for module (system reader library)
 carleos@carleos:~$
 --8--corte-hasta-aquí--tranĉu-ĝis-ĉi-tie--8--

The problem is that Guile-Reader is not found in Guile’s search path.

For now the fix is to run:

  guix package -i guile-reader-for-guile_2.0.11

and then define the environment variables suggested by:

  guix package --search-paths

Could you try that?

(I’ll work on a better fix.)

Thanks,
Ludo’.



Re: problems for install Skribilo-0.9.2 in Guix-0.6

2014-06-07 Thread Carlos Carleos
Ludovic Courtès l...@gnu.org escribió / skribis [*]:

 The problem is that Guile-Reader is not found in Guile’s search path.
 For now the fix is to run:
   guix package -i guile-reader-for-guile_2.0.11
 and then define the environment variables suggested by:
   guix package --search-paths
 Could you try that?

Done.  It worked (with a warning):

 --8--corte-desde-aquí---tranĉu-de-ĉi-tie--8--
carleos@carleos:~$ skribilo --version
/gnu/store/xhd2xdv16b64ajkdd7pbkklrq5fmn28i-bash-4.3/bin/sh: warning: 
setlocale: LC_ALL: cannot change locale (eo.utf8)
skribilo 0.9.2
 --8--corte-hasta-aquí--tranĉu-ĝis-ĉi-tie--8--

Many thanks!


-- 
 CARLOS CARLEOSKAROLO EL KARLEOJ 
 Secretario   Sekretario 
 Departamento de Estadística Departemento pri Statistiko 
 e Investigación Operativakaj Operaciesploro 
 y Didáctica de la Matemáticakaj Didaktiko de Matematiko 
 Universidad Oviedo  Universitato Oviedo 
 Principado de Asturias  Princlando Asturujo 
 Reino de España  Reĝlando Hispanujo 
 Teléfono: 73353   SMS: +34 66 004 66 05 

_
¡OJO!: eñes y demás mediante Unicode. ATENTU!: eĥoŝanĝo ĉiuĵaŭde per Unikodo.


[*] je la 14h9'13 en la 17ª de Prerialo en 166ª
= la 8ª de Ŝaban (شعبان) en 1435ª
= la 7ª de Junio en 2014ª de Kristo gregorie
= la 10ª (Ji3 己酉 You3) de monato 5ª (Geng1 庚午 Wu3) en 4651ª (Jia3 甲午 Wu3)
= la 9ª de Sivano (סיוון) en 5774ª
= la 25ª de Majo en 7522ª pokrovskija / konstancia / de Adamo / κατὰ 
ῥωμαίους