Re:Re: Update weblate.

2023-12-13 Thread tumashu
sorry, i have sent to wrong address.





--
发自我的网易邮箱手机智能版



- Original Message -
From: "Julien Lepiller" 
To: guix-devel@gnu.org, "Feng Shu" 
Sent: Thu, 14 Dec 2023 07:19:21 +0100
Subject: Re: Update weblate.

Hi,

GNU Health is not under the responsibility of the Guix project. You should 
contact them instead

Le 13 décembre 2023 23:35:32 GMT+01:00, Feng Shu  a écrit :
>
>https://hosted.weblate.org/projects/gnu-health seem to not be updated,
>when sync health hg to it?
>


About mate-1.26 patchs status.

2022-03-03 Thread tumashu
Hello:


   I have sent some patchs about mate-1.26 to guix-patches, but seem to no 
response for a week,
 I would like to know its status :-)



1. https://issues.guix.gnu.org/54166

2. [my develop repo]: https://github.com/tumashu/guix



Thanks!


Re:Re: native-search-paths search-path-specification do not work in glib-or-gtk-build-system

2022-02-27 Thread tumashu
















At 2022-02-27 18:58:37, "Maxime Devos"  wrote:
>tumashu schreef op zo 27-02-2022 om 18:52 [+0800]:
>>    I want to include CAJA_EXTENSION_DIRS setup in ~/.guix-
>> profile/etc/profile file,
>> and the below code seem to do not work in glib-or-gtk-build-system
>
>The native-search-path will only have effect once there's actually a
>caja extension in ~/.guix-profile/lib/caja/extensions-2.0.  Try
>installing caja and caja-extensions in the same profile.

by the way, if my system-config enable mate-1.24 desktop type.  when I install 
a different version mate in
my home, for example 1.26,  which one will be use when I enter my deskop by 
slim? 



>
>Greetings
>maxime.


Re:Re: native-search-paths search-path-specification do not work in glib-or-gtk-build-system

2022-02-27 Thread tumashu
works, thanks very much.





--
发自我的网易邮箱手机智能版



- Original Message -
From: "Maxime Devos" 
To: tumashu , guix 
Sent: Sun, 27 Feb 2022 11:58:37 +0100
Subject: Re: native-search-paths search-path-specification do not work in 
glib-or-gtk-build-system

tumashu schreef op zo 27-02-2022 om 18:52 [+0800]:
>I want to include CAJA_EXTENSION_DIRS setup in ~/.guix-
> profile/etc/profile file,
> and the below code seem to do not work in glib-or-gtk-build-system

The native-search-path will only have effect once there's actually a
caja extension in ~/.guix-profile/lib/caja/extensions-2.0.  Try
installing caja and caja-extensions in the same profile.

Greetings
maxime.


native-search-paths search-path-specification do not work in glib-or-gtk-build-system

2022-02-27 Thread tumashu
Hello:
   I want to include CAJA_EXTENSION_DIRS setup in ~/.guix-profile/etc/profile 
file,
and the below code seem to do not work in glib-or-gtk-build-system


  (native-search-paths
   (list (search-path-specification
  (variable "CAJA_EXTENSION_DIRS")
  (files (list "lib/caja/extensions-2.0")))


Any other steps are needed?




cat ~/.guix-profile/etc/profile
# Source this file to define all the relevant environment variables in Bash
# for this profile.  You may want to define the 'GUIX_PROFILE' environment
# variable to point to the "visible" name of the profile, like this:
#
#  GUIX_PROFILE=/path/to/profile ; \
#  source /path/to/profile/etc/profile
#
# When GUIX_PROFILE is undefined, the various environment variables refer
# to this specific profile generation.

export 
PATH="${GUIX_PROFILE:-/gnu/store/fial9qbkh215hydkdshw7m025m0hz741-profile}/bin:${GUIX_PROFILE:-/gnu/store/fial9qbkh215hydkdshw7m025m0hz741-profile}/sbin${PATH:+:}$PATH"
export 
XDG_DATA_DIRS="${GUIX_PROFILE:-/gnu/store/fial9qbkh215hydkdshw7m025m0hz741-profile}/share${XDG_DATA_DIRS:+:}$XDG_DATA_DIRS"
export 
XCURSOR_PATH="${GUIX_PROFILE:-/gnu/store/fial9qbkh215hydkdshw7m025m0hz741-profile}/share/icons${XCURSOR_PATH:+:}$XCURSOR_PATH"
export 
GUIX_GTK3_PATH="${GUIX_PROFILE:-/gnu/store/fial9qbkh215hydkdshw7m025m0hz741-profile}/lib/gtk-3.0${GUIX_GTK3_PATH:+:}$GUIX_GTK3_PATH"
export 
GST_PLUGIN_SYSTEM_PATH="${GUIX_PROFILE:-/gnu/store/fial9qbkh215hydkdshw7m025m0hz741-profile}/lib/gstreamer-1.0${GST_PLUGIN_SYSTEM_PATH:+:}$GST_PLUGIN_SYSTEM_PATH"
export 
GDK_PIXBUF_MODULE_FILE="${GUIX_PROFILE:-/gnu/store/fial9qbkh215hydkdshw7m025m0hz741-profile}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache"
export 
FCITX_ADDON_DIRS="${GUIX_PROFILE:-/gnu/store/fial9qbkh215hydkdshw7m025m0hz741-profile}/lib/fcitx5${FCITX_ADDON_DIRS:+:}$FCITX_ADDON_DIRS"
export 
HGEXTENSIONPATH="${GUIX_PROFILE:-/gnu/store/fial9qbkh215hydkdshw7m025m0hz741-profile}/lib/python3.9/site-packages/hgext3rd${HGEXTENSIONPATH:+:}$HGEXTENSIONPATH"
export 
GIT_EXEC_PATH="${GUIX_PROFILE:-/gnu/store/fial9qbkh215hydkdshw7m025m0hz741-profile}/libexec/git-core"
export 
INFOPATH="${GUIX_PROFILE:-/gnu/store/fial9qbkh215hydkdshw7m025m0hz741-profile}/share/info${INFOPATH:+:}$INFOPATH"
export 
EMACSLOADPATH="${GUIX_PROFILE:-/gnu/store/fial9qbkh215hydkdshw7m025m0hz741-profile}/share/emacs/site-lisp${EMACSLOADPATH:+:}$EMACSLOADPATH"






The below is caja's define:





(define-public caja
  (package
(name "caja")
(version "1.26.0")
(source
 (origin
   (method url-fetch)
   (uri (string-append "mirror://mate/" (version-major+minor version) "/"
   name "-" version ".tar.xz"))
   (sha256
(base32
 "1m0ai2r8b2mvlr8bqj9n6vg1pwzlwa46fqpq206wgyx5sgxac052"
(build-system glib-or-gtk-build-system)
(arguments
 (list
  #:configure-flags #~(list "--disable-update-mimedb")
  #:tests? #f ; tests fail even with display set
  #:phases
  #~(modify-phases %standard-phases
  (add-before 'check 'pre-check
(lambda _
  ;; Tests require a running X server.
  (system "Xvfb :1 &")
  (setenv "DISPLAY" ":1")
  ;; For the missing /etc/machine-id.
  (setenv "DBUS_FATAL_WARNINGS" "0"))
(native-inputs
 (list pkg-config
   intltool
   `(,glib "bin")
   xorg-server
   gobject-introspection))
(inputs
 (list exempi
   gtk+
   gvfs
   libexif
   libnotify
   libsm
   libxml2
   mate-desktop
   startup-notification))
(native-search-paths
 (list (search-path-specification
(variable "CAJA_EXTENSION_DIRS")
(files (list "lib/caja/extensions-2.0")
(home-page "https://mate-desktop.org/;)
(synopsis "File manager for the MATE desktop")
(description
 "Caja is the official file manager for the MATE desktop.
It allows for browsing directories, as well as previewing files and launching
applications associated with them.  Caja is also responsible for handling the
icons on the MATE desktop.  It works on local and remote file systems.")
;; There is a note about a TRADEMARKS_NOTICE file in COPYING which
;; does not exist. It is safe to assume that this is of no concern
;; for us.
(license license:gpl2+)))


Re:Re: [bug]: xfce4: xfpm-power-backlight-helper alway let me input password.

2022-02-25 Thread tumashu



















At 2022-02-25 17:09:25, "Zhu Zihao"  wrote:
>
>tumashu  writes:
>
>> i can not run gdm success, but have the problem too when run sddm.
>
>Try put a fontconfig file under /var/lib/sddm/.config/fontconfig/fonts.conf
>
>cat > /var/lib/sddm/.config/fontconfig/fonts.conf << "EOF"
>
>
>
>   /run/current-system/profile/share/fonts/
>
>EOF
>
>And install the fonts in system wide package configuration.
>
>This issue was introduced in the merge of 'core-updates-frozen'. But I
>can't find a proper way to fix this. 


Now I just use slim, for it show English, and no this problem:-)




>
>-- 
>Retrieve my PGP public key:
>
>  gpg --recv-keys D47A9C8B2AE3905B563D9135BE42B352A9F6821F
>
>Zihao


About mate 1.26

2022-02-24 Thread tumashu
Hello:


  mate 1.26 (https://mate-desktop.org/blog/2021-08-08-mate-1-26-released/) 
has been released in 2021-08-08.

has anybode work to update?



Thanks.

Re:Re: [bug]: xfce4: xfpm-power-backlight-helper alway let me input password.

2022-02-22 Thread tumashu
i can not run gdm success, but have the problem too when run sddm.





--
发自我的网易邮箱手机智能版



- Original Message -
From: "宋文武" 
To: tumashu 
Cc: guix 
Sent: Tue, 22 Feb 2022 15:58:40 +0800
Subject: Re: [bug]: xfce4: xfpm-power-backlight-helper  alway let me input 
password.

tumashu   writes:

>>At 2022-02-22 15:04:22, "宋文武"  wrote:
>>
>>>tumashu  writes:
>>>
>>>> Hello:
>>>>
>>>>   When I update my guix system today, I have found that run xfce4: 
>>>> xfpm-power-backlight-helper alway let me input password,  how to avoid 
>>>> input password?
>>>
>>>No answer yet, my understand is that:
>>>
>>>1. xfpm-power-backlight-helper need to run with 'pkexec'.
>>>2. 'pkexec' will always ask for password unless some polkit rules allow
>>>   the action.
>>>3. '/etc/polkit-1/actions/org.xfce.power.policy' allows the action, but its
>>>   executable is something like
>>>   
>>> '/gnu/store/vsnzjhjm37cd42w7vv7mxgy8hi8w6zi0-xfce4-power-manager-4.16.0/sbin/xfpm-power-backlight-helper'.
>>>   
>>>So run 'pkexec xfpm-power-backlight-helper' will ask for password while 
>>>'pkexec /gnu/store/.../xfpm-power-backlight-helper' will not.
>>
>>no,  need input password when run "pkexec 
>>/gnu/store/.../xfpm-power-backlight-helper"
>>
>>I do not run this command by hand, when I start xfce4 with slim,  a window 
>>pop and let me input password many time,
>>when I press Fkey,  ask password again.
>
> When I test gnome and mate, have no this problem.
>

The policykit rule only allow "active" session, I guess slim may lack
'elogind-service' support to be an "active" session.

I have 'elogind-service' and use 'sx' to start xfce, no problem here...

My ~/.config/sx/sxrc:

#!/bin/sh
setxkbmap dvorak
xsetroot -solid sienna -cursor_name cross

exec dbus-run-session -- startxfce4



Hope this helps!


Re:Re: [bug]: xfce4: xfpm-power-backlight-helper alway let me input password.

2022-02-22 Thread tumashu












At 2022-02-22 15:58:40, "宋文武"  wrote:
>tumashu   writes:
>
>>>At 2022-02-22 15:04:22, "宋文武"  wrote:
>>>
>>>>tumashu  writes:
>>>>
>>>>> Hello:
>>>>>
>>>>>   When I update my guix system today, I have found that run xfce4: 
>>>>> xfpm-power-backlight-helper alway let me input password,  how to avoid 
>>>>> input password?
>>>>
>>>>No answer yet, my understand is that:
>>>>
>>>>1. xfpm-power-backlight-helper need to run with 'pkexec'.
>>>>2. 'pkexec' will always ask for password unless some polkit rules allow
>>>>   the action.
>>>>3. '/etc/polkit-1/actions/org.xfce.power.policy' allows the action, but its
>>>>   executable is something like
>>>>   
>>>> '/gnu/store/vsnzjhjm37cd42w7vv7mxgy8hi8w6zi0-xfce4-power-manager-4.16.0/sbin/xfpm-power-backlight-helper'.
>>>>   
>>>>So run 'pkexec xfpm-power-backlight-helper' will ask for password while 
>>>>'pkexec /gnu/store/.../xfpm-power-backlight-helper' will not.
>>>
>>>no,  need input password when run "pkexec 
>>>/gnu/store/.../xfpm-power-backlight-helper"
>>>
>>>I do not run this command by hand, when I start xfce4 with slim,  a window 
>>>pop and let me input password many time,
>>>when I press Fkey,  ask password again.
>>
>> When I test gnome and mate, have no this problem.
>>
>
>The policykit rule only allow "active" session, I guess slim may lack
>'elogind-service' support to be an "active" session.
>
>I have 'elogind-service' and use 'sx' to start xfce, no problem here...
>
>My ~/.config/sx/sxrc:
>
>#!/bin/sh
>setxkbmap dvorak
>xsetroot -solid sienna -cursor_name cross
>
>exec dbus-run-session -- startxfce4

OK, I will try gdm today,  the problem gdm is that it can not show Chinese, but 
I have installed a 
Chinese font, I do not know why.

>
>
>
>Hope this helps!


Re:Re:Re: [bug]: xfce4: xfpm-power-backlight-helper alway let me input password.

2022-02-21 Thread tumashu

>At 2022-02-22 15:04:22, "宋文武"  wrote:
>
>>tumashu  writes:
>>
>>> Hello:
>>>
>>>   When I update my guix system today, I have found that run xfce4: 
>>> xfpm-power-backlight-helper alway let me input password,  how to avoid 
>>> input password?
>>
>>No answer yet, my understand is that:
>>
>>1. xfpm-power-backlight-helper need to run with 'pkexec'.
>>2. 'pkexec' will always ask for password unless some polkit rules allow
>>   the action.
>>3. '/etc/polkit-1/actions/org.xfce.power.policy' allows the action, but its
>>   executable is something like
>>   
>> '/gnu/store/vsnzjhjm37cd42w7vv7mxgy8hi8w6zi0-xfce4-power-manager-4.16.0/sbin/xfpm-power-backlight-helper'.
>>   
>>So run 'pkexec xfpm-power-backlight-helper' will ask for password while 
>>'pkexec /gnu/store/.../xfpm-power-backlight-helper' will not.
>
>no,  need input password when run "pkexec 
>/gnu/store/.../xfpm-power-backlight-helper"
>
>I do not run this command by hand, when I start xfce4 with slim,  a window pop 
>and let me input password many time,
>when I press Fkey,  ask password again.

When I test gnome and mate, have no this problem.

>
>
>


Re:Re: [bug]: xfce4: xfpm-power-backlight-helper alway let me input password.

2022-02-21 Thread tumashu













At 2022-02-22 15:04:22, "宋文武"  wrote:

>tumashu  writes:
>
>> Hello:
>>
>>   When I update my guix system today, I have found that run xfce4: 
>> xfpm-power-backlight-helper alway let me input password,  how to avoid input 
>> password?
>
>No answer yet, my understand is that:
>
>1. xfpm-power-backlight-helper need to run with 'pkexec'.
>2. 'pkexec' will always ask for password unless some polkit rules allow
>   the action.
>3. '/etc/polkit-1/actions/org.xfce.power.policy' allows the action, but its
>   executable is something like
>   
> '/gnu/store/vsnzjhjm37cd42w7vv7mxgy8hi8w6zi0-xfce4-power-manager-4.16.0/sbin/xfpm-power-backlight-helper'.
>   
>So run 'pkexec xfpm-power-backlight-helper' will ask for password while 
>'pkexec /gnu/store/.../xfpm-power-backlight-helper' will not.

no,  need input password when run "pkexec 
/gnu/store/.../xfpm-power-backlight-helper"

I do not run this command by hand, when I start xfce4 with slim,  a window pop 
and let me input password many time,
when I press Fkey,  ask password again.





[bug]: xfce4: xfpm-power-backlight-helper alway let me input password.

2022-02-21 Thread tumashu
Hello:


  When I update my guix system today, I have found that run xfce4: 
xfpm-power-backlight-helper alway let me input password,  how to avoid input 
password?


Thanks


How to run a command before shutdown.

2022-02-20 Thread tumashu
Hello:


 I want to run "rmmod mt7921e" before shutdown, how to setup in guix system?


Thanks!

About emacs-pyim-basedict

2021-05-08 Thread tumashu
Hello


 emacs-pyim-basedict is a GNU elpa package, suggest use elpa method :-)



http://git.savannah.gnu.org/cgit/guix.git/commit/?id=ccaf29afd0b8093067dbf43d48e21d7a5e741006


About guix mirror build script

2020-03-09 Thread tumashu
In China , guix  substitute  download  seem to be  to slow,  nearly 
unuseable.
this week, I have found that  NIX channels has been built China mirror 
successful with the help of
4 files:

1. https://github.com/tuna/tunasync-scripts/blob/master/nix.py
2. https://github.com/tuna/tunasync-scripts/blob/master/nix-channels.py
3. https://github.com/tuna/tunasync-scripts/blob/master/nixos-images.py
4. 
https://github.com/tuna/tunasync-scripts/blob/master/dockerfiles/nix-channels/Dockerfile

guix is very similar nix, so I want to know how to port 4 files to work with 
guix?
is it possible add similar tools to guix?

"GNU with" or "Guix System with"?

2019-04-26 Thread tumashu
(define (kernel->boot-label kernel)
  "Return a label for the bootloader menu entry that boots KERNEL."
  (cond ((package? kernel)
 (string-append "GNU with "
(string-titlecase (package-name kernel)) " "
(package-version kernel)))
((inferior-package? kernel)
 (string-append "GNU with "
(string-titlecase (inferior-package-name kernel)) " "
(inferior-package-version kernel)))
(else "GNU")))




guix download seem to very slowly recently in China

2019-03-14 Thread tumashu
1-2 month ago, guix download become very quick, 500k/s - 1M/s,
now, down to about 20k/s, does any thing happen?



A note of reinstall GuixSD

2017-09-18 Thread tumashu
#+TITLE: A note about GuixSD Reinstallation

* The problem
My orig GuixSD's root is about 12G, which is enough for other
Linux Destribution, but ,is very very small to GuixSD, So I
cide enlarge root with the help of gparted livecd

Note: should we suggest user add big space to /, for example "100G" ?

* Modify dict part
From:
1. /dev/sda1 (12G)  -> /
2. /dev/sda5 (40G)  -> /mnt/backup1
3. /dev/sda6 (4G)   -> swap
4. /dev/sda7 (120G) -> /home
5. /dev/sda8 (rest) -> /mnt/backup2

To:
1. /dev/sda1 (12G) -> /mnt/backup2
2. /dev/sda7 (90G) -> /
3. /dev/sda8 (4G)  -> swap
4. /dev/sda5 (100G) -> /home
5. /dev/sda6 (rest) -> /mnt/backup1

The problem is that I use "/dev/sda*" instead of Label in my guixsd config, so
when I do the change above, my guixsd can not boot,

I want to use gparted livecd to recover, but I do not know how to deal with the
problem.

Note: should we suggest user use Label insteal /dev/sda*?

* Reinstallation
I use guixsd 0.13 to reinstall, and use my desktop guixsd config. install failed
for gtk-im can not install properly.

So I reinstall a tiny guixsd, success.

but when I restart to my new installed guixsd, I found that
I can not set my wifi network ( wired network have no driver),
for I have not install wpa-suppXX. :-(


so I reinstall guixsd again to add wpa packages.


Note: should we install wpa-supX by default?


Reboot to the new guixsd and I run "guix pull"


the connect is slowly and unstable in my country. so I need to wait wait wait 
..


after guix pull finished, I reconfigure my desktop config. and faced error:

#+BEGIN_EXAMPLE
> In gnu/system.scm:
>307:17  3 (read-boot-parameters-file "/var/guix/profiles/system-1?")
> In ice-9/ports.scm:
>444:17  2 (call-with-input-file _ _ #:binary _ #:encoding _ # _)
> In gnu/system.scm:
>282:10  1 (read-boot-parameters _)
> 238:4  0 (device-sexp->device _)
>
> gnu/system.scm:238:4: In procedure device-sexp->device:
> gnu/system.scm:238:4: Throw to key `match-error' with args `("match" "no 
> matching pattern" #f)'.
#+END_EXAMPLE

Fuck, so I have to save the error to a usb dict and email in other computer
to guix-devel to help.

Ludo give me a help : https://debbugs.gnu.org/cgi/bugreport.cgi?bug=28445#23

but this need patch guix ..

so I download guix.git, manual type the *small* patch to gnu/system.scm file.

and run "guix environment guix", wait wait wait ..

when finished, I found this command can not run by root.


switch to normal account: "feng" and guix pull and wait wait wait ..


this time, "guix environment guix"  success. and I run ./configure ... make.
shepherd service compile error  why?

I run "make distclean" and remove "~/.cache/guile", make success :-)


"guix system reconfigure" my guixsd configure success!


but, I can not switch to a virtual terminal by pressing Ctrl-Alt-F1, F2 ...


...



Re:Re: Ctrl-Alt-F1,F2,F3 ... can not start a console.

2017-09-18 Thread tumashu
I use hp laptop :-(




At 2017-09-19 09:20:01, "Chris Marusich"  wrote:
>"Feng Shu"  writes: > >> Yestaday, I reinstall my guixsd, and 
>install xfce4 as my desktop. >> A problem faced is that: When I press 
>Ctrl-Alt-F1, F2, F3 ... >> I can not start a tty, instead of start a slim 
>login picture? >> >> Any suggestion? thanks! > >Just the other day, I 
>discovered that in GNOME, I could not switch to a >virtual terminal by 
>pressing Ctrl-Alt-F2. Instead, the screen would >simply appear to freeze until 
>I pressed Ctrl-Alt-F7 again. > >In my case, this problem only occurs when I've 
>connected an external >monitor to my laptop. When I unplug the external 
>monitor, I am able to >successfully switch to a virtual terminal by pressing 
>Ctrl-Alt-F2. If >you are using an external monitor, then perhaps you should 
>try >unplugging it first? >







guixsd can not install on my machine again

2017-09-18 Thread tumashu
The error:
--
guix system: warning: The 'device' field of bootloader configurations is 
deprecated.
guix system: warning: Use 'target' instead.
substitute:
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'... 
  0.0%
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'... 
100.0%
substitute:
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'... 
  0.0%
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'... 
100.0%
substitute:
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'... 
  0.0%
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'... 
100.0%
substitute:
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'... 
  0.0%
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'... 
100.0%
substitute:
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'... 
  0.0%
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'... 
 33.3%
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'... 
 66.7%
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'... 
100.0%
substitute:
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'... 
  0.0%
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'... 
 33.3%
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'... 
 66.7%
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'... 
100.0%
substitute:
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'... 
  0.0%
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'... 
100.0%
substitute:
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'... 
  0.0%
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'... 
100.0%
substitute:
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'... 
  0.0%
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'... 
100.0%
Backtrace:
  14 (primitive-load "/gnu/store/xcnrc8lvq7yks3c02cpknphj3n0?")
In guix/ui.scm:
  1375:12 13 (run-guix-command _ . _)
In ice-9/boot-9.scm:
837:9 12 (catch _ _ # ?)
837:9 11 (catch _ _ # ?)
In guix/scripts/system.scm:
   1034:8 10 (_)
909:6  9 (process-action _ _ _)
In guix/store.scm:
  1443:24  8 (run-with-store _ _ #:guile-for-build _ #:system _ # _)
In guix/scripts/system.scm:
   660:31  7 (_ _)
In srfi/srfi-1.scm:
   705:23  6 (filter-map #boot-parameters (sys?> . #)
In ice-9/boot-9.scm:
837:9  5 (catch system-error # ?)
In guix/scripts/system.scm:
   384:30  4 (_)
In gnu/system.scm:
   307:17  3 (read-boot-parameters-file "/var/guix/profiles/system-1?")
In ice-9/ports.scm:
   444:17  2 (call-with-input-file _ _ #:binary _ #:encoding _ # _)
In gnu/system.scm:
   282:10  1 (read-boot-parameters _)
238:4  0 (device-sexp->device _)

gnu/system.scm:238:4: In procedure device-sexp->device:
gnu/system.scm:238:4: Throw to key `match-error' with args `("match" "no 
matching pattern" #f)'.



the below is my config:



(use-modules (gnu) (gnu system nss))
(use-modules (gnu system locale))
(use-service-modules desktop)
(use-package-modules certs gnome)

(operating-system
 (host-name "tumashu")
 (timezone "Asia/Shanghai")
 (locale "zh_CN.UTF-8")
 (locale-definitions
  (cons* (locale-definition
  (name "zh_CN.GB2312")
  (source "zh_CN"))
 (locale-definition
  (name "zh_CN.GBK")
  (source "zh_CN"))
 (locale-definition
  (name "zh_CN.GB18030")
  (source "zh_CN"))
 (locale-definition
  (name "zh_TW.BIG5")
  (source "zh_TW"))
 (locale-definition
  (name "zh_TW.UTF-8")
  (source "zh_TW"))
 %default-locale-definitions))

 ;; Assuming /dev/sdX is the target hard disk
 (bootloader (grub-configuration (device "/dev/sda")))

 (file-systems
  (cons*
   (file-system
(device "/dev/sda7")
(title 'device)
(mount-point "/")
(type "ext4"))
   (file-system
(device "/dev/sda5")
(title 'device)
(mount-point "/home")
(type "ext4"))
   (file-system
(device "/dev/sda6")
(title 'device)
(mount-point "/mnt/backup1")
(type "ext4"))
   %base-file-systems))

 (swap-devices '("/dev/sda8"))

 (users (cons (user-account
   (name "feng")
   (comment "Fen

guixsd can not install again.

2017-09-18 Thread tumashu
The error:
-
gnu/system.scm:238:4 In procedure device-sexp-> device:
gnu/system.scm:238:4 Throw to key `match-error' with arg `("match" "no matching 
pattern" #f)'

-


Re: Is font-google-noto toooooo big as a font package?

2017-07-19 Thread tumashu
I like this idea


发自网易邮箱大师


在2017年07月20日 06:50,ng0 写道:
Ludovic Courtès transcribed 0.7K bytes:
> ng0 <n...@infotropique.org> skribis:
>
> > Ludovic Courtès transcribed 0.2K bytes:
> >> Hello,
> >>
> >> tumashu <tuma...@163.com> skribis:
> >>
> >> > the first thing is improve font-build-system to support split package 
> >> > easy
> >>
> >> Good point, though I think we also need to find out how we would split
> >> it, which may not be that simple.
> >>
> >> Ludo’.
> >>
> >>
> > noto-cjk is offered in different packages and blends:
> > https://www.google.com/get/noto/help/cjk
> > noto itself is offered on the website in many different
> > blends aswell:
> > https://www.google.com/get/noto/
>
> So maybe we could make the CJK part a different output or a different
> package?
>
> Ludo’.
>
>
Depending on how active the sources change (I see no version in the
names of the files) we could take every part and move it to their own
package, and let "google-font-noto" became a metapackage for those who
need/want the entire set.
Even cjk can be a meta set, as all the CJK fonts are split.
--
ng0
GnuPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588
GnuPG: https://n0is.noblogs.org/my-keys
https://www.infotropique.orghttps://krosos.org


Re:Re: Is font-google-noto toooooo big as a font package?

2017-07-18 Thread tumashu


What about use debian's org.tar?






At 2017-07-18 20:40:17, "ng0" <n...@infotropique.org> wrote:
>Ludovic Courtès transcribed 0.2K bytes:
>> Hello,
>> 
>> tumashu <tuma...@163.com> skribis:
>> 
>> > the first thing is improve font-build-system to support split package easy
>> 
>> Good point, though I think we also need to find out how we would split
>> it, which may not be that simple.
>> 
>> Ludo’.
>> 
>> 
>noto-cjk is offered in different packages and blends:
>https://www.google.com/get/noto/help/cjk
>noto itself is offered on the website in many different
>blends aswell:
>https://www.google.com/get/noto/
>
>By the way, this is totally unversioned. Is our only way
>to know that noto has been updated by our package reporting
>a hash missmatch? Looks to me like it is.
>Should we store the fonts somewhere versioned as a fallback?
>-- 
>ng0
>GnuPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588
>GnuPG: https://n0is.noblogs.org/my-keys
>https://www.infotropique.org https://krosos.org


Re: Is font-google-noto toooooo big as a font package?

2017-07-17 Thread tumashu


the first thing is improve font-build-system to support split package easy


在2017年07月17日 22:04,(无发件人) 写道:
"Feng Shu"  skribis:

> font-google-note's size is 506.4 MB, see to big as a font package,
> maybe we should split it.

It’s too big, indeed (and this is the compressed size; ‘guix size’
reports 591.4 MiB.)

Would be nice to split, but I have no idea whether/how this can be done.

Thoughts?

Ludo’.


Re: Is font-google-noto toooooo big as a font package?

2017-07-15 Thread tumashu
I have no idea,  but i think  a  font package should < 50M


发自网易邮箱大师


在2017年07月16日 08:29,ng0 写道:
Feng Shu transcribed 1.2K bytes:
>
> font-google-note's size is 506.4 MB, see to big as a font package,
> maybe we should split it.
>
> #+BEGIN_EXAMPLE
> substitute: updating list of substitutes from 
> 'https://mirror.hydra.gnu.org'... 100.0%
> The following derivations will be built:
>/gnu/store/5j3yn3ky23dra501lv7wvlymrcgdqp9i-profile.drv
>/gnu/store/y5xlkpcjkv161yb15f5ki18ncgj3v5lr-fonts-dir.drv
>/gnu/store/s0r4nb37j3hnw70jifny055lkyjj5axk-gtk-icon-themes.drv
>/gnu/store/q50q0dpycayvvamrj0ql3r6ma386r05r-xdg-desktop-database.drv
>/gnu/store/lm0fri1ba2ickmizivm3xing1xsp7h6r-info-dir.drv
>/gnu/store/9lvsajbnr3mri56md1fd56n6jb9qhinj-cups-filters-1.13.1.drv
>/gnu/store/smn5bx58hynsxwxwpx0f18j6ayvlayl2-cups-2.2.1.drv
>/gnu/store/d8jdmy8wgc5qj6zqnhxjm1d287ngcj5j-gtk+-3.22.15.drv
>/gnu/store/czr9wqffj2h4lrv34c4s6ax8sl5l32z5-gtk-im-modules.drv
>/gnu/store/cvin4kcl36068bhprvr30cfb2crb31l7-ca-certificate-bundle.drv
>/gnu/store/chv3pw33jr3z3sb5lkpkpl870q6vf145-xdg-mime-database.drv
>/gnu/store/4wnxz1mb549jfah92l1c2fn4a40f18ns-manual-database.drv
> 506.4 MB will be downloaded:
>/gnu/store/w91pr4g1yryvdiyqwg06wbxrzwxib772-font-google-noto-20170403
> Downloading 
> https://mirror.hydra.gnu.org/guix/nar/gzip/w91pr4g1yryvdiyqwg06wbxrzwxib772-font-google-noto-20170403...
>
> #+END_EXAMPLE
>
>
> --
>
>
>

Do you have a pattern or method in mind which won't make it too big?
This comes just from one source.
I think there's another source for noto-cjk, or at least other systems
split up the -cjk variants (I remember just Gentoo doing this).

--
ng0
GnuPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588
GnuPG: https://n0is.noblogs.org/my-keys
https://www.infotropique.orghttps://krosos.org


Re:Re: A question about 'guix build -f'

2017-07-06 Thread tumashu
> I don't really understand what is the problem.


The problem is:  who will deal with the conflict when merge the patch?

If  patch-sender,   patch-sender must "git pull" before format-patch.  this 
make patch can am the master
without deal with conflict, but when "git pull", ./pre script can work as same 
as before git pull ?

If patch-amer.  patch-sender seem to no problem :-)


Re:Re: emacs-exwm-x update error

2017-07-01 Thread tumashu
may be we should show a tip also:  suggest do XXX   :-)
At 2017-07-02 00:10:55, "l...@gnu.org (Ludovic" <=?utf-8?Q?Court=C3=A8s?=)> 
wrote:
>Hello,
>
>"Feng Shu" <tuma...@163.com> skribis:
>
>> feng@tumashu:~/project/guix $ ./pre-inst-env guix package -u emacs-exwm-x
>
>[...]
>
>> The following package will be upgraded:
>>emacs-exwm-x  1.0-2.2099138 → 1.6 
>> /gnu/store/b05317amv8xp7kg297rjfqma8f9pp91d-emacs-exwm-x-1.6
>>
>> guix package: error: profile contains conflicting entries for emacs-exwm:out
>> guix package: error:   first entry: emacs-exwm@0.14:out 
>> /gnu/store/6v3xzl7xpbgkg9fy6rhfbbizps61yysd-emacs-exwm-0.14
>> guix package: error:... propagated from emacs-exwm-x@1.6
>> guix package: error:   second entry: emacs-exwm@0.13:out 
>> /gnu/store/j39k3hiyxskr78k2pbybvgq1nwczdgvq-emacs-exwm-0.13
>
>I find the message pretty explicit :-), but I’m happy to improve it if
>you have ideas.
>
>What this means is that the new profile would end up with two different
>emacs-exwm, and so it just errors out.
>
>One solution is to upgrade all things exwm at once:
>
>  guix package -u exwm
>
>That way, emacs-exwm-x and emacs-exwm will be in sync.
>
>HTH!
>
>Ludo’.


Re:Re: I can not run 'guix pull', how to deal with

2017-05-06 Thread tumashu
Now, the error is like the below :-(

feng@tumashu:~ $ guix pull
fetching path `/gnu/store/f5shnag8k1ny9vx6vwrvbw87b05888dz-make-boot0-4.2.1'...
Downloading 
https://mirror.hydra.gnu.org/guix/nar/gzip/f5shnag8k1ny9vx6vwrvbw87b05888dz-make-boot0-4.2.1
 (218KiB installed)...
guix substitute: error: download from 
'https://mirror.hydra.gnu.org/guix/nar/gzip/f5shnag8k1ny9vx6vwrvbw87b05888dz-make-boot0-4.2.1'
 failed: 404, "Not Found"
fetching path `/gnu/store/f5shnag8k1ny9vx6vwrvbw87b05888dz-make-boot0-4.2.1' 
failed with exit code 1
fetching path `/gnu/store/5vvzwh41q3l0fdjyjxiz105fsxcz35rs-module-import'...
killing process 1708
guix pull: error: build failed: some substitutes for the outputs of derivation 
`/gnu/store/d1qkv7x8ayi75qjlg7d5j5g1h7y4fl5p-make-boot0-4.2.1.drv' failed 
(usually happens due to networking issues); try `--fallback' to build 
derivation from source
feng@tumashu:~ $










At 2017-05-06 00:15:12, "l...@gnu.org (Ludovic" <=?utf-8?Q?Court=C3=A8s?=)> 
wrote:
>tumashu <tuma...@163.com> skribis:
>
>> feng@tumashu:~ $ guix pull
>> fetching path `/gnu/store/1drx7dy1zakc0xs60nb0im1jbvxp11dj-isrgrootx1.pem'...
>> Downloading 
>> https://mirror.hydra.gnu.org/guix/nar/gzip/1drx7dy1zakc0xs60nb0im1jbvxp11dj-isrgrootx1.pem
>>  (2KiB installed)...
>> guix substitute: error: download from 
>> 'https://mirror.hydra.gnu.org/guix/nar/gzip/1drx7dy1zakc0xs60nb0im1jbvxp11dj-isrgrootx1.pem'
>>  failed: 404, "Not Found"
>> fetching path `/gnu/store/1drx7dy1zakc0xs60nb0im1jbvxp11dj-isrgrootx1.pem' 
>> failed with exit code 1
>> fetching path 
>> `/gnu/store/bcq7sqhg18b7b1q87j8z60d5hybsdafm-letsencryptauthorityx3.pem'...
>> killing process 3656
>> guix pull: error: build failed: some substitutes for the outputs of 
>> derivation `/gnu/store/hm8c3lfvxkspqg9g3hcb877lkiqriad9-isrgrootx1.pem.drv' 
>> failed (usually happens due to networking issues); try `--fallback' to build 
>> derivation from source
>> feng@tumashu:~ $
>
>This should be fixed as you read it (just the time for nginx to expire
>the cached 404.)
>
>(For the curious, I fixed it by running:
>
>  wget -O - https://hydra.gnu.org/1drx7dy1zakc0xs60nb0im1jbvxp11dj.narinfo
>
>which told ‘guix publish’ to regenerate the nar corresponding to this
>narinfo.  The problem we had here was that the nginx caches had cached
>the narinfo but not the nar, and ‘guix publish’ currently only
>generate nars when their narinfo is first queried.)
>
>Thanks for your report!
>
>Ludo’.


I can not run 'guix pull', how to deal with

2017-05-05 Thread tumashu
feng@tumashu:~ $ guix pull
fetching path `/gnu/store/1drx7dy1zakc0xs60nb0im1jbvxp11dj-isrgrootx1.pem'...
Downloading 
https://mirror.hydra.gnu.org/guix/nar/gzip/1drx7dy1zakc0xs60nb0im1jbvxp11dj-isrgrootx1.pem
 (2KiB installed)...
guix substitute: error: download from 
'https://mirror.hydra.gnu.org/guix/nar/gzip/1drx7dy1zakc0xs60nb0im1jbvxp11dj-isrgrootx1.pem'
 failed: 404, "Not Found"
fetching path `/gnu/store/1drx7dy1zakc0xs60nb0im1jbvxp11dj-isrgrootx1.pem' 
failed with exit code 1
fetching path 
`/gnu/store/bcq7sqhg18b7b1q87j8z60d5hybsdafm-letsencryptauthorityx3.pem'...
killing process 3656
guix pull: error: build failed: some substitutes for the outputs of derivation 
`/gnu/store/hm8c3lfvxkspqg9g3hcb877lkiqriad9-isrgrootx1.pem.drv' failed 
(usually happens due to networking issues); try `--fallback' to build 
derivation from source
feng@tumashu:~ $



Re:Re: How to remove useless generations to save disk spack

2017-04-25 Thread tumashu
Thanks very much!






在 2017-04-26 07:50:54,"Maxim Cournoyer" <maxim.courno...@gmail.com> 写道:
>Hi tumashu,
>
>Please refer to the manual 
>(https://www.gnu.org/software/guix/manual/html_node/Invoking-guix-package.html),
> in particular to the --delete-generations option of the package command.
>
>Maxim
>
>On April 25, 2017 4:08:12 PM PDT, tumashu <tuma...@163.com> wrote:
>>How to remove useless generations to save disk spack?
>>------
>>feng@tumashu:/tmp $ df -h
>>文件系统容量  已用  可用 已用% 挂载点
>>none964M 0  964M0% /dev
>>/dev/sda119G   14G  3.4G   81% /
>>/dev/sda7   138G   50G   81G   39% /home
>>/dev/sda8   116G   63G   47G   58% /mnt/backup1
>>/dev/sda619G   44M   18G1% /mnt/backup2
>>tmpfs   967M 0  967M0% /dev/shm
>>cgroup  967M 0  967M0% /sys/fs/cgroup
>>none967M   16K  967M1% /run/systemd
>>none967M 0  967M0% /run/user
>>tmpfs   194M  4.0K  194M1% /run/user/1000
>>feng@tumashu:/tmp $ guix system list-generations
>>Generation 11月 11 2017 06:21:35
>>  文件名:/var/guix/profiles/system-1-link
>>canonical file name: /gnu/store/fbz7fhx8cv0fvzsas981a4897bwf31r8-system
>>  label: GNU with Linux-Libre 4.8.15 (beta)
>>  root device: my-root
>>内核:/gnu/store/2z3r93nkw9sph340p4n893pm0phj6g7d-linux-libre-4.8.15/bzImage
>>Generation 21月 11 2017 18:37:50
>>  文件名:/var/guix/profiles/system-2-link
>>canonical file name: /gnu/store/avj6i4kf6xsdp9y4wdzrjpvcn8gm3lvx-system
>>  label: GNU with Linux-Libre 4.9.2 (beta)
>>  root device: /dev/sda1
>>内核:/gnu/store/p1lb5ybm6ckmjlhsm1l4nyybd7v8cp91-linux-libre-4.9.2/bzImage
>>Generation 31月 11 2017 19:33:22
>>  文件名:/var/guix/profiles/system-3-link
>>canonical file name: /gnu/store/f8ih2qfkmwh0aggaw0qkd210vil4d3lw-system
>>  label: GNU with Linux-Libre 4.9.2 (beta)
>>  root device: /dev/sda1
>>内核:/gnu/store/p1lb5ybm6ckmjlhsm1l4nyybd7v8cp91-linux-libre-4.9.2/bzImage
>>Generation 41月 12 2017 03:07:39
>>  文件名:/var/guix/profiles/system-4-link
>>canonical file name: /gnu/store/vw1d7m60yr9fdaf22ys356l6j51dq9jm-system
>>  label: GNU with Linux-Libre 4.9.2 (beta)
>>  root device: /dev/sda1
>>内核:/gnu/store/p1lb5ybm6ckmjlhsm1l4nyybd7v8cp91-linux-libre-4.9.2/bzImage
>>Generation 51月 12 2017 03:20:29
>>  文件名:/var/guix/profiles/system-5-link
>>canonical file name: /gnu/store/d5h2d622d59n4kzcc2zxvqs29f016vd2-system
>>  label: GNU with Linux-Libre 4.9.2 (beta)
>>  root device: /dev/sda1
>>内核:/gnu/store/p1lb5ybm6ckmjlhsm1l4nyybd7v8cp91-linux-libre-4.9.2/bzImage
>>Generation 61月 12 2017 03:28:50
>>  文件名:/var/guix/profiles/system-6-link
>>canonical file name: /gnu/store/5s0vs4gz2xqmh17ids9d385bmj78limn-system
>>  label: GNU with Linux-Libre 4.9.2 (beta)
>>  root device: /dev/sda1
>>内核:/gnu/store/p1lb5ybm6ckmjlhsm1l4nyybd7v8cp91-linux-libre-4.9.2/bzImage
>>Generation 71月 12 2017 13:08:02
>>  文件名:/var/guix/profiles/system-7-link
>>canonical file name: /gnu/store/mfjrgaspk4swk1700c7cskkd6m21zi32-system
>>  label: GNU with Linux-Libre 4.9.2 (beta)
>>  root device: /dev/sda1
>>内核:/gnu/store/p1lb5ybm6ckmjlhsm1l4nyybd7v8cp91-linux-libre-4.9.2/bzImage
>>Generation 81月 12 2017 13:22:13
>>  文件名:/var/guix/profiles/system-8-link
>>canonical file name: /gnu/store/yjr14gpnhm13i8bw2xdizfjqrnp0pp4w-system
>>  label: GNU with Linux-Libre 4.9.2 (beta)
>>  root device: /dev/sda1
>>内核:/gnu/store/p1lb5ybm6ckmjlhsm1l4nyybd7v8cp91-linux-libre-4.9.2/bzImage
>>Generation 91月 12 2017 13:22:13
>>  文件名:/var/guix/profiles/system-9-link
>>canonical file name: /gnu/store/yjr14gpnhm13i8bw2xdizfjqrnp0pp4w-system
>>  label: GNU with Linux-Libre 4.9.2 (beta)
>>  root device: /dev/sda1
>>内核:/gnu/store/p1lb5ybm6ckmjlhsm1l4nyybd7v8cp91-linux-libre-4.9.2/bzImage
>>Generation 101月 12 2017 13:22:13
>>  文件名:/var/guix/profiles/system-10-link
>>canonical file name: /gnu/store/yjr14gpnhm13i8bw2xdizfjqrnp0pp4w-system
>>  label: GNU with Linux-Libre 4.9.2 (beta)
>>  root device: /dev/sda1
>>内核:/gnu/store/p1lb5ybm6ckmjlhsm1l4nyybd7v8cp91-linux-libre-4.9.2/bzImage
>>Generation 111月 12 2017 13:22:13
>>  文件名:/var/guix/profiles/system-11-link
>>canonical file name: /gnu/store/yjr14gpnhm13i8bw2xdizfjqrnp0pp4w-system
>>  label: GNU with Linux-Libre 4.9.2 (beta)
>>  root device: /dev/sda1
>>内核:/gnu/store/p1lb5ybm6ckmjlhsm1l4nyybd7v8cp91-linux-libre-4.9.2/bzImage
>>

How to remove useless generations to save disk spack

2017-04-25 Thread tumashu
How to remove useless generations to save disk spack?
--
feng@tumashu:/tmp $ df -h
文件系统容量  已用  可用 已用% 挂载点
none964M 0  964M0% /dev
/dev/sda119G   14G  3.4G   81% /
/dev/sda7   138G   50G   81G   39% /home
/dev/sda8   116G   63G   47G   58% /mnt/backup1
/dev/sda619G   44M   18G1% /mnt/backup2
tmpfs   967M 0  967M0% /dev/shm
cgroup  967M 0  967M0% /sys/fs/cgroup
none967M   16K  967M1% /run/systemd
none967M 0  967M0% /run/user
tmpfs   194M  4.0K  194M1% /run/user/1000
feng@tumashu:/tmp $ guix system list-generations
Generation 11月 11 2017 06:21:35
  文件名:/var/guix/profiles/system-1-link
  canonical file name: /gnu/store/fbz7fhx8cv0fvzsas981a4897bwf31r8-system
  label: GNU with Linux-Libre 4.8.15 (beta)
  root device: my-root
  内核:/gnu/store/2z3r93nkw9sph340p4n893pm0phj6g7d-linux-libre-4.8.15/bzImage
Generation 21月 11 2017 18:37:50
  文件名:/var/guix/profiles/system-2-link
  canonical file name: /gnu/store/avj6i4kf6xsdp9y4wdzrjpvcn8gm3lvx-system
  label: GNU with Linux-Libre 4.9.2 (beta)
  root device: /dev/sda1
  内核:/gnu/store/p1lb5ybm6ckmjlhsm1l4nyybd7v8cp91-linux-libre-4.9.2/bzImage
Generation 31月 11 2017 19:33:22
  文件名:/var/guix/profiles/system-3-link
  canonical file name: /gnu/store/f8ih2qfkmwh0aggaw0qkd210vil4d3lw-system
  label: GNU with Linux-Libre 4.9.2 (beta)
  root device: /dev/sda1
  内核:/gnu/store/p1lb5ybm6ckmjlhsm1l4nyybd7v8cp91-linux-libre-4.9.2/bzImage
Generation 41月 12 2017 03:07:39
  文件名:/var/guix/profiles/system-4-link
  canonical file name: /gnu/store/vw1d7m60yr9fdaf22ys356l6j51dq9jm-system
  label: GNU with Linux-Libre 4.9.2 (beta)
  root device: /dev/sda1
  内核:/gnu/store/p1lb5ybm6ckmjlhsm1l4nyybd7v8cp91-linux-libre-4.9.2/bzImage
Generation 51月 12 2017 03:20:29
  文件名:/var/guix/profiles/system-5-link
  canonical file name: /gnu/store/d5h2d622d59n4kzcc2zxvqs29f016vd2-system
  label: GNU with Linux-Libre 4.9.2 (beta)
  root device: /dev/sda1
  内核:/gnu/store/p1lb5ybm6ckmjlhsm1l4nyybd7v8cp91-linux-libre-4.9.2/bzImage
Generation 61月 12 2017 03:28:50
  文件名:/var/guix/profiles/system-6-link
  canonical file name: /gnu/store/5s0vs4gz2xqmh17ids9d385bmj78limn-system
  label: GNU with Linux-Libre 4.9.2 (beta)
  root device: /dev/sda1
  内核:/gnu/store/p1lb5ybm6ckmjlhsm1l4nyybd7v8cp91-linux-libre-4.9.2/bzImage
Generation 71月 12 2017 13:08:02
  文件名:/var/guix/profiles/system-7-link
  canonical file name: /gnu/store/mfjrgaspk4swk1700c7cskkd6m21zi32-system
  label: GNU with Linux-Libre 4.9.2 (beta)
  root device: /dev/sda1
  内核:/gnu/store/p1lb5ybm6ckmjlhsm1l4nyybd7v8cp91-linux-libre-4.9.2/bzImage
Generation 81月 12 2017 13:22:13
  文件名:/var/guix/profiles/system-8-link
  canonical file name: /gnu/store/yjr14gpnhm13i8bw2xdizfjqrnp0pp4w-system
  label: GNU with Linux-Libre 4.9.2 (beta)
  root device: /dev/sda1
  内核:/gnu/store/p1lb5ybm6ckmjlhsm1l4nyybd7v8cp91-linux-libre-4.9.2/bzImage
Generation 91月 12 2017 13:22:13
  文件名:/var/guix/profiles/system-9-link
  canonical file name: /gnu/store/yjr14gpnhm13i8bw2xdizfjqrnp0pp4w-system
  label: GNU with Linux-Libre 4.9.2 (beta)
  root device: /dev/sda1
  内核:/gnu/store/p1lb5ybm6ckmjlhsm1l4nyybd7v8cp91-linux-libre-4.9.2/bzImage
Generation 101月 12 2017 13:22:13
  文件名:/var/guix/profiles/system-10-link
  canonical file name: /gnu/store/yjr14gpnhm13i8bw2xdizfjqrnp0pp4w-system
  label: GNU with Linux-Libre 4.9.2 (beta)
  root device: /dev/sda1
  内核:/gnu/store/p1lb5ybm6ckmjlhsm1l4nyybd7v8cp91-linux-libre-4.9.2/bzImage
Generation 111月 12 2017 13:22:13
  文件名:/var/guix/profiles/system-11-link
  canonical file name: /gnu/store/yjr14gpnhm13i8bw2xdizfjqrnp0pp4w-system
  label: GNU with Linux-Libre 4.9.2 (beta)
  root device: /dev/sda1
  内核:/gnu/store/p1lb5ybm6ckmjlhsm1l4nyybd7v8cp91-linux-libre-4.9.2/bzImage
Generation 121月 12 2017 18:07:02
  文件名:/var/guix/profiles/system-12-link
  canonical file name: /gnu/store/g7z3cy8vjg200gm8k4sjai2qnf4l81am-system
  label: GNU with Linux-Libre 4.9.2 (beta)
  root device: /dev/sda1
  内核:/gnu/store/p1lb5ybm6ckmjlhsm1l4nyybd7v8cp91-linux-libre-4.9.2/bzImage
Generation 131月 14 2017 20:44:24
  文件名:/var/guix/profiles/system-13-link
  canonical file name: /gnu/store/6kai1ip1fl26xff9dicrq230xghxf5qy-system
  label: GNU with Linux-Libre 4.9.3 (beta)
  root device: my-root
  内核:/gnu/store/p0962bjl55ga8v2m4h80d7fh9a98v7ab-linux-libre-4.9.3/bzImage
Generation 141月 14 2017 22:08:32
  文件名:/var/guix/profiles/system-14-link
  canonical file name: /gnu/store/is7f9nv4jipzhpxg5pp792szq3ss67r1-system
  label: GNU with Linux-Libre 4.9.3 (beta)
  root device: /dev/sda1
  内核:/gnu/store/p0962bjl55ga8v2m4h80d7fh9a98v7ab-linux-libre-4.9.3/bzImage
Generation 151月 14 2017 22:08:32
  文件名:/var/guix/profiles/system-15-link
  canonical file name: /gnu/store/is7f9nv4jipzhpxg5pp792szq3ss67r1-system

Re:Re: Fail to run : guix packckage -u git --fallback

2017-04-25 Thread tumashu
Sorry,  maybe weshould say:  /tmp is no space left 
在 2017-04-25 21:30:57,Petter <pet...@mykolab.ch> 写道:
Hi tumashu,

On Tue, 25 Apr 2017 20:53:05 +0800 (CST)
tumashu <tuma...@163.com> wrote:

> IOError: [Errno 28] No space left on device:

Did you notice this part?

Best,
Petter


Re:Re: Fail to run : guix packckage -u git --fallback

2017-04-25 Thread tumashu
/tmp is not mount a hard disk part in normal deskop system,  if guixsd use many 
space of /tmp, we should note user in install section of manual.




--
发自我的网易邮箱手机智能版


在 2017-04-26 02:18:17,"Leo Famulari" <l...@famulari.name> 写道:
>On Tue, Apr 25, 2017 at 03:30:57PM +0200, Petter wrote:
>> Hi tumashu,
>> 
>> On Tue, 25 Apr 2017 20:53:05 +0800 (CST)
>> tumashu <tuma...@163.com> wrote:
>> 
>> > IOError: [Errno 28] No space left on device:
>> 
>> Did you notice this part?
>
>To follow up, if your /tmp partition is too small, you can instruct the
>guix-daemon to build somewhere else by setting the TMPDIR variable in
>the guix-daemon's environment:
>
>https://www.gnu.org/software/guix/manual/html_node/Invoking-guix_002ddaemon.html


signature.asc
Description: PGP signature


Fail to run : guix packckage -u git --fallback

2017-04-25 Thread tumashu
make: *** [Makefile:499: check] Error 1
phase `check' failed after 264.6 seconds
builder for `/gnu/store/7nh7207arlfw9bvjk27pcnn39vpvcyzl-subversion-1.8.17.drv' 
failed with exit code 1
cannot build derivation 
`/gnu/store/rqyi4x276l1rcv0m4y3nfrlrljkqf7h1-git-2.12.2.drv': 1 dependencies 
couldn't be built
cannot build derivation 
`/gnu/store/ph67qhj8ki6yxl7y1sc9srs482rgl2q7-git-2.12.2.drv': 1 dependencies 
couldn't be built
cannot build derivation 
`/gnu/store/w548937baw3cjf4g8fm1mxk4jzqs5py5-profile.drv': 1 dependencies 
couldn't be built
guix package: error: build failed: build of 
`/gnu/store/w548937baw3cjf4g8fm1mxk4jzqs5py5-profile.drv' failed
feng@tumashu:~ $



Suggest A debian-style menu system for guix

2017-04-24 Thread tumashu
Debian menu system 
(https://www.debian.org/doc/packaging-manuals/menu.html/ch3.html) is a very 
useful tool,
is it possible develop a similar tool for guix?


Re:Re: A simple workflow for adding apps guix

2017-04-16 Thread tumashu
Document shows that the following code is needed:  

   sudo ./pre-inst-env guix-daemon --build-users-group=guixbuild

it seem that normal "guix build" will broken when I run the above code and 
close it.




At 2017-04-17 02:21:33, "Marius Bakke"  wrote:
>Feng Shu  writes:
>
>> The below is the workflow I used current, any other
>> simpler workflow exists?  comments are welcome!
>
>Hello! If you intend to submit these packages, I would recommend working
>directly from the main git repository rather than messing with
>GUIX_PACKAGE_PATH. Have a look at the "Running Guix before it is
>installed" section in the manual:
>
>https://www.gnu.org/software/guix/manual/guix.html#Running-Guix-Before-It-Is-Installed
>
>There is a 'pre-inst-env' script that makes testing local changes easy.
>Here is my typical workflow (motley gear optional):
>
># Start with a clean master branch.
>$ git checkout master
>$ git pull # sometimes "--rebase" or simply `git reset --hard`..
># Create environment with all Guix dependencies.
>$ ge guix # "ge" is an alias for `guix environment`...
># If this is a new machine, prepare the sources for this environment.
>$ ./bootstrap
>$ ./configure --localstatedir=/var
># Now compile everything. This is typically done after each `pull`.
>$ make -j10
># Phew! Now let's start working on our package.
>$ git checkout -b package-foo
>
>$ ./pre-inst-env guix build foo # installing works too
># It builds! Let's commit it.
>$ git add -p
>$ git commit
># D'oh! Something was not right.
>$ ./pre-inst-env guix edit foo # I don't actually use this, but..
>$ ./pre-inst-env guix build foo
># Great, this looks better.
>$ git add -p
>$ git commit --amend # or --fixup= for later rebasing..
>
># Allright, now we can submit it!
>$ mkdir outgoing # Not really necessary, but easier to "clean".
>$ git format-patch --cover-letter -n origin/master -o outgoing/
>$ edit outgoing/-cover-letter.patch
># Cover letter can be omitted, but is a good way to give some background
># info, raise questions, etc. Now, let's send it to open a bug report.
>$ git send-email --to guix-patc...@gnu.org outgoing/-cover-letter.patch
># Now we have a bug URL! Let's send the remainder there.
>$ rm outgoing/-cover-letter.patch
>$ git send-email --to nn...@debbugs.gnu.org outgoing/*.patch
>
>You can also make ~/.config/guix/latest a soft link to your git checkout
>and largely avoid the need for `./pre-inst-env`. I don't actually do
>that on my main development machine, since I need the `guix` command to
>always work, and my work tree is rarely "sane" :P instead, I manage my
>entire profile through `./pre-inst-env` and run `guix pull` once per
>week or so. I've been meaning to try git-worktree(1) instead.
>
>Hope it helps! Always interesting to see other workflows :)


problem of guix refresh

2017-02-05 Thread tumashu
guix refresh's  error
--
bash-4.4$ guix refresh
/home/feng/.config/guix/latest/gnu/packages/xorg.scm:2699:13: xf86-video-geode 
would be upgraded from 2.11.18 to 2.11.19
/home/feng/.config/guix/latest/gnu/packages/xorg.scm:1552:13: presentproto 
would be upgraded from 1.0 to 1.1
/home/feng/.config/guix/latest/gnu/packages/xorg.scm:4829:13: libxi would be 
upgraded from 1.7.8 to 1.7.9
/home/feng/.config/guix/latest/gnu/packages/xorg.scm:4992:13: xorg-server would 
be upgraded from 1.18.4 to 1.19.1
/home/feng/.config/guix/latest/gnu/packages/xorg.scm:4678:13: xproto would be 
upgraded from 7.0.29 to 7.0.31
/home/feng/.config/guix/latest/gnu/packages/xorg.scm:2887:13: xf86-video-mga 
would be upgraded from 1.6.5 to 1.9.100
/home/feng/.config/guix/latest/gnu/packages/xorg.scm:3758:13: xkeyboard-config 
would be upgraded from 2.18 to 2.20
/home/feng/.config/guix/latest/gnu/packages/xorg.scm:1813:13: util-macros would 
be upgraded from 1.19.0 to 1.19.1
/home/feng/.config/guix/latest/gnu/packages/xml.scm:655:13: 
perl-xml-compile-wsdl11 would be upgraded from 3.05 to 3.06
/home/feng/.config/guix/latest/gnu/packages/xml.scm:627:13: 
perl-xml-compile-soap would be upgraded from 3.20 to 3.21
/home/feng/.config/guix/latest/gnu/packages/xml.scm:744:13: pugixml would be 
upgraded from 1.7 to 1.8.1
/home/feng/.config/guix/latest/gnu/packages/xdisorg.scm:179:13: xdotool would 
be upgraded from 3.20150503.1 to 3.20160805.1
/home/feng/.config/guix/latest/gnu/packages/wget.scm:36:13: wget would be 
upgraded from 1.18 to 1.19
/home/feng/.config/guix/latest/gnu/packages/web.scm:2546:13: perl-libwww would 
be upgraded from 6.15 to 6.18
/home/feng/.config/guix/latest/gnu/packages/web.scm:3082:13: perl-uri-find 
would be upgraded from 20140709 to 20160806
/home/feng/.config/guix/latest/gnu/packages/web.scm:2652:13: perl-net-amazon-s3 
would be upgraded from 0.60 to 0.80
/home/feng/.config/guix/latest/gnu/packages/web.scm:882:6: sassc would be 
upgraded from 3.2.5 to 3.4.2
/home/feng/.config/guix/latest/gnu/packages/web.scm:446:13: rapidjson would be 
upgraded from 1.0.2 to 1.1.0
/home/feng/.config/guix/latest/gnu/packages/web.scm:2902:13: 
perl-plack-test-externalserver would be upgraded from 0.01 to 0.02
/home/feng/.config/guix/latest/gnu/packages/web.scm:2747:13: perl-net-smtp-ssl 
would be upgraded from 1.03 to 1.04
/home/feng/.config/guix/latest/gnu/packages/web.scm:2945:13: 
perl-test-www-mechanize would be upgraded from 1.44 to 1.48
/home/feng/.config/guix/latest/gnu/packages/web.scm:3414:13: r-htmltable would 
be upgraded from 1.7 to 1.9
/home/feng/.config/guix/latest/gnu/packages/web.scm:2924:13: perl-test-tcp 
would be upgraded from 2.06 to 2.17
Backtrace:
In ice-9/eval.scm:
 432: 19 [eval # #]
In ice-9/boot-9.scm:
2404: 18 [save-module-excursion #]
4056: 17 [#]
1727: 16 [%start-stack load-stack ...]
1732: 15 [#]
In unknown file:
   ?: 14 [primitive-load 
"/gnu/store/c77gfhkmnwjvgmnsafjxf1g9kkpiilbh-guix-0.12.0-4.d9da/bin/.guix-real"]
In guix/ui.scm:
1228: 13 [run-guix-command refresh]
In ice-9/boot-9.scm:
 160: 12 [catch srfi-34 # ...]
 160: 11 [catch system-error ...]
In guix/scripts/refresh.scm:
 442: 10 [#]
 462: 9 [#]
In srfi/srfi-1.scm:
 616: 8 [for-each # ...]
In guix/scripts/refresh.scm:
 288: 7 [check-for-package-update # # # ...]
In guix/import/cpan.scm:
 274: 6 [latest-release #]
In ice-9/boot-9.scm:
 160: 5 [catch srfi-34 # ...]
In guix/import/json.scm:
  32: 4 [#]
In guix/http-client.scm:
 241: 3 [loop #]
In guix/build/download.scm:
 486: 2 [open-connection-for-uri # # #f ...]
 382: 1 [tls-wrap # "api.metacpan.org" ...]
In unknown file:
   ?: 0 [handshake #]

ERROR: In procedure handshake:
ERROR: Throw to key `gnutls-error' with args `(# handshake)'.



Re:Re: Integrating different input methods into Guix

2017-01-22 Thread tumashu
Service seem to be a good idea...








At 2017-01-23 08:32:11, "Danny Milosavljevic"  wrote:
>Hi,
>
>I understand. For now, let's see what the others say about the proposed design.
>
>If you want to just set the environment variables in your user session, you 
>can just edit ~/.bash_profile and invoke im-config there (maybe unchanged - 
>although it bothers me that it then would invoke random versions of the input 
>methods - which can change depending on what's installed right now).
>
>But it would be nicer if the login screens used the input methods, too. That 
>would be possible by either writing a service, or, as a quick fix, by adding 
>the environment variables to gnu/services/xorg.scm :
>
>  (fork+exec-command
>   (list (string-append #$slim "/bin/slim") "-nodaemon")
>   #:environment-variables
>   (list (string-append "SLIM_CFGFILE=" #$slim.cfg)
> "IM_CONFIG_xyz=FIXME"
> #$@(if theme
>(list #~(string-append "SLIM_THEMESDIR=" #$theme))
>#~())
>


Re:Integrating different input methods into Guix

2017-01-22 Thread tumashu
Thanks for the information, but coding a im service is beyond my ability at the 
moment :-)








At 2017-01-22 16:06:05, "Danny Milosavljevic" <dan...@scratchpost.org> wrote:
>Hi,
>
>On Sun, 22 Jan 2017 10:39:15 +0800 (CST)
>tumashu  <tuma...@163.com> wrote:
>
>> The other problem is:
>> 
>> im-config include many im's config files and I cannot  let im-config depend 
>> all the im,
>> if fcitx is not installed,  How to deal with "/usr/bin/fcitx" in fcitx 
>> config file which is included in im-config?
>> just replace it with "fcitx"?
>
>You mean the configs for all the input methods ("cjkv.conf", "ibus.conf", 
>"fcitx.conf", "uim.conf", "hime.conf", "gcin.conf", "maliit.conf", 
>"scim.conf", "hangul.conf", "thai.conf", "xim.conf", "kinput2.conf", 
>"xsunpinyin.conf") in "data" ?
>
>I think then one would maybe write a "input-method-root-service" Guix service 
>and other im services and let each im service extend that service. 
>
>That way the user can have the different input methods as services in their 
>Guix system config file.
>
>See gnu/services/cups.scm "union-directory" for how you merge multiple 
>extension's directory trees into one.
>
>See operating-system-environment-variables for the environment variables that 
>are already exported to every process.
>
>See the Guix manual "Service Composition" for how to compose services.
>
>We already have packages for ibus, fcitx - but no service for ibus, fcitx.


Re:Re: A question about im-config

2017-01-21 Thread tumashu
The other problem is:

im-config include many im's config files and I cannot  let im-config depend all 
the im,
if fcitx is not installed,  How to deal with "/usr/bin/fcitx" in fcitx config 
file which is included in im-config?
just replace it with "fcitx"?









At 2017-01-22 09:15:26, "Danny Milosavljevic" <dan...@scratchpost.org> wrote:
>Hi tumashu,
>
>On Sun, 22 Jan 2017 08:57:49 +0800 (CST)
>tumashu <tuma...@163.com> wrote:
>
>> Im-config (https://anonscm.debian.org/cgit/collab-maint/im-config.git) is a 
>> shell script which
>> used to manager input method by debian, I want to package it to guixsd, but 
>> many problem I faced:
>> 
>> 1.  How to deal with "/usr/bin/XXX" in schell script, for example: 
>> /usr/bin/fcitx, /usr/bin/ibux 
>> 2.  How to deal with "
>> /usr/lib/*/qt5/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.
>> "
>
>Please substitute paths by store paths. The intention is to make sure that 
>im-config always keeps doing the same thing every time it is invoked.
>
>To do that you can add a phase by:
>
>(arguments
> `(#:phases
>   (modify-phases %standard-phases
> (add-after 'unpack 'patch-paths
>   (lambda* (#:key inputs outputs #:allow-other-keys)
> (substitute* "im-config"
>   (("/usr/bin/fcitx") (string-append (assoc-ref inputs "fcitx") 
> "/bin/fcitx"))
>...
>))
>


A question about im-config

2017-01-21 Thread tumashu
Im-config (https://anonscm.debian.org/cgit/collab-maint/im-config.git) is a 
shell script which
used to manager input method by debian, I want to package it to guixsd, but 
many problem I faced:

1.  How to deal with "/usr/bin/XXX" in schell script, for example: 
/usr/bin/fcitx, /usr/bin/ibux 
2.  How to deal with "
/usr/lib/*/qt5/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.
"





# start fcitx
# vim: set sts=4 expandtab:

if [ "$IM_CONFIG_PHASE" = 2 ]; then
# start fcitx daemon
/usr/bin/fcitx &
fi

if [ "$IM_CONFIG_PHASE" = 1 ]; then
# set variables for the plain XIM
XMODIFIERS=@im=fcitx

GTK_IM_MODULE=xim
# use immodule only when available for both GTK 2.0 and 3.0
IM_CONFIG_MARKER2=0
for IM_CONFIG_MARKER in /usr/lib/*/gtk-2.0/*/immodules/im-fcitx.so \
/usr/lib/gtk-2.0/*/immodules/im-fcitx.so ; do
if [ -e $IM_CONFIG_MARKER ]; then
IM_CONFIG_MARKER2=1
break
fi
done

IM_CONFIG_MARKER3=0
for IM_CONFIG_MARKER in /usr/lib/*/gtk-3.0/*/immodules/im-fcitx.so \
/usr/lib/gtk-3.0/*/immodules/im-fcitx.so ; do
if [ -e $IM_CONFIG_MARKER ]; then
IM_CONFIG_MARKER3=1
break
fi
done
if [ $IM_CONFIG_MARKER2 = 1 ] && [ $IM_CONFIG_MARKER3 = 1 ] ; then
GTK_IM_MODULE=fcitx
fi

QT4_IM_MODULE=xim
# use immodule when available for Qt4
for IM_CONFIG_MARKER in /usr/lib/*/qt4/plugins/inputmethods/qtim-fcitx.so \
/usr/lib/qt4/plugins/inputmethods/qtim-fcitx.so ; do
if [ -e $IM_CONFIG_MARKER ]; then
QT4_IM_MODULE=fcitx
break
fi
done

QT_IM_MODULE=xim
# use immodule when available for Qt5
for IM_CONFIG_MARKER in 
/usr/lib/*/qt5/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so
 ; do
if [ -e $IM_CONFIG_MARKER ]; then
QT_IM_MODULE=fcitx
break
fi
done


# This is placeholder at this moment.
CLUTTER_IM_MODULE=xim
# use immodule when available for clutter
for IM_CONFIG_MARKER in /usr/lib/*/clutter-imcontext/immodules/im-fcitx.so \
/usr/lib/clutter-imcontext/immodules/im-fcitx.so; do
if [ -e $IM_CONFIG_MARKER ]; then
CLUTTER_IM_MODULE=fcitx
break
fi
done
fi



--


Re:Re: [PATCH] Add fcitx-configtool

2017-01-18 Thread tumashu
yes, it workswell for me
At 2017-01-19 03:55:23, "Marius Bakke" <mba...@fastmail.com> wrote:
>
>Hi tumashu!
>
>The patch looks good. Does it work for you? It does not find any
>input methods on my system, but perhaps I need to install some?
>
>If you can confirm that this works for your use, I think it can be added
>as it is, save for some minor changes to make `guix lint` happy. I will
>add the same copyright header as the other patch if that is okay.
>
>Thank you!
>
>> From 6312de615f63343b9129cbe104f1a57837f8fb8b Mon Sep 17 00:00:00 2001
>> From: Feng Shu <tuma...@163.com>
>> Date: Tue, 17 Jan 2017 13:02:30 +0800
>> Subject: [PATCH] Add fcitx-configtool
>>
>> ---
>>  gnu/packages/fcitx.scm | 36 
>>  1 file changed, 36 insertions(+)
>>
>> diff --git a/gnu/packages/fcitx.scm b/gnu/packages/fcitx.scm
>> index dd8eead7f..b5275cebf 100644
>> --- a/gnu/packages/fcitx.scm
>> +++ b/gnu/packages/fcitx.scm
>> @@ -85,3 +85,39 @@
>>  Pinyin, Quwei and some table-based (Wubi, Cangjie, Erbi, etc.) input methods
>>  built-in.")
>>  (license gpl2+)))
>> +
>> +(define-public fcitx-configtool
>> +  (package
>> +   (name "fcitx-configtool")
>> +   (version "0.4.8")
>> +   (source (origin
>> +(method url-fetch)
>> +(uri (string-append 
>> "https://download.fcitx-im.org/fcitx-configtool/;
>> +  name "-" version ".tar.xz"))
>> +(sha256
>> + (base32
>> +  "1vaim0namw58bfafbvws1vgd4010p19zwqfbx6bd1zi5sgchdg0f"
>> +   (build-system cmake-build-system)
>> +   (arguments
>> +`(#:configure-flags
>> +  (list "-DENABLE_GTK2=ON"
>> +"-DENABLE_GTK3=ON")
>> +  #:tests? #f))
>> +   (native-inputs
>> +`(("glib:bin"   ,glib "bin")
>> +  ("pkg-config" ,pkg-config)))
>> +   (inputs
>> +`(("fcitx"  ,fcitx)
>> +  ("dbus-glib"  ,dbus-glib)
>> +  ("gettext",gettext-minimal)
>> +  ("gtk2"   ,gtk+-2)
>> +  ("gtk3"   ,gtk+)
>> +  ("iso-codes"  ,iso-codes)))
>> +   (home-page "http://fcitx-im.org;)
>> +   (synopsis "Graphic Fcitx configuration tool")
>> +   (description
>> +"Fcitx is an input method framework with extension support.  It has
>> +Pinyin, Quwei and some table-based (Wubi, Cangjie, Erbi, etc.) input methods
>> +built-in. This package provides GTK version of the graphic configuration 
>> tool
>> +of Fcitx.")
>> +   (license gpl2+)))
>> -- 
>> 2.11.0


Re:Re: [PATCH] Add font-wqy-microhei

2017-01-18 Thread tumashu
Thank you very much for your help,  You can add: "Feng Shu <tuma...@163.com>"   








At 2017-01-18 16:47:28, "Ricardo Wurmus" <rek...@elephly.net> wrote:
>
>Hi tumashu,
>
>thanks for the patch!  I pushed it to master as
>12b8f6b4012b47d849ba8b6cfa80abb2a5263e19 with the following changes:
>
>- double spacing between sentences in the description
>- shortened the description
>- removed “file-name” field (the tarball already has a fine name)
>- added a longer license comment
>- added a changelog-style commit message
>
>It just occurred to me that we will also need to add a copyright line
>for you.  What name and email address would you like us to list in the
>copyright header?
>
>-- 
>Ricardo
>
>GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
>https://elephly.net
>


Re:Re: About flashplayer

2017-01-17 Thread tumashu
good idea, thank!
在 2017-01-17 19:51:24,"Alex Vong" <alexvong1...@gmail.com> 写道:
tumashu  <tuma...@163.com> writes:

> Ok, thanks for the information!
>
If you just want to watch a video, there are plenty of free software out
there for downloading videos like youtube-dl
<https://github.com/rg3/youtube-dl> and you-get
<https://github.com/soimort/you-get>.

In particular, you-get supports a lot of Chinese video-sharing sites
like bilibili and acfun.

If you want, I can send a patch to add you-get to guix.

> At 2017-01-13 16:33:35, "Chris Marusich" <cmmarus...@gmail.com> wrote:
>>tumashu  <tuma...@163.com> writes:
>>
>>> can we package a installer-helper, like:
>>> https://packages.debian.org/stretch/flashplugin-nonfree
>>
>>Guix (and GuixSD) adheres to the Free System Distribution Guidelines
>>[1], which states:
>>
>>"A free system distribution must not steer users towards obtaining any
>>nonfree information for practical use, or encourage them to do so. The
>>system should have no repositories for nonfree software and no specific
>>recipes for installation of particular nonfree programs."
>>
>>As I understand it, the purpose of that installer-helper is solely to
>>aid in the installation of Adobe Flash Player, which is not free
>>software.  It has no other use.  Therefore, we will not package it.
>>
>>[1] https://www.gnu.org/distros/free-system-distribution-guidelines.html
>>
>>On the other hand, GNU Gnash IS free software, so I'm sure a patch to
>>add it would be welcome!
>>
>>-- 
>>Chris


[PATCH] Add font-wqy-microhei

2017-01-16 Thread tumashu


0001-Add-font-wqy-microhei.patch
Description: Binary data


[PATCH] Add fcitx-configtool

2017-01-16 Thread tumashu


0001-Add-fcitx-configtool.patch
Description: Binary data


Re:Re: Re: mounting "my-home" to /home cannot work again.

2017-01-14 Thread tumashu
make check-system TESTS="separate-store-os" ?   build guix from sources?
在 2017-01-15 00:46:37,"David Craven"  写道:
Hi!

I cannot reproduce the issue on current master, sorry!

make check-system TESTS="separate-store-os" would show if there's a
problem with multiple file-systems using labels.

If you want more help with your issue please come and visit us on IRC...

David


Re:Re: mounting "my-home" to /home cannot work again.

2017-01-14 Thread tumashu
no ,i  use my-root as label before and cannot work
在 2017-01-15 01:29:26,"Ludovic Courtès" <l...@gnu.org> 写道:
tumashu  <tuma...@163.com> skribis:

> When I use (title 'device) instead of (title 'label), it works again, I don't 
> understand the reason.
>
> https://github.com/tumashu/guixsd-helper

This file has:

(define fs-home
  (file-system
   (device "/dev/sda7")
   (title 'device)
   (mount-point "/home")
   (type "ext4")))

… which is correct.

If you previously had 'label instead of 'device here, the file system
could not be found at boot time because GuixSD was searching for a file
system with “/dev/sda7” as its *label*.

See
<https://www.gnu.org/software/guix/manual/html_node/File-Systems.html>
for the meaning of ‘title’.

HTH!

Ludo’.


Re:Re: mounting "my-home" to /home cannot work again.

2017-01-14 Thread tumashu
When I use (title 'device) instead of (title 'label), it works again, I don't 
understand the reason.

https://github.com/tumashu/guixsd-helper






At 2017-01-14 19:00:35, "David Craven" <da...@craven.ch> wrote:
>Hi!
>
>> 
>> [   12.079023] [drm] Initialized radeon 2.48.0 20080528 for :01:00.0 on
>> minor 0
>> [   13.253525] input: HDA Intel MID Mic as
>> /devices/pci:00/:00:1b.0/sound/card0/input18
>> [   13.253746] input: HDA Intel MID Headphone as
>> /devices/pci:00/:00:1b.0/sound/card0/input19
>> [   13.253983] input: HDA ATI HDMI HDMI/DP,pcm=3 as
>> /devices/pci:00/:00:01.0/:01:00.1/sound/card1/input17
>> [   13.326750] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
>> [   13.327259] ieee80211 phy0: Atheros AR9285 Rev:2 mem=0xf8b2, irq=19
>> [   13.446723] ath9k :44:00.0 wlo1: renamed from wlan0
>> **Get stuck at this point.**
>> -
>
>These are generated by the kernel. There must be some stacktrace or
>errors from guixsd missing somewhere, maybe when running guix system
>reconfigure?
>
>I don't see how an error in the guixsd configuration or a bug in
>guixsd would cause the kernel to hang during boot, before entering the
>initrd.
>
>The recommended way of adding file-systems to an operating-system
>definition according to the guix manual is:
>
>(file-systems (cons* fs-root fs-home fs-backup1 fs-backup2 %base-file-systems))
>
>Can you verify that the working setup kernel is the same one as the
>non working setup kernel?
>
>Possibly a relevant commit is 37203715805335131d18ac05ecb0367f222cd065.
>
>HTH!
>
>David


Re:Re: guix system reconfigure can not work.

2017-01-14 Thread tumashu
root@tumashu /home/feng/project/guixsd-helper# time guix system reconfigure 
./guixsd-helper.scm -n
The following derivations would be built:
   /gnu/store/m25mz3h7zfp427a5l8h2h5g7rvy61s91-system.drv
   /gnu/store/lwpxcgq4r01vjfd08gd96ljsdf5ksina-grub.cfg.drv
   /gnu/store/xxb2cyhv8j0zcgf5s70j8pf0v64df7yw-elogind-program-wrapper.drv
   /gnu/store/iq9q86rhigdccc1y4r50smll0wly68ys-dbus-system-services.drv
   /gnu/store/jkr6m5k8bzc2dy3b16b40mr40bnm1rja-elogind-wrapper.drv
   /gnu/store/31c2mpbyvlkvcfp1j3drpj2cayxvys7z-groupmod.drv
   /gnu/store/42z16f1s7i85ncdgzxhsircgvjlc7000-su.drv
   /gnu/store/9v3vgfcad7zki615h1dk44jq0aj093yl-userdel.drv
   /gnu/store/a7wi0006l4abhzp2rqq0dwdygpmjqa0r-passwd.drv
   /gnu/store/ag3fa7qjpnxf3wqn243sw0i2b0mwd7wy-groupadd.drv
   /gnu/store/c69bgzbf39xryfr7ialr1p1x8hx0rswa-useradd.drv
   /gnu/store/h52hxfl649yqgwdlx32r4skziqp1ws3a-slock.drv
   /gnu/store/pmidsz4prmp1hgla3xlxh5k9q0l0rllm-groupdel.drv
   /gnu/store/qk83kjvvvpn8c2481jjaxbdjznjxp76x-polkit-1.drv
   /gnu/store/qv4ppq0vbjfx18j3ka55paa3zyvc1bzg-slim.drv
   /gnu/store/qvv8w6kbvk7dy1rz20k32h8cxw256nzj-usermod.drv
   /gnu/store/sn9i1gnqwrx5av9pn5hvxqbkp00dyd9y-sudo.drv
   /gnu/store/v5pyy9bm63vqfamyzmc8b60ys23yq0pc-other.drv
   /gnu/store/xlvww8mfscn6m2mqc8xcmgcki8ln6xac-xlock.drv
   /gnu/store/zqjj1s3bpnj3ifrirr9n6b6v44j4iwxr-login.drv
   /gnu/store/6591iwpq8k0znbp6y2qabklhwkcs9j3c-pam.d.drv
   /gnu/store/vsx316bnp86f5gih8w6xgw2n2slzawn2-dbus-configuration.drv
   /gnu/store/yamb522xilb9w73s5qsyhws37ah70z0l-etc-polkit-1.drv
   /gnu/store/459rdbdah0xjg0v9cqp909hrq1hiss0s-udev.conf.drv
   /gnu/store/4ypbcp9fdrqh374i0havj742vw9albm5-udev-rules.drv
   /gnu/store/r1rv37gsszmw8smdz9rbdvnv10b434nh-shepherd-udev.scm.drv
   /gnu/store/7dq2nrc973rzvla8wgl3dhfcv8mfyy25-xserver.conf.drv
   /gnu/store/xxq7a85gcvv7sayplsxks8s9ps7g9ydz-xorg.conf.d.drv
   /gnu/store/rq7g8rcrlap1iivlgqdlmcz716cl5wl5-xinitrc.drv
   /gnu/store/xbpxfrn3ivh7qn0mwgfq7cagirzpz026-start-xorg.drv
   /gnu/store/c8qxivbagzx4q9vy6b75820p1js7ffdh-slim.cfg.drv
   /gnu/store/jlnzk3aklqgjy4gpqdj874igggmmvh9y-shepherd-xorg-server.scm.drv
   /gnu/store/cqnv80bifqwywpb1wlfpk9ghsz2jzkpn-shepherd-networking.scm.drv
   /gnu/store/i5wxw155vgjp88anx2bw01m617q6mr1d-shepherd.conf.drv
   /gnu/store/rldyywasz0all02299bihlgc2p9w8ly1-activate-service.drv
   /gnu/store/jpfy7rgyh551q13lkk9q7293j47r16qc-activate-service.drv
   /gnu/store/dyxjca8ryrnyy2rdh1dh624nylv96nxn-activate-service.drv
   /gnu/store/8mlhp3h3m086kwarl4w2p846swirh00m-activate.drv
   /gnu/store/ki6y8xhi7aclgryha6xz31bbg5p61v50-boot.drv
   /gnu/store/zbl1bbfnplnlkxr5ckixf3p0zz977z6m-fonts-dir.drv
   /gnu/store/n25k94bgijhi4iv6rkhdvlhxbh0x8j40-gtk-im-modules.drv
   /gnu/store/jgaav8vjlv2sbvhhdy3pzfx95w4nn781-info-dir.drv
   /gnu/store/drfmgbpd33rsapdqvk39scdkj54a9ad5-xdg-mime-database.drv
   /gnu/store/95pyjljcy572542xqfdgi6hazah442h0-gtk-icon-themes.drv
   /gnu/store/1ffq0q9m513pl5w25pjbzc68dgv7g3yr-ca-certificate-bundle.drv
   /gnu/store/7vypc27nsr00phh4iaszqhcvih2xawh4-profile.drv
   /gnu/store/n3p1b7wr5syf1c4wxsjak0a8ns1lzyck-etc.drv
The following files would be downloaded:
   /gnu/store/lylrqspx2sl6jq3dh8hig3ss46a2nqgf-skel
   /gnu/store/dw1px9d01fq3xxd055ayfk45p3xc48xi-shepherd-guix-daemon.scm
   /gnu/store/xw052i9yf6flcwwhp6r0q3lldyqzxhs6-activate-service
   /gnu/store/mhxmr8zc4dajf1wnv6ssb6bf1cyam214-grub-image.png

real0m11.824s
user0m14.604s
sys0m0.404s
root@tumashu /home/feng/project/guixsd-helper# time guix system reconfigure 
./guixsd-helper.scm -n --no-substitutes
The following derivations would be built:
   /gnu/store/m25mz3h7zfp427a5l8h2h5g7rvy61s91-system.drv
   /gnu/store/lwpxcgq4r01vjfd08gd96ljsdf5ksina-grub.cfg.drv
   /gnu/store/xxb2cyhv8j0zcgf5s70j8pf0v64df7yw-elogind-program-wrapper.drv
   /gnu/store/iq9q86rhigdccc1y4r50smll0wly68ys-dbus-system-services.drv
   /gnu/store/jkr6m5k8bzc2dy3b16b40mr40bnm1rja-elogind-wrapper.drv
   /gnu/store/31c2mpbyvlkvcfp1j3drpj2cayxvys7z-groupmod.drv
   /gnu/store/42z16f1s7i85ncdgzxhsircgvjlc7000-su.drv
   /gnu/store/9v3vgfcad7zki615h1dk44jq0aj093yl-userdel.drv
   /gnu/store/a7wi0006l4abhzp2rqq0dwdygpmjqa0r-passwd.drv
   /gnu/store/ag3fa7qjpnxf3wqn243sw0i2b0mwd7wy-groupadd.drv
   /gnu/store/c69bgzbf39xryfr7ialr1p1x8hx0rswa-useradd.drv
   /gnu/store/h52hxfl649yqgwdlx32r4skziqp1ws3a-slock.drv
   /gnu/store/pmidsz4prmp1hgla3xlxh5k9q0l0rllm-groupdel.drv
   /gnu/store/qk83kjvvvpn8c2481jjaxbdjznjxp76x-polkit-1.drv
   /gnu/store/qv4ppq0vbjfx18j3ka55paa3zyvc1bzg-slim.drv
   /gnu/store/qvv8w6kbvk7dy1rz20k32h8cxw256nzj-usermod.drv
   /gnu/store/sn9i1gnqwrx5av9pn5hvxqbkp00dyd9y-sudo.drv
   /gnu/store/v5pyy9bm63vqfamyzmc8b60ys23yq0pc-other.drv
   /gnu/store/xlvww8mfscn6m2mqc8xcmgcki8ln6xac-xlock.drv
   /gnu/store/zqjj1s3bpnj3ifrirr9n6b6v44j4iwxr-login.drv
   /gnu/store/8ifi9gvhwfr0spa6h4wvr7y0jj3ggbvc-Python-3.5.2.tar.xz.drv
   /gnu/store/m64s3wdxcdl4b1pid1lnz5mdmvpr80nh-Python-3.5.2.tar.xz.drv
   /gnu/store/70rv87xhx3ma69k8sj5vmarzfg1ad1q0-python-minimal-wrapper

Re:Re: mounting "my-home" to /home cannot work again.

2017-01-14 Thread tumashu
(file-systems (cons fs-root %fs-base-file-systems))

can work
在 2017-01-14 19:00:35,"David Craven"  写道:
Hi!

> 
> [   12.079023] [drm] Initialized radeon 2.48.0 20080528 for :01:00.0 on
> minor 0
> [   13.253525] input: HDA Intel MID Mic as
> /devices/pci:00/:00:1b.0/sound/card0/input18
> [   13.253746] input: HDA Intel MID Headphone as
> /devices/pci:00/:00:1b.0/sound/card0/input19
> [   13.253983] input: HDA ATI HDMI HDMI/DP,pcm=3 as
> /devices/pci:00/:00:01.0/:01:00.1/sound/card1/input17
> [   13.326750] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
> [   13.327259] ieee80211 phy0: Atheros AR9285 Rev:2 mem=0xf8b2, irq=19
> [   13.446723] ath9k :44:00.0 wlo1: renamed from wlan0
> **Get stuck at this point.**
> -

These are generated by the kernel. There must be some stacktrace or
errors from guixsd missing somewhere, maybe when running guix system
reconfigure?

I don't see how an error in the guixsd configuration or a bug in
guixsd would cause the kernel to hang during boot, before entering the
initrd.

The recommended way of adding file-systems to an operating-system
definition according to the guix manual is:

(file-systems (cons* fs-root fs-home fs-backup1 fs-backup2 %base-file-systems))

Can you verify that the working setup kernel is the same one as the
non working setup kernel?

Possibly a relevant commit is 37203715805335131d18ac05ecb0367f222cd065.

HTH!

David


Re:Re: mounting "my-home" to /home cannot work again.

2017-01-14 Thread tumashu
(file-systems (cons* fs-root fs-home fs-backup1 fs-backup2 %base-file-systems))

cannot work !
在 2017-01-14 19:00:35,"David Craven"  写道:
Hi!

> 
> [   12.079023] [drm] Initialized radeon 2.48.0 20080528 for :01:00.0 on
> minor 0
> [   13.253525] input: HDA Intel MID Mic as
> /devices/pci:00/:00:1b.0/sound/card0/input18
> [   13.253746] input: HDA Intel MID Headphone as
> /devices/pci:00/:00:1b.0/sound/card0/input19
> [   13.253983] input: HDA ATI HDMI HDMI/DP,pcm=3 as
> /devices/pci:00/:00:01.0/:01:00.1/sound/card1/input17
> [   13.326750] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
> [   13.327259] ieee80211 phy0: Atheros AR9285 Rev:2 mem=0xf8b2, irq=19
> [   13.446723] ath9k :44:00.0 wlo1: renamed from wlan0
> **Get stuck at this point.**
> -

These are generated by the kernel. There must be some stacktrace or
errors from guixsd missing somewhere, maybe when running guix system
reconfigure?

I don't see how an error in the guixsd configuration or a bug in
guixsd would cause the kernel to hang during boot, before entering the
initrd.

The recommended way of adding file-systems to an operating-system
definition according to the guix manual is:

(file-systems (cons* fs-root fs-home fs-backup1 fs-backup2 %base-file-systems))

Can you verify that the working setup kernel is the same one as the
non working setup kernel?

Possibly a relevant commit is 37203715805335131d18ac05ecb0367f222cd065.

HTH!

David


mounting "my-home" to /home cannot work again.

2017-01-13 Thread tumashu
If mount "my-root" to / only, my machine works well, when I mount "my-home" to 
/home, it cannot work well.
I cannot enter my guixsd again, "mounting-multi-part" has been broken?


[   12.079023] [drm] Initialized radeon 2.48.0 20080528 for :01:00.0 on 
minor 0
[   13.253525] input: HDA Intel MID Mic as 
/devices/pci:00/:00:1b.0/sound/card0/input18
[   13.253746] input: HDA Intel MID Headphone as 
/devices/pci:00/:00:1b.0/sound/card0/input19
[   13.253983] input: HDA ATI HDMI HDMI/DP,pcm=3 as 
/devices/pci:00/:00:01.0/:01:00.1/sound/card1/input17
[   13.326750] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   13.327259] ieee80211 phy0: Atheros AR9285 Rev:2 mem=0xf8b2, irq=19
[   13.446723] ath9k :44:00.0 wlo1: renamed from wlan0
**Get stuck at this point.**
-
 
This is my guixsd configure: 
https://github.com/tumashu/guixsd-helper/blob/master/guixsd-helper.scm




Re:Re: Suggest add font: font-wqy-microhei

2017-01-13 Thread tumashu
If we need to use "fc-cache -f", suggest add it to document.








At 2017-01-14 05:23:55, "Danny Milosavljevic" <dan...@scratchpost.org> wrote:
>Hi,
>
>On Fri, 13 Jan 2017 23:16:53 +0800 (CST)
>tumashu  <tuma...@163.com> wrote:
>
>> When I install a font with a non-root account,  the font just can't be found 
>> by "fc-list",
>> and run "fc-cache" is useless too, But run "fc-cache -f" can cache the 
>> installed font,
>> it it a bug or just my machine problom?
>
>I don't know, sorry. It may be that fc-cache uses timestamps (mtime) to figure 
>out whether a directory changed or not and that won't work for us since we 
>always use the same mtime (for reproducibility). But that's just a guess - I 
>hope someone else knows it...
>


Re:Re: guix system reconfigure can not work.

2017-01-13 Thread tumashu
Very similar, When I use 'label instead,  guix system reconfigure can work,
but the new system can not boot properly:

-
...
[   13.655133] input: HDA Intel MID Mic as 
/devices/pci:00/:00:1b.0/sound/card0/input18
[   13.655341] input: HDA Intel MID Headphone as 
/devices/pci:00/:00:1b.0/sound/card0/input19
[   13.655687] input: HDA ATI HDMI HDMI/DP,pcm=3 as 
/devices/pci:00/:00:01.0/:01:00.1/sound/card1/input17
[   13.787240] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   13.787701] ieee80211 phy0: Atheros AR9285 Rev:2 mem=0xf85f, irq=19
[   13.797651] ath9k :44:00.0 wlo1: renamed from wlan0
[   25.002086] NET: Registered protocol family 4
[   25.050341] NET: Registered protocol family 3
[   25.108242] NET: Registered protocol family 5
[   25.502868] IPv6: ADDRCONF(NETDEV_UP): wlo1: link is not ready

*** do nothing, and i have to reboot 


Before reconfigure, i will be like the below, I don't know the reason and how 
to debug :-(

[   25.002086] NET: Registered protocol family 4
[   25.050341] NET: Registered protocol family 3
[   25.108242] NET: Registered protocol family 5
[   25.502868] IPv6: ADDRCONF(NETDEV_UP): wlo1: link is not ready
[] Service term-tty6 has been started.
[] Service term-tty5 has been started.
[] Service term-tty4 has been started.
[] Service term-tty3 has been started.
...
-



>
>This very likely an instance of .  I’ll see
>if I can fix it soonish if nobody beats me at it.
>
>Thanks for your report!
>
>Ludo’.


Re:Re: guix system reconfigure can not work.

2017-01-13 Thread tumashu
I don't think it is a networking issue, when I run:

sudo guix system --verbosity=100 reconfigure ./guixsd-helper.scm

The output is like:


-acquiring write lock on `/var/guix/temproots/870'
downgrading to read lock on `/var/guix/temproots/870'
acquiring write lock on `/var/guix/temproots/870'
downgrading to read lock on `/var/guix/temproots/870'
acquiring write lock on `/var/guix/temproots/870'
downgrading to read lock on `/var/guix/temproots/870'
acquiring write lock on `/var/guix/temproots/870'
downgrading to read lock on `/var/guix/temproots/870'
acquiring write lock on `/var/guix/temproots/870'
downgrading to read lock on `/var/guix/temproots/870'
acquiring write lock on `/var/guix/temproots/870'
downgrading to read lock on `/var/guix/temproots/870'
acquiring write lock on `/var/guix/temproots/870'
downgrading to read lock on `/var/guix/temproots/870'
acquiring write lock on `/var/guix/temproots/870'
downgrading to read lock on `/var/guix/temproots/870'
... time > 5min



-












At 2017-01-14 01:28:53, "l...@gnu.org (Ludovic" <=?utf-8?Q?Court=C3=A8s?=)> 
wrote:
>Hello,
>
>tumashu  <tuma...@163.com> skribis:
>
>> "guix system reconfigure"  can't work well in my machine now,   the below is 
>> output:
>> --
>> bash-4.4$ sudo guix system reconfigure guixsd-helper.scm
>> 密码:
>>
>> ** wait long time, about 5 min.**
>
>Ouch.  Could there be a networking issue?
>
>> guix system: loading new services: file-system-/mnt/backup1 
>> file-system-/mnt/backup2...
>> shepherd: Evaluating user expression (register-services (primitive-load 
>> "/gn...") #).
>>
>> looong time and I have to C-c C-c it.*
>>
>> -
>>
>> 2. In the console, the below information is showed:
>> 
>> e2fsck: cannot continue, aborting
>> ...
>> File system check on /dev/sda8 failed
>> 
>
>This very likely an instance of <https://bugs.gnu.org/23697>.  I’ll see
>if I can fix it soonish if nobody beats me at it.
>
>Thanks for your report!
>
>Ludo’.


Re:Re: Suggest add font: font-wqy-microhei

2017-01-13 Thread tumashu
When I install a font with a non-root account,  the font just can't be found by 
"fc-list",
and run "fc-cache" is useless too, But run "fc-cache -f" can cache the 
installed font,
it it a bug or just my machine problom?






At 2017-01-13 17:51:51, "Danny Milosavljevic" <dan...@scratchpost.org> wrote:
>Hi,
>
>On Fri, 13 Jan 2017 09:50:02 +0800 (CST)
>tumashu <tuma...@163.com> wrote:
>
>> wqy-microhei is a very useful chinese fonts, suggest add it to guix.
>> 
>> 1. http://wenq.org/wqy2/index.cgi?MicroHei_BigBang_README
>> 2. 
>> http://downloads.sourceforge.net/project/wqy/wqy-microhei/0.2.0-beta/wqy-microhei-0.2.0-beta.tar.gz?r=http%3A%2F%2Fwenq.org%2Fwqy2%2Findex.cgi%3FDownload=1484272152_mirror=nchc
>
>We already have font-wqy-zenhai which is very similar in setup. If you want, 
>check out gnu/packages/fonts.scm and just copy the font-wqy-zenhei block and 
>modify the url, name and checksum in the copy.
>
>Also, is there a reason wqy-microhei is marked "beta"? Is it not finished? 
>What's the difference between wqy-microhei and wqy-zenhei?
>
>If you want to quickly build and use your own packages, the easiest is:
>
>$ mkdir -p ${HOME}/.local/guix/wip
>$ export GUIX_PACKAGE_PATH=${HOME}/.local/guix
>
>Then put your own Scheme files in there, containing package definitions. They 
>need to be valid Scheme modules. For example the (new) file 
>${HOME}/.local/guix/wip/fonts.scm should have the following header:
>
>(define-module (wip fonts)
>  #:use-module (ice-9 regex)
>  #:use-module (guix utils)
>  #:use-module ((guix licenses) #:prefix license:)
>  #:use-module (guix packages)
>  #:use-module (guix download)
>  #:use-module (guix build-system gnu)
>  #:use-module (guix build-system trivial)
>  #:use-module (gnu packages base)
>  #:use-module (gnu packages compression)
>  #:use-module (gnu packages fontutils)
>  #:use-module (gnu packages perl)
>  #:use-module (gnu packages pkg-config)
>  #:use-module (gnu packages python)
>  #:use-module (gnu packages xorg)
>  #:use-module (gnu packages zip))
>
>And then the package definitions should follow, in this manner:
>
>(define-public font-wqy-microhei
>  (package
>(name "font-wqy-microhei")
>...))
>
>Replace "..." by what you copied from font-wqy-zenhai.


Re:Re: Suggest add font: font-wqy-microhei

2017-01-13 Thread tumashu
Thanks for your help, I have coded like you said, but when I install it, I 
can't find it with fc-list,
Any suggestion?









At 2017-01-13 17:51:51, "Danny Milosavljevic" <dan...@scratchpost.org> wrote:
>Hi,
>
>On Fri, 13 Jan 2017 09:50:02 +0800 (CST)
>tumashu <tuma...@163.com> wrote:
>
>> wqy-microhei is a very useful chinese fonts, suggest add it to guix.
>> 
>> 1. http://wenq.org/wqy2/index.cgi?MicroHei_BigBang_README
>> 2. 
>> http://downloads.sourceforge.net/project/wqy/wqy-microhei/0.2.0-beta/wqy-microhei-0.2.0-beta.tar.gz?r=http%3A%2F%2Fwenq.org%2Fwqy2%2Findex.cgi%3FDownload=1484272152_mirror=nchc
>
>We already have font-wqy-zenhai which is very similar in setup. If you want, 
>check out gnu/packages/fonts.scm and just copy the font-wqy-zenhei block and 
>modify the url, name and checksum in the copy.
>
>Also, is there a reason wqy-microhei is marked "beta"? Is it not finished? 
>What's the difference between wqy-microhei and wqy-zenhei?
>
>If you want to quickly build and use your own packages, the easiest is:
>
>$ mkdir -p ${HOME}/.local/guix/wip
>$ export GUIX_PACKAGE_PATH=${HOME}/.local/guix
>
>Then put your own Scheme files in there, containing package definitions. They 
>need to be valid Scheme modules. For example the (new) file 
>${HOME}/.local/guix/wip/fonts.scm should have the following header:
>
>(define-module (wip fonts)
>  #:use-module (ice-9 regex)
>  #:use-module (guix utils)
>  #:use-module ((guix licenses) #:prefix license:)
>  #:use-module (guix packages)
>  #:use-module (guix download)
>  #:use-module (guix build-system gnu)
>  #:use-module (guix build-system trivial)
>  #:use-module (gnu packages base)
>  #:use-module (gnu packages compression)
>  #:use-module (gnu packages fontutils)
>  #:use-module (gnu packages perl)
>  #:use-module (gnu packages pkg-config)
>  #:use-module (gnu packages python)
>  #:use-module (gnu packages xorg)
>  #:use-module (gnu packages zip))
>
>And then the package definitions should follow, in this manner:
>
>(define-public font-wqy-microhei
>  (package
>(name "font-wqy-microhei")
>...))
>
>Replace "..." by what you copied from font-wqy-zenhai.


Re:Re: guix system reconfigure can not work.

2017-01-13 Thread tumashu










At 2017-01-13 19:06:31, "John Darrington" <j...@darrington.wattle.id.au> wrote: 
>On Fri, Jan 13, 2017 at 04:48:20PM +0800, tumashu wrote: > "guix system 
reconfigure" can't work well in my machine now, the below is output: > 
-- > 
bash-4.4$ sudo guix system reconfigure guixsd-helper.scm > ?? > > ** wait 
long time, about 5 min.** > > substitute: updating list of substitutes from 
'https://mirror.hydra.gnu.org'... > substitute: updating list of substitutes 
from 'https://mirror.hydra.gnu.org'... 100.0% > The following derivation will 
be built: > /gnu/store/plhaxy8p26sxircfmx0vs05a3arva6v9-grub.cfg.drv > 
/gnu/store/aqhdcr06max068sc8k3gvqqdvlb8l9dl-system > 
/gnu/store/4dbisd6wcg494c70yn6y7jrydbw7giph-grub.cfg > 
/gnu/store/cgl8v4q7x8zc09r9d39l7pgd9cx904f8-grub-2.02beta3 > activating 
system... > making '/gnu/store/aqhdcr06max068sc8k3gvqqdvlb8l9dl-system' the 
current system... > setting up setuid programs in '/run/setuid-programs'... > 
populating /etc from /gnu/store/ba01asqiwhmwrq8scisg3dpkpn8yknyp-etc... > 
usermod > usermod > usermod > usermod > 
usermod > usermod > usermod > usermod > 
usermod > guix system: loading new services: file-system-/mnt/backup1 
file-system-/mnt/backup2... > shepherd: Evaluating user expression 
(register-services (primitive-load "/gn...") #). > > 
looong time and I have to C-c C-c it.* > >Actually 
I had the same problem doing "guix system reconfigure" yesterday. It took well 
over >15 minutes. (nothing needed to be downloaded or compiled - that 15 mins 
seemed to be purely to >build the configuration) - I had never experienced such 
a long wait before. > >It did complete ok eventually though. >

I took long time too... using label only let command works.

 >J' > >-- >Avoid eavesdropping. Send strong encrypted email. >PGP Public key 
 >ID: 1024D/2DE827B3 >fingerprint = 8797 A26D 0854 2EAB 0285 A290 8A67 719C 
 >2DE8 27B3 >See http://sks-keyservers.net or any PGP keyserver for public key. 
 >>

Re:Re: guix system reconfigure can not work.

2017-01-13 Thread tumashu










At 2017-01-13 17:42:01, "Ricardo Wurmus" <rek...@elephly.net> wrote: >tumashu 
你好! > >> guix system: loading new services: file-system-/mnt/backup1 
file-system-/mnt/backup2... >> shepherd: Evaluating user expression 
(register-services (primitive-load "/gn...") #). >> >> 
looong time and I have to C-c C-c it.* > >Did it 
actually mount the file systems at this point? > >[…] > >> ;; Assuming /dev/sdX 
is the target hard disk, and "my-root" >> ;; is the label of the target root 
file system. >> (bootloader (grub-configuration (device "/dev/sda"))) >> >> 
(swap-devices '("/dev/sda5")) >> >> (file-systems (cons* (file-system >> 
(device "/dev/sda1") >> (title 'device) >> (mount-point "/") >> (type "ext4")) 
>> (file-system >> (device "/dev/sda7") >> (title 'device) >> (mount-point 
"/home") >> (type "ext4")) >> (file-system >> (device "/dev/sda8") >> (title 
'device) >> (mount-point "/mnt/backup1") >> (type "ext4")) >> (file-system >> 
(device "/dev/sda6") >> (title 'device) >> (mount-point "/mnt/backup2") >> 
(type "ext4")) >> %base-file-systems)) > >I suggest not to use these arbitrary 
device nodes. Use labels or uuids, >because unlike device nodes they are 
stable. > >You will also have to make sure that the devices already contain 
file >systems. Guix is not going to format the disks for you.

When I use 'lable to mount instead of 'device, it seem to work again, thanks 
very much!

 > >-- >Ricardo / 吴珂多 > >GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC 
 > >>https://elephly.net >

guix system reconfigure can not work.

2017-01-13 Thread tumashu
"guix system reconfigure"  can't work well in my machine now,   the below is 
output:
--
bash-4.4$ sudo guix system reconfigure guixsd-helper.scm
密码:

** wait long time, about 5 min.**

substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'...
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'... 
100.0%
The following derivation will be built:
   /gnu/store/plhaxy8p26sxircfmx0vs05a3arva6v9-grub.cfg.drv
/gnu/store/aqhdcr06max068sc8k3gvqqdvlb8l9dl-system
/gnu/store/4dbisd6wcg494c70yn6y7jrydbw7giph-grub.cfg
/gnu/store/cgl8v4q7x8zc09r9d39l7pgd9cx904f8-grub-2.02beta3
activating system...
making '/gnu/store/aqhdcr06max068sc8k3gvqqdvlb8l9dl-system' the current 
system...
setting up setuid programs in '/run/setuid-programs'...
populating /etc from /gnu/store/ba01asqiwhmwrq8scisg3dpkpn8yknyp-etc...
usermod:无改变
usermod:无改变
usermod:无改变
usermod:无改变
usermod:无改变
usermod:无改变
usermod:无改变
usermod:无改变
usermod:无改变
guix system: loading new services: file-system-/mnt/backup1 
file-system-/mnt/backup2...
shepherd: Evaluating user expression (register-services (primitive-load 
"/gn...") #).

looong time and I have to C-c C-c it.*

-

2. In the console, the below information is showed:

e2fsck: cannot continue, aborting
...
File system check on /dev/sda8 failed


3.  This is my guixsd config:
-
bash-4.4$ cat guixsd-helper.scm
;; This is an operating system configuration template
;; for a "desktop" setup with GNOME and Xfce where the
;; root partition is encrypted with LUKS.

(use-modules (gnu) (gnu system nss))
(use-service-modules desktop)
(use-package-modules certs gnome)

(operating-system
 (host-name "tumashu")
 (timezone "Asia/Shanghai")
 (locale "zh_CN.UTF-8")

 ;; Assuming /dev/sdX is the target hard disk, and "my-root"
 ;; is the label of the target root file system.
 (bootloader (grub-configuration (device "/dev/sda")))

 (swap-devices '("/dev/sda5"))

 (file-systems (cons* (file-system
   (device "/dev/sda1")
   (title 'device)
   (mount-point "/")
   (type "ext4"))
  (file-system
   (device "/dev/sda7")
   (title 'device)
   (mount-point "/home")
   (type "ext4"))
  (file-system
   (device "/dev/sda8")
   (title 'device)
   (mount-point "/mnt/backup1")
   (type "ext4"))
  (file-system
   (device "/dev/sda6")
   (title 'device)
   (mount-point "/mnt/backup2")
   (type "ext4"))
  %base-file-systems))

 (users (cons (user-account
   (name "feng")
   (comment "Feng Shu")
   (group "users")
   (supplementary-groups '("wheel" "netdev"
   "audio" "video"))
   (home-directory "/home/feng"))
  %base-user-accounts))

 ;; This is where we specify system-wide packages.
 (packages
  (append (map specification->package
   '("gvfs" "nss-certs"
 "font-wqy-zenhei"
 "font-ubuntu"
 "icecat"))
  %base-packages))

 ;; Add GNOME and/or Xfce---we can choose at the log-in
 ;; screen with F1.  Use the "desktop" services, which
 ;; include the X11 log-in service, networking with Wicd,
 ;; and more.
 (services (cons* (xfce-desktop-service)
  %desktop-services))

 ;; Allow resolution of '.local' host names with mDNS.
 (name-service-switch %mdns-host-lookup-nss))
--




Re:Re: About flashplayer

2017-01-13 Thread tumashu
Ok, thanks for the information!


At 2017-01-13 16:33:35, "Chris Marusich" <cmmarus...@gmail.com> wrote:
>tumashu  <tuma...@163.com> writes:
>
>> can we package a installer-helper, like:
>> https://packages.debian.org/stretch/flashplugin-nonfree
>
>Guix (and GuixSD) adheres to the Free System Distribution Guidelines
>[1], which states:
>
>"A free system distribution must not steer users towards obtaining any
>nonfree information for practical use, or encourage them to do so. The
>system should have no repositories for nonfree software and no specific
>recipes for installation of particular nonfree programs."
>
>As I understand it, the purpose of that installer-helper is solely to
>aid in the installation of Adobe Flash Player, which is not free
>software.  It has no other use.  Therefore, we will not package it.
>
>[1] https://www.gnu.org/distros/free-system-distribution-guidelines.html
>
>On the other hand, GNU Gnash IS free software, so I'm sure a patch to
>add it would be welcome!
>
>-- 
>Chris


Re:Re: Re: About flashplayer

2017-01-13 Thread tumashu


At 2017-01-13 16:31:46, "John Darrington" <j...@darrington.wattle.id.au> wrote: 
>On Fri, Jan 13, 2017 at 03:06:41PM +0800, tumashu wrote: > > If we can package 
Adobe Flash Player, can we package a installer-helper, like: 
https://packages.debian.org/stretch/flashplugin-nonfree > >But as Chris said, 
unfortunately we cannot. :(

but .

https://packages.debian.org/stretch/flashplugin-nonfree  is just a command 
writen with shell script,  user can use this command to download Adobe Flash 
Player and install it,  it seem to be a free script :-) 


Re:Re: About flashplayer

2017-01-12 Thread tumashu










At 2017-01-13 14:58:45, "Chris Marusich" <cmmarus...@gmail.com> wrote: >tumashu 
<tuma...@163.com> writes: > >> How to install flashplayer or gnash on guixsd? > 
>It looks like GNU Gnash is not available yet. It's waiting for you to >package 
it! :-) > 
>https://www.gnu.org/software/guix/manual/html_node/Defining-Packages.html#Defining-Packages
 > >When you say "flashplayer", are you referring to Adobe Flash Player [1]? 
>If so, it will probably not be packaged in Guix, since the license under 
>which it is distributed appears to be a non-free license [2]. (For >example, 
that license says things like "You may install and Use one copy >of the 
Software on your Compatible Computer," and "This license does not >grant you 
the right to sublicense or distribute the Software".) >

If we can package Adobe Flash Player,  can we package a  installer-helper, 
like: https://packages.debian.org/stretch/flashplugin-nonfree

 >[1] https://get.adobe.com/flashplayer/ > >[2] 
 >>https://wwwimages2.adobe.com/www.adobe.com/content/dam/Adobe/en/legal/licenses-terms/pdf/PlatformClients_PC_WWEULA-en_US-20150407_1357.pdf
 > > >-- >Chris

Suggest add font: font-wqy-microhei

2017-01-12 Thread tumashu
wqy-microhei is a very useful chinese fonts, suggest add it to guix.

1. http://wenq.org/wqy2/index.cgi?MicroHei_BigBang_README
2. 
http://downloads.sourceforge.net/project/wqy/wqy-microhei/0.2.0-beta/wqy-microhei-0.2.0-beta.tar.gz?r=http%3A%2F%2Fwenq.org%2Fwqy2%2Findex.cgi%3FDownload=1484272152_mirror=nchc


About flashplayer

2017-01-12 Thread tumashu
How to install flashplayer or gnash on guixsd?


Re:Re: emacs.scm: Suggest add emacs-next or emacs-snapshot

2015-11-12 Thread tumashu
1. emacs can't build emacs.git's snapshot for some reason
2. I think let guile-emacs inherit emacs-snapshot or emacs-next is more 
reasonable, for  guile-emacs is a kind of emacs-next.

By the way, when I use the below command:
 
   guix build emacs-snapshot --with-source=./emacs-snapshot-2015.tar.gz

to build a new emacs-snapshot, How can i install it?  I can't find any help on 
manual

At the momenti, i only use guix as a tool to build emacs-snapshot. but I find 
it is not easy use as evm, i have to switch back evm.


At 2015-11-12 20:52:47, "l...@gnu.org (Ludovic" <=?utf-8?Q?Court=C3=A8s?=)> 
wrote:
>tumashu <tuma...@163.com> skribis:
>
>> Suggest add emacs-next or emacs-snapshot and let guile-emacs inherit it, The 
>> reason is that
>> user can use it build emacs from emacs.git conveniently, for example:
>>
>> guix build emacs-snapshot --with-source=./emacs-snapshot-2015.tar.gz
>
>To use --with-source, all you need to do is to rename the tarball to
>‘emacs-2015.tar.gz’; after that, you can run:
>
>  guix build emacs --with-source=emacs-2015.tar.gz
>
>That’s because --with-source expects the tarball name to match the
>package name (info "(guix) Invoking guix build").
>
>Now, it might make sense to also provide an ‘emacs-snapshot’ package,
>built from a Git checkout and regularly updated.  Would you like to try
>that?
>
>I think the package would simply inherit from ‘guile-emacs’ and provide
>a different ‘name’, ‘version’, and ‘source’.
>
>Thanks,
>Ludo’.


Re:Re: The problem of "guix build emacs --with-source=./emacs"

2015-11-12 Thread tumashu


I don't know the reason, my guix store has broken and can't build 
emacs-snapshot, I remember it it the problem of pipline.

When I do the below job:

 git clone file:///path/to/my-emacs  /path/to/emacs-new --depth=1

the new repo can build :-)  so I think the problem may be the size of 
repo



At 2015-11-12 20:49:13, "l...@gnu.org (Ludovic" <=?utf-8?Q?Court=C3=A8s?=)> 
wrote: >tumashu <tuma...@163.com> skribis: > >> When I use the below command to 
build emacs from emacs.git >> >> guix build emacs --with-source=./emacs (emacs 
dir is git repo) >> >> Build fail, after i remove the .git, build success. > 
>Could you explain how it fails exactly, and post the tail of the >build log? > 
>> The repo of emacs.git is 1.5G, is it the reason? > >I don’t think so. That 
certainly makes it a bad option, though. >

 >Thanks, >Ludo’.

emacs.scm: Suggest add emacs-next or emacs-snapshot

2015-11-11 Thread tumashu
Suggest add emacs-next or emacs-snapshot and let guile-emacs inherit it, The 
reason is that
user can use it build emacs from emacs.git conveniently, for example:

guix build emacs-snapshot --with-source=./emacs-snapshot-2015.tar.gz



The problem of "guix build emacs --with-source=./emacs"

2015-11-11 Thread tumashu
When I use the below command to build emacs from emacs.git

guix build emacs --with-source=./emacs   (emacs dir is git repo)

Build fail, after i remove the .git, build success.

The repo of emacs.git is 1.5G, is it the reason?