bug#22550: (require 'magit) produces error: "no such file or directory" "dash"

2016-02-03 Thread myglc2
with magit installed on guixSD following the config shown further below.

With init.el containing ...

V
(add-to-list 'load-path "/run/current-system/profile/share/emacs/site-lisp")
(require 'guix-init nil t)
^

(require 'magit)

... generates this traceback ...

V
Debugger entered--Lisp error: (file-error "Cannot open load file" "no such file 
or directory" "dash")
  require(dash)
  
byte-code("\300\301!\210\300\302!\210\300\303!\210\300\304!\210\300\305!\210\300\306!\210\300\307!\210\300\310!\210\300\311!\210\300\312\313\314#\207"
 [require cl-lib dash with-editor git-commit magit-core magit-diff magit-apply 
magit-log format-spec package nil t] 4)
  require(magit)
  eval((require (quote magit)) nil)
^

Adding emac-dash to config.h.scm does not change the behavior.


config.h.scm:
V
;; This is an operating system configuration template
;; for a "bare bones" setup, with no X11 display server.

(use-modules (gnu))
(use-service-modules networking ssh)
(use-package-modules admin)
(use-package-modules disk) ;; parted
(use-package-modules ssh rsync wget screen)
(use-package-modules version-control) ;; git git-manpages
(use-package-modules emacs) ;; emacs magit

(operating-system
  (host-name "g1")
  (timezone "America/New_York")
  (locale "en_US.utf8")

  (bootloader (grub-configuration (device "/dev/sda")))
  (file-systems (cons (file-system
(device "g1sd")
(title 'label)
(mount-point "/")
(type "ext4"))
  %base-file-systems))

  (users (cons* (user-account
(name "glc")
(comment "g l c")
(group "users")
(supplementary-groups '("wheel"))
(home-directory "/home/glc"))

  (user-account
(name "glc2")
(comment "glc2")
(group "users")
(supplementary-groups '("wheel"))
(home-directory "/home/glc2"))

  (user-account
(name "glc3")
(comment "glc3")
(group "users")
(supplementary-groups '("wheel"))
(home-directory "/home/glc3"))
  
  (user-account
(name "glc4")
(comment "glc4")
(group "users")
(supplementary-groups '("wheel"))
(home-directory "/home/glc4"))

  %base-user-accounts))

  (packages (cons*
 glibc-utf8-locales
 parted
 openssh
 rsync
 wget
 screen
 emacs
 git git-manpages magit
 %base-packages
 )
)

  (services (cons* (dhcp-client-service)
   (lsh-service #:port-number 22)
   %base-services)))
^

root@g1 ~# guix pull

Starting download of /tmp/guix-file.hPsZb9
>From http://git.savannah.gnu.org/cgit/guix.git/snapshot/master.tar.gz...
 master.tar.gz   2.4MiB/s 00:04 | 9.8MiB transferred
unpacking '/gnu/store/dfil8xc2l55xs5zjvs5mvrji4m97vnn9-guix-latest.tar.gz'...
substitute: updating list of substitutes from 'http://hydra.gnu.org'... 100.0%
The following derivation will be built:
   /gnu/store/nmiak10q4fbax0n06qypgp0m1p7y084i-guix-latest.drv
building path(s) `/gnu/store/wsygn2xxms6fmqv2xwjqgmkr58466icr-guix-latest'
copying and compiling to 
'/gnu/store/wsygn2xxms6fmqv2xwjqgmkr58466icr-guix-latest'...
loading...   23.3% of 481 filesrandom seed for tests: 1454557452
loading...   99.8% of 481 files
compiling... 98.3% of 481 files
updated GNU Guix successfully deployed under `/root/.config/guix/latest'
root@g1 ~# guix system reconfigure config.h.scm
substitute: updating list of substitutes from 'http://hydra.gnu.org'... 100.0%
The following derivations will be built:
   /gnu/store/wa37n1m89692sh17d5m1rpknkjbajh2r-system.drv
   /gnu/store/l2xhcir48mr0hbbn142lbbl45z3xnfnj-grub.cfg.drv
   /gnu/store/q993gpnzkfh00d56q5l57112nl127b99-shells.drv
   /gnu/store/nn89w1fcrnw10ikmqak3jnmflqv8z9ja-ca-certificate-bundle.drv
   /gnu/store/dxdxlq2x5pcnjx44cas2g3p4zh6569jz-gtk-icon-themes.drv
   /gnu/store/9qk8g4hcqks3lwyacy328zdhxmzmxnyq-info-dir.drv
   /gnu/store/jhbmd42vqb2jbvcxh3rli4xrzamlgdcd-profile.drv
   /gnu/store/xf6m2i96hrmw1hssjc71w4g2swqw587a-activate-service.drv
   /gnu/store/12bmphpb3skk6fn18mahza2dbh7chm8f-activate-service.drv
   /gnu/store/qghfckfm59s62y1y4imvlfvzacl7xg12-activate.drv
   /gnu/store/d74b89jil0aclla1yp6mm53x3yd8dprp-boot.drv
   /gn

bug#22548: Kernel panic after system reconfiguration

2016-02-03 Thread Albin
Hi,

Den 2016-02-03 kl. 23:14, skrev Mark H Weaver:
> Albin  writes:
> 
>> Hi again,
>>
>> I got rid of the kernel panic by removing the following from the config
>> and reconfiguring (as suggested by Mark Weaver):
>>
>>> (swap-devices '("/swapfile"))
>>
>> It would be nice to be able to enable swap again though. On my system it
>> needs to be done with a swap file.
> 
> I suspect this never worked, but that before the error was silently
> ignored.  In my case, I had:
> 
>   (swap-devices '("/dev/disk/by-label/jojen-swap"))
> 
> and /dev/disk went away at some point due to another problem.  For a
> long time, I simply had no swap.  With the dmd -> shepherd transition,
> it started causing a fatal error during boot, leading to a kernel panic.
> Unfortunately, the error message scrolled off the screen very quickly,
> obscured by a useless kernel backtrace.
> 
>   Mark
> 

Mark is correct: swap was never enabled in the first place.  I tested
this by booting an old configuration and entering `cat /proc/swaps`,
which returned an empty table.

Case closed, I guess!

Albin





bug#22548: Kernel panic after system reconfiguration

2016-02-03 Thread Mark H Weaver
Albin  writes:

> Hi again,
>
> I got rid of the kernel panic by removing the following from the config
> and reconfiguring (as suggested by Mark Weaver):
>
>> (swap-devices '("/swapfile"))
>
> It would be nice to be able to enable swap again though. On my system it
> needs to be done with a swap file.

I suspect this never worked, but that before the error was silently
ignored.  In my case, I had:

  (swap-devices '("/dev/disk/by-label/jojen-swap"))

and /dev/disk went away at some point due to another problem.  For a
long time, I simply had no swap.  With the dmd -> shepherd transition,
it started causing a fatal error during boot, leading to a kernel panic.
Unfortunately, the error message scrolled off the screen very quickly,
obscured by a useless kernel backtrace.

  Mark





bug#22548: Kernel panic after system reconfiguration

2016-02-03 Thread Ludovic Courtès
Albin  skribis:

> With no other changes I just ran guix pull and guix system reconfigure
> on my MacBook2,1 which created an unbootable system.
>
> After having completed the reconfiguration I tried to halt and reboot
> the system but got this error message each time :
>
>> error: connect: /var/run/shepherd/socket: file or directory does not exist
>
> I did a hard shutdown and rebooted.

Apologies, that’s the aftermath of the dmd → shepherd transition.

The solution was to run /run/booted-system/profile/sbin/reboot, which
would have been able to the running dmd (whereas after reconfiguration,
‘reboot’ was the new Shepherd client, which cannot talk to the old dmd.)

> Here is a picture of the kernel panic screen:
> https://lut.im/h3kmF9hN8D/pnbWoVVQWj7QYPkr.jpg
>
> This is my system configuration:
> http://paste.lisp.org/display/306452
>
> The OS was quite bootable after my last reconfiguration on January 26.

I don’t see anything immediately obvious.  I tried your config in ‘guix
system vm’ and it works fine, so perhaps the problem has to do with
device mapping or similar.

How did you set up the encrypted root partition?  Did you use ‘guix
system reconfigure --no-grub’ and a hand-made grub.cfg?

Thanks,
Ludo’.





bug#22458: Collision between khal and vdirsyncer "bin/vdirsyncer"

2016-02-03 Thread Ludovic Courtès
Leo Famulari  skribis:

> The packages khal and vdirsyncer are meant to be used together. Khal is
> a console calendar program and vdirsyncer synchronizes CalDAV data from
> a remote server to the local filesystem so that khal can use it.

Then why do they both provide the same file?  :-)

> For some reason, the khal package is creating an
> "EASY-INSTALL-ENTRY-SCRIPT" (as "bin/.vdirsyncer-real") that wraps the
> propagated vdirsyncer executable. This means that both the khal and
> vdirsyncer packages contain the path "bin/vdirsyncer", which is
> annoying. Thankfully, they both end up executing the real vdirsyncer.

I’m not sure I follow.  Does upstream khal explicitly intend to install
its own bin/vdirsyncer?

Ludo’.





bug#22039: 'guix system reconfigure' must start/restart/stop services

2016-02-03 Thread Thompson, David
On Wed, Feb 3, 2016 at 4:32 PM, Ludovic Courtès  wrote:
> l...@gnu.org (Ludovic Courtès) skribis:
>
>> Currently ‘guix system reconfigure’ doesn’t try to dynamically update
>> the set of running services, which is a shame.
>>
>> A simple strategy would be to have it:
>>
>>   1. Stop and unregister services currently known to dmd that are
>>  missing in the new configuration.
>>
>>   2. Load and start (if they have ‘auto-start?’) services that are in
>>  the new configuration and currently unknown to dmd.
>>
>>   3. The rest is the most difficult part: dealing with services that
>>  already exist but that have changed (see below.)
>
> Commit 240b57f implements #1 and #2.

Awesome!  This is very good progress.

- Dave





bug#22039: 'guix system reconfigure' must start/restart/stop services

2016-02-03 Thread Ludovic Courtès
l...@gnu.org (Ludovic Courtès) skribis:

> Currently ‘guix system reconfigure’ doesn’t try to dynamically update
> the set of running services, which is a shame.
>
> A simple strategy would be to have it:
>
>   1. Stop and unregister services currently known to dmd that are
>  missing in the new configuration.
>
>   2. Load and start (if they have ‘auto-start?’) services that are in
>  the new configuration and currently unknown to dmd.
>
>   3. The rest is the most difficult part: dealing with services that
>  already exist but that have changed (see below.)

Commit 240b57f implements #1 and #2.

Ludo’.





bug#22548: Kernel panic after system reconfiguration

2016-02-03 Thread Albin
Hi again,

I got rid of the kernel panic by removing the following from the config
and reconfiguring (as suggested by Mark Weaver):

> (swap-devices '("/swapfile"))

It would be nice to be able to enable swap again though. On my system it
needs to be done with a swap file.

Albin

Den 2016-02-03 kl. 19:18, skrev Albin:
> Hi,
> 
> With no other changes I just ran guix pull and guix system reconfigure
> on my MacBook2,1 which created an unbootable system.
> 
> After having completed the reconfiguration I tried to halt and reboot
> the system but got this error message each time :
> 
>> error: connect: /var/run/shepherd/socket: file or directory does not exist
> 
> I did a hard shutdown and rebooted.
> 
> Here is a picture of the kernel panic screen:
> https://lut.im/h3kmF9hN8D/pnbWoVVQWj7QYPkr.jpg
> 
> This is my system configuration:
> http://paste.lisp.org/display/306452
> 
> The OS was quite bootable after my last reconfiguration on January 26.
> 
> Albin
> 
> 
> 





bug#22548: Kernel panic after system reconfiguration

2016-02-03 Thread Albin
Hi,

With no other changes I just ran guix pull and guix system reconfigure
on my MacBook2,1 which created an unbootable system.

After having completed the reconfiguration I tried to halt and reboot
the system but got this error message each time :

> error: connect: /var/run/shepherd/socket: file or directory does not exist

I did a hard shutdown and rebooted.

Here is a picture of the kernel panic screen:
https://lut.im/h3kmF9hN8D/pnbWoVVQWj7QYPkr.jpg

This is my system configuration:
http://paste.lisp.org/display/306452

The OS was quite bootable after my last reconfiguration on January 26.

Albin








bug#22546: Download-Page is "hiding" what the options actually are

2016-02-03 Thread Robin Vobruba
Being new to Guix, i went to the Download page:
https://www.gnu.org/software/guix/download/

immediately saw the 3 big options
read their title/names
was confused what the difference might be between "GuixSD" and "Guix Binary"
could not find anything inside these 3 option's boxes that would help me
read the text below them
read the text above them
finally understood that the first option is the OS, and the second is only
the packag-manager

i think that the first option should have a title saying "Operating System
install medium" or the like, and the second "Package-Manager for arbitrary
Linux".
nobody is going to read a small, regular text formatted, two lines long
paragraph on a download page, but this is very crucial information for
everyone that gets there.


... sounds like a very good project! :-)


bug#22543: 404 in Manualpage

2016-02-03 Thread Nils Gillmann
The manual page
https://www.gnu.org/software/guix/manual/html_node/Requirements.html#Requirements

contains a link to

https://www.gnu.org/software/guix/manual/gnutls-guile/Guile-Preparations.html#Guile-Preparations

which give a 404. I am not familiar with what's supposed to be there, a
quick search for "gnutls-guile/Guile-Preparations.html" in duckduckgo gives me
http://www.gnutls.org/manual/gnutls-guile/Guile-Preparations.html as one
of 2 results.

Should I fix the link to this one and send in a patch?

Thanks,
-- 
ng/ni*
vcard: http://krosos.sdf.org





bug#22437: Fixing package-with-python2

2016-02-03 Thread Ludovic Courtès
l...@gnu.org (Ludovic Courtès) skribis:

> An idea I haven’t taken the time to test yet would be to use
> ‘properties’:
>
>   (define python-foobar   ;with Python 3
> (package
>   (name "foobar")
>   ;; Specify which Python 2 variant to use.
>   (properties `((python2-variant . ,(delay python2-foobar))
>
>   (define python2-foobar
> (package (inherit python-foobar)
>   ;; … stuff beyond the mechanical python 2→3 switch…
>   ))
>
> ‘package-with-python2’ would honor this ‘python2-variant’ property.

Here’s a first stab at this.

As an example, I modified ‘python-matplotlib’ to use that feature, so we
can test that ‘python2-scipy’ is using the right ‘python2-matplotlib’:

--8<---cut here---start->8---
$ ./pre-inst-env guix build python2-matplotlib -d 2>/dev/null
/gnu/store/07zr2pqg61b742czb2aqyisml2i90r4a-python2-matplotlib-1.4.3.drv
$ ./pre-inst-env guix build python2-scipy -d 2>/dev/null
/gnu/store/8yhxdbyjvx2xwynpqqcrj9ilksd2pb01-python2-scipy-0.16.0.drv
$ guix gc --references 
/gnu/store/8yhxdbyjvx2xwynpqqcrj9ilksd2pb01-python2-scipy-0.16.0.drv | grep 
python2-matplotlib
/gnu/store/07zr2pqg61b742czb2aqyisml2i90r4a-python2-matplotlib-1.4.3.drv
--8<---cut here---end--->8---

This will trigger rebuilds (but with an identical result) because in
manually-written variants we would use “python2-foo” as the label of
inputs, whereas the automatic transformations keeps the original
“python-foo” label.

What do people think?

I can apply this patch of the approach sounds good to you.  I think we
should probably do one commit per rewrite for clarity.

We should probably start with the lowest level, like python2-pycairo and
python2-pygobject and even python itself, because if we fix them then
some of the higher-level stuff won’t even need their own
‘python2-variant’ property.  For instance, if python, pycairo, and
pygobject have their ‘python2-variant’ set, then we no longer need this:

--8<---cut here---start->8---
(define-public python2-matplotlib
  (let ((matplotlib (package-with-python2 %python-matplotlib)))
(package (inherit matplotlib)
  ;; Make sure to use special packages for Python 2 instead
  ;; of those automatically rewritten by package-with-python2.
  (propagated-inputs
   `(("python2-pycairo" ,python2-pycairo)
 ("python2-pygobject-2" ,python2-pygobject-2)
 ("python2-tkinter" ,python-2 "tk")
 ,@(fold alist-delete (package-propagated-inputs matplotlib)
 '("python-pycairo" "python-pygobject" "python-tkinter")))
--8<---cut here---end--->8---

… and as a consequence, we don’t need a ‘python2-variant’ in
‘python-matplotlib’.

Does that make sense?  Any takers?  (This can be done incrementally.)

Thanks,
Ludo’.

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 48f65b5..b43f539 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -2913,7 +2913,7 @@ is designed to have a low barrier to entry.")
 (define-public python2-rq
   (package-with-python2 python-rq))
 
-(define-public python-cython
+(define %python-cython
   (package
 (name "python-cython")
 (version "0.23.4")
@@ -2946,8 +2946,13 @@ programming language and the extended Cython programming language.  It makes
 writing C extensions for Python as easy as Python itself.")
 (license asl2.0)))
 
+(define-public python-cython
+  (package
+(inherit %python-cython)
+(properties `((python2-variant . ,(delay python2-cython))
+
 (define-public python2-cython
-  (package (inherit (package-with-python2 python-cython))
+  (package (inherit (package-with-python2 %python-cython))
 (name "python2-cython")
 (inputs
  `(("python-2" ,python-2) ; this is not automatically changed
@@ -3117,13 +3122,7 @@ association studies (GWAS) on extremely large data sets.")
   ,phases)))
 
 (define-public python2-numpy
-  (let ((numpy (package-with-python2 python-numpy)))
-(package (inherit numpy)
-  ;; Make sure we use exactly PYTHON2-MATPLOTLIB, which is customized for
-  ;; Python 2.
-  (inputs `(("python2-matplotlib" ,python2-matplotlib)
-,@(alist-delete "python-matplotlib"
-(package-inputs numpy)))
+  (package-with-python2 python-numpy))
 
 (define-public python-pyparsing
   (package
@@ -3247,7 +3246,7 @@ transcendental functions).")
  ,@(alist-delete "python-numpy"
  (package-propagated-inputs numexpr)))
 
-(define-public python-matplotlib
+(define %python-matplotlib
   (package
 (name "python-matplotlib")
 (version "1.4.3")
@@ -3323,7 +3322,7 @@ transcendental functions).")
   (lambda (port)
 (format port "[directories]~%
 basedirlist = ~a,~a~%
-[rc_options]~%
+ [rc_options]~%
 backend = TkAgg~%"
   

bug#22514: emacs INFO pages have "?"s instead of "'"s

2016-02-03 Thread Ludovic Courtès
myglc2  skribis:

> l...@gnu.org (Ludovic Courtès) writes:
>
>> retitle 22514 Missing environment variables when logging in via SSH
>> merge 22513 22175
>> thanks
>>
>> myglc2  skribis:
>>
>>> In emacs INFO pages, single quotes "'" appear as question marks "?" and
>>> 'echo $LANG' returns a blank line.
>>>
>>> I am running guixSD on a headless server & logging in via the iTerm2
>>> terminal emulator running on Max OS X... e.g. 'ssh' & 'emacs -nw'
>>
>> This bug is due to , which appears to be
>> fixed by the patch below (I tested it in a VM.)
>>
>> Could you confirm that it works for you?
>
> Yes, that fixes it here. Thank you.

Great, thanks for testing!

Pushed as 2a5f0db, closing the bug now.

Ludo’.