Re: gnu/services/shepherd.scm:90:2: In procedure allocate-struct: Wrong type argument in position 2: 5

2017-09-29 Thread Huang, Ying
Efraim Flashner writes: > On Fri, Sep 29, 2017 at 07:21:27PM +0800, Huang, Ying wrote: >> Hi, All, >> >> I use the guix git. After not upgrade the code for quite some time >> (several months?), today after `git pull`, `guix environment guix` >> report the foll

Re: gnu/services/shepherd.scm:90:2: In procedure allocate-struct: Wrong type argument in position 2: 5

2017-09-29 Thread Huang, Ying
Andy Wingo writes: > On Fri 29 Sep 2017 13:21, "Huang, Ying" writes: > >> I use the guix git. After not upgrade the code for quite some time >> (several months?), today after `git pull`, `guix environment guix` >> report the following error. How to deal with

gnu/services/shepherd.scm:90:2: In procedure allocate-struct: Wrong type argument in position 2: 5

2017-09-29 Thread Huang, Ying
ate-struct: Wrong type argument in position 2: 5 Best Regards, Huang, Ying

Re: bug#26308: [PATCH -v2] services: dict.scm: Support more dicod configuration

2017-04-02 Thread huang ying
On Sun, Apr 2, 2017 at 6:12 AM, Ludovic Courtès wrote: > Hello, > > "Huang, Ying" skribis: > >> l...@gnu.org (Ludovic Courtès) writes: > > [...] > >>> While I was at it, I wrote a simple test for the dicod service: >>> >>&

Re: bug#26308: [PATCH -v2] services: dict.scm: Support more dicod configuration

2017-04-01 Thread Huang, Ying
l...@gnu.org (Ludovic Courtès) writes: > Hello, > > Huang Ying skribis: > >> * gnu/services/dict.scm (): Add handlers to configure >> handlers (module instances). >> (): Add new record type to describe handler (module >> instance). >> (): Add m

[PATCH -v2] services: dict.scm: Support more dicod configuration

2017-03-30 Thread Huang Ying
provides the following services: diff --git a/gnu/services/dict.scm b/gnu/services/dict.scm index 303067037..596f901f3 100644 --- a/gnu/services/dict.scm +++ b/gnu/services/dict.scm @@ -1,6 +1,7 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2016 Sou Bunnbu ;;; Copyrig

Re: bug#26075: [PATCH -v3 1/2] build: union: Add create-all-directories? parameter to union-build

2017-03-24 Thread Huang, Ying
Hi, Ludo, Any comment? Best Regards, Huang, Ying Danny Milosavljevic writes: > Both LGTM!

[PATCH -v3 1/2] build: union: Add create-all-directories? parameter to union-build

2017-03-12 Thread Huang Ying
* guix/build/union.scm (union-build): Add create-all-directories? keyword parameter. --- guix/build/union.scm | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/guix/build/union.scm b/guix/build/union.scm index 6640b5652..b852bc66e 100644 --- a/guix/build/union

[PATCH -v3 2/2] guix: profiles: create fonts.dir/scale for all fonts directories

2017-03-12 Thread Huang Ying
* guix/profiles.scm (fonts-dir-file): Create fonts.dir/scale files for all fonts directories. --- guix/profiles.scm | 60 --- 1 file changed, 44 insertions(+), 16 deletions(-) diff --git a/guix/profiles.scm b/guix/profiles.scm index de82eae34.

Re: Could anyone help me to pack the shellcheck (haskell)

2017-03-12 Thread Huang, Ying
Danny Milosavljevic writes: > Hi, > > On Thu, 09 Mar 2017 19:39:19 +0800 > "Huang\, Ying" wrote: > >> Danny Milosavljevic writes: >> >> > Hi, >> > >> > On Wed, 08 Mar 2017 20:08:41 +0800 >> > "Huang\, Yin

Re: Could anyone help me to pack the shellcheck (haskell)

2017-03-10 Thread Huang, Ying
Danny Milosavljevic writes: > Hi, > > On Thu, 09 Mar 2017 19:39:19 +0800 > "Huang\, Ying" wrote: > >> Danny Milosavljevic writes: >> >> > Hi, >> > >> > On Wed, 08 Mar 2017 20:08:41 +0800 >> > "Huang\, Yin

Re: [PATCH Resend] services: dict.scm: Support more dicod configuration

2017-03-09 Thread Huang, Ying
l...@gnu.org (Ludovic Courtès) writes: > Hello! > > Sorry for the long delay. > > Huang Ying skribis: > >> * gnu/services/dict.scm (): Rename databases >> to items to reflect more general configuration. >> (): Add new record type to describe handle

Re: [PATCH -v2 2/2] guix: profiles: create fonts.dir/scale for all fonts directories

2017-03-09 Thread Huang, Ying
l...@gnu.org (Ludovic Courtès) writes: > huang ying skribis: > >> On Wed, Mar 8, 2017 at 4:24 AM, Danny Milosavljevic >> wrote: >>> Hi, >>> >>>> +(with-directory-excursion dir >>>> +

Re: [PATCH -v2 2/2] guix: profiles: create fonts.dir/scale for all fonts directories

2017-03-09 Thread Huang, Ying
Hi, Ludo, Thanks for comments! l...@gnu.org (Ludovic Courtès) writes: > Huang Ying skribis: > >> * guix/profiles.scm (fonts-dir-file): Create fonts.dir/scale files for all >> fonts directories. > > Looks cool, modulo Danny’s suggestions and minor issues below. &g

Re: [PATCH -v2 1/2] build: union: Add create-all-directories? parameter to union-build

2017-03-09 Thread Huang, Ying
l...@gnu.org (Ludovic Courtès) writes: > Huang Ying skribis: > >> * guix/build/union.scm (union-build): Add create-all-directories? keyword >> parameter. To add/remove some files from the directory. > > I guess this is needed for fonts.dir, but could you explain why i

Re: Could anyone help me to pack the shellcheck (haskell)

2017-03-09 Thread Huang, Ying
Danny Milosavljevic writes: > Hi, > > On Wed, 08 Mar 2017 20:08:41 +0800 > "Huang\, Ying" wrote: > >> I know very little about Haskell, but I use shellcheck >> (https://github.com/koalaman/shellcheck) to check my shell scripts. I >> tried myself, but

Could anyone help me to pack the shellcheck (haskell)

2017-03-08 Thread Huang, Ying
Hi, All, I know very little about Haskell, but I use shellcheck (https://github.com/koalaman/shellcheck) to check my shell scripts. I tried myself, but found it is hard for me. Could anyone help me on that? Thanks in advance! Best Regards, Huang, Ying

Re: [PATCH Resend] services: dict.scm: Support more dicod configuration

2017-03-08 Thread Huang, Ying
Hi, Can anyone help me to review this patch? Best Regards, Huang, Ying Huang Ying writes: > * gnu/services/dict.scm (): Rename databases > to items to reflect more general configuration. > (): Add new record type to describe handler (module). > (): Add more fields

Re: [PATCH -v2 2/2] guix: profiles: create fonts.dir/scale for all fonts directories

2017-03-07 Thread huang ying
away the status code here (result of system*). You can > check for okayness by (zero? (system* ...)). Then what is the intended behavior? abort the build process with message and non-zero exit code? Usually we will raise a exception or just display some message and exit? Best Regards, Huang, Ying

Re: [PATCH -v2 1/2] build: union: Add create-all-directories? parameter to union-build

2017-03-07 Thread huang ying
On Wed, Mar 8, 2017 at 4:35 AM, Danny Milosavljevic wrote: > Hi, > > On Tue, 7 Mar 2017 19:07:48 +0800 > Huang Ying wrote: > >> * guix/build/union.scm (union-build): Add create-all-directories? keyword >> parameter. To add/remove some files from the directory

[PATCH -v2 2/2] guix: profiles: create fonts.dir/scale for all fonts directories

2017-03-07 Thread Huang Ying
* guix/profiles.scm (fonts-dir-file): Create fonts.dir/scale files for all fonts directories. --- guix/profiles.scm | 56 ++- 1 file changed, 39 insertions(+), 17 deletions(-) diff --git a/guix/profiles.scm b/guix/profiles.scm index de82eae34.

[PATCH -v2 1/2] build: union: Add create-all-directories? parameter to union-build

2017-03-07 Thread Huang Ying
* guix/build/union.scm (union-build): Add create-all-directories? keyword parameter. To add/remove some files from the directory. --- guix/build/union.scm | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/guix/build/union.scm b/guix/build/union.scm index 6640b5652..

[PATCH Resend] services: dict.scm: Support more dicod configuration

2017-03-07 Thread Huang Ying
* gnu/services/dict.scm (): Rename databases to items to reflect more general configuration. (): Add new record type to describe handler (module). (): Add more fields. (dicod-configuration-file): Support convert more configuration items to config file. --- gnu/services/dict.scm | 50

Re: [PATCH 1/2] build: union: Add create-all-directory? parameter to union-build

2017-02-27 Thread Huang, Ying
iyzs...@member.fsf.org (宋文武) writes: > "Huang, Ying" writes: > > Hi, sorry for my late reply. > >> Danny Milosavljevic writes: >> >>> Hi, >>> >>> yeah, I've looked at it and I see what you are trying to do. >>> >>&

Re: [PATCH 1/2] build: union: Add create-all-directory? parameter to union-build

2017-02-25 Thread Huang, Ying
hare/fonts/truetype, we need to create fonts.dir/scale for other directories in $GUIX_PROFILE/share/fonts too. So we need to create all directories under $GUIX_PROFILE/share/fonts. We do that in 2/2 of the patchset. Best Regards, Huang, Ying > If we've misunderstood the rationale for this patch, can you help us > understand what you're trying to do? > > Thanks, >Mark

Re: [PATCH 1/2] build: union: Add create-all-directory? parameter to union-build

2017-02-25 Thread Huang, Ying
ished union as input and not just single > directories one by one. Thoughts?) union will only be called with create-all-directory? != nil for packages have share/fonts directories. And for these packages, we plan to remove the fonts.dir and fonts.scale files, so that we need to create all directories for them after all. Is this good enough? Best Regards, Huang, Ying

Re: [PATCH 1/2] build: union: Add create-all-directory? parameter to union-build

2017-02-24 Thread Huang, Ying
think it looks good enough to me. I'd like a > second opinion, though. > > Other than that, the name of the new flag "create-all-directory?" is weird. > I'd like it to be something like "create-all-directories?". OK. Will change it. Best Regards, Huan

Re: [PATCH 1/2] build: union: Add create-all-directory? parameter to union-build

2017-02-24 Thread Huang, Ying
Hi, Andy, Andy Wingo writes: > Hi :) > > On Fri 24 Feb 2017 13:40, "Huang, Ying" writes: > >>>(define (union output inputs) >>> (match inputs >>>((input) >>> - ;; There's only one input, so just make a li

Re: [PATCH 1/2] build: union: Add create-all-directory? parameter to union-build

2017-02-24 Thread Huang, Ying
Hi, All, Can anyone help me to review this patch? Best Regards, Huang, Ying huang_ying_cari...@163.com writes: > From: Huang Ying > > * guix/build/union.scm (union-build): Add create-all-directory? keyword > parameter. To add/remove some files from the directory. > --

Re: Stumpwm and config.scm

2017-02-19 Thread Huang, Ying
didn't put > sbcl-stumpwm in my config.scm but I installed sbcl-stumpwm: bin and it works. I have ever used (specification->package+output "sbcl-stumpwm:bin") in my config.scm. Best Regards, Huang, Ying

Re: [PATCH] gnu: font-gnu-unifont: Call mkfontdir for pcf output

2017-02-15 Thread Huang, Ying
agree; removing all "fonts.dir" and "fonts.alias" files > from packages and regenerating them at profile time looks like a good > idea to me. Good to know this. I will implement it as this. Best Regards, Huang, Ying

Re: [PATCH -v3] Fix gtk-im-modules for gtk+3

2017-02-09 Thread Huang, Ying
iyzs...@member.fsf.org (宋文武) writes: > "Huang, Ying" writes: > >> Hi, Wenwu, >> >> iyzs...@member.fsf.org (宋文武) writes: >> >>> "Huang, Ying" writes: >>> >>>> [...] >>>>> -#$(if g

Re: Add /usr/bin/env by default in guixsd?

2017-02-09 Thread Huang, Ying
file” FILE. > > For example, adding the following lines to the ‘services’ field of > your operating system declaration leads to a ‘/usr/bin/env’ > symlink: > > (extra-special-file "/usr/bin/env" > (file-append coreutils "/bin/env")) Great! Thanks a lot! Best Regards, Huang, Ying

Re: [PATCH -v3] Fix gtk-im-modules for gtk+3

2017-02-06 Thread Huang, Ying
Hi, Wenwu, iyzs...@member.fsf.org (宋文武) writes: > "Huang, Ying" writes: > >> [...] >>> -#$(if gtk+ (build gtk+ "3.0.0") #t) >>> -#$(if gtk+-2 (build gtk+-2 "2.10.0") #t >>>

Re: [PATCH -v2] Fix gtk-im-modules for Gtk+3

2017-02-06 Thread Huang, Ying
Hi, Ricardo, Ricardo Wurmus writes: > huang_ying_cari...@163.com writes: > >> From: Huang Ying >> >> Gtk+3 now have multiple outputs, so the gtk-query-immodules-3.0 should be >> find >> in bin output. > > Ah, I was wondering why this broke! Thank

Re: [PATCH] gnu: font-gnu-unifont: Call mkfontdir for pcf output

2017-02-05 Thread Huang, Ying
"Huang, Ying" writes: > Hi, Wenwu, > > Thanks for comments! > > iyzs...@member.fsf.org (宋文武) writes: > >> huang_ying_cari...@163.com writes: >> >>> * gnu/packages/fonts.scm (font-gnu-unifont): call mkfontdir for pcf output. >>> &

Re: [PATCH] gnu: font-gnu-unifont: Call mkfontdir for pcf output

2017-02-05 Thread Huang, Ying
Hi, Wenwu, Thanks for comments! iyzs...@member.fsf.org (宋文武) writes: > huang_ying_cari...@163.com writes: > >> * gnu/packages/fonts.scm (font-gnu-unifont): call mkfontdir for pcf output. >> >> Signed-off-by: "Huang, Ying" >> --- >> gnu/pac

Re: [PATCH -v3] Fix gtk-im-modules for gtk+3

2017-02-05 Thread Huang, Ying
Hi, Wenwu, Thanks for comments. iyzs...@member.fsf.org (宋文武) writes: > huang_ying_cari...@163.com writes: > >> From: "Huang, Ying" >> >> Gtk+3 now have multiple outputs, so the gtk-query-immodules-3.0 should be >> find >> in output "bin&quo

Re: [PATCH -v2] Fix gtk-im-modules for Gtk+3

2017-02-04 Thread Huang, Ying
date the docstring too. Sure. >> + (if output >> + (string-suffix? output version*) >> #t > > Should that include the separator between the parts? Otherwise it > could maybe have false positives... OK. Best Regards, Huang, Ying

Re: [PATCH -v2] Fix gtk-im-modules for Gtk+3

2017-02-03 Thread Huang, Ying
Hi, All, huang_ying_cari...@163.com writes: > From: Huang Ying > > Gtk+3 now have multiple outputs, so the gtk-query-immodules-3.0 should be find > in bin output. > > The fix works, but appears hacky, because I haven't read much guix source > code, so I don't

Add /usr/bin/env by default in guixsd?

2017-01-30 Thread Huang, Ying
x27;t want to package it, it is good to have /usr/bin/env available. In this way, the interpreters in ~/.guix-profile/bin will be used. So how about add /usr/bin/env by default in guixsd? Best Regards, Huang, Ying