Re: [PATCHES] Add wicd and wicd-service

2015-03-09 Thread Ludovic Courtès
"白い熊 @相撲道"  skribis:

> On 2015年3月9日 3:04:55 CET, Mark H Weaver  wrote:
>>> When running `sudo guix system reconfigure /etc/sysconfig.scm' I get:
>>
>>>
>>> guix system: error: failed to load operating system file
>>'/etc/sysconfig.scm':
>>> ERROR: no code for module (gnu packages wicd)
>>>
>>> This after a `guix pull'.
>>>
>>> What could be the problem?
>>
>>"guix pull" puts the updates in $HOME/.config/guix/latest, so it will
>>only affect calls to 'guix' by the user who ran "guix pull".  When you
>>run 'guix' as some other user (root in this case), then it won't see
>>those updates.
>>
>>So I guess you should run "sudo guix pull" and then try again.
>
> OK, did this, was able to reconfigure the system then and now I get a kernel 
> panic on boot, same issue as in 
> http://lists.gnu.org/archive/html/guix-devel/2015-02/msg00757.html

If you choose one of the previous configurations in the GRUB menu, does
it boot?

This might be due to a failure to mount the root file system, for
instance due to a missing module in the initrd.  Would be good if you
could check in the running system what modules are used for the root
device.

Once you’ve identified the problem, we must also arrange for the boot
code to provide better error handling.

Thanks,
Ludo’.



Re: [PATCH] gnu: Add rxvt-unicode.

2015-03-09 Thread Ludovic Courtès
Axel  skribis:

> From 0619a0bcfb0a094c534ec49931ac5eb299774780 Mon Sep 17 00:00:00 2001
> From: "Alexander I.Grafov (Axel)" 
> Date: Mon, 9 Mar 2015 05:03:39 +0300
> Subject: [PATCH] gnu: Add rxvt-unicode.
>
> * gnu/packages/xorg.scm (rxvt-unicode): New variable.

Applied with minor changes:

  • moved to xdisorg.scm since it’s not part of Xorg proper;

  • changed license to gpl3+ since source file headers have the “or any
later version” wording;

  • ensured there were two spaces after sentences in ‘description’, as
reported by ‘guix lint’.

Thank you!

Ludo’.



Re: zsh and fish missed in /etc/shells?

2015-03-09 Thread Ludovic Courtès
Axel  skribis:

> Could we append /etc/shells with `zsh` or `fish` paths after these
> shells installed in the system?

Sure!  Would you like to submit a patch?  This is in gnu/system.scm.

> And I think these shells should be linked to
> /run/current-system/profile/bin/ as `bash` does.

To do that, all you need to do is to add them to the ‘packages’ field of
the ‘operating-system’ declaration:

  (operating-system
;; ...
(packages (cons* fish zsh %base-packages)))

Thanks,
Ludo’.



Re: ccall mechanism in Julia

2015-03-09 Thread Ludovic Courtès
I think you want to things:

  1. That the libraries that Julia requires are automatically resolved
 to those that were available at build time.  The static map you
 propose is the right thing for that, as Andreas notes.

  2. That any other libraries users may want to load is search for using
 the normal dynamic linker mechanism–essentially LD_LIBRARY_PATH in
 our case.

In Guile, ‘dynamic-link’ is essentially a wrapper around lt_dlopen,
itself a wrapper around dlopen, so LTDL_LIBRARY_PATH and LD_LIBRARY_PATH
are honored (and if libc is configured with ldconfig support, then
/etc/ld*.conf are honored as well.)  This addresses #2.

In Guile applications, such as Guix, we hard-code the absolute path to
libraries that are dlopened, as is the case with libgcrypt in (guix
config) (specifically, see the recipe for Guix in (gnu packages
package-management).)

Yet, Guile knows where to find its own extensions, such as
guile-readline.  For that it has ‘load-extension’, which is sort-of like
‘dynamic-link’ except that it first searches $libdir (roughly.)  That
addresses #1.

HTH!

Ludo’.



Re: [PATCHES] Various

2015-03-09 Thread Ludovic Courtès
taylanbayi...@gmail.com (Taylan Ulrich "Bayırlı/Kammer") skribis:

> Tracking the dependency DAG of mplayer2 lead to a big series of patches.
> These are the fairly simple first 21 out of a total 25.  I will push
> them in let's say two days if nobody has comments.
>
> 5 of the patches do something else than adding a package:
>
> - openal has been moved from games to audio,
>
> - freeglut now propagates input glu,
>
> - cdio had a misleading description claiming it includes pycdio and
>   libcdio-paranoia, when it doesn't; it's now fixed,
>
> - ffmpeg got three more optional inputs that were already packaged,
>
> - ffmpeg now builds with libavresample support.
>
> Moreover, a handful of the package-adding patches also add the added
> package as an additional optional input to ffmpeg.

>From a quick glance, this all looks reasonable to me.  Please run
‘make clean-go && make’ to make sure the shuffling didn’t introduce any
issue, just in case, and check that the new packages pass ‘guix lint’ if
you haven’t already.

Thank you for all this work!

Ludo’.



Re: Website implementation

2015-03-09 Thread Ludovic Courtès
David Thompson  skribis:

> Luis Felipe López Acevedo  writes:

[...]

>>  - Skribilo 
>
> I haven't used Skribilo enough to know if it should be used for this
> purpose.  Ludo?

The “Example” section of the web page can give you a feel of what it’s
like.  Basically, you write a ‘document’ form:

  (document :title [My Stuff]

(chapter :title [Foo]
  (p [This is some text.])))

Then run:

  skribilo -t html -o foo.html foo.skb

And you’re done.

Then there are “customs” that can be set to specify whether to use
separate HTML pages for chapters, what CSS file to use, etc.

> Lisps have built-in templating via quasiqoute, so you can do any
> transformations you'd like on the resulting s-expression.  SXML is a
> popular way of writing XML/HTML templates in Lisp.  See guix-web for
> examples. [1]

Another simple example is the build-aux/list-packages.scm program in the
Guix source tree, which is used to generate
.

HTH,
Ludo’.



Re: 01/01: gnu: ncmpcpp: Enable taglib support.

2015-03-09 Thread Paul van der Walt

On 2015-03-08 at 22:30, quoth Ludovic Courtès:
>> +   ("taglib" ,taglib)))
>
> ‘taglib’ should go to a new ‘inputs’ field, not to ‘native-inputs’ (the
> distinction between the two is for when cross-compiling: ‘native-inputs’
> are things that need to be run on the machine that compiles, whereas
> ‘inputs’ is code to run on the target machine.)
>
> Could you adjust accordingly?

Argh, of course you're right -- that was purely me having a fuzzy
lack-of-attention moment... Sorry about that, correcting now.

p.



[PATCH] gnu: ncmpcpp: Move taglib from native-inputs.

2015-03-09 Thread Paul van der Walt
* gnu/packages/mpd.scm (ncmpcpp): Fixup badly-placed taglib input.
---
 gnu/packages/mpd.scm | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/mpd.scm b/gnu/packages/mpd.scm
index 2f9ad72..f89d3ed 100644
--- a/gnu/packages/mpd.scm
+++ b/gnu/packages/mpd.scm
@@ -191,13 +191,13 @@ terminal using ncurses.")
 (inputs `(("libmpdclient" ,libmpdclient)
   ("boost"  ,boost)
   ("readline" ,readline)
-  ("ncurses" ,ncurses)))
+  ("ncurses" ,ncurses)
+  ("taglib" ,taglib)))
 (native-inputs
  `(("pkg-config" ,pkg-config)
("automake" ,automake)
("autoconf" ,autoconf)
-   ("libtool" ,libtool)
-   ("taglib" ,taglib)))
+   ("libtool" ,libtool)))
 (arguments
  '(#:configure-flags
'("BOOST_LIB_SUFFIX=" "--with-taglib")
-- 
2.3.1




[PATCH] Add openlibm.

2015-03-09 Thread Ricardo Wurmus
>From 636e19fd0649cf18264dde64f76449f6b5d8e70c Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus 
Date: Mon, 9 Mar 2015 11:07:13 +0100
Subject: [PATCH] gnu: Add openlibm.

* gnu/packages/maths.scm (openlibm): New variable.
---
 gnu/packages/maths.scm | 43 +++
 1 file changed, 43 insertions(+)

diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 231206c..fe2543d 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -991,6 +991,49 @@ based on transforming an expression into a bytecode and precalculating
 constant parts of it.")
 (license license:expat)))
 
+(define-public openlibm
+  (package
+(name "openlibm")
+(version "0.4.1")
+(source
+ (origin
+   (method url-fetch)
+   (uri (string-append "https://github.com/JuliaLang/openlibm/archive/v";
+   version ".tar.gz"))
+   (file-name (string-append name "-" version ".tar.gz"))
+   (sha256
+(base32
+ "0cwqqqlblj3kzp9aq1wnpfs1fl0qd1wp1xzm5shb09w06i4rh9nn"
+(build-system gnu-build-system)
+(arguments
+ `(#:make-flags
+   (list (string-append "prefix=" (assoc-ref %outputs "out")))
+   #:phases
+   ;; no configure script
+   (alist-delete 'configure %standard-phases)
+   #:tests? #f)) ;the tests are part of the default target
+(home-page "http://openlibm.org/";)
+(synopsis "System-independent, portable libm implementation")
+(description
+ "OpenLibm is an effort to have a high quality, portable, standalone C
+mathematical library (libm).  It can be used standalone in applications and
+programming language implementations.  The project was born out of a need to
+have a good libm for the Julia programming langage that worked consistently
+across compilers and operating systems, and in 32-bit and 64-bit
+environments.")
+;; From LICENSE.md:
+;;   "The OpenLibm code derives from the FreeBSD msun and OpenBSD libm
+;; implementations, which in turn derives from FDLIBM 5.3. As a result, it
+;; has a number of fixes and updates that have accumulated over the years
+;; in msun, and also optimized assembly versions of many functions. These
+;; improvements are provided under the BSD and ISC licenses. The msun
+;; library also includes work placed under the public domain, which is
+;; noted in the individual files. Further work on making a standalone
+;; OpenLibm library from msun, as part of the Julia project is covered
+;; under the MIT license. The test files, test-double.c and test-float.c
+;; are under the LGPL."
+(license (list license:expat license:isc license:bsd-2 license:lgpl2.1+
+
 (define-public atlas
   (package
 (name "atlas")
-- 
2.1.0




[PATCH] Add openspecfun.

2015-03-09 Thread Ricardo Wurmus
>From e9116312279d1ad626c0a64001ce44ec47140fc4 Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus 
Date: Mon, 9 Mar 2015 11:27:52 +0100
Subject: [PATCH] gnu: Add openspecfun.

* gnu/packages/maths.scm (openspecfun): New variable.
---
 gnu/packages/maths.scm | 37 +
 1 file changed, 37 insertions(+)

diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index fe2543d..de0 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -1034,6 +1034,43 @@ environments.")
 ;; are under the LGPL."
 (license (list license:expat license:isc license:bsd-2 license:lgpl2.1+
 
+(define-public openspecfun
+  (package
+(name "openspecfun")
+(version "0.4")
+(source
+ (origin
+   (method url-fetch)
+   (uri (string-append "https://github.com/JuliaLang/openspecfun/archive/v";
+   version ".tar.gz"))
+   (file-name (string-append name "-" version ".tar.gz"))
+   (sha256
+(base32
+ "0nsa3jjmlhcqkw5ba5ypbn3n0c8b6lc22zzlxnmxkxi9shhdx65z"
+(build-system gnu-build-system)
+(arguments
+ '(#:tests? #f  ;no "check" target
+   #:make-flags
+   (list (string-append "prefix=" (assoc-ref %outputs "out")))
+   ;; no configure script
+   #:phases (alist-delete 'configure %standard-phases)))
+(inputs
+ `(("fortran" ,gfortran-4.8)))
+(home-page "https://github.com/JuliaLang/openspecfun";)
+(synopsis "Collection of special mathematical functions")
+(description
+ "Openspecfun provides AMOS and Faddeeva.  AMOS (from Netlib) is a
+portable package for Bessel Functions of a Complex Argument and Nonnegative
+Order; it contains subroutines for computing Bessel functions and Airy
+functions.  Faddeeva allows computing the various error functions of arbitrary
+complex arguments (Faddeeva function, error function, complementary error
+function, scaled complementary error function, imaginary error function, and
+Dawson function); given these, one can also easily compute Voigt functions,
+Fresnel integrals, and similar related functions as well.")
+;; Faddeeva is released under the Expat license; AMOS is included as
+;; public domain software.
+(license (list license:expat license:public-domain
+
 (define-public atlas
   (package
 (name "atlas")
-- 
2.1.0




Gluglug X200 hangs on boot after `# guix system reconfigure /etc/sysconfig.scm', right after starting dmd

2015-03-09 Thread 白い熊
I've installed GuixSD on the Gluglug X200 without a problem, using instructions 
for the X60. [1]

Did `# guix pull' and reconfigured the system to enable the wicd service. [2]

However on the Gluglug X200 the system freezes upon reboot with a kernel panic 
if “(wicd-service)” is included in services in sysconfig.scm, same symptoms 
upon boot crash as another user has experienced with the X200. [3]

The current kernel is 3.18.9.

If sysconfig.scm contains: 

(use modules (gnu))
(use-service-modules xorg networking dbus avahi)
(use-package-modules avahi wicd)
...
(services (cons* (slim-service)
 (dbus-service (list wicd))
 (dhcp-client-service)
 (avahi-service)
 %base-services))

the system boots no problem after reconfigure. However wicd can't be started 
even with the dbus-enable hack [4], as the “wicd-service” is logically not 
present, and thus “sudo deco enable wicd” fails with “No service at all 
providing wicd.”

Now when just “(wicd-service)” is added to services, this being the only change 
compared with the above, the system will hang on boot.

There are no error messages on boot up to dmd start. Then it fails with:

setting up setuid programs in '/run/setuid-programs'...
making '/gnu/store/h5s1apxpmg8cgdwj9x3yzyxj8f6zizzr-system' the current 
system...
[2.915986] random: nonblocking pool is initialized
Service dmd has been started.
Assertion (null? (lookup-services (canonical-name new))) failed.
assertion-failed()
[4.706625] Kernel panic - not syncing: Attempted to kill init! 
exitcode=0x0100
[4.706625]
[4.708661] CPU: 1 PID: 1 Comm: dmd Tainted: G I3.18.9-gnu #1
[4.709216] Hardware name: LENOVO 7459ED2/7459ED2, BIOS CBET4000 4.0 
12/31/2014
[4.709216]  88023310f100 880234097e28 8175e8cb 
542a
[4.709216]  81a7aad0 880234097ea8 817599be 
88023414
[4.709216]  0010 880234097eb8 880234097e58 
81c5ea80
[4.709216] Call Trace:
[4.709216]  [] dump_stack+0x46/0x58
[4.709216]  [] panic+0xc1/0x1f5
[4.709216]  [] do_exit+0xa67/0xa70
[4.709216]  [] ? wake_up_state+0x10/0x20
[4.709216]  [] ? signal_wake_up_state+0x22/0x40
[4.709216]  [] do_group_exit+0x3f/0xa0
[4.709216]  [] SyS_exit_group+0x14/0x20
[4.709216]  [] system_call_fastpath+0x16/0x1b
[4.709216] Kernel Offset: 0x0 from 0x8100 (relocation range: 
0x8000-0xbfff)
[4.709216] ---[ end Kernel panic - not syncing: Attempted to kill init! 
exitcode=0x0100
[4.709216]

I'll be much obliged for help in getting wicd working on the Gluglug X200. 

Best regards, 
--
白い熊 @相撲道

[1] http://glean.eu/guix-gluglug.html
[2] http://lists.gnu.org/archive/html/guix-devel/2015-03/msg00250.html
[3] http://lists.gnu.org/archive/html/guix-devel/2015-02/msg00757.html
[4] http://lists.gnu.org/archive/html/guix-devel/2015-02/msg00338.html



Re: Gluglug X200 hangs on boot after `# guix system reconfigure /etc/sysconfig.scm', right after starting dmd

2015-03-09 Thread Daniel Pimentel

On 2015-03-09 07:46, 白い熊 @相撲道 wrote:

I've installed GuixSD on the Gluglug X200 without a problem, using
instructions for the X60. [1]

Did `# guix pull' and reconfigured the system to enable the wicd 
service. [2]


However on the Gluglug X200 the system freezes upon reboot with a
kernel panic if “(wicd-service)” is included in services in
sysconfig.scm, same symptoms upon boot crash as another user has
experienced with the X200. [3]

The current kernel is 3.18.9.

If sysconfig.scm contains:

(use modules (gnu))
(use-service-modules xorg networking dbus avahi)
(use-package-modules avahi wicd)
...
(services (cons* (slim-service)
 (dbus-service (list wicd))
 (dhcp-client-service)
 (avahi-service)
 %base-services))

the system boots no problem after reconfigure. However wicd can't be
started even with the dbus-enable hack [4], as the “wicd-service” is
logically not present, and thus “sudo deco enable wicd” fails with “No
service at all providing wicd.”

Now when just “(wicd-service)” is added to services, this being the
only change compared with the above, the system will hang on boot.

There are no error messages on boot up to dmd start. Then it fails 
with:


setting up setuid programs in '/run/setuid-programs'...
making '/gnu/store/h5s1apxpmg8cgdwj9x3yzyxj8f6zizzr-system' the
current system...
[2.915986] random: nonblocking pool is initialized
Service dmd has been started.
Assertion (null? (lookup-services (canonical-name new))) failed.
assertion-failed()
[4.706625] Kernel panic - not syncing: Attempted to kill init!
exitcode=0x0100
[4.706625]
[4.708661] CPU: 1 PID: 1 Comm: dmd Tainted: G I
3.18.9-gnu #1

[4.709216] Hardware name: LENOVO 7459ED2/7459ED2, BIOS CBET4000
4.0 12/31/2014
[4.709216]  88023310f100 880234097e28 8175e8cb
542a
[4.709216]  81a7aad0 880234097ea8 817599be
88023414
[4.709216]  0010 880234097eb8 880234097e58
81c5ea80
[4.709216] Call Trace:
[4.709216]  [] dump_stack+0x46/0x58
[4.709216]  [] panic+0xc1/0x1f5
[4.709216]  [] do_exit+0xa67/0xa70
[4.709216]  [] ? wake_up_state+0x10/0x20
[4.709216]  [] ? signal_wake_up_state+0x22/0x40
[4.709216]  [] do_group_exit+0x3f/0xa0
[4.709216]  [] SyS_exit_group+0x14/0x20
[4.709216]  [] system_call_fastpath+0x16/0x1b
[4.709216] Kernel Offset: 0x0 from 0x8100 (relocation
range: 0x8000-0xbfff)
[4.709216] ---[ end Kernel panic - not syncing: Attempted to kill
init! exitcode=0x0100
[4.709216]

I'll be much obliged for help in getting wicd working on the Gluglug 
X200.


Best regards,
--
白い熊 @相撲道

[1] http://glean.eu/guix-gluglug.html
[2] http://lists.gnu.org/archive/html/guix-devel/2015-03/msg00250.html
[3] http://lists.gnu.org/archive/html/guix-devel/2015-02/msg00757.html
[4] http://lists.gnu.org/archive/html/guix-devel/2015-02/msg00338.html
I have a similar error on x200 tablet, but there's kernel panic after 
upgrade system, probalily was a configuration in my system. I'll 
debuging for solution and help the community.

--
Daniel Pimentel (d4n1)



Re: Gluglug X200 hangs on boot after `# guix system reconfigure /etc/sysconfig.scm', right after starting dmd

2015-03-09 Thread 白い熊
On 2015年3月9日 9:50:28 CET, l...@gnu.org wrote:
>"白い熊 @相撲道"  skribis:
>
>> OK, did this, was able to reconfigure the system then and now I get a
>kernel panic on boot, same issue as in
>http://lists.gnu.org/archive/html/guix-devel/2015-02/msg00757.html
>
>If you choose one of the previous configurations in the GRUB menu, does
>it boot?
>
>This might be due to a failure to mount the root file system, for
>instance due to a missing module in the initrd.  Would be good if you
>could check in the running system what modules are used for the root
>device.

I think it mounts root. It seems to me to be associated with the assertion 
failed: 

On 2015年3月9日 11:46:11 CET, "白い熊 @相撲道"  wrote:
>Service dmd has been started.
>Assertion (null? (lookup-services (canonical-name new))) failed.
>assertion-failed()
>[4.706625] Kernel panic - not syncing: Attempted to kill init!

Anyhow without “wicd-service” it boots fine and `lsmod': 

Module  Size  Used by
snd_hda_codec_conexant23064  1 
snd_hda_codec_generic68898  1 snd_hda_codec_conexant
arc4   12608  2 
ath9k 151646  0 
mac80211  662232  1 ath9k
iTCO_wdt   13480  0 
iTCO_vendor_support13718  1 iTCO_wdt
snd_hda_intel  30569  0 
ath9k_common   25638  1 ath9k
snd_hda_controller 31921  1 snd_hda_intel
snd_hda_codec 139428  4 
snd_hda_codec_conexant,snd_hda_codec_generic,snd_hda_intel,snd_hda_controller
ath9k_hw  450978  2 ath9k_common,ath9k
coretemp   13441  0 
snd_hwdep  17698  1 snd_hda_codec
snd_pcm   105335  3 snd_hda_codec,snd_hda_intel,snd_hda_controller
thinkpad_acpi  80930  0 
ath29006  3 ath9k_common,ath9k,ath9k_hw
kvm_intel 148271  0 
cfg80211  493057  4 ath,ath9k_common,ath9k,mac80211
i915  989654  2 
kvm   462421  1 kvm_intel
snd_timer  29507  1 snd_pcm
snd83564  8 
snd_hwdep,snd_timer,snd_hda_codec_conexant,snd_pcm,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel,thinkpad_acpi
uvcvideo   81117  0 
soundcore  15047  2 snd,snd_hda_codec
psmouse   111537  0 
videobuf2_core 51175  1 uvcvideo
drm_kms_helper 98431  1 i915
v4l2_common15681  1 videobuf2_core
drm   317496  4 i915,drm_kms_helper
pcspkr 12718  0 
lpc_ich21093  0 
serio_raw  13483  0 
e1000e226556  0 
i2c_i801   22454  0 
nvram  14411  1 thinkpad_acpi
shpchp 37047  0 
videodev  158681  3 uvcvideo,v4l2_common,videobuf2_core
btusb  32385  0 
media  21903  2 uvcvideo,videodev
videobuf2_vmalloc  13216  1 uvcvideo
i2c_algo_bit   13413  1 i915
videobuf2_memops   13362  1 videobuf2_vmalloc
bluetooth 457848  2 btusb
ptp19395  1 e1000e
video  20205  1 i915
pps_core   19382  1 ptp
mac_hid13227  0 
usbhid 52615  0 
hid   110066  1 usbhid
usbkbd 12926  0 
uas22414  0 
usb_storage66545  1 uas
isci  137637  0 
libsas 83521  1 isci
scsi_transport_sas 41034  2 isci,libsas
pata_atiixp13279  0 
pata_acpi  13053  0 
ahci   34019  2 
libahci32190  1 ahci

--
白い熊 @相撲道



Re: [PATCHES] Add recode, enca.

2015-03-09 Thread Taylan Ulrich Bayırlı/Kammer
l...@gnu.org (Ludovic Courtès) writes:

>> You could set LD_LIBRARY_PATH to "." (or the subdirectory where the
>> library can be found) before running the tests.
>
> This should be ‘LIBRARY_PATH’, not ‘LD_LIBRARY_PATH’, but yes, good
> idea.

I found out that I can patch the setup.py file to include the necessary
library dir in its instructions.  Updated patch is below.

Tell me if this should go to a 'snippet' (or patch) in the 'source'
instead (where it would patch setup.py.in).  I'm not sure if the need to
specify the ".libs" subdirectory is Guix-specific or not.

>From 8bd6b2b327820a15292097c9deeabcedfb9346ac Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Taylan=20Ulrich=20Bay=C4=B1rl=C4=B1/Kammer?=
 
Date: Wed, 4 Mar 2015 22:34:13 +0100
Subject: [PATCH 22/25] gnu: Add recode.

* gnu/packages/textutils.scm: New file.
* gnu-system.am (GNU_SYSTEM_MODULES): Add it.
---
 gnu-system.am  |  1 +
 gnu/packages/textutils.scm | 60 ++
 2 files changed, 61 insertions(+)
 create mode 100644 gnu/packages/textutils.scm

diff --git a/gnu-system.am b/gnu-system.am
index 2474c1f..4119f46 100644
--- a/gnu-system.am
+++ b/gnu-system.am
@@ -279,6 +279,7 @@ GNU_SYSTEM_MODULES =\
   gnu/packages/telephony.scm			\
   gnu/packages/texinfo.scm			\
   gnu/packages/texlive.scm			\
+  gnu/packages/textutils.scm			\
   gnu/packages/time.scm\
   gnu/packages/tmux.scm\
   gnu/packages/tor.scm\
diff --git a/gnu/packages/textutils.scm b/gnu/packages/textutils.scm
new file mode 100644
index 000..6bc7ff4
--- /dev/null
+++ b/gnu/packages/textutils.scm
@@ -0,0 +1,60 @@
+;;; GNU Guix --- Functional package management for GNU
+;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer 
+;;;
+;;; 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, but
+;;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+;;; GNU General Public License for more details.
+;;;
+;;; You should have received a copy of the GNU General Public License
+;;; along with GNU Guix.  If not, see .
+
+(define-module (gnu packages textutils)
+  #:use-module ((guix licenses) #:prefix license:)
+  #:use-module (guix packages)
+  #:use-module (guix download)
+  #:use-module (guix git-download)
+  #:use-module (guix build-system gnu)
+  #:use-module (gnu packages python))
+
+(define-public recode
+  (package
+(name "recode")
+;; Last beta release (3.7-beta2) is from 2008; last commit from Feb 2014.
+;; So we use that commit instead.
+(version "3.7.0.201402")
+(source
+ (origin
+   (method git-fetch)
+   (uri (git-reference
+ (url "https://github.com/pinard/Recode.git";)
+ (commit "2d7092a194fc0e9449717a8048c8d8e26c18")))
+   (sha256
+(base32 "1wssv8z6g3ryrw33sksz4rjhlnhgvvdqszw1ggl4rcwks34n86zm"
+(build-system gnu-build-system)
+(native-inputs `(("python" ,python-2)))
+(arguments
+ '(#:phases
+   (alist-cons-before
+'check 'fix-setup-py
+(lambda _
+  (substitute* "tests/setup.py"
+(("([[:space:]]*)include_dirs=.*" all space)
+ (string-append all space "library_dirs=['../src/.libs'],\n"
+%standard-phases)))
+(home-page "https://github.com/pinard/Recode";)
+(synopsis "Text encoding converter")
+(description "The Recode library converts files between character sets and
+usages.  It recognises or produces over 200 different character sets (or about
+300 if combined with an iconv library) and transliterates files between almost
+any pair.  When exact transliteration are not possible, it gets rid of
+offending characters or falls back on approximations.  The recode program is a
+handy front-end to the library.")
+(license (list license:gpl2+ license:lgpl2.1+
-- 
2.2.1



Re: [GNUnet-developers] Guix + GNUnet at GSoC?

2015-03-09 Thread Sree Harsha Totakura
On 03/05/2015 11:33 PM, Ludovic Courtès wrote:
> Who would like to (co-)mentor it?

Hi!

I and Bart would like to co-mentor this project.

Should I write to summer-of-c...@gnu.org for including this project in
the list of ideas?

Regards,
Sree



Installing system with packages, sysconfig.scm syntax

2015-03-09 Thread 白い熊
I'm trying to understand the sysconfig.scm syntax to specify when clean 
installing the system or running “guix system reconfigure”. 

In the manual I've seen the example with Emacs. But I don't understand why 
there's: 

(use-modules (gnu)
 (gnu packages emacs)

and then in the operating-system section

(packages (cons emacs %base-packages))

Let's just say I want to reconfigure the system with packages emacs, mc, 
xmodmap, and xterm installed for user joe. What do I put in the sysconfig.scm? 
I've tried many combinations, but can't accomplish this simple task. 

I understand I can install the system with a working sysconfig.scm and then 
install the packages manually via “guix package -i” but I think they all can be 
defined in sysconfig.scm, just can't figure out how, even though I'm trying to 
get hints in the manual. Or am I wrong in this? 

Also, when installing from the USB, after booting the USB, can I “guix pull” 
and then install the system? Or do I have to first install, then boot it, then 
“guix pull”, meaning I couldn't maybe put all package definitions in the 
install sysconfig.scm, as the packages might not be available before “guix 
pull”? 


--
白い熊 @相撲道



Re: [PATCH] Add openlibm.

2015-03-09 Thread Ludovic Courtès
Ricardo Wurmus  skribis:

> From 636e19fd0649cf18264dde64f76449f6b5d8e70c Mon Sep 17 00:00:00 2001
> From: Ricardo Wurmus 
> Date: Mon, 9 Mar 2015 11:07:13 +0100
> Subject: [PATCH] gnu: Add openlibm.
>
> * gnu/packages/maths.scm (openlibm): New variable.

[...]

> +(synopsis "System-independent, portable libm implementation")

What about “Portable C mathematical library (libm)”?

> +;; From LICENSE.md:
> +;;   "The OpenLibm code derives from the FreeBSD msun and OpenBSD libm
> +;; implementations, which in turn derives from FDLIBM 5.3. As a result, 
> it
> +;; has a number of fixes and updates that have accumulated over the years
> +;; in msun, and also optimized assembly versions of many functions. These
> +;; improvements are provided under the BSD and ISC licenses. The msun
> +;; library also includes work placed under the public domain, which is
> +;; noted in the individual files. Further work on making a standalone
> +;; OpenLibm library from msun, as part of the Julia project is covered
> +;; under the MIT license. The test files, test-double.c and test-float.c
> +;; are under the LGPL."
> +(license (list license:expat license:isc license:bsd-2 
> license:lgpl2.1+

Compared to the paragraph, the list misses ‘license:x11’.

Also, it’s enough to write “See LICENSE.md for details.”  No need to
copy the whole text IMO.

OK to push with these changes.

Thank you!

Ludo’.



Re: 01/01: gnu: ncmpcpp: Enable taglib support.

2015-03-09 Thread Ludovic Courtès
Paul van der Walt  skribis:

> On 2015-03-08 at 22:30, quoth Ludovic Courtès:
>>> +   ("taglib" ,taglib)))
>>
>> ‘taglib’ should go to a new ‘inputs’ field, not to ‘native-inputs’ (the
>> distinction between the two is for when cross-compiling: ‘native-inputs’
>> are things that need to be run on the machine that compiles, whereas
>> ‘inputs’ is code to run on the target machine.)
>>
>> Could you adjust accordingly?
>
> Argh, of course you're right -- that was purely me having a fuzzy
> lack-of-attention moment... Sorry about that, correcting now.

No problem!

Paul van der Walt  skribis:

> * gnu/packages/mpd.scm (ncmpcpp): Fixup badly-placed taglib input.

Rather “Move TAGLIB from ‘native-inputs’ to ‘inputs’.”

Please push, thanks!

Ludo’.



Re: Gluglug X200 hangs on boot after `# guix system reconfigure /etc/sysconfig.scm', right after starting dmd

2015-03-09 Thread Ludovic Courtès
"白い熊 @相撲道"  skribis:

> If sysconfig.scm contains: 
>
> (use modules (gnu))
> (use-service-modules xorg networking dbus avahi)
> (use-package-modules avahi wicd)
> ...
> (services (cons* (slim-service)
>  (dbus-service (list wicd))
>  (dhcp-client-service)
>  (avahi-service)
>  %base-services))

[...]

> setting up setuid programs in '/run/setuid-programs'...
> making '/gnu/store/h5s1apxpmg8cgdwj9x3yzyxj8f6zizzr-system' the current 
> system...
> [2.915986] random: nonblocking pool is initialized
> Service dmd has been started.
> Assertion (null? (lookup-services (canonical-name new))) failed.

This is the problem: the configuration specifies two services providing
the same symbol, ‘networking.’  This causes a dmd error that is
gracelessly handled, at boot time.

The solution is twofold: first, keep either ‘dhcp-client-service’ or
‘wicd-service’ in the configuration, but not both.  That should solve
the problem.

Second, I’ll improve service handling so that such errors are reported
at configuration time.

dmd should also have improved error handling, though I’m not sure
exactly what it should do here.

Thanks for the detailed report!

Ludo’.



Re: [PATCHES] Add recode, enca.

2015-03-09 Thread Ludovic Courtès
taylanbayi...@gmail.com (Taylan Ulrich "Bayırlı/Kammer") skribis:

> l...@gnu.org (Ludovic Courtès) writes:
>
>>> You could set LD_LIBRARY_PATH to "." (or the subdirectory where the
>>> library can be found) before running the tests.
>>
>> This should be ‘LIBRARY_PATH’, not ‘LD_LIBRARY_PATH’, but yes, good
>> idea.
>
> I found out that I can patch the setup.py file to include the necessary
> library dir in its instructions.  Updated patch is below.
>
> Tell me if this should go to a 'snippet' (or patch) in the 'source'
> instead (where it would patch setup.py.in).

The way you did it looks fine to me.

> I'm not sure if the need to specify the ".libs" subdirectory is
> Guix-specific or not.

I don’t think so (the package uses libtool, right?)  This may be a
genuine upstream bug, which could go unnoticed when the user happens to
have a librecode.so in the loader’s search path.

> From 8bd6b2b327820a15292097c9deeabcedfb9346ac Mon Sep 17 00:00:00 2001
> From: =?UTF-8?q?Taylan=20Ulrich=20Bay=C4=B1rl=C4=B1/Kammer?=
>  
> Date: Wed, 4 Mar 2015 22:34:13 +0100
> Subject: [PATCH 22/25] gnu: Add recode.
>
> * gnu/packages/textutils.scm: New file.
> * gnu-system.am (GNU_SYSTEM_MODULES): Add it.

[...]

> +(license (list license:gpl2+ license:lgpl2.1+

Please add a comment telling if this is an ‘or’ or an ‘and’.

Thanks!

Ludo’.



Re: [PATCH] Add Lilypond.

2015-03-09 Thread Ricardo Wurmus

Eric Bavier writes:

> I think lilypond deserves its own module (gnu packages lilypond).  What 
> do others think?

I do agree.  I didn't like to put it in the audio module, because it
doesn't really have much in common with the other packages there.  I
would prefer to move it to another module, if not into a module of its
own.

~~ Ricardo




[PATCH] gnu: Add enlightenment.

2015-03-09 Thread Tomáš Čech
* gnu/packages/enlightenment.scm (enlightenment): New variable.
---
 gnu/packages/enlightenment.scm | 36 
 1 file changed, 36 insertions(+)

diff --git a/gnu/packages/enlightenment.scm b/gnu/packages/enlightenment.scm
index 499ea24..c0131f2 100644
--- a/gnu/packages/enlightenment.scm
+++ b/gnu/packages/enlightenment.scm
@@ -28,6 +28,7 @@
   #:use-module (gnu packages fontutils)
   #:use-module (gnu packages fribidi)
   #:use-module (gnu packages game-development)
+  #:use-module (gnu packages gettext)
   #:use-module (gnu packages ghostscript)
   #:use-module (gnu packages gl)
   #:use-module (gnu packages glib)
@@ -234,3 +235,38 @@ based on Enlightenment Foundation Libraries.  It supports 
multiple tabs, UTF-8,
 URL and local path detection, themes, popup based content viewer for non-text
 contents and more.")
 (license license:bsd-2)))
+
+(define-public enlightenment
+  (package
+(name "enlightenment")
+(version "0.19.4")
+(source (origin
+  (method url-fetch)
+  (uri
+   (string-append
+
"http://download.enlightenment.org/rel/apps/enlightenment/enlightenment-";
+version ".tar.gz"))
+  (sha256
+   (base32 
"01pg3ng4m3vmwzzivlssdmvhf72bsvcmm3xwf45849cibllaib8v"
+(build-system gnu-build-system)
+(native-inputs
+ `(("pkg-config" ,pkg-config)))
+(inputs
+ `(("alsa-lib" ,alsa-lib)
+   ("dbus" ,dbus)
+   ("freetype" ,freetype)
+   ("gettext" ,gnu-gettext)
+   ("libxcb" ,libxcb)
+   ("libxext" ,libxext)
+   ("linux-pam" ,linux-pam)
+   ("xcb-util-keysyms" ,xcb-util-keysyms)))
+(propagated-inputs
+ `(("efl" ,efl)
+   ("elementary" ,elementary)))
+(home-page "http://www.enlightenment.org";)
+(synopsis "Lightweight desktop environment")
+(description
+ "Resource friendly desktop environment with integrated file manager, wide
+range of configuration options, plugin system allowing to unload unused
+functionality, with support for touchscreen and suitable for embedded 
systems.")
+(license license:bsd-2)))
-- 
2.0.5




Re: [PATCH] Add Lilypond.

2015-03-09 Thread Eric Bavier

On 2015-03-08 09:12, Ricardo Wurmus wrote:

* gnu/packages/audio.scm (lilypond): New variable.


Thanks for this!  I've wanted to package lilypond for quite some time, 
but got distracted with other things after doing fontforge and dblatex 
;)


I think lilypond deserves its own module (gnu packages lilypond).  What 
do others think?






Re: [PATCH] Add Lilypond.

2015-03-09 Thread Mark H Weaver
Eric Bavier  writes:
> I think lilypond deserves its own module (gnu packages lilypond).
> What do others think?

Agreed.

Mark



Re: [PATCH] Add Lilypond.

2015-03-09 Thread Andreas Enge
On Mon, Mar 09, 2015 at 03:43:01PM -0500, Eric Bavier wrote:
> I think lilypond deserves its own module (gnu packages lilypond).  What do
> others think?

How about a name that could also accept GNU Denemo? music.scm? score.scm?

Andreas




Re: [PATCH] Add Lilypond.

2015-03-09 Thread Ricardo Wurmus

Andreas Enge writes:

> On Mon, Mar 09, 2015 at 03:43:01PM -0500, Eric Bavier wrote:
>> I think lilypond deserves its own module (gnu packages lilypond).  What do
>> others think?
>
> How about a name that could also accept GNU Denemo? music.scm? score.scm?

I would prefer music.scm, so that also GNU Solfege could find a better
home than audio.scm.

~~ Ricardo




Re: [PATCH] Add Lilypond.

2015-03-09 Thread Eric Bavier

On 2015-03-09 16:06, Ricardo Wurmus wrote:

Andreas Enge writes:


On Mon, Mar 09, 2015 at 03:43:01PM -0500, Eric Bavier wrote:
I think lilypond deserves its own module (gnu packages lilypond).  
What do

others think?


How about a name that could also accept GNU Denemo? music.scm? 
score.scm?


I would prefer music.scm, so that also GNU Solfege could find a better
home than audio.scm.


Sounds good to me.

`~Eric



Remove Windowmaker from session options in Slim

2015-03-09 Thread 白い熊


How do I remove the option to start a Windowmaker session in Slim? I just want 
ratpoison to stay there as default. 

I'm aware of the ~/.config/guix/latest/gnu/services/xorg.scm which apparently 
specifies Windowmaker as default, so could edit it. Is there a sysconfig way? 
--
白い熊 @相撲道



9x15bold xfont

2015-03-09 Thread 白い熊
I'm very fond of the 9x15bold X font for work in the terminal. On Debian 
systems it's usually in the “xfonts” package. No such package exists in Guix. I 
checked, and none of the built xorg derivations on my system have the font. 

Does some package have it? 
--
白い熊 @相撲道



Re: [PATCHES] Add recode, enca.

2015-03-09 Thread Taylan Ulrich Bayırlı/Kammer
l...@gnu.org (Ludovic Courtès) writes:

>> I'm not sure if the need to specify the ".libs" subdirectory is
>> Guix-specific or not.
>
> I don’t think so (the package uses libtool, right?)  This may be a
> genuine upstream bug, which could go unnoticed when the user happens to
> have a librecode.so in the loader’s search path.

OK, I left the patching in the build phase for now but filed a bug on
GitHub.

>> +(license (list license:gpl2+ license:lgpl2.1+
>
> Please add a comment telling if this is an ‘or’ or an ‘and’.

The reason I had listed both was that some Copyright file from Debian
claims the program is under GPL and the library under LGPL, but looking
through the sources I could see no sensible separation of program and
library source files after all, and no explicit mention of what license
applies to what other than individual GPL or LGPL headers on seemingly
arbitrary .c files, so I set the license to just gpl2+ after all.

Thanks for the review!  Will push along with all the other patches. :-)

Taylan



Incomplete first draft of my GSoC proposal

2015-03-09 Thread Rohan Prinja
Hi Guix,

PFA an incomplete first draft of my GSoC proposal for a DHCP client for
Guix and dmd. Please take a look, thank you in advance! I've tried to
conform to the GNU proposal guidelines:
http://www.gnu.org/software/soc-projects/guidelines.html

The draft is incomplete because I've left out only the detailed timeline,
which I can only complete once  the deliverables are finalised :) Right now
I have a rough idea, but I would like your help telling me if the
deliverables I have proposed are too little, or too much, or too vague, as
well as pointing out any other issues with my proposal you can spot.

Thanks again,

-Rohan
Project name


Implementing a DHCP client in Guile Scheme

Summary
---

We want to have a DHCP client written in Guile Scheme. Specifically:
1. The implementation will comply with IETF RFC 2131 [1]
2. The client will be bundled as a Guix package [2], which installs a 
command-line program similar to ISC’s dhclient (8) utility. [4,5]
3. The client code should be modular, so that some of its functions can be 
invoked from within GNU dmd’s [6] proposed event loop.
4. The client should be runnable as a dmd service, as described in the dmd 
manual [6]

Communication
-

Name: Rohan Prinja
Email: rohan.pri...@gmail.com
IRC: wenderen
Github: wenderen
Mobile: +91 96190 19345
Country of residence: India
Timezone: IST (GMT +530)
Primary Language: English

Benefits


Currently the only DHCP client implementation in the Guix package list is the 
ISC implementation, which is written in C. The aim of this project is to 
deliver a Guile Scheme implementation of a DHCP client satisfying the 
conditions outlined in the abstract. The motivation for this is that GNU dmd 
should be able to easily call DHCP library functions from its event handlers in 
response to various network events. Since dmd is written in Guile Scheme, we 
want our DHCP library to be written in Guile Scheme as well.

How users benefit: this project is related to dmd gaining an event loop so that 
it can properly handle events - including DHCP events - rather than simply 
waiting for the client. dmd performing faster and better is a win for the user.

How GNU benefits: Guix SD gains an important daemon!

Deliverables


1. A module written in Guile Scheme, implemeting RFC 2131.
2. A command-line program available as a Guix package, which calls the module's 
functions.
3. A dmd service for the DHCP client.
4. (TODO: discuss this with Ludo) Integration of the module with dmd's event 
loop.

High-level plan
---

This project involves writing a library more or less from scratch. So designing 
and discussing the structure of the library with knowledgeable community 
members is a prerequisite. I've tried to keep this task before the actual GSoC 
period, because I want to reserve the GSoC period for writing code, code review 
and committing.

I propose the following high-level timeline:

Pre-GSoC Period (before May 25)
* Environment setup, finish all background reading
* Design client library API
* Design command-line program along the lines of dhclient

GSoC Period (May 25 - Aug 9)
* Write a stubbed DHCP client module which exports skeleton functions (for 
example, a skeleton function might simply print to stdout). This will include:
-> functions for constructing and sending over a network DHCP packets 
compliant with the RFC.
-> functions that handle client logic, like transitioning between states in 
the DHCP client FSM [8].
-> functions for manipulating the local store.
* Write the command-line program and call the module's functions from within it.
* Patch dmd with a bare-bones event loop so that we can test events related to 
the DHCP client process.
* Call the module's functions from within the event loop and ensure that the 
functions are being invoked correctly.
* Fill the stubs! This involves making use of Guile Scheme's networking library 
[7] and referring to the dhclient source [4].
* Re-test the command-line program and the integration with dmd's event loop 
after the stubs are filled in.
* Create and test a dmd service for the client.

Buffer period (Aug 17 - Aug 23)
* If the event loop is implemented in parallel by some other community member, 
merge their implementation with my changes and re-test

Detailed plan + Midterm evaluation
--

TODO TODO TODO TODO TODO TODO TODO TODO TODO TODO
0. Pre GSoC period: April 27 - May 25
1. May 25 - May 31
2. June 1 - June 7
3. June 8 - June 14
4. June 15 - June 21
5. June 22 - June 28
6. June 29 - July 5
7. July 6 - July 12
8. July 13 - July 19
9. July 20 - July 26
10. July 27 - Aug 2
11. Aug 3 - Aug 9
12. Aug 10 - Aug 16
13. Aug 17 - Aug 23
TODO TODO TODO TODO TODO TODO TODO TODO TODO TODO

References
--

[1] RFC 2131: https://www.ietf.org/rfc/rfc2131.txt
[2] Guix package manager: http://www.gnu.org/s/guix
[3] List of available Guix packages: 
http://www.gnu.org/software/guix/pac

Re: 9x15bold xfont

2015-03-09 Thread Andreas Enge
On Mon, Mar 09, 2015 at 10:24:26PM +0100, 白い熊 @相撲道 wrote:
> I'm very fond of the 9x15bold X font for work in the terminal. On Debian 
> systems it's usually in the “xfonts” package. No such package exists in Guix. 
> I checked, and none of the built xorg derivations on my system have the font. 

In debian it is in xfonts-base, in the subdirectory "misc". We have various
font packages in xorg.scm. I think you are looking for font-misc-misc.

Andreas




Re: Installing system with packages, sysconfig.scm syntax

2015-03-09 Thread Ludovic Courtès
"白い熊 @相撲道"  skribis:

> I'm trying to understand the sysconfig.scm syntax to specify when clean 
> installing the system or running “guix system reconfigure”. 
>
> In the manual I've seen the example with Emacs. But I don't understand why 
> there's: 
>
> (use-modules (gnu)
>  (gnu packages emacs)
>
> and then in the operating-system section
>
> (packages (cons emacs %base-packages))
>
> Let's just say I want to reconfigure the system with packages emacs, mc, 
> xmodmap, and xterm installed for user joe. What do I put in the 
> sysconfig.scm? I've tried many combinations, but can't accomplish this simple 
> task. 

The ‘packages’ field describes packages that will be in the global
profile–i.e., /run/current-system/profile.  These are visible from every
user account.

There’s currently no way to describe how to populate a specific user’s
profile.  It would be hard to integrate with the ‘guix package -i’
approach anyway.

> Also, when installing from the USB, after booting the USB, can I “guix pull” 
> and then install the system? Or do I have to first install, then boot it, 
> then “guix pull”, meaning I couldn't maybe put all package definitions in the 
> install sysconfig.scm, as the packages might not be available before “guix 
> pull”? 

Both should work.  On the USB image, make sure to start the ‘cow-store’
service to avoid storing everything in RAM.

HTH,
Ludo’.



Re: GNU in GSOC 2015 - Application sent

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

> Here are three ideas for Guix and dmd.  Others may follow.

Here’s a couple more.


Linux container support


  GNU Guix currently supports the installation of GuixSD on virtual
  machines and physical hosts through its guix
  system command.  The goal of this project would be to add
  another installation target: containers.  A container is an
  environment that is similar to a virtual machine but without the
  overhead that comes with running a separate kernel and simulating
  hardware.  Containers are isolated on a host system through Linux's
  control groups and kernel namespaces.


Mentor: mailto:da...@gnu.org";>David Thompson



Supporting binary package distribution through GNUnet


GNU Guix provides a transparent binary/source deployment model.  A
server can claim: “hey, I have the binary for
/gnu/store/v9zic07iar8w90zcy398r745w78a7lqs-emacs-24.4!”, where the
base32 string uniquely identifies a build process.  If you trust that
server to provide genuine binaries, then you can grab them instead of
building Emacs locally.  This mechanism is called substitution.



The “traditional model” has been to have a build farm build and serve
binary packages over HTTP.  In that model, users trust the build farm to
provide authentic binaries.



The project aims to provide a practical decentralization
distribution mechanism for binary packages, using GNUnet’s networking layers.  In that
model, users would be able to automatically share binaries they have
built locally, and to install binaries built by other users.  This is
part of a broader goal of disintermediation among users,
and between users and upstream software developers.



Deliverables http://lists.gnu.org/archive/html/guix-devel/2015-03/msg00192.html";>include
 
a substituter that uses GNUnet as its back-end, and a tool to publish
build results.


Mentors:
mailto:totak...@in.tum.de";>Sree Harsha Totakura,
mailto:bart.po...@gmail.com";>Bart Polot

Thanks,
Ludo'.



Re: [GNUnet-developers] Guix + GNUnet at GSoC?

2015-03-09 Thread Ludovic Courtès
Hello!

Sree Harsha Totakura  skribis:

> I and Bart would like to co-mentor this project.

Excellent.  I’ve emailed an updated description with your names to José
and summer-of-c...@gnu.org.

Thank you!

Ludo’.



Re: [PATCH] build: ruby: Set $GEM_HOME that matches Ruby's $GEM_PATH.

2015-03-09 Thread Ludovic Courtès
David Thompson  skribis:

> Ruby's native search path for $GEM_PATH looks like
> "/lib/ruby/gems/2.2.0", where the version number at the end is formed by
> the major + minor version of our Ruby package followed a ".0", ignoring
> the patch version.  However, the Ruby build system was installing gems
> into places like "/lib/ruby/gems/2.2.1", using the patch version from
> the Ruby used when building.  Because of this, the search path suggested
> by 'guix package --search-paths' was useless.  This patch fixes that.
>
>
> From c616752342336a1018366d1293621e5a29f72587 Mon Sep 17 00:00:00 2001
> From: David Thompson 
> Date: Sat, 7 Mar 2015 18:36:13 -0500
> Subject: [PATCH] build: ruby: Set $GEM_HOME that matches Ruby's $GEM_PATH.
>
> * guix/build/ruby-build-system.scm (install): Ignore the Ruby patch version
>   when creating $GEM_HOME.

Sure, please push.

Thanks,
Ludo’.



Re: [PATCH] build: ruby: Patch executables to set necessary gem load path.

2015-03-09 Thread Ludovic Courtès
David Thompson  skribis:

> This patch addresses the issue of how to ensure that Ruby executables
> are able to load all of the additional Ruby libraries that they need in
> order to work: with a new 'patch-executables' build phase.  Instead of
> using wrap-program, I instead take advantage of the wrappers that the
> 'gem' command already creates for Ruby executables.  There's guaranteed
> to be a line in which the executable's host gem is loaded that looks
> like `gem 'foo', version`.  I simply insert a Ruby code snippet above it
> that adds all of the necessary gems to the 'Gem.path' array.

OK.

> Users of Ruby programs must still apply the $GEM_PATH suggested by 'guix
> package --search-paths' in order for the gem that the executable belongs
> to (the gem that they explicitly installed) to be found.  I think this
> is reasonable and much like how you must set the proper load paths for
> Guile programs to work.

Makes sense.

> From 614fedc2b359f123dfdf4e31eee30e7ce47e1bd2 Mon Sep 17 00:00:00 2001
> From: David Thompson 
> Date: Sat, 7 Mar 2015 18:39:52 -0500
> Subject: [PATCH] build: ruby: Patch executables to set necessary gem load
>  path.
>
> * guix/build/ruby-build-system.scm (gem-directory): New procedure.
>   (install): Deduplicate gem directory code.
>   (patch-executables): New procedure.
>   (%standard-phases): Add 'patch-executables' phase.

[...]

> +(define* (patch-executables #:key inputs outputs #:allow-other-keys)

Please add a docstring, with the rationale you gave in this message as
part of the docstring or in a comment.

OK to push with this change, thank you!

Ludo’.



Re: [PATCH] build: ruby: Patch executables to set necessary gem load path.

2015-03-09 Thread Ludovic Courtès
David Thompson  skribis:

> David Thompson  writes:
>
>> This patch addresses the issue of how to ensure that Ruby executables
>> are able to load all of the additional Ruby libraries that they need in
>> order to work: with a new 'patch-executables' build phase.  Instead of
>> using wrap-program, I instead take advantage of the wrappers that the
>> 'gem' command already creates for Ruby executables.  There's guaranteed
>> to be a line in which the executable's host gem is loaded that looks
>> like `gem 'foo', version`.  I simply insert a Ruby code snippet above it
>> that adds all of the necessary gems to the 'Gem.path' array.
>>
>> Users of Ruby programs must still apply the $GEM_PATH suggested by 'guix
>> package --search-paths' in order for the gem that the executable belongs
>> to (the gem that they explicitly installed) to be found.  I think this
>> is reasonable and much like how you must set the proper load paths for
>> Guile programs to work.
>
> I can see that this won't be enough for any application whose Ruby gem
> dependency tree is deeper than 1.  I suppose I could use the transitive
> inputs of the package, which would get everything, but that feels a bit
> ugly.  More thought needed...

I guess it could recurse into the DAG, possibly with
‘bag-transitive-inputs’ or some such?

Ludo’.



Re: [PATCH] Add tree.

2015-03-09 Thread Ludovic Courtès
Alex Sassmannshausen  skribis:

> Ludovic Courtès writes:
>
>> Similar tools (like ‘dfc’) ended up into admin.scm, though it’s not
>> perfectly right.  I think we need a module for “this kind of tool,” but
>> I’m not sure what to call it.  Ideas?
>
> I've thought about this a little more, and have come up with the
> following ideas (more specific):
>
> - cli-extras
> - cli-extra-utils
> - cli-comfort
> - cli-utils
> - cli-candy (dfc, htop, tree, all kind-a more visual versions of the
>   standard tools)
>
> That's all I got :-)
>
> Thank any of these might an improvement?

‘cli-extras’ sounds good to me.  Other opinions?

If not, I would welcome a patch that moves things there.  :-)

Thanks,
Ludo’.



Re: Gluglug X200 hangs on boot after `# guix system reconfigure /etc/sysconfig.scm', right after starting dmd

2015-03-09 Thread Ludovic Courtès
With commit 116244d, if you have, say, both ‘dhcp-client-service’ and
‘wicd-service’ in the config, you get a hard error:

  $ guix system build gnu/system/os-config.tmpl -n
  guix system: error: service 'networking' provided more than once

Thanks,
Ludo’.



Re: 9x15bold xfont

2015-03-09 Thread 白い熊


On 2015年3月9日 23:03:20 CET, Andreas Enge  wrote:
>In debian it is in xfonts-base, in the subdirectory "misc". We have
>various
>font packages in xorg.scm. I think you are looking for font-misc-misc.

Thank you, that's the package. 

However, as there's obviously no /usr/share/fonts... dir, how and where should 
I configure, so that X apps will now see the fonts os installed. 

I could probably play with fontdir in xorg.scm manually, but is that the place? 
Will it survive system reconfigures? 
- -
白い熊 @相撲道



Re: GNU in GSOC 2015 - Application sent

2015-03-09 Thread Giuseppe Scrivano
l...@gnu.org (Ludovic Courtès) writes:

> l...@gnu.org (Ludovic Courtès) skribis:
>
>> Here are three ideas for Guix and dmd.  Others may follow.
>
> Here’s a couple more.

Thanks, just added them to the page.

Regards,
Giuseppe



guix pull: error: build failed

2015-03-09 Thread 白い熊
On “guix pull” I now get: 

starting download of `/tmp/guix-file.8HWYTA' from 
`http://git.savannah.gnu.org/cgit/guix.git/snapshot/guix-master.tar.gz'...
http://git.savannah.gnu.org/.../guix-master.tar.gz  8711.8 KiB 
transferred (522. KiB/s)
unpacking 
'/gnu/store/hyyr6yq68qsqg5zmk0zy13a4as9iircm-guix-latest.tar.gz'...
The following derivation will be built:
/gnu/store/wgk8lhsaykmg1l73bpl1i97is74a7ff3-guix-latest.drv
building path(s) 
`/gnu/store/5j5h2x0pgm57db7fzd0i71xrnyd43rkf-guix-latest'
copying and compiling to 
'/gnu/store/5j5h2x0pgm57db7fzd0i71xrnyd43rkf-guix-latest'...
compiling... 23.8% of 404 filesERROR: Unbound variable: 
#{\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;
... (lines and lines of \x0;)...
\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;\x0;}#
Backtrace:
In ice-9/boot-9.scm:
  157: 11 [catch #t # ...]
In unknown file:
?: 10 [apply-smob/1 #]
In ice-9/boot-9.scm:
   63: 9 [call-with-prompt prompt0 ...]
In ice-9/eval.scm:
  432: 8 [eval # #]
In ice-9/boot-9.scm:
2401: 7 [save-module-excursion #]
4050: 6 [#]
1724: 5 [%start-stack load-stack ...]
1729: 4 [#]
In unknown file:
?: 3 [primitive-load 
"/gnu/store/2bpx8l2l7n8cw7dmvfkrqfbxia1w1cpg-guix-latest-builder"]
In ./guix/build/pull.scm:
  139: 2 [build-guix 
"/gnu/store/5j5h2x0pgm57db7fzd0i71xrnyd43rkf-guix-latest" ...]
   97: 1 [loop # 2 96]
In unknown file:
?: 0 [scm-error misc-error #f ...]

ERROR: In procedure scm-error:
ERROR: process failed # 256
builder for 
`/gnu/store/wgk8lhsaykmg1l73bpl1i97is74a7ff3-guix-latest.drv' failed 
with exit code 1
killing process 1879
guix pull: error: build failed: build of 
`/gnu/store/wgk8lhsaykmg1l73bpl1i97is74a7ff3-guix-latest.drv' failed


===
Ugh... 

How can I fix this? 
--
白い熊 @相撲道



Re: Remove Windowmaker from session options in Slim

2015-03-09 Thread 宋文武
Yes, you can use in your sysconfig, then do a reconfigure (and reboot):
  ...
  (slim-service #:sessions (list %ratpoison-session-type))
  ...

2015-03-10 5:28 GMT+08:00 白い熊 @相撲道 :
>
>
> How do I remove the option to start a Windowmaker session in Slim? I just 
> want ratpoison to stay there as default.
>
> I'm aware of the ~/.config/guix/latest/gnu/services/xorg.scm which apparently 
> specifies Windowmaker as default, so could edit it. Is there a sysconfig way?
> --
> 白い熊 @相撲道
>



Re: 9x15bold xfont

2015-03-09 Thread 宋文武
Yes, you can modify xorg.scm, and then reconfigure your GuixSD from
the modified sources.
But IMO the xserver.conf in xorg.scm is not in a good shape for customization.

Also you can install the fonts into user's profile, then do:
  xset +fp ~/.guix-profile/share/fonts/X11