Re: install experience

2017-01-23 Thread Thomas Danckaert

From: l...@gnu.org (Ludovic Courtès)
Subject: Re: install experience
Date: Mon, 23 Jan 2017 15:17:16 +0100

 - When I tried to login as non-root user for the first time, my 
home
   directory was not there, and I was sent back to the login 
screen. I
   logged in as root and created/chown'ed the home directory 
myself.

   Unfortunately, I have no further information here, either.


Could it be that /home is a separate partition?  There’s a bug 
waiting

to be fixed in this area: .


Yes, that looks like the same issued. Indeed, I noticed today that a 
/home/thomas directory got created on my root partition (I suppose it 
then somehow hidden when my home partition is mounted at /home).



Now, the system works fine, though I'll try to tweak it for better
touchpad support, graphics acceleration (I'm gnome3 is currently
unusable) and sharper fonts.  Those things worked better when it 
was

running Ubuntu, though I suspect some of that was due to non-free
driver blobs etc.


If you find ways to tweak it, let us know how we can improve the 
default

settings.


Coming from Ubuntu, I don't have any experience fiddling with these 
things, but I'll do my best ;-)


Thomas


Re: GeoIP database redistribution?

2017-01-23 Thread Pjotr Prins
On Mon, Jan 23, 2017 at 07:17:12PM +0100, Marius Bakke wrote:
> ng0  writes:
> 
> > I want to slowly package OONI (https://ooni.torproject.org/).
> > One of its dependencies, txtorcon, requires python-geoip which
> > depends on geoip-c-api. I've got both covered, but both of them
> > want (either to download or to be present) for tests (a/the)
> > legacy database file of maxmind.
> >
> > Question 1: Can we distribute the database in a source? I can't
> > access the homepage of maxmind for cloudflare reasons.
> 
> The database is distributed freely under cc-by-sa4.0:
> 
> https://dev.maxmind.com/geoip/legacy/geolite/#License
> 
> So packaging it should be fine. :)

This actually raises the issue of packaging large data files (we are
getting into TB's). Could there be a way Guix fetches external
datasets as part of the distribution? I think that if it is not
executable code and SHA values/pfff values match it would be safe to
do.

Idea? That is a first step towards reproducible analysis.

Pj.

-- 



Re: CUPS and HP printers

2017-01-23 Thread ng0
Ludovic Courtès  writes:

> Hi Andy,
>
> Andy Patterson  skribis:
>
>> On Thu, 29 Dec 2016 14:05:51 +
>> ng0  wrote:
>>
>>
>>> I really have no idea how hplip is supposed to be used in Guix after
>>> reading the note about the base service. So we are not supposed to
>>> run and install it as users in profiles? Will it be in the cups
>>> service where I would have no idea how to add it in there? 
>>
>> I've been printing with an hp for a little while now, and in my system
>> configuration I have this:
>>
>> (service cups-service-type
>>  (cups-configuration
>>   (web-interface? #t)
>>   (extensions
>>(list cups-filters hplip
>
> Interesting.  Maybe we should document it somewhere or simply provide
> this example in the manual, because it’s not necessarily obvious.
>
> WDYT?
>
> Ludo’.
>

Ha! I just printed using GuixSD :)
The way Andy described worked. We should really add this to the
documentation.

Related to this thread, I see if I can apply the suggested
changes this week.

Thank you very much Andy :)
-- 
♥Ⓐ  ng0 -- https://www.inventati.org/patternsinthechaos/



Re: gnu: abbaye: Update to 2.0.1 from new repository.

2017-01-23 Thread Leo Famulari
On Mon, Jan 23, 2017 at 10:46:01AM -0200, Adonay Felipe Nogueira wrote:
> About suggestion to use tarball snapshots instead of git-fetch: That's
> interesting, I once read that `guix refresh` would behave better with
> git-fetch methods than with url-fetch methods. But, as I found out
> recently, it does seem that git-fetch imposes heavy load due to the
> current innability to make shallow clones. So I'm now waiting for
> others' input in this matter: Should I reformat the patch such that
> url-fetch is used instead?

I prefer to use url-fetch with a tarball. First, upstream maintainers
have typically prepared the tarball beyond what can be found from a Git
tag. Second, it prevents the package from depending on Git, which is a
large package.



[PATCH] services: Fix 'mkdir-p' in activation scripts.

2017-01-23 Thread Clément Lassieur
* gnu/services/cuirass.scm (cuirass-activation): Import (guix build utils) and
  remove (with-imported-modules '((guix build utils))).
* gnu/services/cups.scm (%cups-activation): Idem.
* gnu/services/networking.scm (ntp-service-activation): Idem.

* gnu/services/mail.scm (opensmtpd-activation): Import (guix build utils).
* gnu/services/spice.scm (spice-vdagent-activation): Idem.
* gnu/services/ssh.scm (openssh-activation): Idem.
  (dropbear-activation): Idem.
* gnu/services/vpn.scm (%openvpn-activation): Idem.
---
 gnu/services/cuirass.scm|  19 ---
 gnu/services/cups.scm   | 121 ++--
 gnu/services/mail.scm   |   2 +
 gnu/services/networking.scm |  15 +++---
 gnu/services/spice.scm  |   5 +-
 gnu/services/ssh.scm|   3 ++
 gnu/services/vpn.scm|   5 +-
 7 files changed, 91 insertions(+), 79 deletions(-)

diff --git a/gnu/services/cuirass.scm b/gnu/services/cuirass.scm
index 1194133f6..64eb97bbf 100644
--- a/gnu/services/cuirass.scm
+++ b/gnu/services/cuirass.scm
@@ -2,6 +2,7 @@
 ;;; Copyright © 2016 Mathieu Lirzin 
 ;;; Copyright © 2016, 2017 Ludovic Courtès 
 ;;; Copyright © 2017 Mathieu Othacehe 
+;;; Copyright © 2017 Clément Lassieur 
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -121,17 +122,15 @@
 (db(dirname (cuirass-configuration-database config)))
 (user  (cuirass-configuration-user config))
 (group (cuirass-configuration-group config)))
-(with-imported-modules '((guix build utils))
-  #~(begin
-  (use-modules (guix build utils))
+#~(begin
+(use-modules (guix build utils))
+(mkdir-p #$cache)
+(mkdir-p #$db)
 
-  (mkdir-p #$cache)
-  (mkdir-p #$db)
-
-  (let ((uid (passwd:uid (getpw #$user)))
-(gid (group:gid (getgr #$group
-(chown #$cache uid gid)
-(chown #$db uid gid))
+(let ((uid (passwd:uid (getpw #$user)))
+  (gid (group:gid (getgr #$group
+  (chown #$cache uid gid)
+  (chown #$db uid gid)
 
 (define cuirass-service-type
   (service-type
diff --git a/gnu/services/cups.scm b/gnu/services/cups.scm
index df1843e43..3bccb9da4 100644
--- a/gnu/services/cups.scm
+++ b/gnu/services/cups.scm
@@ -1,5 +1,6 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2016 Andy Wingo 
+;;; Copyright © 2017 Clément Lassieur 
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -809,66 +810,66 @@ IPP specifications.")
 
 (define %cups-activation
   ;; Activation gexp.
-  (with-imported-modules '((guix build utils))
-#~(begin
-(define (mkdir-p/perms directory owner perms)
-  (mkdir-p directory)
-  (chown "/var/run/cups" (passwd:uid owner) (passwd:gid owner))
-  (chmod directory perms))
-(define (build-subject parameters)
-  (string-concatenate
-   (map (lambda (pair)
-  (let ((k (car pair)) (v (cdr pair)))
-(define (escape-char str chr)
-  (string-join (string-split str chr) (string #\\ chr)))
-(string-append "/" k "="
-   (escape-char (escape-char v #\=) #\/
-(filter (lambda (pair) (cdr pair)) parameters
-(define* (create-self-signed-certificate-if-absent
-  #:key private-key public-key (owner (getpwnam "root"))
-  (common-name (gethostname))
-  (organization-name "GuixSD")
-  (organization-unit-name "Default Self-Signed Certificate")
-  (subject-parameters `(("CN" . ,common-name)
-("O" . ,organization-name)
-("OU" . ,organization-unit-name)))
-  (subject (build-subject subject-parameters)))
-  ;; Note that by default, OpenSSL outputs keys in PEM format.  This
-  ;; is what we want.
-  (unless (file-exists? private-key)
-(cond
- ((zero? (system* (string-append #$openssl "/bin/openssl")
-  "genrsa" "-out" private-key "2048"))
-  (chown private-key (passwd:uid owner) (passwd:gid owner))
-  (chmod private-key #o400))
- (else
-  (format (current-error-port)
-  "Failed to create private key at ~a.\n" private-key
-  (unless (file-exists? public-key)
-(cond
- ((zero? (system* (string-append #$openssl "/bin/openssl")
-  "req" "-new" "-x509" "-key" private-key
-  "-out" public-key "-days" "3650"
-  "-batch" "-subj" subject))
-  (chown public-key (passwd:uid owner) (passwd:gid owner))
-  

Re: Add lxde. (Mixed content: 4 updates, 7 RFCs)

2017-01-23 Thread ng0
ng0  writes:

> contact@cryptolab.net writes:
>
>> [PATCH 01/11] gnu: lxterminal: Update to 0.3.0.
>> [PATCH 02/11] gnu: pcmanfm, libfm: Update to 1.2.5.
>> [PATCH 03/11] gnu: menu-cache: Update to 1.0.2.
>>
>> The ones above are functional and can be applied, the ones below are for 
>> first RFCs:
>>
>> [PATCH 04/11] gnu: Add lxmenu-data.
>> [PATCH 05/11] gnu: Add lxde-icon-theme.
>> [PATCH 06/11] gnu: Add lxde-common.
>> [PATCH 07/11] gnu: Add lxinput.
>> [PATCH 08/11] gnu: Add lxsession.
>> [PATCH 09/11] gnu: Add keybinder.
>> [PATCH 10/11] gnu: Add lxpanel.
>> [PATCH 11/11] gnu: Add lxde.
>>
>> Currently when I reconfigure a system with lxde in the global available 
>> packages, and I try to log in to LXDE (which is detectecd by SDDM), SDDM for 
>> a short second shows a black screen and drops me back to the log in screen.
>>
>> That's the first time I did an meta package for Guix, but I guess I did it 
>> right?
>>
>
> It is caused by no config files are found by some part
> of lxde. Starting lxpannel from within my current session gives
> me a warning about config files not being found.

I think some elements of LXDE need the runpath patched, and this
can't happen in the meta package unless I missed something.
I will try and inspect each of them on their own, must be one of
the packages I plan to add, the ones which are already included
are working.

-- 
♥Ⓐ  ng0 -- https://www.inventati.org/patternsinthechaos/



Re: [PATCH python-tests] gnu: python-2.7: Enable UCS-4 Unicode encoding.

2017-01-23 Thread Danny Milosavljevic
Hi Ludo,

> > Otherwise LGTM. I checked some other distros and they seem to have this
> > enabled. Thanks!  
> 
> That means that strings are internally UCS-4-encoded, right?  What’s the
> rationale, and what happens when this flag is omitted?

The CPython C interface changes depending on the flag and some Python 
extensions don't work with the narrow UTF-16 Unicode - which is what it would 
use if you don't specify.

The default, UTF-16, is basically just historical baggage from when Unicode had 
fewer than 65536 codepoints in the standard.

The max codepoint used nowadays is 1114111.

UCS-4 encoding means that just one 32-bit word encodes one Unicode codepoint 
(it's 1:1). It's the most straightforward encoding if you don't care about size 
wastage. 

If you *do* care about size wastage, you use UTF-8.

Only if you are tied down by some kind of backward compatibility constraints 
you use UTF-16 or UCS-2 (the latter doesn't even have some way to encode 
codepoints over 65535 AT ALL - but UTF-16 uses a variable-length encoding to 
represent those).

Python Unicode string builds on Microsoft Windows and Mac OS X usually use 
UTF-16 while on GNU Linux distributions we usually use UCS-4.

Python 3 does the obvious thing and has only one string class and switches the 
internal string encoding depending on what codepoints are used. That way the 
user is none the wiser and it still saves space.

But Python 2.7 still has "strings" and "unicode strings" which are disjunct 
with no such optimizations.

So this patch basically just makes sure that we do the same as other 
distributions so that all the Python 2.7 extensions work.



Re: [PATCH 06/11] gnu: Add lxde-common.

2017-01-23 Thread ng0
ng0  writes:

> Marius Bakke  writes:
>
>> contact@cryptolab.net writes:
>>
>>> From: ng0 
>>>
>>> * gnu/packages/lxde.scm (lxde-common): New variable.
>>
>> Cool to get LXDE in Guix, thanks for working on this! :)

It could be that LX moved on to primarily develop LXQT now, but
we can have both in Guix, after all they provide modular software

http://lxqt.org/
-- 
♥Ⓐ  ng0 -- https://www.inventati.org/patternsinthechaos/



[PATCH 1/1] gnu: openjpeg: Fix CVE-2016-{9572,9573}.

2017-01-23 Thread Leo Famulari
* gnu/packages/patches/openjpeg-CVE-2016-9572-CVE-2016-9573.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
* gnu/packages/image.scm (openjpeg-2.1.2)[source]: Use it.
---
 gnu/local.mk   |   1 +
 gnu/packages/image.scm |   3 +-
 .../openjpeg-CVE-2016-9572-CVE-2016-9573.patch | 233 +
 3 files changed, 236 insertions(+), 1 deletion(-)
 create mode 100644 
gnu/packages/patches/openjpeg-CVE-2016-9572-CVE-2016-9573.patch

diff --git a/gnu/local.mk b/gnu/local.mk
index 26933d4a2..930758ff5 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -784,6 +784,7 @@ dist_patch_DATA =   
\
   %D%/packages/patches/openjpeg-CVE-2016-5157.patch\
   %D%/packages/patches/openjpeg-CVE-2016-7163.patch\
   %D%/packages/patches/openjpeg-CVE-2016-9850-CVE-2016-9851.patch  
\
+  %D%/packages/patches/openjpeg-CVE-2016-9572-CVE-2016-9573.patch  
\
   %D%/packages/patches/openjpeg-use-after-free-fix.patch   \
   %D%/packages/patches/openocd-nrf52.patch \
   %D%/packages/patches/openssl-runpath.patch   \
diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm
index 637819947..54b7dd6e2 100644
--- a/gnu/packages/image.scm
+++ b/gnu/packages/image.scm
@@ -498,7 +498,8 @@ error-resilience, a Java-viewer for j2k-images, ...")
  (base32
   "19yz4g0c45sm8y1z01j9djsrl1mkz3pmw7fykc6hkvrqymp7prsc"))
 (patches
-  (search-patches "openjpeg-CVE-2016-9850-CVE-2016-9851.patch"))
+  (search-patches "openjpeg-CVE-2016-9850-CVE-2016-9851.patch"
+  "openjpeg-CVE-2016-9572-CVE-2016-9573.patch"))
 
 (define-public openjpeg-1
   (package (inherit openjpeg)
diff --git a/gnu/packages/patches/openjpeg-CVE-2016-9572-CVE-2016-9573.patch 
b/gnu/packages/patches/openjpeg-CVE-2016-9572-CVE-2016-9573.patch
new file mode 100644
index 0..545b5d0a7
--- /dev/null
+++ b/gnu/packages/patches/openjpeg-CVE-2016-9572-CVE-2016-9573.patch
@@ -0,0 +1,233 @@
+Fix CVE-2016-9572 and CVE-2016-9573:
+
+https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-9572
+https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-9573
+https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2016-9572
+https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2016-9573
+
+Patch copied from 3rd-party repository:
+
+https://github.com/szukw000/openjpeg/commit/7b28bd2b723df6be09fe7791eba33147c1c47d0d
+
+From 7b28bd2b723df6be09fe7791eba33147c1c47d0d Mon Sep 17 00:00:00 2001
+From: szukw000 
+Date: Mon, 28 Nov 2016 21:57:20 +0100
+Subject: [PATCH] Changes for issues #863 and #862
+
+---
+ src/bin/jp2/convert.c| 59 +++-
+ src/bin/jp2/convertbmp.c | 29 +-
+ src/bin/jp2/opj_decompress.c |  2 +-
+ src/lib/openjp2/j2k.c| 11 ++---
+ 4 files changed, 90 insertions(+), 11 deletions(-)
+
+diff --git a/src/bin/jp2/convert.c b/src/bin/jp2/convert.c
+index deee4f6..6a3f65b 100644
+--- a/src/bin/jp2/convert.c
 b/src/bin/jp2/convert.c
+@@ -906,7 +906,8 @@ int imagetotga(opj_image_t * image, const char *outfile) {
+ for (i = 0; i < image->numcomps-1; i++)   {
+ if ((image->comps[0].dx != image->comps[i+1].dx)
+ ||(image->comps[0].dy != image->comps[i+1].dy)
+-||(image->comps[0].prec != image->comps[i+1].prec))   {
++||(image->comps[0].prec != image->comps[i+1].prec)
++  ||(image->comps[0].sgnd != 
image->comps[i+1].sgnd)) {
+ fclose(fdest);
+ fprintf(stderr, "Unable to create a tga file with such J2K image 
charateristics.");
+ return 1;
+@@ -1743,7 +1744,7 @@ int imagetopnm(opj_image_t * image, const char *outfile, 
int force_split)
+ int *red, *green, *blue, *alpha;
+ int wr, hr, max;
+ int i;
+-unsigned int compno, ncomp;
++unsigned int compno, ncomp, ui;
+ int adjustR, adjustG, adjustB, adjustA;
+ int fails, two, want_gray, has_alpha, triple;
+ int prec, v;
+@@ -1768,6 +1769,27 @@ int imagetopnm(opj_image_t * image, const char 
*outfile, int force_split)
+ 
+ if(want_gray) ncomp = 1;
+ 
++for (ui = 1; ui < ncomp; ++ui) {
++if (image->comps[0].dx != image->comps[ui].dx) {
++break;
++}
++if (image->comps[0].dy != image->comps[ui].dy) {
++break;
++}
++if (image->comps[0].prec != image->comps[ui].prec) {
++break;
++}
++if (image->comps[0].sgnd != image->comps[ui].sgnd) {
++break;
++}
++}
++if (ui != ncomp) {
++fprintf(stderr,"imagetopnm: All components\nshall have "
++ "the same subsampling, same bit depth, same sign.\n"
++ "Aborting\n");
++return 1;
++}
++
+ if ((force_split == 0) &&
+  

[PATCH 0/1] OpenJPEG CVE-2016-9572 CVE-2016-9573

2017-01-23 Thread Leo Famulari
This patch fixes CVE-2016-9572 and CVE-2016-9573 in OpenJPEG.

Notice that the patch is not from the official OpenJPEG repository. I've
asked for clarification here:

https://github.com/uclouvain/openjpeg/issues/863#issuecomment-274271277

Debian has applied it to their openjpeg2 2.1.0-2+deb8u2 package (sorry,
I can't find a link to their package code; download the tarball and
inspect it manually):

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=851422
https://tracker.debian.org/pkg/openjpeg2

Leo Famulari (1):
  gnu: openjpeg: Fix CVE-2016-{9572,9573}.

 gnu/local.mk   |   1 +
 gnu/packages/image.scm |   3 +-
 .../openjpeg-CVE-2016-9572-CVE-2016-9573.patch | 233 +
 3 files changed, 236 insertions(+), 1 deletion(-)
 create mode 100644 
gnu/packages/patches/openjpeg-CVE-2016-9572-CVE-2016-9573.patch

-- 
2.11.0




Re: Add lxde. (Mixed content: 4 updates, 7 RFCs)

2017-01-23 Thread ng0
contact@cryptolab.net writes:

> [PATCH 01/11] gnu: lxterminal: Update to 0.3.0.
> [PATCH 02/11] gnu: pcmanfm, libfm: Update to 1.2.5.
> [PATCH 03/11] gnu: menu-cache: Update to 1.0.2.
>
> The ones above are functional and can be applied, the ones below are for 
> first RFCs:
>
> [PATCH 04/11] gnu: Add lxmenu-data.
> [PATCH 05/11] gnu: Add lxde-icon-theme.
> [PATCH 06/11] gnu: Add lxde-common.
> [PATCH 07/11] gnu: Add lxinput.
> [PATCH 08/11] gnu: Add lxsession.
> [PATCH 09/11] gnu: Add keybinder.
> [PATCH 10/11] gnu: Add lxpanel.
> [PATCH 11/11] gnu: Add lxde.
>
> Currently when I reconfigure a system with lxde in the global available 
> packages, and I try to log in to LXDE (which is detectecd by SDDM), SDDM for 
> a short second shows a black screen and drops me back to the log in screen.
>
> That's the first time I did an meta package for Guix, but I guess I did it 
> right?
>

It is caused by no config files are found by some part
of lxde. Starting lxpannel from within my current session gives
me a warning about config files not being found.
-- 
♥Ⓐ  ng0 -- https://www.inventati.org/patternsinthechaos/



Re: [PATCH 06/11] gnu: Add lxde-common.

2017-01-23 Thread ng0
Marius Bakke  writes:

> contact@cryptolab.net writes:
>
>> From: ng0 
>>
>> * gnu/packages/lxde.scm (lxde-common): New variable.
>
> This application ships a "lxde-screenlock.desktop" file referring to
> "lxlock". It would be nice to have that packaged too and substitute with
> the full path.

You mean this lxlock?
https://github.com/lxde/lxsession/blob/master/lxlock/lxlock

I can patch in the absolute path, but I hardly think that's
necessary :)

> Going through the series now. I think "lxde-icon-theme" and
> "lxmenu-data" might as well be native-inputs since they only contain
> images and similar. I have this in my local branch.

Okay.

> Cool to get LXDE in Guix, thanks for working on this! :)

Thanks for your review.
-- 
♥Ⓐ  ng0 -- https://www.inventati.org/patternsinthechaos/



Re: [PATCH 11/11] gnu: Add lxde.

2017-01-23 Thread ng0
Albin  writes:

> Hi,
>
> Den 2017-01-23 kl. 19:55, skrev contact@cryptolab.net:
>> From: ng0 
>> + ;; TODO:
>> + ;; lxshortcut, lxsession-edit, gpicview, leadpad,
>
> There is a typo here: "leadpad" should be "leafpad"
>
> Albin
>

Thanks! Will be fixed in the next batch send.
-- 
♥Ⓐ  ng0 -- https://www.inventati.org/patternsinthechaos/



Re: [GuixSD on GCE]: Anyone working on this?

2017-01-23 Thread rohit yadav
Sorry for incomplete info.

GCE - Google Compute Engine (Platform).

I want to run guixsd on google compute engine.

-Rohit

On Mon, Jan 23, 2017 at 4:42 PM, Ludovic Courtès  wrote:

> Hello,
>
> rohit yadav  skribis:
>
> > Is there anyone working on creating a VM image of GuixSD for use on GCE?
>
> What’s “GCE”?
>
> Ludo’.
>


Re: [PATCH 4/4] gnu: Add electrum.

2017-01-23 Thread Ludovic Courtès
Carlo Zancanaro  skribis:

> On Mon, Jan 02 2017, Carlo Zancanaro wrote
>> ... patch used to be here ...
>
> Now that the patches for its dependencies have been pushed, can anyone
> review this patch for Electrum?

Done and applied.  :-)

Thank you!

Ludo’.



Re: [PATCH v2 1/2] gnu: Add dub.

2017-01-23 Thread Ludovic Courtès
Danny Milosavljevic  skribis:

> * gnu/packages/ldc.scm (dub): New variable.

[...]

> +   (modify-phases %standard-phases
> + (delete 'configure)
> + (replace 'build
> +   (lambda _
> + (zero? (system* "./build.sh"
> + (replace 'install
> +   (lambda* (#:key outputs #:allow-other-keys)
> + (let* ((out (assoc-ref outputs "out"))
> +(outbin (string-append out "/bin")))
> +   (mkdir-p outbin)
> +   (install-file "bin/dub" outbin)))

Please add #t at the end of this lambda, to denote success.

Otherwise LGTM, thanks!

Ludo’.



Re: [GuixSD on GCE]: Anyone working on this?

2017-01-23 Thread Ludovic Courtès
Hello,

rohit yadav  skribis:

> Is there anyone working on creating a VM image of GuixSD for use on GCE?

What’s “GCE”?

Ludo’.



[PATCH] gnu: claws-mail: Enable compface.

2017-01-23 Thread Danny Milosavljevic
* gnu/packages/mail.scm (claws-mail)[inputs]: Add compface.
  [arguments]: Enable compface.
---
 gnu/packages/mail.scm | 6 +-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index bcb6473d2..9f3d23715 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -769,6 +769,7 @@ compresses it.")
 (build-system gnu-build-system)
 (native-inputs `(("pkg-config" ,pkg-config)))
 (inputs `(("bogofilter" ,bogofilter)
+  ("compface" ,compface)
   ("curl" ,curl)
   ("dbus-glib" ,dbus-glib)
   ("enchant" ,enchant)
@@ -790,7 +791,10 @@ compresses it.")
   ("mime-info" ,shared-mime-info)))
 (arguments
   '(#:configure-flags
-'("--enable-gnutls" "--enable-pgpmime-plugin" "--enable-enchant")
+'("--enable-gnutls"
+  "--enable-pgpmime-plugin"
+  "--enable-enchant"
+  "--enable-compface")
 #:phases (modify-phases %standard-phases
(add-before 'build 'patch-mime
  (lambda* (#:key inputs #:allow-other-keys)



[PATCH] gnu: exempi: Enable more tests.

2017-01-23 Thread Danny Milosavljevic
* gnu/packages/freedesktop.scm (exempi)[native-inputs]: Add valgrind.
---
 gnu/packages/freedesktop.scm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm
index 0c8f97f6b..1acf9abd8 100644
--- a/gnu/packages/freedesktop.scm
+++ b/gnu/packages/freedesktop.scm
@@ -55,6 +55,7 @@
   #:use-module (gnu packages polkit)
   #:use-module (gnu packages pkg-config)
   #:use-module (gnu packages python)
+  #:use-module (gnu packages valgrind)
   #:use-module (gnu packages xml)
   #:use-module (gnu packages xdisorg)
   #:use-module (gnu packages xorg))
@@ -418,7 +419,8 @@ multiplexer to the KMS/DRM Linux kernel devices.")
  `(#:configure-flags (list (string-append "--with-boost="
(assoc-ref %build-inputs "boost")
 (native-inputs
- `(("boost" ,boost))) ; tests
+ `(("boost" ,boost) ; tests
+   ("valgrind" ,valgrind))) ; tests
 (inputs
  `(("expat" ,expat)
("zlib" ,zlib)))



Re: [PATCH 06/11] gnu: Add lxde-common.

2017-01-23 Thread Marius Bakke
contact@cryptolab.net writes:

> From: ng0 
>
> * gnu/packages/lxde.scm (lxde-common): New variable.

This application ships a "lxde-screenlock.desktop" file referring to
"lxlock". It would be nice to have that packaged too and substitute with
the full path.

Going through the series now. I think "lxde-icon-theme" and
"lxmenu-data" might as well be native-inputs since they only contain
images and similar. I have this in my local branch.

Cool to get LXDE in Guix, thanks for working on this! :)


signature.asc
Description: PGP signature


Re: [Basic Linux Question]: Is it possible to have two init system?

2017-01-23 Thread Joshua Branson
You could just install the guix package manager.  Some GNU/Linux distributions 
package GuixSD.  If yours doesn't then you could install from source.

On 01/23/2017 11:55 AM, rohit yadav wrote:
​Hi,

Is it possible to run two init processes? I believe not, but PID 1 (primary 
init system) can start another PID 2 which could act secondary init system. If 
this is possible and commonly employed then we can easily get all the features 
of guixsd on a standard linux distribution. It will be really useful for 
beginners who are frustrated by standard distro but do not have time to learn 
the whole guix ecosystem at once before using it reliably.

Thanks,
Rohit​



[GuixSD on GCE]: Anyone working on this?

2017-01-23 Thread rohit yadav
Hi,

Is there anyone working on creating a VM image of GuixSD for use on GCE?

Thanks,
Rohit


[Installing Grub on blocklist]: Failing to create bootable disk on GCE

2017-01-23 Thread rohit yadav
Hi,

I am trying to create bootable image on GCE using guix. It leads to
following error.


Installing for i386-pc platform.
grub-install: warning: File system `ext2' doesn't support embedding.
grub-install: warning: Embedding is not possible. GRUB can only be
installed in this setup by using blocklists. However, blocklists are
UNRELIABLE and their use is discouraged..
grub-install: error: will not proceed with blocklists.
guix system: error: failed to install GRUB on device
'/dev/disk/by-id/google-rowhit-guixsd-template-00'
==

I tried finding some references which shows how to forcibly write grub
using blocklists. However, I am not sure how to do it with guix system.

Thanks,
Rohit


[Basic Linux Question]: Is it possible to have two init system?

2017-01-23 Thread rohit yadav
​Hi,

Is it possible to run two init processes? I believe not, but PID 1 (primary
init system) can start another PID 2 which could act secondary init system.
If this is possible and commonly employed then we can easily get all the
features of guixsd on a standard linux distribution. It will be really
useful for beginners who are frustrated by standard distro but do not have
time to learn the whole guix ecosystem at once before using it reliably.

Thanks,
Rohit​


Re: 07/08: gnu: Add ocaml-ssl.

2017-01-23 Thread Leo Famulari
On Mon, Jan 16, 2017 at 09:35:17PM +, julien lepiller wrote:
> roptat pushed a commit to branch master
> in repository guix.
> 
> commit 37f17e2a1e797d3d1ea12da5afd69526e0abfd3e
> Author: Julien Lepiller 
> Date:   Fri Dec 30 11:53:24 2016 +0100
> 
> gnu: Add ocaml-ssl.
> 
> * gnu/packages/ocaml.scm (ocaml-ssl): New variable.

> +   (substitute* "src/OCamlMakefile"
> + (("/bin/sh") (which "bash")))
> +   (substitute* "configure"
> + (("/bin/sh") (which "bash"

Hi Julien!

I noticed that a handful of your new OCaml packages replace invocations
of 'sh' with 'bash'. These shells actually have different behavior even
though they are both provided by the Bash package (see INVOCATION in
bash(1)).

Can you change these substitutions to use (which "sh") instead?


signature.asc
Description: PGP signature


Re: 01/01: gnu: Remove pcre-CVE-2016-3191.patch.

2017-01-23 Thread Leo Famulari
On Mon, Jan 23, 2017 at 08:45:26PM +, Efraim Flashner wrote:
> On January 23, 2017 10:41:19 PM GMT+02:00, Leo Famulari  
> wrote:
> >On Mon, Jan 23, 2017 at 08:31:29AM +, Efraim Flashner wrote:
> >> efraim pushed a commit to branch core-updates
> >> in repository guix.
> >> 
> >> commit 0e88ada940953ac6b12fcbfd2add08835edcf49d
> >> Author: Efraim Flashner 
> >> Date:   Mon Jan 23 10:28:15 2017 +0200
> >> 
> >> gnu: Remove pcre-CVE-2016-3191.patch.
> >> 
> >> This is a follow-up to 026ee1a5a669658c8d4745c2733b4c201ca0e48e.
> >> 
> >> * gnu/packages/patches/pcre-CVE-2016-3191.patch: Delete file.
> >> * gnu/local.mk (dist_patch_DATA): Remove it.
> >
> >It's too early for this commit because pcre2 is still using this patch,
> >right?
> >
> >If so, can you revert this change?
> 
> I used git grep for the patch name and pcre was the only one using it. On 
> core updates pcre2 has a separate pcre2 patch covering the same cve

Ah, my mistake :) Thanks for the follow-up commit!



Re: [PATCH 01/11] gnu: lxterminal: Update to 0.3.0.

2017-01-23 Thread ng0
ng0  writes:

> Hi,
>
> I have just updated our distributions lxterminal build, and I ran
> into the problem described in the below quoted message.
>
> I've seen no recent commit which obviously fixes this issue.
> Could you look into it?
>
> Thanks!

Obviously I forgot to add that I sent this to an upstream
developer and only CC'd guix-devel@gnu.org.

> Marius Bakke  writes:
>
>> contact@cryptolab.net writes:
>>
>>> From: ng0 
>>>
>>> * gnu/packages/lxde.scm (lxterminal): Update to 0.3.0.
>>> [arguments]: Disable tests.
>>> [source]: Update to use new '.tar.xz' tarball.
>>
>> Applied, thanks!
>>
>>> +(arguments
>>> + `(; Tests fail for "po" fail with "No rule to make target 
>>> '../src/encoding.c'
>>> +   ;; needed by 'lxterminal.pot'. Stop."
>>> +   #:tests? #f))
>>
>> This is strange. The "po" makefile refer to a file "encoding.c" that is
>> missing in the release tarball. Could you report this issue upstream?
>>
>> The 'check' phase is autotools-generated and does not seem to run any
>> actual tests, so I assume this file is not needed. Nothing else refers
>> to it.
>
> -- 
> ♥Ⓐ  ng0 -- https://www.inventati.org/patternsinthechaos/

-- 
♥Ⓐ  ng0 -- https://www.inventati.org/patternsinthechaos/



Re: [PATCH 01/11] gnu: lxterminal: Update to 0.3.0.

2017-01-23 Thread ng0
Hi,

I have just updated our distributions lxterminal build, and I ran
into the problem described in the below quoted message.

I've seen no recent commit which obviously fixes this issue.
Could you look into it?

Thanks!

Marius Bakke  writes:

> contact@cryptolab.net writes:
>
>> From: ng0 
>>
>> * gnu/packages/lxde.scm (lxterminal): Update to 0.3.0.
>> [arguments]: Disable tests.
>> [source]: Update to use new '.tar.xz' tarball.
>
> Applied, thanks!
>
>> +(arguments
>> + `(; Tests fail for "po" fail with "No rule to make target 
>> '../src/encoding.c'
>> +   ;; needed by 'lxterminal.pot'. Stop."
>> +   #:tests? #f))
>
> This is strange. The "po" makefile refer to a file "encoding.c" that is
> missing in the release tarball. Could you report this issue upstream?
>
> The 'check' phase is autotools-generated and does not seem to run any
> actual tests, so I assume this file is not needed. Nothing else refers
> to it.

-- 
♥Ⓐ  ng0 -- https://www.inventati.org/patternsinthechaos/



[PATCH] gnu: r: Add which to propagated-inputs.

2017-01-23 Thread Raoul Bonnal
From: Raoul Jean Pierre Bonnal 

* gnu/packages/statistics.scm (r)[propagated-inputs]: Add which.
---

Notes:
In my local installation of R

Sys.which(c("bash"))

was not working properly, inspecting the function(below) I had not 
installed which beforehand.
> Sys.which
function (names)
{
res <- character(length(names))
names(res) <- names
which <- 
"/gnu/store/cn670s29lsf2nr5axd8gmhl8sb9qpyiq-which-2.21/bin/which"
if (!nzchar(which)) {
warning("'which' was not found on this platform")
return(res)
}
for (i in seq_along(names)) {
if (is.na(names[i])) {
res[i] <- NA
next
}
ans <- suppressWarnings(system(paste(which, shQuote(names[i])),
intern = TRUE, ignore.stderr = TRUE))
if (grepl("solaris", R.version$os)) {
tmp <- strsplit(ans[1], " ", fixed = TRUE)[[1]]
if (identical(tmp[1:3], c("no", i, "in")))
ans <- ""
}
res[i] <- if (length(ans))
ans[1]
else ""
if (!file.exists(res[i]))
res[i] <- ""
}
res
}

requiring which to be installed along with R seems to fix the issue.

 gnu/packages/statistics.scm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm
index f27cb5704..648825b1e 100644
--- a/gnu/packages/statistics.scm
+++ b/gnu/packages/statistics.scm
@@ -191,6 +191,8 @@ be output in text, PostScript, PDF or HTML.")
("pcre" ,pcre)
("readline" ,readline)
("zlib" ,zlib)))
+(propagated-inputs
+ `(("which" ,which)))
 (native-search-paths
  (list (search-path-specification
 (variable "R_LIBS_SITE")
-- 
2.11.0




Re: 01/01: gnu: Remove pcre-CVE-2016-3191.patch.

2017-01-23 Thread Efraim Flashner


On January 23, 2017 10:41:19 PM GMT+02:00, Leo Famulari  
wrote:
>On Mon, Jan 23, 2017 at 08:31:29AM +, Efraim Flashner wrote:
>> efraim pushed a commit to branch core-updates
>> in repository guix.
>> 
>> commit 0e88ada940953ac6b12fcbfd2add08835edcf49d
>> Author: Efraim Flashner 
>> Date:   Mon Jan 23 10:28:15 2017 +0200
>> 
>> gnu: Remove pcre-CVE-2016-3191.patch.
>> 
>> This is a follow-up to 026ee1a5a669658c8d4745c2733b4c201ca0e48e.
>> 
>> * gnu/packages/patches/pcre-CVE-2016-3191.patch: Delete file.
>> * gnu/local.mk (dist_patch_DATA): Remove it.
>
>It's too early for this commit because pcre2 is still using this patch,
>right?
>
>If so, can you revert this change?

I used git grep for the patch name and pcre was the only one using it. On core 
updates pcre2 has a separate pcre2 patch covering the same cve

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Re: 01/01: gnu: Remove pcre-CVE-2016-3191.patch.

2017-01-23 Thread Leo Famulari
On Mon, Jan 23, 2017 at 08:31:29AM +, Efraim Flashner wrote:
> efraim pushed a commit to branch core-updates
> in repository guix.
> 
> commit 0e88ada940953ac6b12fcbfd2add08835edcf49d
> Author: Efraim Flashner 
> Date:   Mon Jan 23 10:28:15 2017 +0200
> 
> gnu: Remove pcre-CVE-2016-3191.patch.
> 
> This is a follow-up to 026ee1a5a669658c8d4745c2733b4c201ca0e48e.
> 
> * gnu/packages/patches/pcre-CVE-2016-3191.patch: Delete file.
> * gnu/local.mk (dist_patch_DATA): Remove it.

It's too early for this commit because pcre2 is still using this patch,
right?

If so, can you revert this change?



Re: [PATCH 01/11] gnu: lxterminal: Update to 0.3.0.

2017-01-23 Thread Marius Bakke
contact@cryptolab.net writes:

> From: ng0 
>
> * gnu/packages/lxde.scm (lxterminal): Update to 0.3.0.
> [arguments]: Disable tests.
> [source]: Update to use new '.tar.xz' tarball.

Applied, thanks!

> +(arguments
> + `(; Tests fail for "po" fail with "No rule to make target 
> '../src/encoding.c'
> +   ;; needed by 'lxterminal.pot'. Stop."
> +   #:tests? #f))

This is strange. The "po" makefile refer to a file "encoding.c" that is
missing in the release tarball. Could you report this issue upstream?

The 'check' phase is autotools-generated and does not seem to run any
actual tests, so I assume this file is not needed. Nothing else refers
to it.


signature.asc
Description: PGP signature


Re: [PATCH 0/1] gnu: gcc@5: Make __DATE__ and __TIME__ macros reproducible.

2017-01-23 Thread Marius Bakke
Ludovic Courtès  writes:

>> They *should* be functionally identical to Debians patches:
>>
>> https://anonscm.debian.org/viewvc/gcccvs/branches/sid/gcc-5/debian/patches/
>>
>> ...but I have not verified this. Any takers?
>
> The ‘guix environment’ session you show is exactly how I would have
> tested it, so I don’t think there’s more to be tested, is there?

Was mostly afraid to have missed something, but I could not spot any
differences :)

> I’d only keep the subject line of the patch rather than the complete
> log, to keep it small.  We have the upstream commit URL anyway.
>
> Apart from that, LGTM for ‘core-updates’.

OK, pushed with that change!

>
> Next we can remove all those __DATE__/__TIME__ snippets and dance!
>
> Thank you!
>
> Ludo’.


signature.asc
Description: PGP signature


Re: [PATCH 11/11] gnu: Add lxde.

2017-01-23 Thread Albin
Hi,

Den 2017-01-23 kl. 19:55, skrev contact@cryptolab.net:
> From: ng0 
> + ;; TODO:
> + ;; lxshortcut, lxsession-edit, gpicview, leadpad,

There is a typo here: "leadpad" should be "leafpad"

Albin



[PATCH 10/11] gnu: Add lxpanel.

2017-01-23 Thread contact . ng0
From: ng0 

* gnu/packages/lxde.scm (lxpanel): New variable.
---
 gnu/packages/lxde.scm | 42 ++
 1 file changed, 42 insertions(+)

diff --git a/gnu/packages/lxde.scm b/gnu/packages/lxde.scm
index aa7d1ddce..7911b35eb 100644
--- a/gnu/packages/lxde.scm
+++ b/gnu/packages/lxde.scm
@@ -22,11 +22,15 @@
   #:use-module (gnu packages)
   #:use-module (gnu packages autotools)
   #:use-module (gnu packages docbook)
+  #:use-module (gnu packages gettext)
   #:use-module (gnu packages glib)
   #:use-module (gnu packages gnome)
   #:use-module (gnu packages gtk)
+  #:use-module (gnu packages linux)
   #:use-module (gnu packages pkg-config)
   #:use-module (gnu packages polkit)
+  #:use-module (gnu packages wm)
+  #:use-module (gnu packages xml)
   #:use-module (gnu packages xorg)
   #:use-module (guix build-system gnu)
   #:use-module (guix download)
@@ -354,4 +358,42 @@ in LXDE.")
 (home-page "http://lxde.org;)
 (license license:gpl2+)))
 
+(define-public lxpanel
+  (package
+(name "lxpanel")
+(version "0.9.3")
+(source
+ (origin
+   (method url-fetch)
+   (uri (string-append "https://downloads.sourceforge.net/lxde/;
+   name "-" version ".tar.xz"))
+   (sha256
+(base32
+ "1ccgv7jgl3y865cpb6w7baaz7468fxncm83bqxlwyni5bwhglb1l"
+(build-system gnu-build-system)
+(inputs
+ `(("gtk+-2" ,gtk+-2)
+   ("alsa-lib" ,alsa-lib)
+   ("menu-cache" ,menu-cache)
+   ("lxmenu-data" ,lxmenu-data)
+   ("libwnck-2" ,libwnck-2)
+   ("libfm" ,libfm)
+   ("keybinder" ,keybinder)
+   ("libxmu" ,libxmu)
+   ("libxpm" ,libxpm)
+   ("libxml2" ,libxml2)
+   ("cairo" ,cairo)
+   ("libx11" ,libx11)
+   ("wireless-tools" ,wireless-tools)))
+(native-inputs
+ `(("pkg-config" ,pkg-config)
+   ("intltool" ,intltool)
+   ("docbook-xml" ,docbook-xml)
+   ("gettext-minimal" ,gettext-minimal)))
+(synopsis "X11 Desktop panel for LXDE")
+(description
+ "Lxpanel provides an X11 desktop panel for LXDE.")
+(home-page "http://lxde.org;)
+(license license:gpl2+)))
+
 ;;; lxde.scm ends here
-- 
2.11.0




[PATCH 07/11] gnu: Add lxinput.

2017-01-23 Thread contact . ng0
From: ng0 

* gnu/packages/lxde.scm (lxinput): New variable.
---
 gnu/packages/lxde.scm | 25 +
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/lxde.scm b/gnu/packages/lxde.scm
index e825cf9b5..063345f21 100644
--- a/gnu/packages/lxde.scm
+++ b/gnu/packages/lxde.scm
@@ -287,4 +287,29 @@ menu spec-compliant desktop menus for LXDE.")
 (home-page "http://lxde.org;)
 (license license:gpl2+)))
 
+(define-public lxinput
+  (package
+(name "lxinput")
+(version "0.3.5")
+(source
+ (origin
+   (method url-fetch)
+   (uri (string-append "https://downloads.sourceforge.net/lxde/;
+   name "-" version ".tar.xz"))
+   (sha256
+(base32
+ "123f3yn4rp1w5b3n5aj3ad9snkxab29qkrs7bcvf5bx4cn57g3sf"
+(build-system gnu-build-system)
+(inputs
+ `(("gtk+-2" ,gtk+-2)))
+(native-inputs
+ `(("pkg-config" ,pkg-config)
+   ("intltool" ,intltool)))
+(synopsis "Tool for mouse and keyboard configuration in LXDE")
+(description
+ "Lxinput provides a small program to configure keyboard and mouse
+in LXDE.")
+(home-page "http://lxde.org;)
+(license license:gpl2+)))
+
 ;;; lxde.scm ends here
-- 
2.11.0




[PATCH 01/11] gnu: lxterminal: Update to 0.3.0.

2017-01-23 Thread contact . ng0
From: ng0 

* gnu/packages/lxde.scm (lxterminal): Update to 0.3.0.
[arguments]: Disable tests.
[source]: Update to use new '.tar.xz' tarball.
---
 gnu/packages/lxde.scm | 11 ---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/lxde.scm b/gnu/packages/lxde.scm
index dedaaee27..e04570bf9 100644
--- a/gnu/packages/lxde.scm
+++ b/gnu/packages/lxde.scm
@@ -1,6 +1,7 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2015 Mathieu Lirzin 
 ;;; Copyright © 2016 Efraim Flashner 
+;;; Copyright © 2017 ng0 
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -143,16 +144,20 @@ toolkit.  It allows users to monitor and control of 
running processes.")
 (define-public lxterminal
   (package
 (name "lxterminal")
-(version "0.2.0")
+(version "0.3.0")
 (source (origin
   (method url-fetch)
   (uri (string-append "mirror://sourceforge/lxde/LXTerminal"
   "%20%28terminal%20emulator%29/LXTerminal%20"
-  version "/" name "-" version ".tar.gz"))
+  version "/" name "-" version ".tar.xz"))
   (sha256
(base32
-"1brb506vmnncih8nyvlrckrrn6msbsvz2vwbm7bsqwigcnchwjqp"
+"1yf76s15zvfw0h42b0ay1slpq47khgjmcry8ki2z812zar9lchia"
 (build-system gnu-build-system)
+(arguments
+ `(; Tests fail for "po" fail with "No rule to make target 
'../src/encoding.c'
+   ;; needed by 'lxterminal.pot'. Stop."
+   #:tests? #f))
 (inputs `(("gtk+" ,gtk+-2)
   ("vte"  ,vte/gtk+-2)))
 (native-inputs `(("intltool"   ,intltool)
-- 
2.11.0




[PATCH 08/11] gnu: Add lxsession.

2017-01-23 Thread contact . ng0
From: ng0 

* gnu/packages/lxde.scm (lxsession): New variable.
* gnu/packages/patches/lxsession-use-gapplication.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
---
 gnu/local.mk   |   1 +
 gnu/packages/lxde.scm  |  42 ++
 .../patches/lxsession-use-gapplication.patch   | 152 +
 3 files changed, 195 insertions(+)
 create mode 100644 gnu/packages/patches/lxsession-use-gapplication.patch

diff --git a/gnu/local.mk b/gnu/local.mk
index 0026e85a3..b31e48f58 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -736,6 +736,7 @@ dist_patch_DATA =   
\
   %D%/packages/patches/luajit-symlinks.patch   \
   %D%/packages/patches/luit-posix.patch\
   %D%/packages/patches/lvm2-static-link.patch  \
+  %D%/packages/patches/lxsession-use-gapplication.patch \
   %D%/packages/patches/make-impure-dirs.patch  \
   %D%/packages/patches/mars-install.patch  \
   %D%/packages/patches/mars-sfml-2.3.patch \
diff --git a/gnu/packages/lxde.scm b/gnu/packages/lxde.scm
index 063345f21..aa7d1ddce 100644
--- a/gnu/packages/lxde.scm
+++ b/gnu/packages/lxde.scm
@@ -19,11 +19,14 @@
 ;;; along with GNU Guix.  If not, see .
 
 (define-module (gnu packages lxde)
+  #:use-module (gnu packages)
   #:use-module (gnu packages autotools)
+  #:use-module (gnu packages docbook)
   #:use-module (gnu packages glib)
   #:use-module (gnu packages gnome)
   #:use-module (gnu packages gtk)
   #:use-module (gnu packages pkg-config)
+  #:use-module (gnu packages polkit)
   #:use-module (gnu packages xorg)
   #:use-module (guix build-system gnu)
   #:use-module (guix download)
@@ -312,4 +315,43 @@ in LXDE.")
 (home-page "http://lxde.org;)
 (license license:gpl2+)))
 
+(define-public lxsession
+  (package
+(name "lxsession")
+(version "0.5.3")
+(source
+ (origin
+   (method url-fetch)
+   (uri (string-append "https://downloads.sourceforge.net/lxde/;
+   name "-" version ".tar.xz"))
+   (patches (search-patches "lxsession-use-gapplication.patch"))
+   (sha256
+(base32
+ "1a0zmyywwzdh59nc0l94cir18vhp633z4q2xfhn5zx11ajj45gwh"
+(build-system gnu-build-system)
+(arguments
+ `(#:phases
+   (modify-phases %standard-phases
+ (add-after 'unpack 'rm-stamp
+   (lambda _
+ (for-each delete-file (find-files "." "\\.stamp$"
+ (add-after 'rm-stamp 'autoreconf
+   (lambda _
+ (zero? (system* "autoreconf" "-vfi")))
+(inputs
+ `(("gtk+-2" ,gtk+-2)
+   ("polkit" ,polkit)))
+(native-inputs
+ `(("pkg-config" ,pkg-config)
+   ("intltool" ,intltool)
+   ("docbook-xsl" ,docbook-xsl)
+   ("vala" ,vala)
+   ("autoconf" ,autoconf)
+   ("automake" ,automake)))
+(synopsis "Lightweight X11 session manager")
+(description
+ "Lxsession provides an lightweight X11 session manager.")
+(home-page "http://lxde.org;)
+(license license:gpl2+)))
+
 ;;; lxde.scm ends here
diff --git a/gnu/packages/patches/lxsession-use-gapplication.patch 
b/gnu/packages/patches/lxsession-use-gapplication.patch
new file mode 100644
index 0..3f2269a42
--- /dev/null
+++ b/gnu/packages/patches/lxsession-use-gapplication.patch
@@ -0,0 +1,152 @@
+Upstream patch to remove libunique dependency, and use glib >= 2.28.0
+to handle unique apps both for GTK+ 2 and 3.
+https://sourceforge.net/p/lxde/patches/539/
+
+
+From a7d3b40a79a7a16c1f5d50d2bd466570258dae29 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Ball=C3=B3=20Gy=C3=B6rgy?= 
+Date: Sun, 22 Jan 2017 01:09:59 +0100
+Subject: [PATCH] Use GApplication for unique app handling
+
+Remove libunique dependency, and use glib >= 2.28.0 to handle unique apps both 
for GTK+ 2 and 3.
+---
+ Makefile.am   |  6 --
+ configure.ac  |  7 +--
+ lxclipboard/main.vala | 16 +---
+ lxpolkit/main.vala| 16 +---
+ 4 files changed, 3 insertions(+), 42 deletions(-)
+
+diff --git a/Makefile.am b/Makefile.am
+index c2e1fe8..e3a3b97 100644
+--- a/Makefile.am
 b/Makefile.am
+@@ -90,9 +90,6 @@ if USE_GTK3
+ lxclipboard_lxclipboard_VALAFLAGS += --define USE_GTK3
+ else
+ lxclipboard_lxclipboard_VALAFLAGS += --define USE_GTK2
+-lxclipboard_lxclipboard_VALAFLAGS += --pkg unique-1.0
+-lxclipboard_lxclipboard_CPPFLAGS += $(UNIQUE_CFLAGS)
+-lxclipboard_lxclipboard_LDADD += $(UNIQUE_LIBS)
+ endif
+ 
+ lxpolkit_lxpolkit_vala_SOURCES = \
+@@ -137,9 +134,6 @@ if USE_GTK3
+ lxpolkit_lxpolkit_VALAFLAGS += --define USE_GTK3
+ else
+ lxpolkit_lxpolkit_VALAFLAGS += --define USE_GTK2
+-lxpolkit_lxpolkit_VALAFLAGS += --pkg unique-1.0
+-lxpolkit_lxpolkit_CPPFLAGS += $(UNIQUE_CFLAGS)
+-lxpolkit_lxpolkit_LDADD += 

[PATCH 02/11] gnu: pcmanfm, libfm: Update to 1.2.5.

2017-01-23 Thread contact . ng0
From: ng0 

* gnu/packages/lxde.scm (pcmanfm): Update to 1.2.5.
* gnu/packages/lxde.scm (libfm): Update to 1.2.5.
---
 gnu/packages/lxde.scm | 8 
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/lxde.scm b/gnu/packages/lxde.scm
index e04570bf9..7fb0be373 100644
--- a/gnu/packages/lxde.scm
+++ b/gnu/packages/lxde.scm
@@ -34,7 +34,7 @@
 (define-public libfm
   (package
 (name "libfm")
-(version "1.2.4")
+(version "1.2.5")
 (source (origin
   (method url-fetch)
   (uri (string-append "mirror://sourceforge/pcmanfm/"
@@ -42,7 +42,7 @@
   "%29/LibFM/" name "-" version ".tar.xz"))
   (sha256
(base32
-"0bsh4p7h2glhxf1cc1lvbxyb4qy0y1zsnl9izf7vrldkikrgc13q"
+"0nlvfwh09gbq8bkbvwnw6iqr918rrs9gc9ljb9pjspyg408bn1n7"
 (build-system gnu-build-system)
 (inputs `(("glib" ,glib)
   ("gtk+" ,gtk+-2)))
@@ -195,7 +195,7 @@ speed up the access to freedesktop.org defined application 
menus.")
 (define-public pcmanfm
   (package
 (name "pcmanfm")
-(version "1.2.4")
+(version "1.2.5")
 (source (origin
   (method url-fetch)
   (uri (string-append "mirror://sourceforge/" name "/"
@@ -203,7 +203,7 @@ speed up the access to freedesktop.org defined application 
menus.")
   "%29/PCManFM/" name "-" version ".tar.xz"))
   (sha256
(base32
-"04z3vd9si24yi4c8calqncdpb9b6mbj4cs4f3fs86i6j05gvpk9q"
+"0rxdh0dfzc84l85c54blq42gczygq8adhr3l9hqzy1dp530cm1hc"
 (build-system gnu-build-system)
 ;; (#:configure-flags '("--sysconfdir=/etc")) suggested in README.
 (inputs `(("gtk+"   ,gtk+-2)
-- 
2.11.0




[PATCH 04/11] gnu: Add lxmenu-data.

2017-01-23 Thread contact . ng0
From: ng0 

* gnu/packages/lxde.scm (lxmenu-data): New variable.
---
 gnu/packages/lxde.scm | 23 +++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/lxde.scm b/gnu/packages/lxde.scm
index 036091208..604e3122f 100644
--- a/gnu/packages/lxde.scm
+++ b/gnu/packages/lxde.scm
@@ -219,4 +219,27 @@ with freedesktop.org standard.")
 (home-page "http://lxde.org;)
 (license license:gpl2+)))
 
+(define-public lxmenu-data
+  (package
+(name "lxmenu-data")
+(version "0.1.5")
+(source
+ (origin
+   (method url-fetch)
+   (uri (string-append "https://downloads.sourceforge.net/lxde/;
+   name "-" version ".tar.xz"))
+   (sha256
+(base32
+ "1f5sh2dvb3pdnjlcsyzq9543ck2jsqizkx3204cr22zm5s6j3qwz"
+(build-system gnu-build-system)
+(native-inputs
+ `(("pkg-config" ,pkg-config)
+   ("intltool" ,intltool)))
+(synopsis "Freedesktop.org desktop menus for LXDE")
+(description
+ "Lxmenu-data provides files required to build freedesktop.org
+menu spec-compliant desktop menus for LXDE.")
+(home-page "http://lxde.org;)
+(license license:lgpl2.1+)))
+
 ;;; lxde.scm ends here
-- 
2.11.0




[PATCH 11/11] gnu: Add lxde.

2017-01-23 Thread contact . ng0
From: ng0 

* gnu/packages/lxde.scm (lxde): New variable.
---
 gnu/packages/lxde.scm | 39 +++
 1 file changed, 39 insertions(+)

diff --git a/gnu/packages/lxde.scm b/gnu/packages/lxde.scm
index 7911b35eb..6ac591df2 100644
--- a/gnu/packages/lxde.scm
+++ b/gnu/packages/lxde.scm
@@ -27,12 +27,14 @@
   #:use-module (gnu packages gnome)
   #:use-module (gnu packages gtk)
   #:use-module (gnu packages linux)
+  #:use-module (gnu packages openbox)
   #:use-module (gnu packages pkg-config)
   #:use-module (gnu packages polkit)
   #:use-module (gnu packages wm)
   #:use-module (gnu packages xml)
   #:use-module (gnu packages xorg)
   #:use-module (guix build-system gnu)
+  #:use-module (guix build-system trivial)
   #:use-module (guix download)
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix packages)
@@ -396,4 +398,41 @@ in LXDE.")
 (home-page "http://lxde.org;)
 (license license:gpl2+)))
 
+(define-public lxde
+  (package
+(name "lxde")
+(version (package-version lxde-common))
+(source #f)
+(build-system trivial-build-system)
+(arguments '(#:builder (mkdir %output)))
+(propagated-inputs
+ ;; TODO:
+ ;; lxshortcut, lxsession-edit, gpicview, leadpad,
+ ;; lxappearance-obconf
+ `(("menu-cache" ,menu-cache)
+   ("lxappearance" ,lxappearance)
+   ("lxde-icon-theme" ,lxde-icon-theme)
+   ("lxde-common" ,lxde-common)
+   ("lxmenu-data" ,lxmenu-data)
+   ("lxpanel" ,lxpanel)
+   ("lxrandr" ,lxrandr)
+   ("lxsession" ,lxsession)
+   ("libfm" ,libfm)
+   ("libfm-extra" ,libfm-extra)
+   ("lxtask" ,lxtask)
+   ("lxterminal" ,lxterminal)
+   ("pcmanfm" ,pcmanfm)
+   ("openbox" ,openbox)
+   ("obconf" ,obconf)))
+(synopsis "Lightweight X11 Desktop Environment")
+(description
+ "LXDE, which stands for Lightweight X11 Desktop Environment, is a
+desktop environment which is lightweight and fast.  It is designed to be
+user friendly and slim, while keeping the resource usage low.  LXDE uses
+less RAM and less CPU while being a feature rich desktop environment.  Unlike
+other tightly integrated desktops LXDE strives to be modular, so each
+component can be used independently with few dependencies.")
+(home-page "https://lxde.org;)
+(license license:gpl2+))) ; And others.
+
 ;;; lxde.scm ends here
-- 
2.11.0




[PATCH 06/11] gnu: Add lxde-common.

2017-01-23 Thread contact . ng0
From: ng0 

* gnu/packages/lxde.scm (lxde-common): New variable.
---
 gnu/packages/lxde.scm | 24 
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/lxde.scm b/gnu/packages/lxde.scm
index 8de9aaf44..e825cf9b5 100644
--- a/gnu/packages/lxde.scm
+++ b/gnu/packages/lxde.scm
@@ -263,4 +263,28 @@ menu spec-compliant desktop menus for LXDE.")
 (home-page "http://lxde.org;)
 (license license:lgpl3)))
 
+(define-public lxde-common
+  (package
+(name "lxde-common")
+(version "0.99.2")
+(source
+ (origin
+   (method url-fetch)
+   (uri (string-append "https://downloads.sourceforge.net/lxde/;
+   name "-" version ".tar.xz"))
+   (sha256
+(base32
+ "0mj84fa3f4ak1jjslrwc2q3ci9zxrxpciggviza9bjb0168brn8w"
+(build-system gnu-build-system)
+(inputs
+ `(("lxde-icon-theme" ,lxde-icon-theme)))
+(native-inputs
+ `(("pkg-config" ,pkg-config)
+   ("intltool" ,intltool)))
+(synopsis "Common files of the LXDE Desktop")
+(description
+ "Lxde-common provides common files of the LXDE Desktop.")
+(home-page "http://lxde.org;)
+(license license:gpl2+)))
+
 ;;; lxde.scm ends here
-- 
2.11.0




Add lxde. (Mixed content: 4 updates, 7 RFCs)

2017-01-23 Thread contact . ng0
[PATCH 01/11] gnu: lxterminal: Update to 0.3.0.
[PATCH 02/11] gnu: pcmanfm, libfm: Update to 1.2.5.
[PATCH 03/11] gnu: menu-cache: Update to 1.0.2.

The ones above are functional and can be applied, the ones below are for first 
RFCs:

[PATCH 04/11] gnu: Add lxmenu-data.
[PATCH 05/11] gnu: Add lxde-icon-theme.
[PATCH 06/11] gnu: Add lxde-common.
[PATCH 07/11] gnu: Add lxinput.
[PATCH 08/11] gnu: Add lxsession.
[PATCH 09/11] gnu: Add keybinder.
[PATCH 10/11] gnu: Add lxpanel.
[PATCH 11/11] gnu: Add lxde.

Currently when I reconfigure a system with lxde in the global available 
packages, and I try to log in to LXDE (which is detectecd by SDDM), SDDM for a 
short second shows a black screen and drops me back to the log in screen.

That's the first time I did an meta package for Guix, but I guess I did it 
right?



[PATCH 09/11] gnu: Add keybinder.

2017-01-23 Thread contact . ng0
From: ng0 

* gnu/packages/wm.scm (keybinder): New variable.
---
 gnu/packages/wm.scm | 29 +
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm
index 8612867f4..70d645d8a 100644
--- a/gnu/packages/wm.scm
+++ b/gnu/packages/wm.scm
@@ -632,3 +632,32 @@ all of them.  Currently supported window managers include:
 @end enumerate\n")
 (home-page "http://menumaker.sourceforge.net/;)
 (license license:bsd-2)))
+
+(define-public keybinder
+  (package
+(name "keybinder")
+(version "0.3.1")
+(source
+ (origin
+   (method url-fetch)
+   (uri (string-append "https://github.com/engla/keybinder/releases/;
+   "download/v" version "/keybinder-"
+   version ".tar.gz"))
+   (file-name (string-append name "-" version ".tar.gz"))
+   (sha256
+(base32
+ "0h52hj3ay8mfhwvmfxbxlfyq74hifdk8wxgxp7fr4iy6189hg7w7"
+(build-system gnu-build-system)
+(inputs
+ `(("python-2" ,python-2)
+   ("gtk+-2" ,gtk+-2)))
+(native-inputs
+ `(("python2-pygtk" ,python2-pygtk)
+   ("gtk-doc" ,gtk-doc)
+   ("pkg-config" ,pkg-config)))
+(synopsis "Library for registering global keyboard shortcuts")
+(description
+ "Keybinder is a library for registering global keyboard shortcuts.
+Keybinder works with GTK-based applications using the X Window System.")
+(home-page "https://github.com/engla/keybinder;)
+(license license:gpl2+)))
-- 
2.11.0




[PATCH 05/11] gnu: Add lxde-icon-theme.

2017-01-23 Thread contact . ng0
From: ng0 

* gnu/packages/lxde.scm (lxde-icon-theme): New variable.
---
 gnu/packages/lxde.scm | 21 +
 1 file changed, 21 insertions(+)

diff --git a/gnu/packages/lxde.scm b/gnu/packages/lxde.scm
index 604e3122f..8de9aaf44 100644
--- a/gnu/packages/lxde.scm
+++ b/gnu/packages/lxde.scm
@@ -242,4 +242,25 @@ menu spec-compliant desktop menus for LXDE.")
 (home-page "http://lxde.org;)
 (license license:lgpl2.1+)))
 
+(define-public lxde-icon-theme
+  (package
+(name "lxde-icon-theme")
+(version "0.5.1")
+(source
+ (origin
+   (method url-fetch)
+   (uri (string-append "https://downloads.sourceforge.net/lxde/;
+   name "-" version ".tar.xz"))
+   (sha256
+(base32
+ "0v4i6x86fr2hbx4fb2si7y2qzmj7h6hcjwaifnin18r8kwwvgl73"
+(build-system gnu-build-system)
+(native-inputs
+ `(("pkg-config" ,pkg-config)))
+(synopsis "LXDE default icon theme based on nuoveXT2")
+(description
+ "Lxde-icon-theme provides an default icon theme for LXDE.")
+(home-page "http://lxde.org;)
+(license license:lgpl3)))
+
 ;;; lxde.scm ends here
-- 
2.11.0




[PATCH 03/11] gnu: menu-cache: Update to 1.0.2.

2017-01-23 Thread contact . ng0
From: ng0 

* gnu/packages/lxde.scm (menu-cache): Update to 1.0.2.
---
 gnu/packages/lxde.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/lxde.scm b/gnu/packages/lxde.scm
index 7fb0be373..036091208 100644
--- a/gnu/packages/lxde.scm
+++ b/gnu/packages/lxde.scm
@@ -173,7 +173,7 @@ performance, all instances of the terminal are sharing a 
single process.")
 (define-public menu-cache
   (package
 (name "menu-cache")
-(version "1.0.1")
+(version "1.0.2")
 (source (origin
   (method url-fetch)
   (uri (string-append "mirror://sourceforge/lxde/" name "/"
@@ -181,7 +181,7 @@ performance, all instances of the terminal are sharing a 
single process.")
   name "-" version ".tar.xz"))
   (sha256
(base32
-"0ngxvwfj9drabqi3lyzgpi0d0za6431sy2ijb010filrj54jdiqa"
+"1m8j40npykfcfqs43kc0fmksal2jfmfi8lnb3mq3xy1lvvrfv0vg"
 (build-system gnu-build-system)
 (inputs `(("glib"  ,glib)
   ("libfm" ,libfm-extra)))
-- 
2.11.0




Re: [PATCH] gnu: duplicity: Update to 0.7.11.

2017-01-23 Thread Marius Bakke
Thomas Danckaert  writes:

> Hi Guix,
>
> this patch updates duplicity, removes no-longer needed patches, and 
> reorganises the inputs.  I've also added a substitution to embed the 
> store name of gnupg.

Hi Thomas,

Thank you very much for this! I tried updating to 0.7.10 a while back,
but got stuck on a GPG test and forgot all about it.

Applied!


signature.asc
Description: PGP signature


[PATCH v2 2/2] gnu: Add dub-build-system.

2017-01-23 Thread Danny Milosavljevic
* guix/build-system/dub.scm: New file.
* guix/build/dub-build-system.scm: New file.
* Makefile.am (MODULES): Add them.
---
 Makefile.am |   2 +
 guix/build-system/dub.scm   | 153 
 guix/build/dub-build-system.scm | 110 +
 3 files changed, 265 insertions(+)
 create mode 100644 guix/build-system/dub.scm
 create mode 100644 guix/build/dub-build-system.scm

diff --git a/Makefile.am b/Makefile.am
index c13d0df8a..15bafa224 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -63,6 +63,7 @@ MODULES = \
   guix/build-system/ant.scm\
   guix/build-system/cargo.scm  \
   guix/build-system/cmake.scm  \
+  guix/build-system/dub.scm\
   guix/build-system/emacs.scm  \
   guix/build-system/asdf.scm   \
   guix/build-system/glib-or-gtk.scm\
@@ -87,6 +88,7 @@ MODULES = \
   guix/build/download.scm  \
   guix/build/cargo-build-system.scm\
   guix/build/cmake-build-system.scm\
+  guix/build/dub-build-system.scm  \
   guix/build/emacs-build-system.scm\
   guix/build/asdf-build-system.scm \
   guix/build/git.scm   \
diff --git a/guix/build-system/dub.scm b/guix/build-system/dub.scm
new file mode 100644
index 0..cecdba843
--- /dev/null
+++ b/guix/build-system/dub.scm
@@ -0,0 +1,153 @@
+;;; GNU Guix --- Functional package management for GNU
+;;; Copyright © 2013, 2014, 2015, 2016 Ludovic Courtès 
+;;; Copyright © 2013 Andreas Enge 
+;;; Copyright © 2013 Nikita Karetnikov 
+;;; Copyright © 2016 David Craven 
+;;; Copyright © 2016 Danny Milosavljevic 
+;;;
+;;; 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 (guix build-system dub)
+  #:use-module (guix search-paths)
+  #:use-module (guix store)
+  #:use-module (guix utils)
+  #:use-module (guix derivations)
+  #:use-module (guix packages)
+  #:use-module (guix build-system)
+  #:use-module (guix build-system gnu)
+  #:use-module (ice-9 match)
+  #:use-module (srfi srfi-26)
+  #:export (dub-build-system
+package-url
+package-url?
+package-uri))
+
+(define package-url "https://packages.io/api/v1/packages/;)
+(define package-url? (cut string-prefix? package-url <>))
+
+(define (package-uri name version)
+  "Return a URI string for the package package hosted at packages.io 
corresponding
+to NAME and VERSION."
+  (string-append package-url name "/" version "/download"))
+
+(define (default-ldc)
+  "Return the default Rustc package."
+  ;; Lazily resolve the binding to avoid a circular dependency.
+  (let ((ldc (resolve-interface '(gnu packages ldc
+(module-ref ldc 'ldc)))
+
+(define (default-dub)
+  "Return the default Rustc package."
+  ;; Lazily resolve the binding to avoid a circular dependency.
+  (let ((ldc (resolve-interface '(gnu packages ldc
+(module-ref ldc 'dub)))
+
+(define %dub-build-system-modules
+  ;; Build-side modules imported by default.
+  `((guix build dub-build-system)
+(guix build syscalls)
+,@%gnu-build-system-modules))
+
+(define* (dub-build store name inputs
+  #:key
+  (tests? #t)
+  (test-target #f)
+  (configure-flags #f) ; XXX unused
+  (dub-build-flags ''())
+  (phases '(@ (guix build dub-build-system)
+  %standard-phases))
+  (outputs '("out"))
+  (search-paths '())
+  (system (%current-system))
+  (guile #f)
+  (imported-modules %dub-build-system-modules)
+  (modules '((guix build dub-build-system)
+ (guix build utils
+  "Build SOURCE using DUB, and with INPUTS."
+
+  (define builder
+`(begin
+   (use-modules ,@modules)
+   (dub-build #:name ,name
+#:source ,(match (assoc-ref inputs "source")
+(((? 

[PATCH v2 1/2] gnu: Add dub.

2017-01-23 Thread Danny Milosavljevic
* gnu/packages/ldc.scm (dub): New variable.
---
 gnu/packages/ldc.scm | 37 +
 1 file changed, 37 insertions(+)

diff --git a/gnu/packages/ldc.scm b/gnu/packages/ldc.scm
index 6ea7f664b..163006247 100644
--- a/gnu/packages/ldc.scm
+++ b/gnu/packages/ldc.scm
@@ -27,6 +27,7 @@
   #:use-module (gnu packages)
   #:use-module (gnu packages base)
   #:use-module (gnu packages compression)
+  #:use-module (gnu packages curl)
   #:use-module (gnu packages libedit)
   #:use-module (gnu packages llvm)
   #:use-module (gnu packages python)
@@ -171,3 +172,39 @@ latest DMD frontend and uses LLVM as backend.")
 (license (list license:bsd-3
license:gpl2+
license:boost1.0
+
+(define-public dub
+  (package
+(name "dub")
+(version "1.2.0")
+(source (origin
+  (method url-fetch)
+  (uri (string-append "https://github.com/dlang/dub/archive/;
+  "v" version ".tar.gz"))
+  (file-name (string-append name "-" version ".tar.gz"))
+  (sha256
+   (base32
+"1sd8i1rvxc7y7kk0y6km5zyvaladc5zh56r6afj74ndd63dssv43"
+(build-system gnu-build-system)
+(arguments
+ `(#:tests? #f ; it would have tested itself by installing some packages 
(vibe etc)
+   #:phases
+   (modify-phases %standard-phases
+ (delete 'configure)
+ (replace 'build
+   (lambda _
+ (zero? (system* "./build.sh"
+ (replace 'install
+   (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+(outbin (string-append out "/bin")))
+   (mkdir-p outbin)
+   (install-file "bin/dub" outbin)))
+(inputs
+ `(("curl" ,curl)))
+(native-inputs
+ `(("ldc" ,ldc)))
+(home-page "https://code.dlang.org/getting_started;)
+(synopsis "DUB package manager")
+(description "This package provides the D package manager.")
+(license license:expat)))



[PATCH v2 0/2] Add dub and dub-build-system.

2017-01-23 Thread Danny Milosavljevic
Danny Milosavljevic (2):
  gnu: Add dub.
  gnu: Add dub-build-system.

 Makefile.am |   2 +
 gnu/packages/ldc.scm|  37 ++
 guix/build-system/dub.scm   | 153 
 guix/build/dub-build-system.scm | 110 +
 4 files changed, 302 insertions(+)
 create mode 100644 guix/build-system/dub.scm
 create mode 100644 guix/build/dub-build-system.scm




Re: GeoIP database redistribution?

2017-01-23 Thread Marius Bakke
ng0  writes:

> I want to slowly package OONI (https://ooni.torproject.org/).
> One of its dependencies, txtorcon, requires python-geoip which
> depends on geoip-c-api. I've got both covered, but both of them
> want (either to download or to be present) for tests (a/the)
> legacy database file of maxmind.
>
> Question 1: Can we distribute the database in a source? I can't
> access the homepage of maxmind for cloudflare reasons.

The database is distributed freely under cc-by-sa4.0:

https://dev.maxmind.com/geoip/legacy/geolite/#License

So packaging it should be fine. :)


signature.asc
Description: PGP signature


Re: What's missing for LXDE Desktop?

2017-01-23 Thread ng0
ng0  writes:

> Has someone run LXDE on another system before? Is my assumption
> correct that to craft an runable LXDE, we are still missing:
>
>  * lxde-icon-theme
>  * lxde-common
>  * lxmenu-data
>  * lxinput
>  * lxlxpanel
>  * lxsession

I've packaged the ones above and made an lxde meta package,
reconfiguring my system now and then I will send the whole series
in for review.

I've left the ones below open for TODO, noted in the lxde package...

>  * lxsh (?)
>  * gpicview
>
> ... or is LXDE to be combined with another desktop manager like
> Openbox? It's been years since I've seen LXDE.

... and was able to answer this question myself.

-- 
♥Ⓐ  ng0 -- https://www.inventati.org/patternsinthechaos/



Re: [PATCH] gnu: add geos

2017-01-23 Thread Marius Bakke
Björn Höfling  writes:

> Thanks for accepting!
>
> I have some comments/questions below.
>
>> > +(arguments `(#:phases
>> > + (modify-phases %standard-phases
>> > +   (add-after
>> > +   'unpack 'patch-test-shebangs
>> > + (lambda _
>> > +   (substitute*
>> > '("tests/xmltester/testrunner.sh"
>> > +
>> > "tests/geostest/testrunner.sh")
>> > + (("/bin/sh") (which "bash")))  
>> 
>> Bash behaves differently based on whether it's invoked as 'bash' or
>> 'sh', so I changed this to (which "sh") to be safe.
>
> I thought I found that sh-> "bash" substitution quite often, for example here 
> in nginx:
>
> http://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/web.scm#n148

Thanks for catching that; fixed! :-)

It's something we've only recently started to take care of. Feel free to
submit patches!

>> > +(license license:lgpl2.1)))  
>> 
>> The files do not mention whether it's 2.1 only or later versions so we
>> default to "or later". Also found a few files with other licenses.
>
> I also found no mentioning of "later" or not, so I thought to stick with the
> mentioned license version. What makes you use the "or later" version?

This convention has been mentioned to me in passing a couple of times on
this mailing list. I'm not sure where it comes from, but often
double-check with Debians copyright information which settled on the
same license:

http://metadata.ftp-master.debian.org/changelogs/main/g/geos/geos_3.5.1-3_copyright


signature.asc
Description: PGP signature


[Basic Linux Question]: Is it possible to have two init system?

2017-01-23 Thread rohit yadav
​Hi,

Is it possible to run two init processes? I believe not, but PID 1 (primary
init system) can start another PID 2 which could act secondary init system.
If this is possible and commonly employed then we can easily get all the
features of guixsd on a standard linux distribution. It will be really
useful for beginners who are frustrated by standard distro but do not have
time to learn the whole guix ecosystem at once before using it reliably.

Thanks,
Rohit​


[GuixSD on GCE]: Anyone working on this?

2017-01-23 Thread rohit yadav
Hi,

Is there anyone working on creating a VM image of GuixSD for use on GCE?

Thanks,
Rohit


Re: [PATCH python-tests] gnu: python-2.7: Enable UCS-4 Unicode encoding.

2017-01-23 Thread Marius Bakke
Danny Milosavljevic  writes:

> * gnu/packages/python.scm (python-2.7)[arguments]: Modify.
> ---
>  gnu/packages/python.scm | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
> index fd423d311..6caaeaaf8 100644
> --- a/gnu/packages/python.scm
> +++ b/gnu/packages/python.scm
> @@ -170,6 +170,7 @@
> (list "--enable-shared";allow embedding
>   "--with-system-ffi"  ;build ctypes
>   "--with-ensurepip=install"   ;install pip and setuptools
> + "--enable-unicode=ucs4"
>   (string-append "LDFLAGS=-Wl,-rpath="
>  (assoc-ref %outputs "out") "/lib"))
>  

Hi Danny,

Can you push this to 'core-updates' instead?

It will cause a rebuild of more than 2000 packages on 'python-tests' and
invalidate almost all substitutes, and I would like to merge it sooner
rather than later.

Otherwise LGTM. I checked some other distros and they seem to have this
enabled. Thanks!


signature.asc
Description: PGP signature


What's missing for LXDE Desktop?

2017-01-23 Thread ng0
Has someone run LXDE on another system before? Is my assumption
correct that to craft an runable LXDE, we are still missing:

 * lxde-icon-theme
 * lxde-common
 * lxmenu-data
 * lxinput
 * lxlxpanel
 * lxsession
 * lxsh (?)
 * gpicview

... or is LXDE to be combined with another desktop manager like
Openbox? It's been years since I've seen LXDE.
-- 
♥Ⓐ  ng0 -- https://www.inventati.org/patternsinthechaos/



LXDE updates (terminal,pcmanfm,libfm,menu-cache)

2017-01-23 Thread contact . ng0
This updates our few lxde packages:

 * lxterminal -> 0.3.0
 * pcmanfm, libfm -> 1.2.5
 * menu-cache -> 1.0.2




[PATCH 3/3] gnu: menu-cache: Update to 1.0.2.

2017-01-23 Thread contact . ng0
From: ng0 

* gnu/packages/lxde.scm (menu-cache): Update to 1.0.2.
---
 gnu/packages/lxde.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/lxde.scm b/gnu/packages/lxde.scm
index 7fb0be373..036091208 100644
--- a/gnu/packages/lxde.scm
+++ b/gnu/packages/lxde.scm
@@ -173,7 +173,7 @@ performance, all instances of the terminal are sharing a 
single process.")
 (define-public menu-cache
   (package
 (name "menu-cache")
-(version "1.0.1")
+(version "1.0.2")
 (source (origin
   (method url-fetch)
   (uri (string-append "mirror://sourceforge/lxde/" name "/"
@@ -181,7 +181,7 @@ performance, all instances of the terminal are sharing a 
single process.")
   name "-" version ".tar.xz"))
   (sha256
(base32
-"0ngxvwfj9drabqi3lyzgpi0d0za6431sy2ijb010filrj54jdiqa"
+"1m8j40npykfcfqs43kc0fmksal2jfmfi8lnb3mq3xy1lvvrfv0vg"
 (build-system gnu-build-system)
 (inputs `(("glib"  ,glib)
   ("libfm" ,libfm-extra)))
-- 
2.11.0




[PATCH 1/3] gnu: lxterminal: Update to 0.3.0.

2017-01-23 Thread contact . ng0
From: ng0 

* gnu/packages/lxde.scm (lxterminal): Update to 0.3.0.
[arguments]: Disable tests.
[source]: Update to use new '.tar.xz' tarball.
---
 gnu/packages/lxde.scm | 11 ---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/lxde.scm b/gnu/packages/lxde.scm
index dedaaee27..e04570bf9 100644
--- a/gnu/packages/lxde.scm
+++ b/gnu/packages/lxde.scm
@@ -1,6 +1,7 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2015 Mathieu Lirzin 
 ;;; Copyright © 2016 Efraim Flashner 
+;;; Copyright © 2017 ng0 
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -143,16 +144,20 @@ toolkit.  It allows users to monitor and control of 
running processes.")
 (define-public lxterminal
   (package
 (name "lxterminal")
-(version "0.2.0")
+(version "0.3.0")
 (source (origin
   (method url-fetch)
   (uri (string-append "mirror://sourceforge/lxde/LXTerminal"
   "%20%28terminal%20emulator%29/LXTerminal%20"
-  version "/" name "-" version ".tar.gz"))
+  version "/" name "-" version ".tar.xz"))
   (sha256
(base32
-"1brb506vmnncih8nyvlrckrrn6msbsvz2vwbm7bsqwigcnchwjqp"
+"1yf76s15zvfw0h42b0ay1slpq47khgjmcry8ki2z812zar9lchia"
 (build-system gnu-build-system)
+(arguments
+ `(; Tests fail for "po" fail with "No rule to make target 
'../src/encoding.c'
+   ;; needed by 'lxterminal.pot'. Stop."
+   #:tests? #f))
 (inputs `(("gtk+" ,gtk+-2)
   ("vte"  ,vte/gtk+-2)))
 (native-inputs `(("intltool"   ,intltool)
-- 
2.11.0




Re: [PATCH 1/1] gnu: lcms: Fix an out-of-bounds read.

2017-01-23 Thread Ludovic Courtès
Leo Famulari  skribis:

> * gnu/packages/patches/lcms-fix-out-of-bounds-read.patch: New file.
> * gnu/local.mk (dist_patch_DATA): Add it.
> * gnu/packages/ghostscript.scm (lcms)[replacement]: New field.
> [properties]: Specify the 'cpe-name'.
> (lcms/fixed): New variable.

Perfect, thank you!

Ludo’.



Re: install experience

2017-01-23 Thread Ludovic Courtès
Hi Thomas!

Thanks for your report on your experience.  It’s very helpful in
understanding what’s wrong and in improving the thing!

Thomas Danckaert  skribis:

>  - I had a false start because on my first attempt, I did not have a
>BIOS boot partition (there was still an EFI system partition,
>originally from a past windows installation, I think), so the final
>step of the installation, installing grub, failed. 宋文武 already
>submitted a patch to point out this requirement in the docs.

Good.  :-)

I hope we can eventually rely on a manual that deals specifically with
partitioning.

>  - During this first attempt, which would ultimately fail for the
>above reason, I also got an error running “herd start cow-store
>/mnt”.  The message was:
>
> “ERROR. in procedure mount: mount "./rw-store" on "/gnu/store":
> invalid
> argument”
>
>I decided to reboot and try again, but got the same message.
>However, when running guix system reconfigure, the store in
>/mnt/gnu/store did get populated (which is the point of cow-store,
>as I understand it), so perhaps this error was not fatal...
>
>On my second attempt (then with the correct boot partition), I did
>not get this error anymore.  So I have no further information, I'm
>afraid.  The only difference that I'm aware of between both
>attempts, was the partitioning scheme (2nd attempt added the BIOS
>boot partition, and removed a few unnecessary partitions).

People reported it before but I don’t see how this can happen.  At any
rate, there seems to be a bug lurking here, we’ll have to investigate.

>  - I followed advice I thought I'd once read somewhere (though not in
>the manual), and first installed a basic system with the bare-bones
>config from
>
> https://www.gnu.org/software/guix/manual/html_node/Using-the-Configuration-System.html#Using-the-Configuration-System,
>
> and then switched to a full desktop environment after booting into
> the newly installed system for the first time (perhaps I
> could/should have just used a full desktop rightaway?).  I had
> used the wireless during installation, but didn't include
> wpa_supplicant (and whatever else might be needed to get similar
> wifi support as the installation image) in my system
> configuration, so I couldn't use wireless anymore after booting
> into my new system :-) Therefore, I had to walk over to my router
> and connect by cable to continue (at least that was the solution I
> came up with).

Heh.  :-)

>  - When I tried to login as non-root user for the first time, my home
>directory was not there, and I was sent back to the login screen. I
>logged in as root and created/chown'ed the home directory myself.
>Unfortunately, I have no further information here, either.

Could it be that /home is a separate partition?  There’s a bug waiting
to be fixed in this area: .

> Now, the system works fine, though I'll try to tweak it for better
> touchpad support, graphics acceleration (I'm gnome3 is currently
> unusable) and sharper fonts.  Those things worked better when it was
> running Ubuntu, though I suspect some of that was due to non-free
> driver blobs etc.

If you find ways to tweak it, let us know how we can improve the default
settings.

Thank you!

LUdo’.



Re: [PATCH] doc: Mention the need of a BIOS boot partition when using GPT.

2017-01-23 Thread Ludovic Courtès
宋文武  skribis:

> * doc/guix.text (Preparing for Installation)[Disk Partitioning]:
   ^^
> Mention the need of a BIOS boot partition when using GPT with the defualt
> GRUB.

Otherwise LGTM, thanks!

Ludo’.



Re: Not patching shebang in git hook samples ?

2017-01-23 Thread Ludovic Courtès
John Darrington  skribis:

> The git package ships with a number of sample hook files.  These are shell 
> scripts and
> therefore the #!/bin/sh line gets substituted at  build time.
>
> However these files get installed into every git repostory that is created, 
> and users
> are invited to use them as templates for their own hooks.
>
> This will be fine until both git and bash are updated.  Now the original bash 
> is free
> to be garbage collected.  If that happens, the path: 
> #!/gnu/store/qkw4zrwfybxww8f56nkb6hggxambk89b-bash-4.4.0/bin/sh
> will no longer exist.
>
> I suggest what we turn off the shebang patching for the files in 
> share/templates for git.

Agreed, it’s a bug.

Ludo’.



Re: [PATCH] gnu: Add es.

2017-01-23 Thread Ludovic Courtès
contact@cryptolab.net skribis:

> From: ng0 
>
> * gnu/packages/shells.scm (es): New variable.

Applied, thanks!



Re: Services: gnunet. (require help)

2017-01-23 Thread Ricardo Wurmus

ng0  writes:

> I will try and reflect on OpenRC in a while and compare it to
> Guix-specific Shepherd (I don't know generic shepherd yet).

I don’t think there’s anything different about how GuixSD uses the
Shepherd other than that the shepherd process runs as PID 1.

Shepherd is the same when used in a less privileged position, e.g. to
manage user processes.

-- 
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net




Re: Services: gnunet. (require help)

2017-01-23 Thread ng0
Chris Marusich  writes:

> ng0  writes:
>
>> Compared to OpenRC and systemd, shepherd guixsd-specific services
>> sometimes have an high learning curve.
>
> Honest question: why do you think that?  With feedback from a fresh
> perspective like yours, maybe we could think of ways to lower the
> learning curve.
>
> -- 
> Chris

I will try and reflect on OpenRC in a while and compare it to
Guix-specific Shepherd (I don't know generic shepherd yet).

For now all I can say is that it's exciting and motivating to
learn a language and grammar which is usable outside of package
definitions or service definitions.
Guile's way to print errors makes it hard, that's one thing.
Another thing is, strange enough, the freedom. You have some
rules you have to obey, but beyond that you can express what you
want. OpenRC, if I remember correctly, was more strict about how
you compose things (but then again last time I wrote something
for Gentoo OpenRC (not even downstream OpenRCs) was the guix
daemon service and that was awful enough to promote it as
fundamentally broken (openrc gnunet service was easier and
worked).

Comparing side by side or in reflection will be easier.
--
♥Ⓐ  ng0 -- https://www.inventati.org/patternsinthechaos/



Re: Fwd: 16/35: gnu: r-ggplot2: Update to 2.2.0.

2017-01-23 Thread Ben Woodcroft



On 23/01/17 21:42, Ricardo Wurmus wrote:

Ben Woodcroft  writes:
[..]

I wonder if the importer could import the previous version again and
compare to those, rather than just the current definition to avoid other
situations like this.

Would this have helped in this instance?  Did the previous version
*depend* on r-svglite?  If it did, how could an editor like me have
known that it was still valuable as an optional input?


AIUI, it has always been optional. But I take your point anyway - a 
comment the first time would have been best.


ben



Re: Fwd: 16/35: gnu: r-ggplot2: Update to 2.2.0.

2017-01-23 Thread Ricardo Wurmus

Ben Woodcroft  writes:

>> “r-svglite” is optional and was reported by my modified updater, which
>> compares the current inputs with the inputs a fresh import would
>> suggest.  If optional inputs are added it would be good to comment on
>> why they were added.  I probably wouldn’t have removed them in that
>> case.
>
> OK, np, pushed as e4b6c565beef27a1ce2203a9bc119e84a126e5e0.

Thanks!

> I wonder if the importer could import the previous version again and 
> compare to those, rather than just the current definition to avoid other 
> situations like this.

Would this have helped in this instance?  Did the previous version
*depend* on r-svglite?  If it did, how could an editor like me have
known that it was still valuable as an optional input?

-- 
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net




Re: Fwd: 16/35: gnu: r-ggplot2: Update to 2.2.0.

2017-01-23 Thread Ben Woodcroft



On 23/01/17 18:57, Ricardo Wurmus wrote:

Ben Woodcroft  writes:


 Forwarded Message 
Subject:16/35: gnu: r-ggplot2: Update to 2.2.0.
Date:   Thu, 29 Dec 2016 20:49:25 + (UTC)
From:   Ricardo Wurmus 
Reply-To:   Ricardo Wurmus 
To: guix-comm...@gnu.org



rekado pushed a commit to branch master
in repository guix.

commit ab01f1cdb11520f0d56249719bcf627cad802bc2
Author: Ricardo Wurmus 
Date:   Thu Dec 29 20:51:26 2016 +0100

  gnu: r-ggplot2: Update to 2.2.0.

  * gnu/packages/statistics.scm (r-ggplot2): Update to 2.2.0.
  [propagated-inputs]: Remove r-proto and r-svglite; add r-lazyeval and
  r-tibble.

Is there are particular reason why svglite was removed from propagated-inputs? In 
response I'm now unable to save SVG files with "ggsave", unless I install 
r-svglite separately.

Perhaps this is a consequence of the updater suggesting some inputs can be 
removed?

It is.  My apologies!

“r-svglite” is optional and was reported by my modified updater, which
compares the current inputs with the inputs a fresh import would
suggest.  If optional inputs are added it would be good to comment on
why they were added.  I probably wouldn’t have removed them in that
case.


OK, np, pushed as e4b6c565beef27a1ce2203a9bc119e84a126e5e0.

I wonder if the importer could import the previous version again and 
compare to those, rather than just the current definition to avoid other 
situations like this.


ben



install experience

2017-01-23 Thread Thomas Danckaert

Hi Guix-devel,

Yesterday, I finally installed GuixSD on my laptop “natively”.  Thanks
to jmd and iyzsong who gave me some advice on #guix.  Overall, it went
well, didn't take long, and was quite straightforward thanks to the
clear documentation.  Just in case it's useful, here's a short account
of my stumbling through the installation:

 - I had a false start because on my first attempt, I did not have a
   BIOS boot partition (there was still an EFI system partition,
   originally from a past windows installation, I think), so the 
final

   step of the installation, installing grub, failed. 宋文武 already
   submitted a patch to point out this requirement in the docs.

 - During this first attempt, which would ultimately fail for the
   above reason, I also got an error running “herd start cow-store
   /mnt”.  The message was:

“ERROR. in procedure mount: mount "./rw-store" on "/gnu/store": 
invalid

argument”

   I decided to reboot and try again, but got the same message.
   However, when running guix system reconfigure, the store in
   /mnt/gnu/store did get populated (which is the point of cow-store,
   as I understand it), so perhaps this error was not fatal...

   On my second attempt (then with the correct boot partition), I did
   not get this error anymore.  So I have no further information, I'm
   afraid.  The only difference that I'm aware of between both
   attempts, was the partitioning scheme (2nd attempt added the BIOS
   boot partition, and removed a few unnecessary partitions).

 - I followed advice I thought I'd once read somewhere (though not in
   the manual), and first installed a basic system with the 
bare-bones

   config from

https://www.gnu.org/software/guix/manual/html_node/Using-the-Configuration-System.html#Using-the-Configuration-System,

and then switched to a full desktop environment after booting 
into

the newly installed system for the first time (perhaps I
could/should have just used a full desktop rightaway?).  I had
used the wireless during installation, but didn't include
wpa_supplicant (and whatever else might be needed to get similar
wifi support as the installation image) in my system
configuration, so I couldn't use wireless anymore after booting
into my new system :-) Therefore, I had to walk over to my router
and connect by cable to continue (at least that was the solution 
I

came up with).

 - When I tried to login as non-root user for the first time, my home
   directory was not there, and I was sent back to the login screen. 
I

   logged in as root and created/chown'ed the home directory myself.
   Unfortunately, I have no further information here, either.

Now, the system works fine, though I'll try to tweak it for better
touchpad support, graphics acceleration (I'm gnome3 is currently
unusable) and sharper fonts.  Those things worked better when it was
running Ubuntu, though I suspect some of that was due to non-free
driver blobs etc.

Thomas


Re: [PATCH] xmonad 0.12

2017-01-23 Thread Ludovic Courtès
Hi Mekeor,

Mekeor Melire  skribis:

> commit d0e39d8316f6c935a8710482db617253c8824e6c
> Author: Mekeor Melire 
> Date:   Sat Jan 21 21:08:11 2017 +0100
>
> gnu: xmonad: Update to version 0.12.
> 
> * gnu/packages/wm.scm (xmonad): Update to 0.12.
> * gnu/packages/wm.scm (ghc-xmonad-contrib): Update to 0.12.
> * gnu/packages/haskell.scm (ghc-setlocale): Added 1.0.0.4 which was 
> required
>   by xmonad 0.12.

I split it into two patches and applied:

  
http://git.savannah.gnu.org/cgit/guix.git/commit/?id=c7bdb4139df22fbee40fb8dd717b96112110d5a7
  
http://git.savannah.gnu.org/cgit/guix.git/commit/?id=174b091fb744fe7aa83744a50629f7fc9e9110e4

I made tiny changes:

  - removed unneeded changes such as reformatting;
  - turned the description of ‘ghc-setlocale’ into a full sentence;
  - listed all the changes in the commit log (changes to ‘inputs’, to
‘origin’, etc.)

Thank you, and welcome!  :-)

Ludo’.



Re: A postinst equivalent in Guix?

2017-01-23 Thread Ludovic Courtès
Georgi Kirilov  skribis:

> On Sat, Jan 21, 2017 at 04:34:55PM +0100, Ludovic Courtès wrote:
>
>>To make things more concrete, we could discuss specific packages you are
>>interested in and see how we could provide them in Guix{,SD}.
>
> The package is the old bsd-games bundle. Some of the games need to
> write score files under /var/lib/bsdgames/
> You can find attached my patch so far.

The patch looks good to me!

As for /var/lib/bsdgames, then it’s up to the admin to set the right
permissions on it.  We can ensure that it exists and has the right
permissions on GuixSD, but on foreign distros, there’s nothing we can
do.

We could also modify bsd-games such that it falls back to
~/.local/bsdgames when /var/lib/bsdgames isn’t accessible (and it would
be worth submitting upstream).  ISTR this was discussed for one of the
games present in Guix.

WDYT?

Ludo’.



Re: Build custom packages with cuirass.

2017-01-23 Thread Mathieu OTHACEHE

> I guess Cuirass should handle this use case with '-L', '--load-path'
> command line arguments like what 'guix build' does.  WDYT?

Yes, it would be better than my initial idea.

>
> Would you be interested in implementing this?

Yes of course :)

Using cuirass I also noticed two other things that might need to be fixed:

* When network isn't up yet at cuirass service start,
or goes down for a moment, the url fetching
fails and cuirass service stays hanged and needs to be restarted.

* For an unknown reason, I have random freezes of cuirass, the polling
  stops and nothing is outputed to log. I'm stracing it to find out why
  ...

Otherwise it works fine for me !

Mathieu



Re: Fwd: 16/35: gnu: r-ggplot2: Update to 2.2.0.

2017-01-23 Thread Ricardo Wurmus

Ben Woodcroft  writes:

>>  Forwarded Message 
>> Subject: 16/35: gnu: r-ggplot2: Update to 2.2.0.
>> Date:Thu, 29 Dec 2016 20:49:25 + (UTC)
>> From:Ricardo Wurmus 
>> Reply-To:Ricardo Wurmus 
>> To:  guix-comm...@gnu.org
>>
>>
>>
>> rekado pushed a commit to branch master
>> in repository guix.
>>
>> commit ab01f1cdb11520f0d56249719bcf627cad802bc2
>> Author: Ricardo Wurmus 
>> Date:   Thu Dec 29 20:51:26 2016 +0100
>>
>>  gnu: r-ggplot2: Update to 2.2.0.
>>
>>  * gnu/packages/statistics.scm (r-ggplot2): Update to 2.2.0.
>>  [propagated-inputs]: Remove r-proto and r-svglite; add r-lazyeval and
>>  r-tibble.
>
> Is there are particular reason why svglite was removed from 
> propagated-inputs? In response I'm now unable to save SVG files with 
> "ggsave", unless I install r-svglite separately.
>
> Perhaps this is a consequence of the updater suggesting some inputs can be 
> removed?

It is.  My apologies!

“r-svglite” is optional and was reported by my modified updater, which
compares the current inputs with the inputs a fresh import would
suggest.  If optional inputs are added it would be good to comment on
why they were added.  I probably wouldn’t have removed them in that
case.

--
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net