[PATCH 2/5] gnu: Add python-radon

2017-04-05 Thread Muriithi Frederick Muriuki
* gnu/packages/python.scm (python-radon): New variable.
---
 gnu/packages/python.scm | 33 +
 1 file changed, 33 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 9dd045a..9c850db 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -13973,3 +13973,36 @@ recognize TestCases.")
(sha256
 (base32
  "17jlkdpqw22z1nyml5ybslilqkzmnk0dxxjml8bfghav1l5hbwd2"))
+
+(define-public python-radon
+  (package
+(name "python-radon")
+(version "1.5.0")
+(source
+ (origin
+   (method url-fetch)
+   (uri (pypi-uri "radon" version))
+   (sha256
+(base32
+ "1h6jv36am0i827182a04ki6291lyx4kp957xfr5njgprj4nd0qsl"
+(build-system python-build-system)
+(propagated-inputs
+ `(("python-colorama" ,python-colorama)
+   ("python-flake8-polyfill"
+,python-flake8-polyfill)
+   ("python-mando" ,python-mando-0.3.1)))
+(native-inputs
+ `(("python-flake8" ,python-flake8)
+   ("python-tox" ,python-tox)
+   ("python-pytest" ,python-pytest)))
+(home-page "https://radon.readthedocs.org/";)
+(synopsis "Code Metrics in Python")
+(description "Radon is a Python tool which computes various code metrics.  
Supported
+ metrics are:
+@itemize @bullet
+@item raw metrics: SLOC, comment lines, blank lines, &c.
+@item Cyclomatic Complexity (i.e.  McCabe’s Complexity)
+@item Halstead metrics (all of them)
+@item the Maintainability Index (a Visual Studio metric)
+@end itemize")
+(license license:expat)))
-- 
2.10.2




[PATCH 3/5] gnu: Add python-httpbin

2017-04-05 Thread Muriithi Frederick Muriuki
* gnu/packages/python.scm (python-httpbin): New variable.
---
 gnu/packages/python.scm | 24 
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 9c850db..8f08ddd 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -14006,3 +14006,27 @@ recognize TestCases.")
 @item the Maintainability Index (a Visual Studio metric)
 @end itemize")
 (license license:expat)))
+
+(define-public python-httpbin
+  (package
+(name "python-httpbin")
+(version "0.5.0")
+(source
+ (origin
+   (method url-fetch)
+   (uri (pypi-uri "httpbin" version))
+   (sha256
+(base32
+ "1dc92lnk846hpilslrqnr63x55cxll4qx88gif8fm521gv9cbyvr"
+(build-system python-build-system)
+(propagated-inputs
+ `(("python-decorator" ,python-decorator)
+   ("python-flask" ,python-flask)
+   ("python-itsdangerous" ,python-itsdangerous)
+   ("python-markupsafe" ,python-markupsafe)
+   ("python-six" ,python-six)))
+(home-page "https://github.com/Runscope/httpbin";)
+(synopsis "HTTP Request and Response Service")
+(description "HTTP Request and Response Service which covers all kinds of 
HTTP
+scenarios")
+(license license:expat)))
-- 
2.10.2




[PATCH 4/5] gnu: Add python-pytest-httpbin

2017-04-05 Thread Muriithi Frederick Muriuki
* gnu/packages/python.scm (python-pytest-httpbin): New variable.
---
 gnu/packages/python.scm | 24 
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 8f08ddd..0ab3d04 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -14030,3 +14030,27 @@ recognize TestCases.")
 (description "HTTP Request and Response Service which covers all kinds of 
HTTP
 scenarios")
 (license license:expat)))
+
+(define-public python-pytest-httpbin
+  (package
+(name "python-pytest-httpbin")
+(version "0.0.7")
+(source
+ (origin
+   (method url-fetch)
+   (uri (pypi-uri "pytest-httpbin" version))
+   (sha256
+(base32
+ "08ghq923dn33rllip3vap2p9fb680g0i96jdn5lcpfy8amq8mbq3"
+(build-system python-build-system)
+(propagated-inputs
+ `(("python-six" ,python-six)
+   ("python-httpbin" ,python-httpbin)
+   ("python-pytest" ,python-pytest)))
+(home-page
+ "https://github.com/kevin1024/pytest-httpbin";)
+(synopsis
+ "Easily test your HTTP library against a local copy of httpbin")
+(description
+ "Easily test your HTTP library against a local copy of httpbin")
+(license license:expat)))
-- 
2.10.2




[PATCH 5/5] gnu: Add python-sphinx-rtd-theme-0.1.9

2017-04-05 Thread Muriithi Frederick Muriuki
* gnu/packages/python.scm (python-sphinx-rtd-theme-0.1.9): New variable.
---
 gnu/packages/python.scm | 16 
 1 file changed, 16 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 0ab3d04..7ca2593 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -14054,3 +14054,19 @@ scenarios")
 (description
  "Easily test your HTTP library against a local copy of httpbin")
 (license license:expat)))
+
+(define-public python-sphinx-rtd-theme-0.1.9
+  (package
+(inherit python-sphinx-rtd-theme)
+(name "python-sphinx-rtd-theme")
+(version "0.1.9")
+(source
+ (origin
+   (method url-fetch)
+   (uri (pypi-uri "sphinx_rtd_theme" version))
+   (sha256
+(base32
+ "18d0r63w7jpdrk4q5qy26n08vdlmnj9sar93akwjphyambw4cf17"
+(propagated-inputs
+ `(("python-sphinx" ,python-sphinx-1.5.3)
+   ("python-snowballstemmer" ,python-snowballstemmer)
-- 
2.10.2




Re: [PATCH] profiles: Generate database file for manpages

2017-04-05 Thread Ludovic Courtès
Hello!

Maxim Cournoyer  skribis:

> Another thought/experiment:
>
> It could be interesting to use find-files with the  #:fail-on-error?
> flag set to #t. When trying it:
>
> modified   guix/profiles.scm
> @@ -978,7 +978,7 @@ files for the fonts of the @var{manifest} entries."
>  (string-drop manpage-path (+ index (string-length 
> "/share/man/")
>  
>  (define (populate-manpages-collection-dir entries)
> -  (let ((manpages (append-map (cut find-files <> #:stat stat) 
> entries)))
> +  (let ((manpages (append-map (cut find-files <> #:stat stat 
> #:fail-on-error? #t) entries)))
>  (for-each (lambda (manpage)
>  (let* ((dest-file (string-append
> manpages-collection-dir "/"
>
> 
> It found a broken link for one of the manpages shipped with our gimp package.

I think we should rather do this check for instance in a new build
phase, rather than have the profile hook fail.

WDYT?

> file 
> /gnu/store/wh2bryjss0pnrv9ss4jbbkwfbj2ql22i-gimp-2.8.18/share/man/man1/gimp-console.1
>  
> /gnu/store/wh2bryjss0pnrv9ss4jbbkwfbj2ql22i-gimp-2.8.18/share/man/man1/gimp-console.1:
>  broken symbolic link to gimp-console-2.8.1.gz

I wonder why this happens…

Thanks,
Ludo’.



Re: [PATCH] profiles: Generate database file for manpages

2017-04-05 Thread Ludovic Courtès
Hi Maxim,

Maxim Cournoyer  skribis:

> l...@gnu.org (Ludovic Courtès) writes:
>
>> Hi Maxim,
>>
>> Maxim Cournoyer  skribis:
>>
>>> Unfortunately I cannot reproduce the problem on my side, although you seem 
>>> to be
>>> right that this is caused by the `string-contains` not matching
>>> "/share/man/" in the manpage-path and returning #f...
>>>
>>> The only reason I'd suspect this could happen was if the `find-files`
>>> method (used io list all the files contained under
>>> "$manifest-inputs/share/man/") somehow returned bogus paths (I saw that
>>> this function has a "fail-on-error?" argument which is disabled by default).
>>>
>>> To help further troubleshoot this, could you please use the provided
>>> patch instead, where I inserted:
>>>
>>>  
>>>  (define (get-manpage-tail-path manpage-path)
>>>(let ((index (string-contains manpage-path "/share/man/")))
>>> +(unless index
>>> +  (error "Manual path doesn't contain \"/share/man/\":"
>>> + manpage-path))
>>>  (substring manpage-path (+ index (string-length 
>>> "/share/man/")
>>>  
>>>  (define (populate-manpages-collection-dir entries)
>>>
>>> to print the unexpectedly formed manpage-path.
>>
>> The problem happens with 
>> "/gnu/store/rn3vri602z3jpwqnha0r5nwxi6v0qpnx-texlive-2016/share/man" (no
>> trailing slash):
>>
>> $ ls -l "/gnu/store/rn3vri602z3jpwqnha0r5nwxi6v0qpnx-texlive-2016/share/man"
>> lrwxrwxrwx 2 root root 70 Jan  1  1970 
>> /gnu/store/rn3vri602z3jpwqnha0r5nwxi6v0qpnx-texlive-2016/share/man -> 
>> /gnu/store/8mhqravbd3pv7x1y2qfjlv0bdjchszn0-texlive-bin-2016/share/man
>>
>> ‘find-files’ uses ‘lstat’ by default, which means it does not follow
>> symlinks, and I guess that’s what’s happening here.  Perhaps
>> ‘find-files’ needs to be called with #:stat stat to use ‘stat’ instead
>> of ‘lstat’?
>>
>> Thanks,
>> Ludo’.
>
> That's a good idea! Could you please try again with the new included
> patch? Here are the latest changes:
>
> @@ -954,7 +954,8 @@ files for the fonts of the @var{manifest} entries."
>(define build
>  #~(begin
>  (use-modules (guix build utils)
> - (srfi srfi-1))
> + (srfi srfi-1)
> + (srfi srfi-26))
>  
>  (define entries
>(filter-map (lambda (directory)
> @@ -977,7 +978,7 @@ files for the fonts of the @var{manifest} entries."
>  (string-drop manpage-path (+ index (string-length 
> "/share/man/")
>  
>  (define (populate-manpages-collection-dir entries)
> -  (let ((manpages (append-map find-files entries)))
> +  (let ((manpages (append-map (cut find-files <> #:stat stat) 
> entries)))
>  (for-each (lambda (manpage)
>  (let* ((dest-file (string-append
> manpages-collection-dir "/"
> @@ -1012,7 +1013,8 @@ files for the fonts of the @var{manifest} entries."
>  "-C" "man_db.conf"
>  
>(gexp->derivation "manual-database" build
> -#:modules '((guix build utils))
> +#:modules '((guix build utils)
> +(srfi srfi-26))
>  #:local-build? #t))
>  
>  (define %default-profile-hooks
>
>
> I think we're closing in... :)
>
> Maxim

The attachment is missing from your message (it’s marked as
“message/external-body”, which AIUI means that it would just look for a
same-named file on the recipient’s machine.)  Could you resend it?  :-)

Thanks,
Ludo’.



Re: [PATCH] profiles: Generate database file for manpages

2017-04-05 Thread Maxim Cournoyer
Hi Ludovic!

l...@gnu.org (Ludovic Courtès) writes:

[...]

> The attachment is missing from your message (it’s marked as
> “message/external-body”, which AIUI means that it would just look for a
> same-named file on the recipient’s machine.)  Could you resend it?  :-)

Sorry about that! Resending now.

From b6aff9b364f09e77e07109578128f3be383231e0 Mon Sep 17 00:00:00 2001
From: Maxim Cournoyer 
Date: Tue, 28 Mar 2017 09:25:21 -0700
Subject: [PATCH] profiles: Generate database file for manpages
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

The mandb database file (index.db) is used by the "apropos" (whatis) or
"man -k" commands. This change introduces a profile hook to generate
such database file.

Co-authored by Ludovic Courtès

* guix/profiles.scm (manual-database): New procedure.
(%default-profile-hooks): Add it.
---
 guix/profiles.scm | 72 +++
 1 file changed, 72 insertions(+)

diff --git a/guix/profiles.scm b/guix/profiles.scm
index 795c9447fe..097d684438 100644
--- a/guix/profiles.scm
+++ b/guix/profiles.scm
@@ -7,6 +7,7 @@
 ;;; Copyright © 2016 Ricardo Wurmus 
 ;;; Copyright © 2016 Chris Marusich 
 ;;; Copyright © 2017 Huang Ying 
+;;; Copyright © 2017 Maxim Cournoyer 
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -946,10 +947,81 @@ files for the fonts of the @var{manifest} entries."
 #:local-build? #t
 #:substitutable? #f))
 
+(define (manual-database manifest)
+  (define man-db  ;lazy reference
+(module-ref (resolve-interface '(gnu packages man)) 'man-db))
+
+  (define build
+#~(begin
+(use-modules (guix build utils)
+ (srfi srfi-1)
+ (srfi srfi-26))
+
+(define entries
+  (filter-map (lambda (directory)
+(let ((man (string-append directory "/share/man")))
+  (and (directory-exists? man)
+   man)))
+  '#$(manifest-inputs manifest)))
+
+(define manpages-collection-dir
+  (string-append (getenv "PWD") "/manpages-collection"))
+
+(define man-directory
+  (string-append #$output "/share/man"))
+
+(define (get-manpage-tail-path manpage-path)
+  (let ((index (string-contains manpage-path "/share/man/")))
+(unless index
+  (error "Manual path doesn't contain \"/share/man/\":"
+ manpage-path))
+(string-drop manpage-path (+ index (string-length "/share/man/")
+
+(define (populate-manpages-collection-dir entries)
+  (let ((manpages (append-map (cut find-files <> #:stat stat) entries)))
+(for-each (lambda (manpage)
+(let* ((dest-file (string-append
+   manpages-collection-dir "/"
+   (get-manpage-tail-path manpage
+  (mkdir-p (dirname dest-file))
+  (catch 'system-error
+(lambda ()
+  (symlink manpage dest-file))
+(lambda args
+  ;; Different packages may contain the same
+  ;; manpage.  Simply ignore the symlink error.
+  #t
+  manpages)))
+
+(mkdir-p manpages-collection-dir)
+(populate-manpages-collection-dir entries)
+
+;; Create a mandb config file which contains a custom made
+;; manpath. The associated catpath is the location where the database
+;; gets generated.
+(copy-file #+(file-append man-db "/etc/man_db.conf")
+   "man_db.conf")
+(substitute* "man_db.conf"
+  (("MANDB_MAP	/usr/man		/var/cache/man/fsstnd")
+   (string-append "MANDB_MAP " manpages-collection-dir " "
+  man-directory)))
+
+(mkdir-p man-directory)
+(setenv "MANPATH" (string-join entries ":"))
+(zero? (system* #+(file-append man-db "/bin/mandb")
+"--quiet" "--create"
+"-C" "man_db.conf"
+
+  (gexp->derivation "manual-database" build
+#:modules '((guix build utils)
+(srfi srfi-26))
+#:local-build? #t))
+
 (define %default-profile-hooks
   ;; This is the list of derivation-returning procedures that are called by
   ;; default when making a non-empty profile.
   (list info-dir-file
+manual-database
 fonts-dir-file
 ghc-package-cache-file
 ca-certificate-bundle
-- 
2.12.0


Maxim


signature.asc
Description: PGP signature


Re: Non-graphical GRUB configuration

2017-04-05 Thread Leo Famulari
On Sun, Apr 02, 2017 at 05:06:20PM -0400, Leo Famulari wrote:
> Based on the GRUB manual [0], how about this plan?
> 
> We'd add these fields to (grub-configuration): 
> 
> terminal-outputs: One or more symbols: console, serial, gfxterm,
> ofconsole, vga_text. Default gfxterm.
> 
> terminal-inputs: One or more symbols: console, serial, ofconsole,
> at_keyboard,usb_keyboard. Default unset.
> 
> If 'terminal-inputs' or 'serial-*' are unset, we do what we do now:
> nothing. If 'terminal-outputs' is unset, we also do the same thing we
> now, which is set it to gfxterm.
> 
> If any of them are set, we'd insert the corresponding text into the
> generated grub.cfg.
> 
> If terminal-outputs does not include the symbol 'gfxterm', we'd disable
> the "setup_gfxterm" function.

Here's a WIP patch that I'd like some advice about. It does insert the
relevant text into grub.cfg, although I recommend testing it in a
virtual machine for now.

Questions:

1) In general, is this approach okay?

2) I think that (grub-setup-io) should be used in
(grub-configuration-file) instead of (eye-candy). But, when I try
calling it there, in the builder, it has no effect on grub.cfg. Any
suggestions for debugging this?
From c1d081d111fb4778b6a0625abbdd8cc540ae630f Mon Sep 17 00:00:00 2001
From: Leo Famulari 
Date: Sun, 2 Apr 2017 22:18:00 -0400
Subject: [PATCH] system: grub: Expose GRUB settings for interactive
 interfaces.

WIP: Does not validate input and setup-io is used in the wrong place

* gnu/system/grub.scm (): Add new fields
terminal-outputs, terminal-inputs, serial-unit, and serial-speed.
(grub-setup-io, setup-gfxterm): New procedures.
* doc/guix.texi (GRUB Configuration): Document the new fields.
---
 doc/guix.texi   | 17 
 gnu/system/grub.scm | 75 +
 2 files changed, 75 insertions(+), 17 deletions(-)

diff --git a/doc/guix.texi b/doc/guix.texi
index aa779e38e..8107872bc 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -14920,6 +14920,23 @@ The @code{grub-theme} object describing the theme to 
use.
 
 @item @code{grub} (default: @code{grub})
 The GRUB package to use.
+
+@item @code{terminal-outputs} (default: @code{'gfxterm})
+The output terminals used for the GRUB boot menu, as a list of symbols.
+
+@item @code{terminal-inputs} (default: @code{'()})
+The input terminals used for the GRUB boot menu, as a list of symbols.
+The default is the native platform terminal as determined by GRUB at
+run-time.
+
+@item @code{serial-unit} (default: @code{#f})
+The serial unit used by GRUB, as an integer from 0 to 3.  The default
+value is deferred to GRUB; currently GRUB choosese 0, which corresponds
+to COM1.
+
+@item @code{serial-speed} (default: @code{#f})
+The speed of the serial interface, as an integer.  The default value is
+deferred to GRUB; currently GRUB chooses 9600bps.
 @end table
 
 @end deftp
diff --git a/gnu/system/grub.scm b/gnu/system/grub.scm
index 4f9bde6a6..8a516f05f 100644
--- a/gnu/system/grub.scm
+++ b/gnu/system/grub.scm
@@ -107,17 +107,25 @@ denoting a file name."
 (define-record-type* 
   grub-configuration make-grub-configuration
   grub-configuration?
-  (grubgrub-configuration-grub   ; package
-   (default (@ (gnu packages bootloaders) grub)))
-  (device  grub-configuration-device); string
-  (menu-entriesgrub-configuration-menu-entries   ; list
-   (default '()))
-  (default-entry   grub-configuration-default-entry  ; integer
-   (default 0))
-  (timeout grub-configuration-timeout; integer
-   (default 5))
-  (theme   grub-configuration-theme  ; 
-   (default %default-theme)))
+  (grub grub-configuration-grub ; package
+(default (@ (gnu packages bootloaders) grub)))
+  (device   grub-configuration-device)  ; string
+  (menu-entries grub-configuration-menu-entries ; list
+(default '()))
+  (default-entrygrub-configuration-default-entry; integer
+(default 0))
+  (timeout  grub-configuration-timeout  ; integer
+(default 5))
+  (themegrub-configuration-theme; 
+(default %default-theme))
+  (terminal-outputs grub-configuration-terminal-outputs ; list of symbols
+(default '(gfxterm)))
+  (terminal-inputs  grub-configuration-terminal-inputs  ; list of symbols
+(default '()))
+  (serial-unit  grub-configuration-serial-unit  ; integer | #f
+(default #f))
+  (serial-speed grub-configuration-serial-speed ; integer | #f
+(default #f)))
 
 (define-record-type* 
   menu-entry make-menu-entry
@@ -198,11 +206,16 @@ system string---e.g., \"x86_64-linux\"."
 insmod vbe
 insmod vga
   fi
-
-  terminal_output gfxterm

Re: Non-graphical GRUB configuration

2017-04-05 Thread myglc2

On 04/05/2017 at 11:59 Leo Famulari writes:

> Questions:
>
> 1) In general, is this approach okay?

Hi Leo,

This LGTM, but I was unable to test it because my 'system build' hangs
as reported in bug#26370. Running your commit produced a similar hang
but I think it is not caused by your changes so I reported against the
origin/master commit.

I interpreted your doc to say I should use something like this ...

  (bootloader (grub-configuration (device "/dev/nvme0n1")
  (serial-speed 115200)
  (terminal-inputs '(serial console))
  (terminal-outputs '(console


... to produce something like this in my grub config ...

serial --unit=0 --speed=115200
terminal_input serial console; terminal_output console

Does that look right?

If so, it may be nice to include an example like this in the doc.

Once I get the system build working I will test further.

TIA - George



Re: Non-graphical GRUB configuration

2017-04-05 Thread Leo Famulari
On Wed, Apr 05, 2017 at 11:14:06AM -0400, myglc2 wrote:
> I interpreted your doc to say I should use something like this ...
> 
>   (bootloader (grub-configuration (device "/dev/nvme0n1")
> (serial-speed 115200)
> (terminal-inputs '(serial console))
> (terminal-outputs '(console

Right, except...

> ... to produce something like this in my grub config ...
> 
> serial --unit=0 --speed=115200
> terminal_input serial console; terminal_output console

... you won't get '--unit=0' unless you specify (serial-unit 0) in your
GuixSD configuration. However, GRUB defaults to '0', according to its
manual.



Re: website question

2017-04-05 Thread Ricardo Wurmus

ng0  writes:

> Most initial texts for pragmatique's website are now done.
> As I don't want to introduce it with a plain white one-page site, I
> thought about what I want to use. Jinja (taler.net) or Guile (guix,
> guile). The software part of the project is based on and into Guix, so
> it would be good to make use of Guile where possible. The only reason
> I'd choose taler.net template for is that it already has a solution for
> #26302 (translation of texts)[0].
>
> As I dislike keeping changes which could be beneficial for others:
> If I start with an individual repo, could patches which would fix 
> for example the translation problem still be applied "somehow" to
> guix-artwork although both repositories share no root but just similiar
> files?
> Or do I have to commit again into guix-artwork then to share the
> changes?
>
> It makes no sense for me to re-use the guix-artwork repository as too
> much content (graphics, texts, posts) will diverge from the one Guix
> uses. I guess there will be maybe 20% code of guix-artwork.git/website/
> left over.
>
> What do you suggest to do?

I don’t understand what this message is about.  Is there some context
I’m missing?

-- 
Ricardo

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




Re: website question

2017-04-05 Thread Catonano
2017-04-05 20:38 GMT+02:00 Ricardo Wurmus :

>
>
> I don’t understand what this message is about.  Is there some context
> I’m missing?
>

Ok, this is how I understand this issue

ng0 is preparing their web site for promoting their project (a live distro
based on Guix)

One feature ng0 wants for their site is the ability to show the contents of
such site localized in several languages.

Like the Taler site https://taler.net/de/index.html (only parts are
actually translated, as far as I can tell)

It seems that Artanis and Haunt have no such functionality

So ng0 is thinking to extend those and implement that functionality
themselves

Because they want something Guile based

So they're asking how to proceed in order to make the result of such effort
available not only to their site, but to the general Artanis/Haunt
community.

This is the context, to the extent that I'm aware of it

My suggestion would be to extend Artanis/Haunt and send patches upstream.

The Guile web site will catch up eventually.

Otherwise, ng0, you could manage to produce some patches that apply to the
common subset of files (common between Artanis/Haunt and your site)


Re: Non-graphical GRUB configuration

2017-04-05 Thread myglc2
On 04/05/2017 at 12:07 Leo Famulari writes:

> On Wed, Apr 05, 2017 at 11:14:06AM -0400, myglc2 wrote:
>> I interpreted your doc to say I should use something like this ...
>> 
>>   (bootloader (grub-configuration (device "/dev/nvme0n1")
>>(serial-speed 115200)
>>(terminal-inputs '(serial console))
>>(terminal-outputs '(console
>
> Right, except...
>
>> ... to produce something like this in my grub config ...
>> 
>> serial --unit=0 --speed=115200
>> terminal_input serial console; terminal_output console
>
> ... you won't get '--unit=0' unless you specify (serial-unit 0) in your
> GuixSD configuration. However, GRUB defaults to '0', according to its
> manual.

Yes I noticed. I was operating on the hope that less would be more ;-)

After following Marius Bakke's advice to revert
dfee7daedb760f1b1d7506829ca31633f4173356 "gnu: bc: Update to 1.07" I can
confirm that this works on an ASRock MT-C224 motherboard over IPMI SOL.

Please let me know if there is anything else you need me to test.

- George



Re: website question

2017-04-05 Thread ng0
Catonano transcribed 3.2K bytes:
> 2017-04-05 20:38 GMT+02:00 Ricardo Wurmus :
> 
> >
> >
> > I don’t understand what this message is about.  Is there some context
> > I’m missing?
> >

Yeah, sorry. It could've been expressed with less noise, there's just
too much noise in my head for processing individual thought patterns (no
reference to the album ;D) in the recent weeks.

> Ok, this is how I understand this issue
> 
> ng0 is preparing their web site for promoting their project (a live distro
> based on Guix)
> 
> One feature ng0 wants for their site is the ability to show the contents of
> such site localized in several languages.

That is what I want for Guix as well, as I see it as an important
missing function.

> Like the Taler site https://taler.net/de/index.html (only parts are
> actually translated, as far as I can tell)

Yeah, I thought more of it was translated. But the possibility is there.


> It seems that Artanis and Haunt have no such functionality

Haunt simply has no opinion, and formats such as Markdown don't have it
either. The only format I am aware of which has this functionality is
the C meets HTML meets something else home-grown format a friend uses
since the '90s. If I come to find out that this is really the only time
saving solution, I will write something which just parses files writen
in that language, but I'd rather have something which works for
everyone and their existing environments.

> So ng0 is thinking to extend those and implement that functionality
> themselves
> 
> Because they want something Guile based
> 
> So they're asking how to proceed in order to make the result of such effort
> available not only to their site, but to the general Artanis/Haunt
> community.
>
> This is the context, to the extent that I'm aware of it
> 
> My suggestion would be to extend Artanis/Haunt and send patches upstream.
> 
> The Guile web site will catch up eventually.
> 
> Otherwise, ng0, you could manage to produce some patches that apply to the
> common subset of files (common between Artanis/Haunt and your site)

Your reply helped a bit, thanks. Ultimately it's (hopefully) not only up
to me alone how we proceed with the web site at pragmatique.

I wrote the first message before I knew where I was going with the
layout, etc. It's loosely based on the Guix website but uses its own
theme, no images, etc. Just a first primary version (did I mention
already that school (the later digital/media/art related parts) ruined
art and web design for me? It's annoying.)



Re: [PATCH] profiles: Generate database file for manpages

2017-04-05 Thread Ludovic Courtès
Maxim Cournoyer  skribis:

> From b6aff9b364f09e77e07109578128f3be383231e0 Mon Sep 17 00:00:00 2001
> From: Maxim Cournoyer 
> Date: Tue, 28 Mar 2017 09:25:21 -0700
> Subject: [PATCH] profiles: Generate database file for manpages
> MIME-Version: 1.0
> Content-Type: text/plain; charset=UTF-8
> Content-Transfer-Encoding: 8bit
>
> The mandb database file (index.db) is used by the "apropos" (whatis) or
> "man -k" commands. This change introduces a profile hook to generate
> such database file.
>
> Co-authored by Ludovic Courtès
>
> * guix/profiles.scm (manual-database): New procedure.
> (%default-profile-hooks): Add it.

Finally applied as a0b87ef8ec7735aa42cf35d380e9cff04f3236f3!  \o/
I added a ‘format’ call in the hook itself so that people understand
what’s going on if it takes too long, and tweaked the commit log.

While at it, I added in commit 31f1f593fb835978085566e50d3d8c576d55fe99
a section on searching for and reading Info and man documentation.
Something that may be obvious for some of us but less so for other
(notably younger) users.  Feel free to extend it!

Thanks,
Ludo’.



Re: [PATCH] guix hash: -g hashes a git repository

2017-04-05 Thread Ludovic Courtès
Andy Wingo  skribis:

> On Tue 04 Apr 2017 14:21, l...@gnu.org (Ludovic Courtès) writes:
>
>>> +For example:
>>> +@example
>>> +$ git clone http://example.org/foo.git
>>> +$ guix hash -g foo
>>> +@end example
>>
>> In this case -g is equivalent to -rx.
>
> My main use case is when I am in a git checkout that has build products
> or other stuff.  Then I can "guix hash -g .".  Easier than making a temp
> dir, clone, hash, then delete.

Oh right, I hadn't realized that it would exclude untracked files etc.
Definitely an improvement!

> > so we have both the commit id and the content hash.
> >
> > WDYT?
>
> Could be!  Or "git rev-parse HEAD".  I'll do that.

Awesome.

Thanks,
Ludo’.



Re: [PATCH] guix hash: -g hashes a git repository

2017-04-05 Thread Christopher Allan Webber
Andy Wingo writes:

> +   (pk "git" "clone" file checkout)
> +   (recursive-hash checkout)

One of those cursed pk's made it in here.

Exciting!  Look forward to having this option.



Re: [PATCH] profiles: Generate database file for manpages

2017-04-05 Thread Maxim Cournoyer
Hi Ludovic!

l...@gnu.org (Ludovic Courtès) writes:

> Maxim Cournoyer  skribis:
>
>> From b6aff9b364f09e77e07109578128f3be383231e0 Mon Sep 17 00:00:00 2001
>> From: Maxim Cournoyer 
>> Date: Tue, 28 Mar 2017 09:25:21 -0700
>> Subject: [PATCH] profiles: Generate database file for manpages
>> MIME-Version: 1.0
>> Content-Type: text/plain; charset=UTF-8
>> Content-Transfer-Encoding: 8bit
>>
>> The mandb database file (index.db) is used by the "apropos" (whatis) or
>> "man -k" commands. This change introduces a profile hook to generate
>> such database file.
>>
>> Co-authored by Ludovic Courtès
>>
>> * guix/profiles.scm (manual-database): New procedure.
>> (%default-profile-hooks): Add it.
>
> Finally applied as a0b87ef8ec7735aa42cf35d380e9cff04f3236f3!  \o/
> I added a ‘format’ call in the hook itself so that people understand
> what’s going on if it takes too long, and tweaked the commit log.
>
> While at it, I added in commit 31f1f593fb835978085566e50d3d8c576d55fe99
> a section on searching for and reading Info and man documentation.
> Something that may be obvious for some of us but less so for other
> (notably younger) users.  Feel free to extend it!
>

Thanks for your collaboration on this! I think the Documentation section
you added be of  great help to Guix newcomers; I reviewed it and it
looks great!

> Thanks,
> Ludo’.

Thanks!

Maxim


signature.asc
Description: PGP signature