Re: [PATCH] gnu: Add exempi and eog.

2015-07-15 Thread 宋文武
David Hashe  writes:

> Hello Guix,
>
> The attached patches add Eye of GNOME and one of its dependencies, exempi.
> The Eye of GNOME (eog) patch depends on the exempi patch.
>
> Thanks,
> David
> From cf0f69390f00852b9971e88e5e817ca540264d88 Mon Sep 17 00:00:00 2001
> From: David Hashe 
> Date: Wed, 15 Jul 2015 01:02:02 -0500
> Subject: [PATCH] gnu: Add exempi.
>
> * gnu/packages/freedesktop.scm (exempi): New variable.
> ---
>  gnu/packages/freedesktop.scm | 45 
> 
>  1 file changed, 45 insertions(+)
>
> diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm
> index eeb97cd..93a4470 100644
> --- a/gnu/packages/freedesktop.scm
> +++ b/gnu/packages/freedesktop.scm
> @@ -4,6 +4,7 @@
>  ;;; Copyright © 2015 Andy Wingo 
>  ;;; Copyright © 2015 Ludovic Courtès 
>  ;;; Copyright © 2015 Ricardo Wurmus 
> +;;; Copyright © 2015 David Hashe 
>  ;;;
>  ;;; This file is part of GNU Guix.
>  ;;;
> @@ -40,6 +41,7 @@
>#:use-module (gnu packages xdisorg)
>#:use-module (gnu packages xorg)
>#:use-module (gnu packages doxygen)
> +  #:use-module (gnu packages compression)
>#:use-module (gnu packages libffi))
>  
>  (define-public xdg-utils
> @@ -232,3 +234,46 @@ display server running on Linux kernel modesetting and 
> evdev input devices, an X
>  application, or a wayland client itself.  The clients can be traditional
>  applications, X servers (rootless or fullscreen) or other display servers.")
>  (license license:x11)))
> +
> +(define-public exempi
> +(package
> +  (name "exempi")
> +  (version (string-append "2.2.2"))
Remove 'string-append'.
> +  (source (origin
> +   (method git-fetch)
> +   (uri (git-reference
> + (url "http://anongit.freedesktop.org/git/exempi.git";)
> + (commit version)))
> +   (sha256
> +(base32
> + "1z25wij89fn86bm38d9ahhzfq8a2sgxaphdc4lrpyq87dgb766q9"))
> +   (file-name (string-append name "-" version
I looked ArchLinux, and it use release tallbar from:
  .
> +  (build-system gnu-build-system)
> +  (arguments
> +;; FIXME: tests depend on boost, but unable to find headers when
> +;; used as an input
> +   `(#:configure-flags '("--disable-unittest")
> + #:phases (alist-cons-after
> + 'unpack 'fix-autogen
> + (lambda _
> + (substitute* "autogen.sh"
> +  ;; autogen.sh tries to run configure before we
> +  ;; are able to patch it
> +  (("^.*topsrcdir/configure.*$") "")))
> +   (alist-cons-before
> +'configure 'autogen
> +(lambda _
> + (zero? (system* "./autogen.sh")))
> + %standard-phases
> +  (native-inputs
> +   `(("autoconf" ,(autoconf-wrapper))
> + ("automake" ,automake)
> + ("libtool" ,libtool)))
> +  (inputs
> +  `(("expat" ,expat)
> +("zlib" ,zlib)))
> +  (home-page "https://wiki.freedesktop.org/libopenraw/Exempi";)
> +  (synopsis "XMP metadata handling")
Missing 'library' at EOL.
> +  (description "Exempi is an implementation of the Extensible Metadata
> +Platform (XMP), which enables embedding metadata in PDF and image formats.")
> +  (license license:bsd-3)))
> -- 
> 1.9.1
>
> From 5fe8a80ba9979d75f02426d1153932c77087f7c3 Mon Sep 17 00:00:00 2001
> From: David Hashe 
> Date: Wed, 15 Jul 2015 01:06:53 -0500
> Subject: [PATCH] gnu: Add eog.
>
> * gnu/packages/gnome.scm (eog): New variable.
> ---
>  gnu/packages/gnome.scm | 51 
> ++
>  1 file changed, 51 insertions(+)
>
> diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
> index 879c27e..be342e3 100644
> --- a/gnu/packages/gnome.scm
> +++ b/gnu/packages/gnome.scm
> @@ -61,6 +61,7 @@
>#:use-module (gnu packages lua)
>#:use-module (gnu packages image)
>#:use-module (gnu packages perl)
> +  #:use-module (gnu packages photo)
>#:use-module (gnu packages pkg-config)
>#:use-module (gnu packages pulseaudio)
>#:use-module (gnu packages python)
> @@ -3001,3 +3002,53 @@ which can read a large number of file formats.")
> (description "Rhythmbox is a music playing application for GNOME.  It
>  supports playlists, song ratings, and any codecs installed through 
> gstreamer.")
> (license license:gpl2+)))
> +
> +(define-public eog
> + (package
> +   (name "eog")
> +   (version "3.16.2")
> +   (source (origin
> +(method url-fetch)
> +(uri (string-append "mirror://gnome/sources/" name "/"
> +(version-major+minor version) "/"
> +name "-" version ".tar.xz"))
> +(sha256
> + (base32
> +  

[PATCH] Fix tcpdump.

2015-07-15 Thread Ricardo Wurmus
Hi Guix,

libpcap comes with a couple of backends that are disabled by default.
Among those available backends is “pcap-linux”.  By default the only
backends are

pcap-null
pcap-usb-linux
pcap-can-linux
pcap-netfilter-linux
pcap-common

‘netfilter-linux’ doesn’t work out of the box and I think it requires
loading iptables/netfilter kernel modules (I have not yet found the
correct modules to load, so I can only guess).  When “--with-pcap=linux”
is passed “pcap-linux.c” is compiled as well, which makes tcpdump work
out of the box without the need to load any further modules.

Thanks to Ludovic for providing a crucial bit of information!

~~ Ricardo

>From 7ca2d0dc5cc1232605e2b78167ea3ae5c92be531 Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus 
Date: Wed, 15 Jul 2015 16:11:50 +0200
Subject: [PATCH] gnu: libpcap: Enable plain "linux" backend.

* gnu/packages/admin.scm (libpcap)[arguments]: Add "--with-pcap=linux"
  configure flag.
---
 gnu/packages/admin.scm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index c96e116..5b56599 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -476,7 +476,8 @@ tools: server, client, and relay agent.")
 "14wyjywrdi1ikaj6yc9c72m6m2r64z94lb0gm7k1a3q6q5cj3scs"
 (build-system gnu-build-system)
 (native-inputs `(("bison" ,bison) ("flex" ,flex)))
-(arguments '(#:tests? #f)); no 'check' target
+(arguments '(#:configure-flags '("--with-pcap=linux")
+ #:tests? #f)); no 'check' target
 (home-page "http://www.tcpdump.org";)
 (synopsis "Network packet capture library")
 (description
-- 
2.4.3



Re: Formatting lists in descriptions

2015-07-15 Thread Ludovic Courtès
"Cook, Malcolm"  skribis:

> Hi - I'm late to this discussion - not sure all the issues on the table - but 
> how about deferring to markdown in such cases.

We could use a more advanced format.  In that case I would prefer sexps
(but they would not play well with i18n), or, if we use a text DSL,
Org-mode (which is potentially less expressive than arbitrary sexps.)

It’s not a choice that can be made lightly because it will impact
translators and we must make sure we can provide UIs that honor markup
appropriately.

I’m not completely sure it’s necessary though.  Thoughts?

Ludo’.



Re: Timestamps in tarballs created by 'patch-and-repack'

2015-07-15 Thread Ludovic Courtès
Mark H Weaver  skribis:

> Mark H Weaver  writes:
>
>> Mark H Weaver  writes:
>>
>>> However, this raises a deeper problem: all of the outputs of
>>> 'patch-and-repack' contain non-deterministic timestamps, and these
>>> timestamps can cause problems with future builds.
>>>
>>> Would it be sufficient to simply zero out all of the timestamps before
>>> repacking?
>>
>> I looked into this a bit more.  In addition to timestamps, the other
>> impure bits getting into tar files are the names and numeric ids of the
>> owner and groups.  Section 4.3.1 (Overriding File Metadata) of the GNU
>> tar manual describes how to override these when creating an archive.
>>
>> My guess is that the following options would be sufficient to make the
>> generated tar archives deterministic:
>>
>>   --mtime=@0 --owner=root:0 --group=root:0
>
> This seems to work well, so I've added these flags when creating
> tarballs in commits 2e9511dfbdb5ddd78c2f205c4ca7fc23738d79f8 and
> c09e6a5f5e2a77beff89d68069f3037c1b6310e5 in core-updates.

That sounds like the right thing (it’s also what is used in
gnu/system/install.scm for the binary tarball.)

Thanks for noticing and fixing it!

Ludo’.



Re: Formatting lists in descriptions

2015-07-15 Thread Alex Kost
Ludovic Courtès (2015-07-15 17:28 +0300) wrote:

> "Cook, Malcolm"  skribis:
>
>> Hi - I'm late to this discussion - not sure all the issues on the table - 
>> but how about deferring to markdown in such cases.
>
> We could use a more advanced format.  In that case I would prefer sexps
> (but they would not play well with i18n), or, if we use a text DSL,
> Org-mode (which is potentially less expressive than arbitrary sexps.)
>
> It’s not a choice that can be made lightly because it will impact
> translators and we must make sure we can provide UIs that honor markup
> appropriately.
>
> I’m not completely sure it’s necessary though.  Thoughts?

In my opinion it's not necessary.  Descriptions are not so big all in
all.  I just wanted to standardize how lists, used in some descriptions,
look like.  I also prefer "  •" to denote a list item.

-- 
Alex



Re: Using a shared Guix store (was RE: [Bio-packaging] testing out guix)

2015-07-15 Thread Ricardo Wurmus

Cook, Malcolm  writes:

> Also, you discussed need for setting NIX_STATE_DIR.  This should not
> be needed if guix was already installed with configuration of
> --localstatedir=/guix/var (with /guix being nfs mounted), right?

NIX_STATE_DIR is used to override localstate at runtime.  If you are
happy with the localstatedir (defined at configure time) you do not need
NIX_STATE_DIR.  After my vacation I’ll take some time to think about how
to allow users to run “guix” on cluster nodes to manipulate their
profiles — and how to reliably set this all up.  I’m planning on
documenting this, both in a specialised form for my blog and in a more
generic fashion for the Guix manual.

> Ricardo also wrote "For ‘guix package’ to work,
> /gnu/var/guix/profiles/per-user must be shared read-write (over NFS)
> with correct UID mapping." - I really don't understand this and tried
> to elicit feedback in
> http://lists.nongnu.org/archive/html/guix-devel/2015-07/msg00216.html
> - Can anyone give me clarification on this.  I though the guix daemon
> is going to manage these profiles.

I don’t remember writing this or the context in which I wrote this
(could it be that Ludovic wrote this?) — looking at the code for
guix/scripts/package.scm it seems that the client performs some of the
symlink switching when switching generations (e.g. after installing a
new package).  For that to work it would need write permission to the
user’s profile directory.

(I could be completely wrong here.  That’s not how it’s set up here and
I haven’t yet tested a configuration like this.)

~~ Ricardo




Re: [PATCH] gnu: Add exempi and eog.

2015-07-15 Thread Mark H Weaver
David Hashe  writes:

> The attached patches add Eye of GNOME and one of its dependencies,
> exempi. The Eye of GNOME (eog) patch depends on the exempi patch.

I agree with the comments by Ricardo and 宋文武, and have a few
additional comments:

> From cf0f69390f00852b9971e88e5e817ca540264d88 Mon Sep 17 00:00:00 2001
> From: David Hashe 
> Date: Wed, 15 Jul 2015 01:02:02 -0500
> Subject: [PATCH] gnu: Add exempi.
>
> * gnu/packages/freedesktop.scm (exempi): New variable.
> ---
>  gnu/packages/freedesktop.scm | 45 
> 
>  1 file changed, 45 insertions(+)
>
> diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm
> index eeb97cd..93a4470 100644
> --- a/gnu/packages/freedesktop.scm
> +++ b/gnu/packages/freedesktop.scm
> @@ -4,6 +4,7 @@
>  ;;; Copyright © 2015 Andy Wingo 
>  ;;; Copyright © 2015 Ludovic Courtès 
>  ;;; Copyright © 2015 Ricardo Wurmus 
> +;;; Copyright © 2015 David Hashe 
>  ;;;
>  ;;; This file is part of GNU Guix.
>  ;;;
> @@ -40,6 +41,7 @@
>#:use-module (gnu packages xdisorg)
>#:use-module (gnu packages xorg)
>#:use-module (gnu packages doxygen)
> +  #:use-module (gnu packages compression)
>#:use-module (gnu packages libffi))
>  
>  (define-public xdg-utils
> @@ -232,3 +234,46 @@ display server running on Linux kernel modesetting and 
> evdev input devices, an X
>  application, or a wayland client itself.  The clients can be traditional
>  applications, X servers (rootless or fullscreen) or other display servers.")
>  (license license:x11)))
> +
> +(define-public exempi
> +(package
> +  (name "exempi")
> +  (version (string-append "2.2.2"))
> +  (source (origin
> +   (method git-fetch)
> +   (uri (git-reference
> + (url "http://anongit.freedesktop.org/git/exempi.git";)
> + (commit version)))
> +   (sha256
> +(base32
> + "1z25wij89fn86bm38d9ahhzfq8a2sgxaphdc4lrpyq87dgb766q9"))
> +   (file-name (string-append name "-" version

If we had used the git checkout, the file-name should end with
"-checkout", but we should use the release tarball instead.

> +  (build-system gnu-build-system)
> +  (arguments
> +;; FIXME: tests depend on boost, but unable to find headers when
> +;; used as an input
> +   `(#:configure-flags '("--disable-unittest")
> + #:phases (alist-cons-after
> + 'unpack 'fix-autogen
> + (lambda _
> + (substitute* "autogen.sh"
> +  ;; autogen.sh tries to run configure before we
> +  ;; are able to patch it
> +  (("^.*topsrcdir/configure.*$") "")))
> +   (alist-cons-before
> +'configure 'autogen
> +(lambda _
> + (zero? (system* "./autogen.sh")))
> + %standard-phases

Autogen/autoreconf/bootstrap phases should always go after 'unpack' (or
in this case, after 'fix-autogen'), *not* before 'configure'.  The
reason is that there are some other phases (patch-usr-bin-file and
patch-source-shebangs) which should have access to the generated files.
For example, letting 'patch-usr-bin-file' patch the generated
'configure' is important on some platforms.

However, this is moot because you should use the release tarball.

Can you send updated patches?

 Thanks,
   Mark



Re: [PATCH] Fix tcpdump.

2015-07-15 Thread Mark H Weaver
Ricardo Wurmus  writes:

> From 7ca2d0dc5cc1232605e2b78167ea3ae5c92be531 Mon Sep 17 00:00:00 2001
> From: Ricardo Wurmus 
> Date: Wed, 15 Jul 2015 16:11:50 +0200
> Subject: [PATCH] gnu: libpcap: Enable plain "linux" backend.
>
> * gnu/packages/admin.scm (libpcap)[arguments]: Add "--with-pcap=linux"
>   configure flag.

Looks good, please push!

Thanks,
  Mark



Re: [PATCH] Fix tcpdump.

2015-07-15 Thread Ludovic Courtès
Ricardo Wurmus  skribis:

> From 7ca2d0dc5cc1232605e2b78167ea3ae5c92be531 Mon Sep 17 00:00:00 2001
> From: Ricardo Wurmus 
> Date: Wed, 15 Jul 2015 16:11:50 +0200
> Subject: [PATCH] gnu: libpcap: Enable plain "linux" backend.
>
> * gnu/packages/admin.scm (libpcap)[arguments]: Add "--with-pcap=linux"
>   configure flag.

Sure, go ahead.  Thanks for investigating!

Ludo’.



Re: [PATCH] gnu: Add lxappearance.

2015-07-15 Thread Mathieu Lirzin
Alex Kost  writes:

> I think it should be:
>> +"mirror://sourceforge/project/lxde/LXAppearance/"
>
> guix download 
> "mirror://sourceforge/projects/lxde/files/LXAppearance/lxappearance-0.6.1.tar.xz"
>
> gives some html file.  Otherwise it looks good to me.

fixed!

One last question: I've used "LXDE" and "LXAppearance" because it's the
most common way to write them and LXDE is a acronym for "Lightweight X11
Desktop Environment".  But Since we use the name "Gnome" (which is a
acronym), I wonder if we shouldn't use "Lxde" and "Lxappearance"
likewise.

--
Mathieu Lirzin

>From 6f27db9f084a938f055787c06aaad3bb61ee449f Mon Sep 17 00:00:00 2001
From: Mathieu Lirzin 
Date: Sat, 11 Jul 2015 08:25:14 +0200
Subject: [PATCH] gnu: Add lxappearance.

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

diff --git a/gnu-system.am b/gnu-system.am
index fc6517c..368c30e 100644
--- a/gnu-system.am
+++ b/gnu-system.am
@@ -193,6 +193,7 @@ GNU_SYSTEM_MODULES =\
   gnu/packages/lsh.scm\
   gnu/packages/lsof.scm\
   gnu/packages/lua.scm\
+  gnu/packages/lxde.scm\
   gnu/packages/lxqt.scm\
   gnu/packages/lynx.scm\
   gnu/packages/m4.scm\
diff --git a/gnu/packages/lxde.scm b/gnu/packages/lxde.scm
new file mode 100644
index 000..cf837f5
--- /dev/null
+++ b/gnu/packages/lxde.scm
@@ -0,0 +1,49 @@
+;;; GNU Guix --- Functional package management for GNU
+;;; Copyright © 2015 Mathieu Lirzin 
+;;;
+;;; 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 lxde)
+  #:use-module (gnu packages glib)
+  #:use-module (gnu packages gtk)
+  #:use-module (gnu packages pkg-config)
+  #:use-module (guix build-system gnu)
+  #:use-module (guix download)
+  #:use-module ((guix licenses) #:prefix license:)
+  #:use-module (guix packages))
+
+(define-public lxappearance
+  (package
+(name "lxappearance")
+(version "0.6.1")
+(source (origin
+  (method url-fetch)
+  (uri (string-append "mirror://sourceforge/project/lxde"
+  "LXAppearance/" name "-" version ".tar.xz"))
+  (sha256
+   (base32
+"1phnv1b2jdj2vlibjyc9z01izcf3k5zxj8glsaf0i3vh77zqmqq9"
+(build-system gnu-build-system)
+(inputs `(("gtk+" ,gtk+-2)))
+(native-inputs `(("intltool"   ,intltool)
+ ("pkg-config" ,pkg-config)))
+(synopsis "LXDE GTK+ theme switcher")
+(description "LXAppearance is a desktop-independent GTK+ theme switcher
+able to change themes, icons, and fonts used by GTK+ applications.")
+(home-page "http://lxde.org";)
+(license license:gpl2+)))
+
+;;; lxde.scm ends here
-- 
2.1.4



[PATCH] gnu: Add gnome-common.

2015-07-15 Thread Mathieu Lirzin
>From 9040050b26c3282c24c53adf3d82319fbf760c27 Mon Sep 17 00:00:00 2001
From: Mathieu Lirzin 
Date: Mon, 13 Jul 2015 10:51:46 +0200
Subject: [PATCH] gnu: Add gnome-common.

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

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 879c27e..ed25c72 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -132,6 +132,28 @@ Desktop.  It is designed to be as simple as possible and has some unique
 features to enable users to create their discs easily and quickly.")
 (license license:gpl2+)))
 
+(define-public gnome-common
+  (package
+(name "gnome-common")
+(version "3.14.0")
+(source
+ (origin
+   (method url-fetch)
+   (uri (string-append "mirror://gnome/sources/" name "/"
+   (version-major+minor version)  "/"
+   name "-" version ".tar.xz"))
+   (sha256
+(base32
+ "0b1676g4q44ah73c5gwl1kg88pc93pnq1pa9kwl43d0vg0pj802c"
+(build-system gnu-build-system)
+(home-page "https://www.gnome.org/";)
+(synopsis "Bootstrap Gnome modules built from git")
+(description "Gnome-common contains various files needed to bootstrap
+Gnome modules built from git.  It contains a common \"autogen.sh\" script that
+can be used to configure a source directory checked out from git and some
+commonly used macros.")
+(license license:gpl2+)))
+
 (define-public gnome-desktop
   (package
 (name "gnome-desktop")
-- 
2.1.4




RE: Using a shared Guix store (was RE: [Bio-packaging] testing out guix)

2015-07-15 Thread Cook, Malcolm
> Cook, Malcolm  writes:
> 
> > Also, you discussed need for setting NIX_STATE_DIR.  This should not
> > be needed if guix was already installed with configuration of
> > --localstatedir=/guix/var (with /guix being nfs mounted), right?
> 
> NIX_STATE_DIR is used to override localstate at runtime.  If you are happy
> with the localstatedir (defined at configure time) you do not need
> NIX_STATE_DIR.  After my vacation I’ll take some time to think about how to
> allow users to run “guix” on cluster nodes to manipulate their profiles — and
> how to reliably set this all up.  I’m planning on documenting this, both in a
> specialised form for my blog and in a more generic fashion for the Guix
> manual.

Great - thanks for clarifying - I am looking forward to reading about this 
further in both places.  

I will eventually care about the cluster use case, but for now my first aim is 
to ensure that users at my institute can expect an identical experience in 
using guix regardless of which of our multiple shared-used computational 
servers they are logged into.

> 
> > Ricardo also wrote "For ‘guix package’ to work,
> > /gnu/var/guix/profiles/per-user must be shared read-write (over NFS)
> > with correct UID mapping." - I really don't understand this and tried
> > to elicit feedback in
> > http://lists.nongnu.org/archive/html/guix-devel/2015-07/msg00216.html
> > - Can anyone give me clarification on this.  I though the guix daemon
> > is going to manage these profiles.
> 
> I don’t remember writing this or the context in which I wrote this (could it 
> be
> that Ludovic wrote this?) — looking at the code for guix/scripts/package.scm
> it seems that the client performs some of the symlink switching when
> switching generations (e.g. after installing a new package).  For that to 
> work it
> would need write permission to the user’s profile directory.

Ricardo I am sorry, you are correct, I was quoting Ludovic in a thread where 
you replied https://lists.gnu.org/archive/html/bug-guix/2015-07/msg00042.html 

> (I could be completely wrong here.  That’s not how it’s set up here and I
> haven’t yet tested a configuration like this.)

I hope to chime in further with a big WOOHOO once I have this configuration 
working

Thanks again for your helps...

~Malcolm

> 
> ~~ Ricardo



Re: [PATCH] gnu: Add lxappearance.

2015-07-15 Thread Ludovic Courtès
Mathieu Lirzin  skribis:

> One last question: I've used "LXDE" and "LXAppearance" because it's the
> most common way to write them and LXDE is a acronym for "Lightweight X11
> Desktop Environment".  But Since we use the name "Gnome" (which is a
> acronym), I wonder if we shouldn't use "Lxde" and "Lxappearance"
> likewise.

It’s a mistake: the real name is “GNOME”.  In general I think we should
use the spelling and case that upstream uses, so “LXDE” in that case.

> From 6f27db9f084a938f055787c06aaad3bb61ee449f Mon Sep 17 00:00:00 2001
> From: Mathieu Lirzin 
> Date: Sat, 11 Jul 2015 08:25:14 +0200
> Subject: [PATCH] gnu: Add lxappearance.
>
> * gnu/packages/lxde.scm: New file.
> * gnu-system.am (GNU_SYSTEM_MODULES): Add it.

Also LGTM.  :-)

Thanks!

Ludo’.



Re: [PATCH] gnu: Add gnome-common.

2015-07-15 Thread Ludovic Courtès
Mathieu Lirzin  skribis:

> From 9040050b26c3282c24c53adf3d82319fbf760c27 Mon Sep 17 00:00:00 2001
> From: Mathieu Lirzin 
> Date: Mon, 13 Jul 2015 10:51:46 +0200
> Subject: [PATCH] gnu: Add gnome-common.
>
> * gnu/packages/gnome.scm (gnome-common): New variable.

[...]

> +(synopsis "Bootstrap Gnome modules built from git")
> +(description "Gnome-common contains various files needed to bootstrap
> +Gnome modules built from git.  It contains a common \"autogen.sh\" script 
> that
> +can be used to configure a source directory checked out from git and some
> +commonly used macros.")

s/Gnome/GNOME/ s/git/Git/

Otherwise LGTM, thanks!

Ludo’.



Re: [PATCH] gnu: Add python-aiotest.

2015-07-15 Thread Ludovic Courtès
Cyril Roelandt  skribis:

> * gnu/packages/python.scm (python-aiotest, python2-aiotest): New variables.

[...]

> +  (synopsis
> +"Test suite to validate an implementation of PEP 3156 (the asyncio API)")

What about “Validate implementations of Python’s asyncio API”?

> +  (description
> +"Aiotest is a test suite to validate the implementation of PEP 3156 in
 ^^
+ “ (asynchronous I/O)”

OK with changes along these lines!

Thanks,
Ludo’.



Re: [PATCH 3/5] build: Add 'emacs-build-system'

2015-07-15 Thread Ludovic Courtès
Alex Kost  skribis:

> So I suggest to add a phase for deleting non-".el[c]" files from the
> ".guix.d/package" directory.

Agreed; what about putting READMEs etc. elsewhere, like under
‘share/doc/PACKAGE’ if we want to preserve them?

> And just in case: I have nothing against GNU ELPA repository (especially
> taking into account that it is the only "home" for some packages).  I'm
> against melpa and melpa-stable, because:
>
> - Why should we rely on a third-party server that do something with the
>   upstream files to produce a final tarball?
>
> - MELPA(-stable) is not usable anyway, because the tarballs of the same
>   version are updated all the time, so the hash is being permanently
>   changed.

I agree that these two points make MELPA (at least the MELPA server)
unsuitable for our purposes.

Of course it’s still useful to import recipes from there and use them as
a starting point for packages.

> However, if a package from ELPA has a real upstream release that can be
> used with "gnu-build-system" (e.g., emms, auctex, mmm-mode), I think we
> should prefer it instead of importing it from ELPA.

Agreed.

Thanks,
Ludo’.



Re: [PATCH] gnu: Update livestreamer to 1.12.2.

2015-07-15 Thread Ludovic Courtès
Efraim Flashner  skribis:

> From 0e0b21fc9669f316b34bdbbed9f4f1f4eb6b8f96 Mon Sep 17 00:00:00 2001
> From: Efraim Flashner 
> Date: Tue, 30 Jun 2015 20:44:02 +0300
> Subject: [PATCH] gnu: Update livestreamer to 1.12.2.
>
> * gnu/packages/video (livestreamer): Update to 1.12.2.

Applied, thanks!

Ludo’.



New build machine

2015-07-15 Thread Ludovic Courtès
Hello,

Simon Josefsson (of GnuTLS, GNU SASL, GNU LibIDN, and many other GNU and
non-GNU projects) kindly offered us an 8-core x86_64 build machine.

It’s already busy building stuff and will certainly make the upcoming
‘core-updates’ rebuild faster.

Thank you, Simon!

Ludo’.


signature.asc
Description: PGP signature


[PATCH 01/11] gnu: Bump python-six to 1.9.0.

2015-07-15 Thread Cyril Roelandt
* gnu/packages/python.scm (python-six): Bump to 1.9.0.
---
 gnu/packages/python.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 5dcaba0..2ba7178 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -532,7 +532,7 @@ password storage.")
 (define-public python-six
   (package
 (name "python-six")
-(version "1.7.2")
+(version "1.9.0")
 (source
  (origin
   (method url-fetch)
@@ -540,7 +540,7 @@ password storage.")
   "six/six-" version ".tar.gz"))
   (sha256
(base32
-"164rns26aqfqx2hwi0qq3scl50s69japn0fvgvrjsbyg7r1mxf67"
+"1mci5i8mjqmljmv33h0q3d4djc13zk1kfmb3fbvd3yy43x0m4h72"
 (build-system python-build-system)
 (inputs
  `(("python-setuptools" ,python-setuptools)))
-- 
2.1.4




[PATCH 03/11] gnu: Add oslo.i18n.

2015-07-15 Thread Cyril Roelandt
* gnu/packages/python.scm (python-testools): turn python-fixtures and
  python-testtools into propagated inputs.
* gnu/packages/openstack.scm (python-oslo.i18n, python2-oslo.i18n): New
  variables.
---
 gnu/packages/openstack.scm | 34 ++
 gnu/packages/python.scm|  5 +++--
 2 files changed, 37 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/openstack.scm b/gnu/packages/openstack.scm
index a02f4f0..9536578 100644
--- a/gnu/packages/openstack.scm
+++ b/gnu/packages/openstack.scm
@@ -140,6 +140,40 @@ into your setuptools run.")
   (package-with-python2 python-pbr))
 
 ;; Packages from the Oslo library
+(define-public python-oslo.i18n
+  (package
+  (name "python-oslo.i18n")
+  (version "2.1.0")
+  (source
+(origin
+  (method url-fetch)
+  (uri (string-append
+ "https://pypi.python.org/packages/source/o/oslo.i18n/oslo.i18n-";
+ version
+ ".tar.gz"))
+  (sha256
+(base32
+  "0762dwhaswqqkg5qff11cd4y4b8vbh4qrqh9bd24cv8h75ay2f0s"
+  (build-system python-build-system)
+  (propagated-inputs
+`(("python-babel" ,python-babel)))
+  (inputs
+`(("python-pbr" ,python-pbr)
+  ("python-setuptools" ,python-setuptools)
+  ("python-six" ,python-six)
+  ;; Tests
+  ("python-mock" ,python-mock)
+  ("python-mox3" ,python-mox3)
+  ("python-oslotest" ,python-oslotest)
+  ("python-testscenarios" ,python-testscenarios)))
+  (home-page "http://launchpad.net/oslo";)
+  (synopsis "Oslo i18n library")
+  (description "Oslo i18n library")
+  (license asl2.0)))
+
+(define-public python2-oslo.i18n
+  (package-with-python2 python-oslo.i18n))
+
 (define-public python-oslotest
   (package
 (name "python-oslotest")
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index feb0575..dde487c 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -1459,11 +1459,12 @@ Python tests.")
 (base32
  "1ssqb07c277010i6gzzkbdd46gd9mrj0bi0i8vn560n2k2y4j93m"
 (build-system python-build-system)
+(propagated-inputs
+ `(("python-fixtures" ,python-fixtures)
+   ("python-testtools" ,python-testtools)))
 (inputs
  `(("python-setuptools" ,python-setuptools)
-   ("python-testtools" ,python-testtools)
("python-subunit" ,python-subunit)
-   ("python-fixtures" ,python-fixtures)
("python-mimeparse" ,python-mimeparse)))
 (home-page "https://launchpad.net/testrepository";)
 (synopsis "Database for Python test results")
-- 
2.1.4




[PATCH 04/11] gnu: Add oslo.config

2015-07-15 Thread Cyril Roelandt
* gnu/packages/python.scm (python-netaddr, python2-netaddr): New variables.
* gnu/packages/openstack.scm (python-stevedore, python2-stevedore,
  python-oslo.config, python2-oslo.config): New variables.
---
 gnu/packages/openstack.scm | 81 ++
 gnu/packages/python.scm| 28 
 2 files changed, 109 insertions(+)

diff --git a/gnu/packages/openstack.scm b/gnu/packages/openstack.scm
index 9536578..d117a4f 100644
--- a/gnu/packages/openstack.scm
+++ b/gnu/packages/openstack.scm
@@ -139,7 +139,88 @@ into your setuptools run.")
 (define-public python2-pbr
   (package-with-python2 python-pbr))
 
+(define-public python-stevedore
+  (package
+(name "python-stevedore")
+(version "1.6.0")
+(source
+  (origin
+(method url-fetch)
+(uri (string-append
+   "https://pypi.python.org/packages/source/s/stevedore/stevedore-";
+   version
+   ".tar.gz"))
+(sha256
+  (base32
+"09gcy9gqyp2nzyh2yipwnw7vxfxfc2al5q1gd8g6abvlxhqsmcns"
+(build-system python-build-system)
+(inputs
+  `(("python-pbr" ,python-pbr)
+("python-setuptools" ,python-setuptools)
+("python-six" ,python-six)
+;; Tests
+("python-docutils" ,python-docutils)
+("python-mock" ,python-mock)
+("python-oslotest" ,python-oslotest)
+("python-sphinx" ,python-sphinx)))
+(home-page
+  "https://github.com/dreamhost/stevedore";)
+(synopsis
+  "Manage dynamic plugins for Python applications")
+(description
+  "Python makes loading code dynamically easy, allowing you to configure
+and extend your application by discovering and loading extensions (“plugins”)
+at runtime.  Many applications implement their own library for doing this,
+using __import__ or importlib.  stevedore avoids creating yet another extension
+mechanism by building on top of setuptools entry points.  The code for managing
+entry points tends to be repetitive, though, so stevedore provides manager
+classes for implementing common patterns for using dynamically loaded
+extensions.")
+(license asl2.0)))
+
+(define-public python2-stevedore
+  (package-with-python2 python-stevedore))
+
+
 ;; Packages from the Oslo library
+(define-public python-oslo.config
+  (package
+  (name "python-oslo.config")
+  (version "1.15.0")
+  (source
+(origin
+  (method url-fetch)
+  (uri (string-append
+ 
"https://pypi.python.org/packages/source/o/oslo.config/oslo.config-";
+ version
+ ".tar.gz"))
+  (sha256
+(base32
+  "0nn522k6ba3zbi5d20j28fvcpn0d1rxh6zq1nfdlii7325rxv4y4"
+  (build-system python-build-system)
+  (propagated-inputs
+`(("python-netaddr" ,python-netaddr)
+  ("python-six" ,python-six)))
+  (inputs
+`(("python-pbr" ,python-pbr)
+  ("python-setuptools" ,python-setuptools)
+  ("python-stevedore" ,python-stevedore)
+  ;; Tests
+  ("python-oslo.i18n" ,python-oslo.i18n)
+  ("python-mock" ,python-mock)
+  ("python-oslotest" ,python-oslotest)
+  ("python-testscenarios" ,python-testscenarios)
+))
+  (home-page "https://launchpad.net/oslo";)
+  (synopsis "Oslo Configuration API")
+  (description
+"The Oslo configuration API supports parsing command line arguments and
+.ini style configuration files.")
+  (license asl2.0)))
+
+(define-public python2-oslo.config
+  (package-with-python2 python-oslo.config))
+
 (define-public python-oslo.i18n
   (package
   (name "python-oslo.i18n")
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index dde487c..1e697ec 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -4079,3 +4079,31 @@ complexity of Python source code.")
 
 (define-public python2-appdirs
   (package-with-python2 python-appdirs))
+
+(define-public python-netaddr
+  (package
+  (name "python-netaddr")
+  (version "0.7.15")
+  (source
+(origin
+  (method url-fetch)
+  (uri (string-append
+ "https://pypi.python.org/packages/source/n/netaddr/netaddr-";
+ version
+ ".tar.gz"))
+  (sha256
+(base32
+  "04cxabslvd43jhrvbssvkssqyzaiczjpdf1b4cyzk54s9qzvpdfm"
+  (build-system python-build-system)
+  (arguments `(#:tests? #f)) ;; No tests.
+  (inputs
+`(("python-setuptools" ,python-setuptools)))
+  (home-page "https://github.com/drkjam/netaddr/";)
+  (synopsis
+"Pythonic manipulation of IPv4, IPv6, CIDR, EUI and MAC network addresses")
+  (description
+"A Python library for representing and manipulating network addresses.")
+  (license bsd-3)))
+
+(define-public python2-netaddr
+  (package-with-python2 python-netaddr))
-- 
2.1.4




[PATCH 00/11] Add a few modules from the Oslo library.

2015-07-15 Thread Cyril Roelandt
This is a first step towards packaging OpenStack.

---
Cyril Roelandt (11):
  gnu: Bump python-six to 1.9.0.
  gnu: Add oslotest.
  gnu: Add oslo.i18n.
  gnu: Add oslo.config
  gnu: Add oslo.utils.
  gnu: Add oslo.context.
  gnu: Add oslo.serialization.
  gnu: Add oslo.log.
  gnu: Add oslo.cache.
  gnu: Add oslo.middleware.
  gnu: Add oslosphinx.

 gnu-system.am  |   1 +
 gnu/packages/openstack.scm | 611 +
 gnu/packages/python.scm| 352 +-
 3 files changed, 958 insertions(+), 6 deletions(-)
 create mode 100644 gnu/packages/openstack.scm

-- 
2.1.4




[PATCH 02/11] gnu: Add oslotest.

2015-07-15 Thread Cyril Roelandt
* gnu/packages/openstack.scm: New file.
* gnu-system.am (GNU_SYSTEM_MODULES): Add it here.
* gnu/packages/python.scm (python-appdirs, python2-appdirs): New variables.
---
 gnu-system.am  |   1 +
 gnu/packages/openstack.scm | 179 +
 gnu/packages/python.scm|  27 +++
 3 files changed, 207 insertions(+)
 create mode 100644 gnu/packages/openstack.scm

diff --git a/gnu-system.am b/gnu-system.am
index 27f8923..340967d 100644
--- a/gnu-system.am
+++ b/gnu-system.am
@@ -231,6 +231,7 @@ GNU_SYSTEM_MODULES =\
   gnu/packages/onc-rpc.scm \
   gnu/packages/openbox.scm \
   gnu/packages/openldap.scm\
+  gnu/packages/openstack.scm   \
   gnu/packages/orpheus.scm \
   gnu/packages/ots.scm \
   gnu/packages/package-management.scm  \
diff --git a/gnu/packages/openstack.scm b/gnu/packages/openstack.scm
new file mode 100644
index 000..a02f4f0
--- /dev/null
+++ b/gnu/packages/openstack.scm
@@ -0,0 +1,179 @@
+;;; GNU Guix --- Functional package management for GNU
+;;; Copyright © 2015 Cyril Roelandt 
+;;;
+;;; 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 openstack)
+  #:use-module (gnu packages python)
+  #:use-module (gnu packages version-control)
+  #:use-module (guix build-system python)
+  #:use-module (guix download)
+  #:use-module ((guix licenses)
+#:select (asl2.0))
+  #:use-module (guix packages))
+
+(define-public python-mox3
+  (package
+  (name "python-mox3")
+  (version "0.8.0")
+  (source
+(origin
+  (method url-fetch)
+  (uri (string-append
+ "https://pypi.python.org/packages/source/m/mox3/mox3-";
+ version
+ ".tar.gz"))
+  (sha256
+(base32
+  "1dwj9lkifdqvrcympqa47bj55l0n0j9jhzv2gj03h0dpzg6mgfkj"
+  (build-system python-build-system)
+  (inputs
+`(("python-fixtures" ,python-fixtures)
+  ("python-pbr" ,python-pbr)
+  ("python-setuptools" ,python-setuptools)
+  ("python-six" ,python-six)
+  ("python-testtools" ,python-testtools)))
+  (home-page "http://www.openstack.org/";)
+  (synopsis "Mock object framework for Python")
+  (description
+"Mox3 is an unofficial port of the Google mox framework
+(http://code.google.com/p/pymox/) to Python 3. It was meant to be as compatible
+with mox as possible, but small enhancements have been made. The library was
+tested on Python version 3.2, 2.7 and 2.6.")
+  (license asl2.0)))
+
+(define-public python2-mox3
+  (package-with-python2 python-mox3))
+
+(define-public python-os-client-config
+  (package
+  (name "python-os-client-config")
+  (version "1.4.0")
+  (source
+(origin
+  (method url-fetch)
+  (uri (string-append
+ 
"https://pypi.python.org/packages/source/o/os-client-config/os-client-config-";
+ version
+ ".tar.gz"))
+  (sha256
+(base32
+  "14png6ml3zbbilh8bihav24f8vig9lyijwynnjcvazdxxrzvwq9j"
+  (build-system python-build-system)
+  (arguments
+   `(#:tests? #f)) ;; Circular dependency with python-oslotest
+  (inputs
+`(("python-appdirs" ,python-appdirs)
+  ("python-fixtures" ,python-fixtures)
+  ("python-mimeparse" ,python-mimeparse)
+  ("python-pbr" ,python-pbr)
+  ("python-pyyaml" ,python-pyyaml)
+  ("python-testrepository" ,python-testrepository)
+  ("python-setuptools" ,python-setuptools)
+  ("python-testscenarios" ,python-testscenarios)
+  ("python-testtools" ,python-testtools)))
+  (home-page "http://www.openstack.org/";)
+  (synopsis
+"OpenStack Client Configuration Library")
+  (description
+"The OpenStack Client Configuration Library is a library for collecting
+client configuration for using an OpenStack cloud in a consistent and
+comprehensive manner.")
+  (license asl2.0)))
+
+(define-public python2-os-client-config
+  (package-with-python2 python-os-client-config))
+
+(define-public python-pbr
+  (package
+  (name "python-pbr")
+  (version "1.2.0")
+  (source
+(origin
+  (method url-fetch)
+  (uri (string-append
+ "https://pypi.python.org/packages/source/p/pbr/pbr-";
+ version
+ ".tar.gz"))
+

[PATCH 06/11] gnu: Add oslo.context.

2015-07-15 Thread Cyril Roelandt
* gnu/packages/openstack.scm (python-oslo.context, python2-oslo.context): New
  variables.
---
 gnu/packages/openstack.scm | 32 
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/openstack.scm b/gnu/packages/openstack.scm
index 3a3b129..584a530 100644
--- a/gnu/packages/openstack.scm
+++ b/gnu/packages/openstack.scm
@@ -257,6 +257,38 @@ extensions.")
 (define-public python2-oslo.config
   (package-with-python2 python-oslo.config))
 
+(define-public python-oslo.context
+  (package
+  (name "python-oslo.context")
+  (version "0.4.0")
+  (source
+(origin
+  (method url-fetch)
+  (uri (string-append
+ 
"https://pypi.python.org/packages/source/o/oslo.context/oslo.context-";
+ version
+ ".tar.gz"))
+  (sha256
+(base32
+  "131cn2vh4z2iggzcsqnfyi93g08x6pnsk77qilzbikp5g8x4d069"
+  (build-system python-build-system)
+  (inputs
+`(("python-babel" ,python-babel)
+  ("python-pbr" ,python-pbr)
+  ("python-setuptools" ,python-setuptools)
+  ;; Tests.
+  ("python-oslotest" ,python-oslotest)))
+  (home-page "http://launchpad.net/oslo";)
+  (synopsis "Oslo Context library")
+  (description
+"The Oslo context library has helpers to maintain useful information about
+a request context. The request context is usually populated in the WSGI
+pipeline and used by various modules such as logging.")
+  (license asl2.0)))
+
+(define-public python2-oslo.context
+  (package-with-python2 python-oslo.context))
+
 (define-public python-oslo.i18n
   (package
   (name "python-oslo.i18n")
-- 
2.1.4




[PATCH 10/11] gnu: Add oslo.middleware.

2015-07-15 Thread Cyril Roelandt
* gnu/packages/python.scm (python-webob, python2-webob): New variables.
* gnu/packages/openstack.scm (python-oslo.middleware, python2-oslo.middleware):
  New variables.
---
 gnu/packages/openstack.scm | 42 ++
 gnu/packages/python.scm| 28 
 2 files changed, 70 insertions(+)

diff --git a/gnu/packages/openstack.scm b/gnu/packages/openstack.scm
index b35b8ca..b324d3e 100644
--- a/gnu/packages/openstack.scm
+++ b/gnu/packages/openstack.scm
@@ -407,6 +407,48 @@ handlers and support for context specific logging (like 
resource id’s etc).")
 (define-public python2-oslo.log
   (package-with-python2 python-oslo.log))
 
+(define-public python-middleware
+  (package
+  (name "python-oslo.middleware")
+  (version "2.4.0")
+  (source
+(origin
+  (method url-fetch)
+  (uri (string-append
+ 
"https://pypi.python.org/packages/source/o/oslo.middleware/oslo.middleware-";
+ version
+ ".tar.gz"))
+  (sha256
+(base32
+  "19x6lv52zlansp0j62sb1kxxh4ba787gl9wjzwbhl6ygjf2cfaz9"
+  (build-system python-build-system)
+  (propagated-inputs
+`(("python-oslo.config" ,python-oslo.config)
+  ("python-oslo.context" ,python-oslo.context)
+  ("python-oslo.i18n" ,python-oslo.i18n)
+  ("python-six" ,python-six)
+  ("python-webob" ,python-webob)))
+  (inputs
+`(("python-babel" ,python-babel)
+  ("python-pbr" ,python-pbr)
+  ("python-setuptools" ,python-setuptools)
+  ("python-stevedore" ,python-stevedore)
+  ;; Tests.
+  ("python-mock" ,python-mock)
+  ("python-mox3" ,python-mox3)
+  ("python-oslotest" ,python-oslotest)))
+  (home-page "http://launchpad.net/oslo";)
+  (synopsis "Oslo Middleware library")
+  (description
+"Oslo middleware library includes components that can be injected into wsgi
+pipelines to intercept request/response flows.  The base class can be enhanced
+with functionality like add/delete/modification of http headers and support for
+limiting size/connection etc.")
+  (license asl2.0)))
+
+(define-public python2-middleware
+  (package-with-python2 python-middleware))
+
 (define-public python-oslo.serialization
   (package
   (name "python-oslo.serialization")
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 31d752d..6b69dd5 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -4363,3 +4363,31 @@ information.")
 
 (define-public python2-memcached
   (package-with-python2 python-memcached))
+
+(define-public python-webob
+  (package
+  (name "python-WebOb")
+  (version "1.4.1")
+  (source
+(origin
+  (method url-fetch)
+  (uri (string-append
+ "https://pypi.python.org/packages/source/W/WebOb/WebOb-";
+ version
+ ".tar.gz"))
+  (sha256
+(base32
+  "1nz9m6ijf46wfn33zfza13c0k1n4kjnmn3icdlrlgz5yj21vky0j"
+  (build-system python-build-system)
+  (inputs
+`(("python-nose" ,python-nose)
+  ("python-setuptools" ,python-setuptools)))
+  (home-page "http://webob.org/";)
+  (synopsis "WSGI request and response object")
+  (description
+"WebOb provides wrappers around the WSGI request environment, and an object
+to help create WSGI responses.")
+  (license license:expat)))
+
+(define-public python2-webob
+  (package-with-python2 python-webob))
-- 
2.1.4




[PATCH 08/11] gnu: Add oslo.log.

2015-07-15 Thread Cyril Roelandt
* gnu/packages/openstack.scm (python-oslo.log, python2-oslo.log): New
  variables.
---
 gnu/packages/openstack.scm | 41 +
 1 file changed, 41 insertions(+)

diff --git a/gnu/packages/openstack.scm b/gnu/packages/openstack.scm
index c67108f..092ee5d 100644
--- a/gnu/packages/openstack.scm
+++ b/gnu/packages/openstack.scm
@@ -323,6 +323,47 @@ pipeline and used by various modules such as logging.")
 (define-public python2-oslo.i18n
   (package-with-python2 python-oslo.i18n))
 
+(define-public python-oslo.log
+  (package
+  (name "python-oslo.log")
+  (version "1.6.0")
+  (source
+(origin
+  (method url-fetch)
+  (uri (string-append
+ "https://pypi.python.org/packages/source/o/oslo.log/oslo.log-";
+ version
+ ".tar.gz"))
+  (sha256
+(base32
+  "1fhy6yvbd565nv4x4i3ppyrlbmz3yy9d0xsvw5nkqsa7g43nmf8z"
+  (build-system python-build-system)
+  (propagated-inputs
+   `(("python-debtcollector" ,python-debtcollector)
+ ("python-oslo.config" ,python-oslo.config)
+ ("python-oslo.context" ,python-oslo.context)
+ ("python-oslo.i18n" ,python-oslo.i18n)
+ ("python-oslo.utils" ,python-oslo.utils)
+ ("python-oslo.serialization" ,python-oslo.serialization)
+  ("python-six" ,python-six)))
+  (inputs
+`(("python-babel" ,python-babel)
+  ("python-iso8601" ,python-iso8601)
+  ("python-mock" ,python-mock)
+  ("python-oslotest" ,python-oslotest)
+  ("python-pbr" ,python-pbr)
+  ("python-setuptools" ,python-setuptools)))
+  (home-page "http://launchpad.net/oslo";)
+  (synopsis "oslo.log library")
+  (description
+"The oslo.log (logging) configuration library provides standardized
+configuration for all openstack projects. It also provides custom formatters,
+handlers and support for context specific logging (like resource id’s etc).")
+  (license asl2.0)))
+
+(define-public python2-oslo.log
+  (package-with-python2 python-oslo.log))
+
 (define-public python-oslo.serialization
   (package
   (name "python-oslo.serialization")
-- 
2.1.4




[PATCH 09/11] gnu: Add oslo.cache.

2015-07-15 Thread Cyril Roelandt
* gnu/packages/python.scm (python-markupsafe python-mako python-dogpile.cache
  python-dogpile.core python-memcached python2-markupsafe python2-mako
  python2-dogpile.cache python2-dogpile.core python2-memcached): New variables.
* gnu/packages/openstack.scm (python-oslo.cache, python2-olso.cache): New
  variables.
---
 gnu/packages/openstack.scm |  43 
 gnu/packages/python.scm| 166 +
 2 files changed, 209 insertions(+)

diff --git a/gnu/packages/openstack.scm b/gnu/packages/openstack.scm
index 092ee5d..b35b8ca 100644
--- a/gnu/packages/openstack.scm
+++ b/gnu/packages/openstack.scm
@@ -219,6 +219,49 @@ extensions.")
 
 
 ;; Packages from the Oslo library
+(define-public python-oslo.cache
+  (package
+  (name "python-oslo.cache")
+  (version "0.3.0")
+  (source
+(origin
+  (method url-fetch)
+  (uri (string-append
+ "https://pypi.python.org/packages/source/o/oslo.cache/oslo.cache-";
+ version
+ ".tar.gz"))
+  (sha256
+(base32
+  "16l6lsg834wxj746q9rmlmxmv8m931vs378pa5sq0i0rxql4rhmc"
+  (build-system python-build-system)
+  (propagated-inputs
+`(("python-oslo.config" ,python-oslo.config)
+  ("python-oslo.i18n" ,python-oslo.i18n)
+  ("python-oslo.log" ,python-oslo.log)
+  ("python-oslo.utils" ,python-oslo.utils)
+  ("python-six" ,python-six)))
+  (inputs
+`(("python-babel" ,python-babel)
+  ("python-dogpile.cache" ,python-dogpile.cache)
+  ("python-memcached" ,python-memcached)
+  ("python-pbr" ,python-pbr)
+  ("python-setuptools" ,python-setuptools)
+  ;; Tests.
+  ("python-mock" ,python-mock)
+  ("python-oslotest" ,python-oslotest)))
+  (home-page "http://launchpad.net/oslo";)
+  (synopsis
+"Cache storage for Openstack projects.")
+  (description
+"oslo.cache aims to provide a generic caching mechanism for OpenStack
+projects by wrapping the dogpile.cache library.  The dogpile.cache library
+provides support memoization, key value storage and interfaces to common
+caching backends such as Memcached.")
+  (license asl2.0)))
+
+(define-public python2-oslo.cache
+  (package-with-python2 python-oslo.cache))
+
 (define-public python-oslo.config
   (package
   (name "python-oslo.config")
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 62521c9..31d752d 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -4197,3 +4197,169 @@ fractional seconds) of a clock which never goes 
backwards.")
 
 (define-public python2-monotonic
   (package-with-python2 python-monotonic))
+
+(define-public python-markupsafe
+  (package
+  (name "python-markupsafe")
+  (version "0.23")
+  (source
+(origin
+  (method url-fetch)
+  (uri (string-append
+ "https://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-";
+ version
+ ".tar.gz"))
+  (sha256
+(base32
+  "1hvip33wva3fnmvfp9x5klqri7hpl1hkgqmjbss18nmrb7zimv54"
+  (build-system python-build-system)
+  (inputs
+`(("python-setuptools" ,python-setuptools)))
+  (home-page
+"http://github.com/mitsuhiko/markupsafe";)
+  (synopsis
+"Implements a XML/HTML/XHTML Markup safe string for Python")
+  (description
+"Implements a XML/HTML/XHTML Markup safe string for Python")
+  (license bsd-3)))
+
+(define-public python2-markupsafe
+  (package-with-python2 python-markupsafe))
+
+(define-public python-mako
+  (package
+  (name "python-mako")
+  (version "1.0.1")
+  (source
+(origin
+  (method url-fetch)
+  (uri (string-append
+ "https://pypi.python.org/packages/source/M/Mako/Mako-";
+ version
+ ".tar.gz"))
+  (sha256
+(base32
+  "074d3b1jfiml1gzqdwxy8xwvnz1p3i2znmnjxyvxlngaxfgqdw25"
+  (build-system python-build-system)
+  (propagated-inputs
+`(("python-markupsafe" ,python-markupsafe)))
+  (inputs
+`(("python-setuptools" ,python-setuptools)
+  ("python-mock" ,python-mock)
+  ("python-nose" ,python-nose)))
+  (home-page "http://www.makotemplates.org/";)
+  (synopsis
+"A templating language that borrows ideas from the existing templating 
languages.")
+  (description
+"Mako is a template library written in Python.  It provides a familiar,
+non-XML syntax which compiles into Python modules for maximum performance.
+Mako’s syntax and API borrows from the best ideas of many others, including
+Django templates, Cheetah, Myghty, and Genshi.  Conceptually, Mako is an
+embedded Python (i.e. Python Server Page) language, which refines the familiar
+ideas of componentized layout and inheritance to produce one of the most
+straightforward and flexible models available, while also maintaining close
+ties to Python calling and scoping semantics.")
+  (license license:expat)))
+
+(define-public python2-mako
+  (package-with-python2 python-mako))
+
+(define-public python-dogpile.cache
+  (package
+  (name "

[PATCH 05/11] gnu: Add oslo.utils.

2015-07-15 Thread Cyril Roelandt
* gnu/packages/python.scm (python-wrapt, python2-wrapt, python-iso8601,
  python2-iso8601, python-monotonic python2-monotonic): New variables.
* gnu/packages/openstack.scm (python-debtcollector, python2-debtcollector,
  python-oslo.util python2-oslo.util): New variables.
---
 gnu/packages/openstack.scm | 84 +++
 gnu/packages/python.scm| 90 ++
 2 files changed, 174 insertions(+)

diff --git a/gnu/packages/openstack.scm b/gnu/packages/openstack.scm
index d117a4f..3a3b129 100644
--- a/gnu/packages/openstack.scm
+++ b/gnu/packages/openstack.scm
@@ -25,6 +25,42 @@
 #:select (asl2.0))
   #:use-module (guix packages))
 
+(define-public python-debtcollector
+  (package
+  (name "python-debtcollector")
+  (version "0.5.0")
+  (source
+(origin
+  (method url-fetch)
+  (uri (string-append
+ "https://pypi.python.org/packages/source/d/debtcollector/";
+ "debtcollector-" version ".tar.gz"))
+  (sha256
+(base32
+  "0amlcg5f98lk2mfzdg44slh1nsi2y4ds123g5d57376fjk2b3njd"
+  (build-system python-build-system)
+  (propagated-inputs
+   `(("python-wrapt" ,python-wrapt)))
+  (inputs
+`(("python-babel" ,python-babel)
+  ("python-pbr" ,python-pbr)
+  ("python-setuptools" ,python-setuptools)
+  ("python-six" ,python-six)
+  ("python-wrapt" ,python-wrapt)
+  ;; Tests.
+  ("python-oslotest" ,python-oslotest)))
+  (home-page "http://www.openstack.org/";)
+  (synopsis
+"A collection of Python deprecation patterns and strategies that help you
+collect your technical debt in a non-destructive manner.")
+  (description
+"A collection of Python deprecation patterns and strategies that help you
+collect your technical debt in a non-destructive manner.")
+  (license asl2.0)))
+
+(define-public python2-debtcollector
+  (package-with-python2 python-debtcollector))
+
 (define-public python-mox3
   (package
   (name "python-mox3")
@@ -292,3 +328,51 @@ and better support for mocking results.")
 
 (define-public python2-oslotest
   (package-with-python2 python-oslotest))
+
+(define-public python-oslo.utils
+  (package
+  (name "python-oslo.utils")
+  (version "1.9.0")
+  (source
+(origin
+  (method url-fetch)
+  (uri (string-append
+ "https://pypi.python.org/packages/source/o/oslo.utils/oslo.utils-";
+ version
+ ".tar.gz"))
+  (sha256
+(base32
+  "1amhpachr5b5r03rz51ydwxa5d61hlv71ipmfhhi8hkg98njrcaw"))
+  (snippet
+   '(begin
+  ;; setuptools fails to import these files during the test phase.
+  (delete-file "tests/test_netutils.py")
+  (delete-file "oslo_utils/tests/test_netutils.py")
+  (build-system python-build-system)
+  (propagated-inputs
+`(("python-debtcollector" ,python-debtcollector)
+  ("python-oslo.i18n" ,python-oslo.i18n)
+  ("python-iso8601" ,python-iso8601)
+  ("python-monotonic" ,python-monotonic)
+  ("python-netaddr" ,python-netaddr)
+  ("python-netifaces" ,python-netifaces)
+  ("python-pytz" ,python-pytz)
+  ("python-six" ,python-six)))
+  (inputs
+`(("python-babel" ,python-babel)
+  ("python-pbr" ,python-pbr)
+  ("python-setuptools" ,python-setuptools)
+  ;; Tests.
+  ("python-oslotest" ,python-oslotest)
+  ("python-mock" ,python-mock)
+  ("python-mox3" ,python-mox3)
+  ("python-testscenarios" ,python-testscenarios)))
+  (home-page "http://launchpad.net/oslo";)
+  (synopsis "Oslo Utility library")
+  (description
+"The oslo.utils library provides support for common utility type functions,
+such as encoding, exception handling, string manipulation, and time handling.")
+  (license asl2.0)))
+
+(define-public python2-oslo.utils
+  (package-with-python2 python-oslo.utils))
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 1e697ec..62521c9 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -4107,3 +4107,93 @@ complexity of Python source code.")
 
 (define-public python2-netaddr
   (package-with-python2 python-netaddr))
+
+(define-public python-wrapt
+  (package
+  (name "python-wrapt")
+  (version "1.10.5")
+  (source
+(origin
+  (method url-fetch)
+  (uri (string-append
+ "https://pypi.python.org/packages/source/w/wrapt/wrapt-";
+ version
+ ".tar.gz"))
+  (sha256
+(base32
+  "0cq8rlpzkxzk48b50yrfhzn1d1hrq4gjcdqlrgq4v5palgiv9jwr"
+  (build-system python-build-system)
+  (arguments
+   ;; Lots of different test configurations. TODO: run them all.
+   `(#:tests? #f))
+  (inputs
+`(("python-setuptools" ,python-setuptools)))
+  (home-page
+"https://github.com/GrahamDumpleton/wrapt";)
+  (synopsis
+"A Python module for decorators, wrappers and monkey patching.")
+  (description
+"The aim of the wrapt module is to provide a transparent object proxy 

[PATCH 07/11] gnu: Add oslo.serialization.

2015-07-15 Thread Cyril Roelandt
* gnu/packages/openstack.scm (python-oslo.serialization,
  python2-oslo.serialization): New variables.
---
 gnu/packages/openstack.scm | 38 ++
 1 file changed, 38 insertions(+)

diff --git a/gnu/packages/openstack.scm b/gnu/packages/openstack.scm
index 584a530..c67108f 100644
--- a/gnu/packages/openstack.scm
+++ b/gnu/packages/openstack.scm
@@ -323,6 +323,44 @@ pipeline and used by various modules such as logging.")
 (define-public python2-oslo.i18n
   (package-with-python2 python-oslo.i18n))
 
+(define-public python-oslo.serialization
+  (package
+  (name "python-oslo.serialization")
+  (version "1.7.0")
+  (source
+(origin
+  (method url-fetch)
+  (uri (string-append
+ 
"https://pypi.python.org/packages/source/o/oslo.serialization/oslo.serialization-";
+ version
+ ".tar.gz"))
+  (sha256
+(base32
+  "04k47xqdv7wpdd4j60856h489h3vsp86fqzszhq5ba9ypblk4kqn"
+  (build-system python-build-system)
+  (inputs
+`(("python-babel" ,python-babel)
+  ("python-iso8601" ,python-iso8601)
+  ;("python-msgpack-python" ,python-msgpack-python)
+  ("python-oslo.utils" ,python-oslo.utils)
+  ("python-pbr" ,python-pbr)
+  ("python-pytz" ,python-pytz)
+  ("python-setuptools" ,python-setuptools)
+  ("python-simplejson" ,python-simplejson)
+  ("python-six" ,python-six)
+  ;; Tests.
+  ("python-mock" ,python-mock)
+  ("python-netaddr" ,python-netaddr)
+  ("python-oslo.i18n" ,python-oslo.i18n)
+  ("python-oslotest" ,python-oslotest)))
+  (home-page "http://launchpad.net/oslo";)
+  (synopsis "Oslo Serialization library")
+  (description "Oslo Serialization library")
+  (license asl2.0)))
+
+(define-public python2-oslo.serialization
+  (package-with-python2 python-oslo.serialization))
+
 (define-public python-oslotest
   (package
 (name "python-oslotest")
-- 
2.1.4




[PATCH 11/11] gnu: Add oslosphinx.

2015-07-15 Thread Cyril Roelandt
* gnu/packages/python.scm (python-requests): Bump to 2.7.0.
* gnu/packages/openstack.scm (python-oslosphinx, python2-olsosphinx): New
  variables.
---
 gnu/packages/openstack.scm | 37 +
 gnu/packages/python.scm|  4 ++--
 2 files changed, 39 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/openstack.scm b/gnu/packages/openstack.scm
index b324d3e..f0c6774 100644
--- a/gnu/packages/openstack.scm
+++ b/gnu/packages/openstack.scm
@@ -487,6 +487,43 @@ limiting size/connection etc.")
 (define-public python2-oslo.serialization
   (package-with-python2 python-oslo.serialization))
 
+(define-public python-oslosphinx
+  (package
+  (name "python-oslosphinx")
+  (version "3.0.0")
+  (source
+(origin
+  (method url-fetch)
+  (uri (string-append
+ "https://pypi.python.org/packages/source/o/oslosphinx/oslosphinx-";
+ version
+ ".tar.gz"))
+  (sha256
+(base32
+  "1xn15ihnpmzkim98297w7wivnz7n2wdqq44smf3y0xk0dfz2k4fk"))
+  (modules '((guix build utils)))
+  (snippet
+   ;; The "hacking" and "sphinx" packages are specified in
+   ;; test-requirements.txt, but they are not used for the unit tests, so
+   ;; we do not need to add them as inputs.
+   '(substitute* "test-requirements.txt"
+  (("^sphinx.*") "")
+  (("^hacking.*") "")
+  (build-system python-build-system)
+  (inputs
+`(("python-pbr" ,python-pbr)
+  ("python-requests" ,python-requests)
+  ("python-setuptools" ,python-setuptools)))
+  (home-page "http://www.openstack.org/";)
+  (synopsis "OpenStack Sphinx Extensions and Theme")
+  (description
+"Theme and extension support for Sphinx documentation from the OpenStack
+project.")
+  (license asl2.0)))
+
+(define-public python2-oslosphinx
+  (package-with-python2 python-oslosphinx))
+
 (define-public python-oslotest
   (package
 (name "python-oslotest")
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 6b69dd5..ef5fbba 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -1671,7 +1671,7 @@ with sensible defaults out of the box.")
 (define-public python-requests
   (package
 (name "python-requests")
-(version "2.4.0")
+(version "2.7.0")
 (source (origin
  (method url-fetch)
  (uri
@@ -1680,7 +1680,7 @@ with sensible defaults out of the box.")
version ".tar.gz"))
  (sha256
   (base32
-   "0gknlfx1wakrrm1zi8gi03x2lzj4dsns0vjw0nsmgqvkphyf01vh"
+   "0gdr9dxm24amxpbyqpbh3lbwxc2i42hnqv50sigx568qssv3v2ir"
 (build-system python-build-system)
 (inputs
  `(("python-setuptools" ,python-setuptools)
-- 
2.1.4




Re: [PATCH] gnu: Add exempi and eog.

2015-07-15 Thread David Hashe
Thanks to everyone for the reviews!

I got boost working and changed everything that was requested. I've
attached updated patches for both.

Thanks,
David

On Wed, Jul 15, 2015 at 11:15 AM, Mark H Weaver  wrote:

> David Hashe  writes:
>
> > The attached patches add Eye of GNOME and one of its dependencies,
> > exempi. The Eye of GNOME (eog) patch depends on the exempi patch.
>
> I agree with the comments by Ricardo and 宋文武, and have a few
> additional comments:
>
> > From cf0f69390f00852b9971e88e5e817ca540264d88 Mon Sep 17 00:00:00 2001
> > From: David Hashe 
> > Date: Wed, 15 Jul 2015 01:02:02 -0500
> > Subject: [PATCH] gnu: Add exempi.
> >
> > * gnu/packages/freedesktop.scm (exempi): New variable.
> > ---
> >  gnu/packages/freedesktop.scm | 45
> 
> >  1 file changed, 45 insertions(+)
> >
> > diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm
> > index eeb97cd..93a4470 100644
> > --- a/gnu/packages/freedesktop.scm
> > +++ b/gnu/packages/freedesktop.scm
> > @@ -4,6 +4,7 @@
> >  ;;; Copyright © 2015 Andy Wingo 
> >  ;;; Copyright © 2015 Ludovic Courtès 
> >  ;;; Copyright © 2015 Ricardo Wurmus 
> > +;;; Copyright © 2015 David Hashe 
> >  ;;;
> >  ;;; This file is part of GNU Guix.
> >  ;;;
> > @@ -40,6 +41,7 @@
> >#:use-module (gnu packages xdisorg)
> >#:use-module (gnu packages xorg)
> >#:use-module (gnu packages doxygen)
> > +  #:use-module (gnu packages compression)
> >#:use-module (gnu packages libffi))
> >
> >  (define-public xdg-utils
> > @@ -232,3 +234,46 @@ display server running on Linux kernel modesetting
> and evdev input devices, an X
> >  application, or a wayland client itself.  The clients can be traditional
> >  applications, X servers (rootless or fullscreen) or other display
> servers.")
> >  (license license:x11)))
> > +
> > +(define-public exempi
> > +(package
> > +  (name "exempi")
> > +  (version (string-append "2.2.2"))
> > +  (source (origin
> > +   (method git-fetch)
> > +   (uri (git-reference
> > + (url "
> http://anongit.freedesktop.org/git/exempi.git";)
> > + (commit version)))
> > +   (sha256
> > +(base32
> > +
>  "1z25wij89fn86bm38d9ahhzfq8a2sgxaphdc4lrpyq87dgb766q9"))
> > +   (file-name (string-append name "-" version
>
> If we had used the git checkout, the file-name should end with
> "-checkout", but we should use the release tarball instead.
>
> > +  (build-system gnu-build-system)
> > +  (arguments
> > +;; FIXME: tests depend on boost, but unable to find headers when
> > +;; used as an input
> > +   `(#:configure-flags '("--disable-unittest")
> > + #:phases (alist-cons-after
> > + 'unpack 'fix-autogen
> > + (lambda _
> > + (substitute* "autogen.sh"
> > +  ;; autogen.sh tries to run configure before we
> > +  ;; are able to patch it
> > +  (("^.*topsrcdir/configure.*$") "")))
> > +   (alist-cons-before
> > +'configure 'autogen
> > +(lambda _
> > + (zero? (system* "./autogen.sh")))
> > + %standard-phases
>
> Autogen/autoreconf/bootstrap phases should always go after 'unpack' (or
> in this case, after 'fix-autogen'), *not* before 'configure'.  The
> reason is that there are some other phases (patch-usr-bin-file and
> patch-source-shebangs) which should have access to the generated files.
> For example, letting 'patch-usr-bin-file' patch the generated
> 'configure' is important on some platforms.
>
> However, this is moot because you should use the release tarball.
>
> Can you send updated patches?
>
>  Thanks,
>Mark
>


On Wed, Jul 15, 2015 at 11:15 AM, Mark H Weaver  wrote:

> David Hashe  writes:
>
> > The attached patches add Eye of GNOME and one of its dependencies,
> > exempi. The Eye of GNOME (eog) patch depends on the exempi patch.
>
> I agree with the comments by Ricardo and 宋文武, and have a few
> additional comments:
>
> > From cf0f69390f00852b9971e88e5e817ca540264d88 Mon Sep 17 00:00:00 2001
> > From: David Hashe 
> > Date: Wed, 15 Jul 2015 01:02:02 -0500
> > Subject: [PATCH] gnu: Add exempi.
> >
> > * gnu/packages/freedesktop.scm (exempi): New variable.
> > ---
> >  gnu/packages/freedesktop.scm | 45
> 
> >  1 file changed, 45 insertions(+)
> >
> > diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm
> > index eeb97cd..93a4470 100644
> > --- a/gnu/packages/freedesktop.scm
> > +++ b/gnu/packages/freedesktop.scm
> > @@ -4,6 +4,7 @@
> >  ;;; Copyright © 2015 Andy Wingo 
> >  ;;; Copyright © 2015 Ludovic Courtès 
> >  ;;; Copyright © 2015 Ricardo Wurmus 
> > +;;; Copyright © 2015 David Hashe 
> >  ;;;
> >  ;;; This file is part of GNU Gu

Re: Using a shared Guix store (was RE: [Bio-packaging] testing out guix)

2015-07-15 Thread Pjotr Prins
Great Malcolm,

One thing I was advocating today (compared to, for example, easybuild,
modules or homebrew) is that once you create a GNU Guix package it
will live on *all* future Linux systems (and perhaps beyond). It being
a GNU project I can only imagine it becoming ubiquous.

Pj.

On Wed, Jul 15, 2015 at 07:49:53PM +, Cook, Malcolm wrote:
> > Cook, Malcolm  writes:
> > 
> > > Also, you discussed need for setting NIX_STATE_DIR.  This should not
> > > be needed if guix was already installed with configuration of
> > > --localstatedir=/guix/var (with /guix being nfs mounted), right?
> > 
> > NIX_STATE_DIR is used to override localstate at runtime.  If you are happy
> > with the localstatedir (defined at configure time) you do not need
> > NIX_STATE_DIR.  After my vacation I’ll take some time to think about how to
> > allow users to run “guix” on cluster nodes to manipulate their profiles — 
> > and
> > how to reliably set this all up.  I’m planning on documenting this, both in 
> > a
> > specialised form for my blog and in a more generic fashion for the Guix
> > manual.
> 
> Great - thanks for clarifying - I am looking forward to reading about this 
> further in both places.  
> 
> I will eventually care about the cluster use case, but for now my first aim 
> is to ensure that users at my institute can expect an identical experience in 
> using guix regardless of which of our multiple shared-used computational 
> servers they are logged into.
> 
> > 
> > > Ricardo also wrote "For ‘guix package’ to work,
> > > /gnu/var/guix/profiles/per-user must be shared read-write (over NFS)
> > > with correct UID mapping." - I really don't understand this and tried
> > > to elicit feedback in
> > > http://lists.nongnu.org/archive/html/guix-devel/2015-07/msg00216.html
> > > - Can anyone give me clarification on this.  I though the guix daemon
> > > is going to manage these profiles.
> > 
> > I don’t remember writing this or the context in which I wrote this (could 
> > it be
> > that Ludovic wrote this?) — looking at the code for guix/scripts/package.scm
> > it seems that the client performs some of the symlink switching when
> > switching generations (e.g. after installing a new package).  For that to 
> > work it
> > would need write permission to the user’s profile directory.
> 
> Ricardo I am sorry, you are correct, I was quoting Ludovic in a thread where 
> you replied https://lists.gnu.org/archive/html/bug-guix/2015-07/msg00042.html 
> 
> > (I could be completely wrong here.  That’s not how it’s set up here and I
> > haven’t yet tested a configuration like this.)
> 
> I hope to chime in further with a big WOOHOO once I have this configuration 
> working
> 
> Thanks again for your helps...
> 
> ~Malcolm
> 
> > 
> > ~~ Ricardo
> 

-- 



Of sounds and locales

2015-07-15 Thread matias_jose_seco

Humanists and Magicians,
i'm very glad to began this journey around BuildYourWorld dimension!
In particular i've successfully generated the GuixSD station at 
Libreboot X60,

and it runs like a free deer over the woods!

I apologize if i'm eventually writing to the wrong specific-ml,
but i was unable to find any guix-user address to propose this
phenomenons.

In this chapter, i was trying to complete system declaration
following two quests:
1 - add "processor.max_cstate=2" to GRUB's kernel parameters
2 - Set an Italian Locale with an UK Keyboard Layout
The first goal is to turn the laptop from a whistling kettle to a calm 
breeze [1].
The latter gives me the chance to test Italian locale while using x60's 
GB layout.


Unfortunately, tought several attempts, i was unable to correct/find 
scheme syntax/errors so far.

Here you can find my current system declaration: [2]
Very, very, glad for your lecture and vitality.

[1] 
http://www.coreboot.org/Board:lenovo/x60#high_pitched_noise_from_the_board_during_low_power_states

[2] http://pastebin.com/Zd7FNvgR