Re: Can someone explain to me what happened?

2019-12-29 Thread Jone
I understood you. It seems. The fact is that I could not  login my old
configuration on another machine.
What of dependencies of GDM? Maybe will be added some more garbage? I don't
need it, it can be fixed, but it turns out that the system is unfriendly.


Corrupted Grub after last reconfigure. How to repair?

2019-11-13 Thread Jone
Hi all! Last reconfigure passed without errors, but no messages about grub
installation. After reboot - grub rescue prompt. For example, some command
output in rescue console:
insmod search
# ok, silent
insmod linux
error: symbol 'some_symbol' not found

cd /mnt/boot/; ls -R
.:
grub
./grub:
fonts  grub.cfg  grubenv  i386-pc  locale  themes
./grub/fonts:
unicode.pf2
./grub/i386-pc:
acpi.mod gcry_blowfish.mod  lzopio.mod  .. # and other modules
./grub/locale:
ast.mo  d...@hebrew.mo  e...@greek.mo .. # and other locales
./grub/themes:
starfield
./grub/themes/starfield:
blob_w.png  boot_menu_sw.png README .. # other files

I was able to boot from liveCD Antix and cannot boot from any usb device,
despite the fact that the BIOS is set the boot order as first: DVD-ROM ->
second: removable dev -> last: system SSD (with GuixSD and /boot
directory). What opinions?


Re: Unexpected results with Guix.

2019-11-07 Thread Jone
Solved! Thanks.
(I forgot about ANOTHER profile, created a year ago. All is from there..)


Re: Unexpected results with Guix.

2019-11-07 Thread Jone


> That is what you need to delete.

But this should do himself Guix? But ok, trying to delete:

sudo rm -rf /gnu/store/zxqr8afp3rpd2r3g9x41sqg5mx525355-profile
rm: cannot remove ... Read-only file system
 - for all files in /gnu/store/zxqr8afp3rpd2r3g9x41sqg5mx525355-profile







Re: Unexpected results with Guix.

2019-11-07 Thread Jone


We seem to be going in circles =)
> for r in $(guix gc --list-roots); do ls -l $r; done

lrwxrwxrwx 1 jone users 51 Oct 30 14:31 
/var/guix/profiles/per-user/jone/current-guix-16-link ->
/gnu/store/bcbvw5n1pna08pj7zqfflb5zs9yfj90y-profile
lrwxrwxrwx 1 jone users 51 Oct 30 14:31 
/var/guix/profiles/per-user/jone/current-guix-16-link ->
/gnu/store/bcbvw5n1pna08pj7zqfflb5zs9yfj90y-profile
lrwxrwxrwx 1 jone users 51 Nov  5 20:23 
/var/guix/profiles/per-user/jone/guix-profile-163-link ->
/gnu/store/bg3x5nbsrb79lr7bz79fwq1w3kg4pvic-profile
lrwxrwxrwx 1 jone users 51 Nov  5 20:23 
/var/guix/profiles/per-user/jone/guix-profile-163-link ->
/gnu/store/bg3x5nbsrb79lr7bz79fwq1w3kg4pvic-profile
lrwxrwxrwx 1 jone users 51 Oct 30 14:31 
/var/guix/profiles/per-user/jone/current-guix-16-link ->
/gnu/store/bcbvw5n1pna08pj7zqfflb5zs9yfj90y-profile

What is '-16-link'? - This:
ls /gnu/store/bcbvw5n1pna08pj7zqfflb5zs9yfj90y-profile/bin/
  guix  guix-daemon
guix gc -D /gnu/store/bcbvw5n1pna08pj7zqfflb5zs9yfj90y-profile
  guix gc: error: cannot delete path .. since it is still alive


Not long ago I deleted 'file-roller'. It turns out that it is not so easy to do!
guix-gc-refcount.sh roller

● /gnu/store/645gvb541g80ji2ls8cn7gpfbafpb9zp-file-roller-3.26.2
/gnu/store/0nqcsqjqdl0fmqhij8mj3q09bji4r8y1-gtk-icon-themes
/gnu/store/2lwj95g0k865imkcmjd8kgfyj5lymrh1-xdg-desktop-database
/gnu/store/3bnz2q4q5kpssw44dxgw7n437h6f58h9-gtk-icon-themes.drv
/gnu/store/4lkjn2f81dd3ywqd5za2agx419lg6m58-glib-schemas
/gnu/store/5hg2n5r3gap8fsfr0sv0anvah7bgi3nm-xdg-mime-database.drv
/gnu/store/68yl0dzqqpy1ijr80sf7xp35c0vxnas9-xdg-desktop-database.drv
/gnu/store/6w0pm333qcwnyqb2g3z4rs9mjciymjqd-glib-schemas
/gnu/store/8x0ipsgl2dhdi7n1psrh8dssv8dh39dd-xdg-desktop-database
/gnu/store/dll3sbb6saqj13a2pz84bq5132wyg3pi-info-dir.drv
/gnu/store/hjl4vj9f8gvlff6z7c54psvk6dimpc10-ca-certificate-bundle.drv
/gnu/store/i5wppk3prg7xkfc8l6jb0g82k2nw94a5-gtk-im-modules.drv
/gnu/store/i9kb46v1wd7jgm6zv1ighq6cqc2528av-fonts-dir.drv
/gnu/store/lzy15m5054qa9dgdkri3k9gvhjpm92a0-profile.drv
/gnu/store/njwpq4ywz17rgvvbdds20cndrgwsrcxs-gtk-icon-themes
/gnu/store/qrx5y5z44z5qv1fc2r5cqnh7hr0ncq7m-profile
/gnu/store/w34gzihyq87mgaiixrxq8414j9s2z8v9-manual-database.drv
/gnu/store/xhnpa2bawb2mbzzl2zy5x5diph1r7ca6-glib-schemas.drv
/gnu/store/zxqr8afp3rpd2r3g9x41sqg5mx525355-profile

● /gnu/store/qrx5y5z44z5qv1fc2r5cqnh7hr0ncq7m-profile
NO REFERRERS

● /gnu/store/zxqr8afp3rpd2r3g9x41sqg5mx525355-profile
NO REFERRERS

- the same thing





Re: Unexpected results with Guix.

2019-11-06 Thread Jone


> Please also try `guix gc --referrers`.

That's right. I wrote a simple script, which shows it:

#!/bin/sh
if [ -z "$1" ]
then exit 1
fi
cprof=$(readlink -f ~/.guix-profile)
init=/gnu/store/*-$1*/
rtest="$(eval echo $init)"   # trick!
if [ "$rtest" = "$init" ]
then init=$1
fi
for f in $init
do
f=${f%/}
ref="$(guix gc --referrers $f | grep -v $f)" 
if echo "$ref" | grep -q $cprof
then
echo $f in CURRENT profile!
exit
else
echo ● $f 1>&2
if ((${#ref} > 10))
then echo "$ref" | grep --color -e ".*-system" -e "^"
else echo NO REFERRERS 1>&2
fi
echo
fi
## and recursively
for j in $(echo "$ref" | grep -E 'profile$')
do eval $0 $j
done
done
exit

- Results for 'icecat':
~/Desktop> guix-gc-refcount.sh icecat
● /gnu/store/50530hgnzkxgkqciip68dn7v23cslw1c-icecat-60.8.0-guix1
/gnu/store/8x0ipsgl2dhdi7n1psrh8dssv8dh39dd-xdg-desktop-database
/gnu/store/njwpq4ywz17rgvvbdds20cndrgwsrcxs-gtk-icon-themes
/gnu/store/zxqr8afp3rpd2r3g9x41sqg5mx525355-profile

● /gnu/store/zxqr8afp3rpd2r3g9x41sqg5mx525355-profile
NO REFERRERS

- Results for my own package 'wdfs':
guix-gc-refcount.sh wdfs
/gnu/store/7j1zhlwqjmhyvr7mg8il02xvqvd9yfmz-wdfs-1.4.2 in CURRENT profile!

Incomprehensibly.. 



Re: Unexpected results with Guix.

2019-11-02 Thread Jone
Thanks for reminder about /var/guix/profiles.

❯ guix package -l | grep Generation
Generation 158  Nov 02 2019 15:27:19(current)
❯ ls -1 /var/guix/profiles/per-user/jone/
current-guix
current-guix-16-link
guix-profile
guix-profile-158-link
  current-guix -> current-guix-16-link
  current-guix-16-link -> /gnu/store/bcbvw5n1pna08pj7zqfflb5zs9yfj90y-profile
  guix-profile -> guix-profile-158-link
  guix-profile-158-link -> /gnu/store/wb3b3mj3spny5jx2bj00imrwf5bjw373-profile
❯ ls /gnu/store/bcbvw5n1pna08pj7zqfflb5zs9yfj90y-profile/bin/
guix  guix-daemon


But it didn't give me any useful information. Then I tried another command:
guix gc --list-busy | grep icecat
/gnu/store/ngsswh27mqxpynwrw6qyjsc3iql1ma3i-icecat-68.2.0-guix0-preview2

- Wow! Then reboot, and again 'guix gc' -> icecat-68.2.0 finally deleted!
But that's only 50% of the solution:
guix gc: error: cannot delete path 
`/gnu/store/50530hgnzkxgkqciip68dn7v23cslw1c-icecat-60.8.0-guix1'
since it is still alive

Any ideas?



Re: Unexpected results with Guix.

2019-11-02 Thread Jone
> How do you list your generations?

❯ guix package -l | grep Generation
Generation 158  Nov 02 2019 15:27:19(current)

> But it won't work since your old icecat is still live.
It seems so:

❯ guix gc -d /gnu/store/50530hgnzkxgkqciip68dn7v23cslw1c-icecat-60.8.0-guix1/
guix gc: warning: '-d' as an alias for '--delete' is deprecated; use '-D'
finding garbage collector roots...
guix gc: error: cannot delete path 
`/gnu/store/50530hgnzkxgkqciip68dn7v23cslw1c-icecat-60.8.0-guix1'
since it is still alive

- but I can’t understand WHY?!

> You can see what requires it with guix gc -R ..
183 lines.. this does not give an any answer. I'm at a loss..







Re: Unexpected results with Guix.

2019-11-02 Thread Jone
Tobias, in answer to Pierre I have added some additional information.

I read the help and manual (but partially), and anywhere is no description of 
my case.
Or in other words, I didn't understand what I didn't understand! Sorry. (It 
would be very
nice in addition to the manual to have any simple how-to).




Re: Unexpected results with Guix.

2019-11-02 Thread Jone
Thanks, I figured out the basic things.

> If the old icecat is still referenced by an old profile, you'll have to
> remove this profile first.
> guix package --delete-generations=1m

Currently the profle contains only one generation, previous generations
was deleted immediately after command 'guix package -u icecat'. This is mistake?

❯ guix gc
finding garbage collector roots...
deleting garbage...
deleting `/gnu/store/trash'
deleting unused links...
note: currently hard linking saves 2475.90 MiB
guix gc: freed 0 MiBs
❯ guix gc /gnu/store/50530hgnzkxgkqciip68dn7v23cslw1c-icecat-60.8.0-guix1/
guix gc: error: extraneous arguments: /gnu/store/50530hgnz...
- no any changes!






Unexpected results with Guix.

2019-11-02 Thread Jone
Hello, peolpe! I cannot understand results of this simple sequence of
actions:
First, update Icecat: guix package -u icecat
and then later remove it: guix package -r icecat
and view /gnu/store:

du -hs -l -t 1M /gnu/store/* | grep -E 'rust|icecat'
274M/gnu/store/0p4blr576rjzpyybfmvygny6ra641w0p-rust-1.37.0
157M/gnu/store/50530hgnzkxgkqciip68dn7v23cslw1c-icecat-60.8.0-guix1
169M
/gnu/store/ngsswh27mqxpynwrw6qyjsc3iql1ma3i-icecat-68.2.0-guix0-preview2

I used to deal only with rpm package manager - there unnecessary
dependencies would be removed automatically.
How do I get the same result with Guix? I don't have much space on the
partition =)


Re: Is that normal??

2019-10-20 Thread Jone
Hardlinks! I hadn't thought of that :) Thanks.

> To remove those that are no longer needed by any other package in any of
> your profile generations run “guix gc”.  You may want to delete unused
> profile and system generations first, though.

Well, that's obvious. 'guix gc' is executed by cron, and before listing
above I specifically executed 'guix package --delete-generations && guix gc
--collect-garbage'. In other words, in the first case, the result is
already after all possible purges, usually I leave only the last generation
and do not store the previous ones.


Is that normal??

2019-10-20 Thread Jone
Hi communiti!
I don't fully understand Guix in this case:

❯ guix pull -l | grep Generation
   Generation 15Sep 28 2019 17:10:57(current)
❯ guix package -l | grep Generation
   Generation 155 Oct 20 2019 09:29:25(current)
❯ ls -1d /gnu/store/*-gtk+-2.24.32/
/gnu/store/0v0dwirkd5sixh91n0qby9jzjh8r6m6a-gtk+-2.24.32
/gnu/store/25sxqwh2x0j04z59yk49nrliz61cwrhd-gtk+-2.24.32
/gnu/store/386h8ljfhzlpwxjh1682pqh2gxzrxn08-gtk+-2.24.32
/gnu/store/3z1f2phvbzzjlxr1gvmf5qjprfp5jb7k-gtk+-2.24.32
/gnu/store/4sdyqsy2np503akvk182xr3510067zgz-gtk+-2.24.32
/gnu/store/6yabql5aiwnkaqbsi7mvwqiahaswl5ai-gtk+-2.24.32
/gnu/store/bfa9122w70civ5bz4985h1cli20p0q1b-gtk+-2.24.32
/gnu/store/ia1vzawl48yqfyg6v2zfxv47kisj49cp-gtk+-2.24.32
/gnu/store/nzncsbi6d58k7zqzsr4rxyn8inn8pjhm-gtk+-2.24.32
/gnu/store/wlc89m9yrb65mjbgw0zkabynms0j0xqa-gtk+-2.24.32
* with the same subfolders *gtk+-2.24.32/{bin,etc,include,lib,share}
** and some with the same size

What about deduplication and why different hashes?


Installing Perl module with C library dependencies

2019-10-10 Thread Jone
Hi community!
My problem:
❯ cpanm -i Term::ReadLine::Gnu
  Configure failed... See build.log for details.
  Could not find neither libtermcap, libtinfo, libncurses, or libcurses.
❯ guix package -p /run/current-system/profile -I | grep ncurses
   ncurses6.1out
/gnu/store/4h03mp5nggsblscs6j0n7s6sbpfy6kxh-ncurses-6.1

I do not know what to do in this case.
Well.. maybe build a package? Ok:

(define-module (gnu packages perl)
  #:use-module (srfi srfi-1)
  #:use-module (guix licenses)
  #:use-module (gnu packages)
  #:use-module (guix packages)
  #:use-module (guix download)
  #:use-module (guix utils)
  #:use-module (guix build-system gnu)
  #:use-module (guix build-system perl)
  #:use-module (gnu packages base)
  #:use-module (gnu packages compression)
  #:use-module (gnu packages freedesktop)
  #:use-module (gnu packages less)
  #:use-module (gnu packages perl-check)
  #:use-module (gnu packages perl-compression)
  #:use-module (gnu packages perl-web)
  #:use-module (gnu packages pkg-config)
  #:use-module (gnu packages textutils))
(define-public perl-term-readline-gnu
  (package
   (name "perl-term-readline-gnu")
   (version "1.36")
   (source
(origin
 (method url-fetch)
 (uri (string-append
   "mirror://cpan/authors/id/H/HA/HAYASHI/Term-ReadLine-Gnu-"
   version
   ".tar.gz"))
 (sha256
  (base32
   "09b9mcmp09kdfh5jaqdr528yny8746hvn3f185aqd6rw06jgf24s"
   (build-system perl-build-system)
   (home-page "https://metacpan.org/release/Term-ReadLine-Gnu;)
   (synopsis "Perl extension for the GNU Readline/History Library")
   (description "@code{Term::ReadLine::Gnu} extension for the GNU
Readline/History Library.")
   (license (package-license perl

❯ guix package -f  perl-term-readline-gnu.scm
   perl-term-readline-gnu.scm:25:4: error: perl: unbound variable
   hint: Did you forget a `use-modules' form?

Hmm, there's something wrong here. But section 'define-module' is a from
perl.scm. And what to do?


Re: Customize PAM configuration

2019-08-10 Thread Jone
Important notice, thank you!
I have read the detailed answer on this page:
https://stackoverflow.com/questions/4129631/linux-securing-environment-variables
and suppose I could use file instead variable.

An alternative solution would probably be to configure
sudoers file. But here comes the problem with running
scripts with root privileges..


Re: Customize PAM configuration

2019-08-10 Thread Jone
Thanks, Timothy! And sorry for my bad english.

> I don’t fully understand what you are trying to do

It's elementary! One password for any "local services", such as sudo, GPG
encryption, etc. The password is entered once at login and exported
to environment variable. As a result, password is available during the user
session (for some automation with bash scripts).
>From a security perspective, this well normal decision, in my opinion.

Thanks for this example. I haven't used G-Expressions yet. In my case, the
final
script will of course be ordinary bash script (maybe in ~/).

What can you say about this idea?


Customize PAM configuration

2019-08-09 Thread Jone
Hello! I want enter user/root password only once per session. To do this,
it will probably be convenient to export the password to shell variable.
For example, adding this to PAM configuration file:

   auth sufficient pam_exec.so expose_authtok /path/to/script.sh

But how to write it in system-config.scm? Sorry, I couldn't find any examples.


Sorry, xfcfe4-popup-* not works.

2019-05-20 Thread Jone
As example my attempts to run xfce4-popup-windowmenu. But..
"strace xfce4-panel -o log.winmenu --plugin
event=windowmenu:popup:bool:true"  not understood.

I would like to add this to hotkey, but there are mistakes. now it
doesn't work anymore?



Any questions yet

2019-05-08 Thread Jone
Hello, people! I don't even know exactly what I would like to ask))
Well, for example: two calls "guix pull" as root and as user - what
does the first if the root has 0 packages (besides guix itself,
right?) But how is this related in the future? I still do not
understand what I do not understand))

I know Scheme/Guile only at the level of a ordinary user, so I ask
such stupid questions, sorry. And English is so-so)) But I love
freedom! Thanks.

Yes, and also: I wrote a couple of package definitions for several
XFCE plugins that are not in the repositories. Is it impossible to
send somewhere? True, the versions is old..



Error system reconfigure

2019-02-03 Thread Jone
Current Guix, system reconfigure passed, but:

1. Mount/booting errors.
(file-systems (cons*
(file-system
(mount-point "/")
(type "ext4")
(device (file-system-label "my-root"))
(options "defaults,noatime 0 1"))
(file-system
(mount-point "/home")
(type "ext4")
 (device (file-system-label "my-home"))
(options "defaults,noatime 0 0"))
--

  "unrecognized mount option default or missing value" many times on
booting, nothing is mounted.

2. Mcron
https://www.gnu.org/software/guix/manual/en/guix.html#Scheduled-Job-Execution
- so, too, does not work: message "mcron-service deprecated, use
mcron-service-type instead"

3. Bulding locale.. this is the little things (only '.UTF-8', but not '.utf-8').



Re: Sorry, stupid question about guix pull

2019-01-09 Thread Jone


Thank you! I did not understand before what a system profile is. As such
'root profile' in my system and no, there is only a user profile and
system profile (i. e. 0 packages at root).

But it seems the upgrade errors were on stage 'guix package -u' at
user.. Ok, I'll try with more attention. 




Re: Sorry, stupid question about guix pull

2019-01-08 Thread Jone
> this looks like it's part of an operating-system declaration. Is that right?

That's right.

> When you run guix pull, a new guix is installed for the user who ran it.

And who updates the system libraries and kernel? Root? Well, what is
stated in  operating-system declaration?

> Try 'guix system reconfigure ' instead.

A! That is the question! So what to use for the upgrade system?!
Upgrade or reconfigure? My operating-system declaration is the same.
Not perfect, but I'll fix it later, with the help of 'reconfigure'
(add noatime options as example).

> I'm not sure what that is... can you give a more concrete example?

I'll leave it for later, it seems particular.

> I hope I could help a little :)

In general, I understand everything. But! Update 0.15 -> 0.16 did not
work. Errors are not saved, I will try again.



Sorry, stupid question about guix pull

2019-01-08 Thread Jone
I need execute this as root? For upgrade system libraries and kernel.
Part of my config:

(packages
 (let ((trash (map specification->package
   '("zile" "wireless-tools"
   (append (map specification->package
'("xfce" "slim" "gvfs" "xrandr" "unzip"
  "emacs" "w3m" "emacs-guix" "alsa-lib"
  "moreutils" "mlocate" "tree" "file"
  "autobuild" "autoconf" "autogen" "automake" "ccache" "cmake"
"gcc-toolchain" "make"
  ;;; and dependences - visibly!
  "gnutls" "ncurses" "libx11" "gtk+" "imagemagick" "acl" "zlib"
"dbus" "glibc-utf8-locales"
  ;;; new/additional
  "alsa-utils" "nss-certs"))
   (remove (lambda (pkg)
(memq pkg trash))
   %base-packages  ;;  %base-packages selected here!

I don't really understand how it works, but it was OK before, and now
I can't upgrade the system (the current version is 0.15).
Many libraries have not been updated with this config when you try to
update as 'su -l; guix pull'.

What is my mistake - I would like to use simple package names, but I
want them to be the latest versions. And after 'guix pull' I run 'guix
package -u', but no upgrade.

I see a message when I try to update individual packages: "Need
upgrade X with Y".



Upgrade 0.15 to .16 it doesn't work

2018-12-30 Thread Jone
Сannot upgrade system, i. g. guix. Its a first problem with upgrade from 0.13.
 I will try again to provide a output.
And I didn't read the manual carefully - a little time, sorry.  I'll
do this more closely later.

And additionally I would like to see two things:
1. FAQ
2. external repo :)

(About 2: Nix export  - it doesn't work for me either. But we'll see:
XFCE, Whisker Menu - no sign of him.)



Fwd: shepherd.log - ntpd - what?

2018-07-21 Thread Jone
-- Forwarded message --
From: Jone 
Date: 2018-07-21 16:46 GMT+00:00
Subject: Re: shepherd.log - ntpd - what?
To: Pierre Neidhardt 


Ah, sorry, my mcron is brocken -> rottlog not work.

> Can you share your Guix system config

Yes, but it's long:

;; Version 04
(use-modules
 (srfi srfi-1);; «(remove (lambda»
 (guix)
 (guix gexp)
 (gnu)
 (gnu packages)
 (gnu packages bash);; «extra-special-file "/bin/sh"»
 (gnu packages search);; «#$package-name»
 (gnu packages linux);; ???
 (gnu packages gnome);; fix «colord: unbound variable»
 (gnu services mcron);; <- manual
 (gnu system locale)
 (gnu system nss))
(use-service-modules networking desktop admin)
(use-package-modules base bootloaders ssh)

(define updatedb-job
  #~(job '(next-hour '(10))  ;; at 10AM every day
 (lambda ()
   (execl (string-append #$mlocate "/bin/updatedb")
  "updatedb"
  (string-append
   "--require-visibility 0 -o /var/mlocatedb"
   "--prunepaths=\"/tmp /var/tmp /var/cache /var/lock
/var/run /var/spool\""
   "--prunenames=\".cache .Cache cache Cache\"")
(define fstrim-job
  #~(job "10 10 * * 6"  ;; weekly, at 10:10
 "fstrim -a"))
(define store-config-service
  ;;; Store the current configuration with the generation.
  (simple-service 'store-my-config etc-service-type
  `(("system-config.scm" ,(local-file (assoc-ref
(current-source-location)

 'filename))
;; Main
(operating-system
  (host-name "guix")
  (timezone "Europe/Moscow")
  (locale "ru_RU.utf8")
  (locale-definitions (list (locale-definition (source "en_US")
   (name "en_US.utf8"))
(locale-definition (source "ru_RU")
   (name "ru_RU.utf8"
  (bootloader (bootloader-configuration
   (bootloader grub-bootloader)
   (target "/dev/sdb");;
<
CHECK THIS!
   (menu-entries
(list (menu-entry
   (label "Old")
   (linux "/boot/vmlinuz-4.14.9-calculate")
   (linux-arguments '("root=/dev/sda3"))
   (initrd
"/boot/initramfs-4.14.9-calculate.img"))
  ;;; Nvidia nForce
  (initrd-modules (cons* "sata_nv"
 "pata_acpi" %base-initrd-modules))



  (file-systems (cons*
 (file-system
   (device (file-system-label "my-root"))  ;; sdb2
   (mount-point "/")
   (type "ext4"))
 (file-system
   (device (file-system-label "my-home"))  ;; sdb1
   (mount-point "/home")
   (type "ext4"))
 (file-system
   (device (uuid "634a6369-c5a8-4f4c-b3e8-35fb92cf850e"))
   (mount-point "/mnt/WD-HDD")
   (type "ext4"))
 (file-system
  (device (uuid "c36b9de3-2b00-4263-8844-9f2d72628d78"))
  (mount-point "/mnt/oldhome")
  (type "ext4"))
     %base-file-systems))
  (swap-devices '("/dev/disk/by-uuid/52be6bef-ff4c-4fec-b63f-608ee61a723d"))

  (users (cons* (user-account
 (name "jone")
 (comment "Jone")
 (group "users")
 (supplementary-groups '("wheel" "netdev" "audio" "video"))
 (uid 1000)
 (home-directory "/home/jone"))
(user-account
 (name "guest")
 (comment "Guest")
 (group "users")
 (uid 1010)
 (home-directory "/home/guest"))
%base-user-accounts))
  (groups (cons (user-group
 (name "mlocate")
 (system? #t))
%base-groups))
  (sudoers-file (local-file "/etc/sudoers"))

(packages
 (let ((trash (map specification->package
   '("zile" "wireless-tools"
   (append (map specification->package
'("xfce" "slim" "gvfs" "xrandr" "unzip" "xclip"
  "emacs" "w3m" "emacs-guix" "alsa-lib&

shepherd.log - ntpd - what?

2018-07-21 Thread Jone
...
2018-07-02 21:00:12 Respawning ntpd.
2018-07-02 21:00:12 Service ntpd has been started.
2018-07-02 21:03:32 Respawning ntpd.
2018-07-02 21:03:32 Service ntpd has been started.
2018-07-02 21:04:08 Respawning term-tty4.
2018-07-02 21:04:08 Service term-tty4 has been started.
2018-07-02 21:04:36 Respawning term-tty4.
2018-07-02 21:04:36 Service term-tty4 has been started.
2018-07-02 21:06:48 Respawning ntpd.
2018-07-02 21:06:48 Service ntpd has been started.
2018-07-02 21:10:05 Respawning ntpd.
2018-07-02 21:10:06 Service ntpd has been started.
2018-07-02 21:13:21 Respawning ntpd.
2018-07-02 21:13:21 Service ntpd has been started.
2018-07-02 21:16:41 Respawning ntpd.
2018-07-02 21:16:41 Service ntpd has been started.
2018-07-02 21:20:00 Respawning ntpd.
2018-07-02 21:20:00 Service ntpd has been started.
2018-07-02 21:23:16 Respawning ntpd.
2018-07-02 21:23:16 Service ntpd has been started.
...


Re: About build

2018-07-19 Thread Jone
Hah! RSS-aggregator Liferea could use multilple html-engines. Old versions
- gtkhtml, recent versions - webkit. I want build with gtkhtml. How to
create package definition for old version Liferea with gtkhtml? The problem
is that Guix does not know anything about this library, right? Well, I
build gtkhtml locally, what next?

This is another white spot in the manual! For example, I need to build
packages with cross dependencies, and? In this case the dependencies are
consistent, but there is still no clarity on how to act..


About build

2018-07-14 Thread Jone
Hello, hakers!
I want to build a package 1 that depends on package 2.
To be more precise, I want Liferea without webkit. Older versions allow you
to use gtkhtml(2).
How to act in such a case? You can even put the question wider: need an
advanced rss-aggregator,
but there is nothing in the repo. Quiterss.. C++, Qt.. it's still difficult
for me.


Re: Error with mcron-configuration

2018-07-09 Thread Jone
*> But only it still does not work!*

With current system version all Ok:

#> sudo herd status mcron
Status of mcron:
  It is started.
  Running value is 298.
  It is enabled.
  Provides (mcron).
  Requires (user-processes).
  Conflicts with ().
  Will be respawned.

ps ax | grep mcron
  298 ?Ssl0:00
/gnu/store/9dl8l4krszdd1dhaw94da0nv28ap8dvp-mcron-1.1.1/bin/mcron
/gnu/store/vvf3frpvrffpchbd3xxlq8kmnxsywja6-mcron-job
/gnu/store/jv9asgfm82f6k7srwxy6bf9ckk70z270-mcron-job
/gnu/store/n4jbzmm6ihv70dd8j2ba9501hxs3q9ar-mcron-job
/gnu/store/2yql34psrh6iiyczs48hj7pw5bgv6gh6-mcron-job
  722 pts/0S+ 0:00 grep mcron


Hard experiment: GuixSD v. 0.14 -> current version.

2018-07-02 Thread Jone
Clean installation took many hours. Problems:

1. Need downgrade system config (as example initrd modules syntax, I forgot
about it)
2. After first 'guix pull' - error as in Thread "Error: system: command not
found." Fixed with repeat guix pull.
3. Initial 'system reconfigure' fails at final (error with retrieving one
derivation - "Network error"?), repeat wit --fallback.
4. Initial 'guix pull' in non-root account, using one processor core (this
was necessary) took more than FOUR HOURS!
5. A lot of questions on building heavy packages from source and of the
final set of packages (mariadb? Is this really the right system package??)

I will not risk repeating this! =) But maybe something could be done more
correctly? Any recommendations?


Re: Error: system: command not found.

2018-06-28 Thread Jone
> Can you not choose an earlier profile in grub and go from there?

Here is my mistake: I decided that old profiles are not needed and clear
them.
Well, I was not happy with my config also. Now - satisfied. So it is not so
important,
only the cost of processor time. That's why I want to get a good 0-profile.


Re: Error: system: command not found.

2018-06-28 Thread Jone
Thanks, Swedebugia.

> You probably like Pierre missed the warning about setting
> the correct path after the first guix pull.

Yep, maybe. But while I was messing with the system, I globally
rewrote the system config. And now is difficult to combine it with
current state of the system.. I think that it will be easier
to completely reinstall =)


Re: Error: system: command not found.

2018-06-28 Thread Jone
> When I had problems they were caused by wrong path.

Not sure, it seems the main problem is a broken 'guix pull' in root guix
instance,
and I can not do anything further, deadlock!

Output:

## user

ls -l .config/guix/
total 0
lrwxrwxrwx 1 jone users 58 May 20 23:29 latest ->
/gnu/store/9247gcx6ircqypbv8l157c5wvwm0wjkh-guix-d8ac79870

echo $PATH
/home/jone/.guix-profile/bin:/home/jone/.guix-profile/sbin:/run/setuid-programs:/run/current-system/profile/bin:/run/current-system/profile/sbin:/home/jone/bin

## root

ls -l /root/.config/guix/
total 4
lrwxrwxrwx 1 root root 33 Jun 27 18:25 current ->
/root/.config/guix/current-5-link
lrwxrwxrwx 1 root root 51 Jun 27 03:00 current-1-link ->
/gnu/store/awhkhxxlkfq67yza628wcbnldsj48kly-profile
lrwxrwxrwx 1 root root 51 Jun 27 14:01 current-2-link ->
/gnu/store/h5l5qv5wqfpx0dszhms56xjzsqnacc11-profile
lrwxrwxrwx 1 root root 51 Jun 27 14:21 current-3-link ->
/gnu/store/4ismmx7j2xl5wiy6y941br387m2shqj3-profile
lrwxrwxrwx 1 root root 51 Jun 27 17:12 current-4-link ->
/gnu/store/j8jrbdynjnl6wm7i0mr3mxfxyx93s886-profile
lrwxrwxrwx 1 root root 51 Jun 27 18:25 current-5-link ->
/gnu/store/c9qimm831w3rlqmsaq0n5qlw68bkg4cl-profile
lrwxrwxrwx 1 root root 66 Jun 27 02:53 latest ->
/gnu/store/g42p8f30ihr4ni5anmw5029gd29gky52-guix-2a09df43e-modules

echo $PATH
/run/setuid-programs:/run/current-system/profile/bin:/run/current-system/profile/sbin


ls -l /gnu/store | grep guix
-r--r--r--  2 root root1437 Jan  1  1970
0qfcnbk19fycgygwc8s8k8k01yn6xyzi-guix-command.drv
-r--r--r--  2 root root 943 Jan  1  1970
0x5a9hm8mgbx73hl0hsbw4yyngb31ads-shepherd-guix-daemon.scm.drv
dr-xr-xr-x  3 root root4096 Jan  1  1970
0zadksf076a2l3gbimgl7phwcwbkd8kr-guix-packages-base-source
dr-xr-xr-x  5 root root4096 Jan  1  1970
14bkn25rih8y8j5n848i6xq0qfg8x5nc-guix-69390e29d
-r--r--r--  2 root root1504 Jan  1  1970
1cam9k64c56fksva4nmv1rabx2xqkc17-guix-config-builder
-r--r--r--  2 root root1210 Jan  1  1970
1ciw7ib9cvw3vm92xxv8aw2r6azsv3s9-guix-b7238c3d6-builder
-r--r--r--  2 root root7324 Jan  1  1970
1f7ll8gbpbj0hkm194aq73b77vxjfa8c-guix-packages-builder
-r--r--r--  2 root root2900 Jan  1  1970
1fn8gnq2kcynxiqz54xhl6ywfvya6s4h-guix-0.14.0-11.ab85cf7.drv
-r--r--r--  2 root root 876 Jan  1  1970
1s2yal3ia5zlifv5p1v38ndzv6mfxfb1-guix-core.drv
-r--r--r--  2 root root2051 Jan  1  1970
1v4nsr0v16qfgb1ik8viyhh05fs0n3bq-guix-cli.drv
-r--r--r--  2 root root4712 Jan  1  1970
1vskak06b635sjrg0lrb7iy15qp70jnf-guix-0.14.0-11.ab85cf7.drv
dr-xr-xr-x  4 root root4096 Jan  1  1970
230n6p7pns43dbaq3pwk9glfvx23zm10-guix-extra
-r--r--r--  2 root root4383 Jan  1  1970
2b9485z1qfz4g6arfm9r4snp718f2wki-guix-system-builder
-r--r--r--  2 root root   11217 Jan  1  1970
2h4wcl2wj162hs84s0bkcip73s2b24zx-guix-packages-source.drv
-r--r--r--  2 root root 886 Jan  1  1970
3fgl1fqhb4xx10spyvgjjha5isj4fcph-guix-config.drv
dr-xr-xr-x  3 root root4096 Jan  1  1970
3pw07filsg47yppwsha5qsbgk129iwhx-guix-cli
dr-xr-xr-x  4 root root4096 Jan  1  1970
40cmqfwwaj8pbqzrjqz6nhdi6s67gc22-guix-69390e29d-modules
-r--r--r--  2 root root   11217 Jan  1  1970
43kzipbzaq1wh3icv48b6k6inqvsvdsd-guix-packages-source.drv
-r-xr-xr-x  2 root root2240 Jan  1  1970
455rs0xq4k132gfnygqzm04xjn60d47d-guix-command
-r--r--r--  2 root root  113238 Jan  1  1970
49m6iw9s2hyd1kfmkvv7jl3dvngywgnb-guix-packages-base-source-builder
-r--r--r--  2 root root2051 Jan  1  1970
4axxyw1dg4bfbbwvjr0sqslxd7h7mxag-guix-cli.drv
-r--r--r--  2 root root1036 Jan  1  1970
4ds0lrwsyn1biwg8a3cq4dci690fpfw2-guix-manual.drv
-r--r--r--  2 root root1383 Jan  1  1970
4jbkhyldzv1g59vic674qh9jrfghmgii-guix-e96ba83fa-modules.drv
-r--r--r--  2 root root2391 Jan  1  1970
4n0yh5fqq7kv95zvmkq7z6balwb6pzcl-guix-command-builder
dr-xr-xr-x  2 root root4096 Jan  1  1970
4n42yg0rbymgdgay8yfvry6dfvh3yy1c-guix
-r--r--r--  2 root root 925 Jan  1  1970
4sl7dwq7aps8jj956fbag6km6wyjq8yv-guix-config-source.drv
-r--r--r--  2 root root1437 Jan  1  1970
4w20qm92l8jm3v2nxd25qgvhdpqskxk6-guix-command.drv
-r--r--r--  2 root root1915 Jan  1  1970
4wv5kk02cza1f36jy2mpp3in6gdrn7jd-guix-system.drv
-r--r--r--  2 root root4383 Jan  1  1970
556r1dakqa40nrjszxxzsqqf736ym96z-guix-system-builder
dr-xr-xr-x  4 root root4096 Jan  1  1970
56ax0y84liv7nl5kyzyy718m5a34259l-guix-system-source
-r--r--r--  2 root root1196 Jan  1  1970
56j1ssh1mhngw3jnrwa57hwlbfgj006x-guix-b7238c3d6.drv
-r--r--r--  2 root root1437 Jan  1  1970
5g25x81yhvs0wgch63xzbvh5d1x6spgy-guix-command.drv
-r--r--r--  2 root root 979 Jan  1  1970
5h841f21ilgqhv3dcc43xlaa1rxi7lmj-guix-locale-guix-packages.drv
-r--r--r--  2 root root5029 Jan  1  1970
5ib5f94aksrnrjfmpaihld5vyfc3bnkd-guix-system-source.drv
-r--r--r--  2 root root 886 Jan  1  1970
5imji0m667fcbn8ddplpby9lgc1zvjsl-guix-config.drv
-r--r--r--  2 root root1196 Jan  1  1970
5mnc810vhw2wyrbhywsbd3v8cn6j0jkm-guix-bc1d26e39.drv
-r--r--r--  2 roo

Re: Error: system: command not found.

2018-06-28 Thread Jone
> We recommend not to add user packages to the “packages” field of your
> operating system configuration.

Ricardo, there are listed only base system-wide packages! I even deleted
'icecat' and some others,
but this almost did not change the reconfigure time.

By the way, in the new system generation (after reconfigure) the same
problems, well, it was expected.
But if I launch 'sudo -E guix pull', then .. ?


Re: Error: system: command not found.

2018-06-28 Thread Jone
My situation is worse, installation of guile-sqlite3 does not solve the
problem. And brocken 'guix pull' in root instance of guix - can't
update. After reconfigure with 'sudo -E guix ..' the same problems
remained..

2018-06-28 4:05 GMT+00:00 Leo Famulari :

> On Wed, Jun 27, 2018 at 09:48:23PM -0400, Mike Gerwitz wrote:
> > On Wed, Jun 27, 2018 at 14:53:50 +0000, Jone wrote:
> > > I have a problem: can not run system reconfigure.
> > > root@guix ~# guix system --help
> > > guix: system: command not found
> >
> > I had the same problem last night and I found (via strace) that it was
> > looking for an sqlite3 guile library.  Installing guile-sqlite3 into
> > root's profile fixed the problem for me.
> >
> > I just didn't have the chance to report the issue yet.
>
> I think this is fixed in some recent commit. I had this issue but no
> longer need to explicitly install guile-sqlite3 to work around it.
>


Re: Error: system: command not found.

2018-06-27 Thread Jone
And the current results:
during reconfigure were built from source samba, ffmpeg, icecat (now)
and I do not know what else and how long it will be.
Theoretically, berlin.guixsd.org repository is enabled:

(modify-services %desktop-services
...
  (substitute-urls (list "https://berlin.guixsd.org;
 "https://mirror.hydra.gnu.org;)))

but I don't understand why these "heavy" packages are being built.



Re: Error: system: command not found.

2018-06-27 Thread Jone
Thanks. I already wrote this, but I was not sure that nothing would break in 
the system.



Re: Error: system: command not found.

2018-06-27 Thread Jone
Works as
sudo -E guix system --help
but I can not imagine what will happen as a result with 'sudo -E' and 'system 
reconfigure'.



Re: Error: system: command not found.

2018-06-27 Thread Jone
> If you run guix as root, then you must run `guix pull` as root as
> well.
Yes, that's exactly what I did.

> sudo guix system reconfigure
> should work.
But:
sudo guix system --help
Password: 
guix: system: command not found
Try `guix --help' for more information.

Checked again - but alas.. Amusing situation)) I can not roll back
system (there is only the current generation) and can not reconfigure..



Error: system: command not found.

2018-06-27 Thread Jone
I have a problem: can not run system reconfigure.
root@guix ~# guix system --help
guix: system: command not found

'guix pull' launched 3 times in a row, each time gives the same output:
compiling...100.0% of 1 files
compiling...100.0% of 230 files
compiling...100.0% of 180 files
compiling...100.0% of 67 files
compiling...100.0% of 37 files
- in other words, it doesn't work.

Any ideas, how to reconfigure system? I can run 'guix system CMD' as
user, but for reconfigure need root permissions.
_
Now:
working instance of guix:
~/Desktop> guix system list-generations
Generation 6апр 25 2018 19:13:28(current)
  file name: /var/guix/profiles/system-6-link
  canonical file name: /gnu/store/7n91925xqz6579rxq2md2605s4nzddlz-system
  label: GNU with Linux-Libre 4.16.4 (beta)



Re: Something broke

2018-06-20 Thread Jone
Hello. I just have very bad English. I chose this distribution
because of the progressive engineering approach and wide
possibilities. And someday I'll learn all this)) Okay, I'll figure it
out myself. Or not =) It does not matter! Anyway for me it will be a
rewarding experience. 



Re: Something broke

2018-06-17 Thread Jone


Standard path is '/usr/lib/alsa-lib/', and
$HOME/.guix-profile/lib/alsa-lib not exist. Need to change. Edit
Makefile is bad, gexp.. it's outrageous why it couldn't be done on a
standard Lisp. I'm sometimes an idiot :)

> If you've built 3 packages for Guix, we will be glad to add them to
> Guix once you send them to

This is a BAD model. How do you not understand this?? These packages are
not part of the system, there can be anything! 



Re: Something broke

2018-06-17 Thread Jone
Hi, people! There are also prepared packages - why not a give to the
world this? As third-patry, no warranty.
Or is it still an experimental distro for hackers? I have prepared 3
packages, they are not in the official delivery, but where can I send
them? 



Something broke

2018-06-17 Thread Jone
#> speaker-test
   Cannot open shared library
   /gnu/store/..-alsa-lib-1.1.6/lib/alsa-lib/libasound_module_pcm_equal.so

I do not know how it happened, but apparently this:
libasound_module_pcm_equal.so -> alsaequal

Ok, build alsaequal (I really need an equalizer):

install: target '/usr/lib/alsa-lib/' is not a directory: No such file or
directory

See Makefile:
6 install: all
47 @echo Installing...
48 $(Q)install -m 644 $(SND_PCM_BIN) ${DESTDIR}/usr/lib/alsa-lib/

1. need some magic with install
2. or?

I looked at the linux.scm, there is a variable ALSA_PLUGIN_DIR, but?
Or advise a good book on the build of the source code. 



Re: Recovering from broken Guix due to GC'd derivations

2018-06-10 Thread Jone
Maybe this helps (see manual):

"guix package:
...
--roll-back
Roll back to the previous generation of the profile—i.e., undo the
last transaction."

or again 'guix gc'.






Guix "days old" variable

2018-06-05 Thread Jone
Hello. I check updates:

guix refresh emacs
  gnu/packages/emacs.scm:116:13: emacs would be upgraded from 25.3 to 26.1

and would like to install only this one update:

guix package -u emacs
  guix package: warning: Your Guix installation is 16 days old
  ...

Can I change threshold for this ("NN days old")? What is this variable?

Thanks.



Re: About incorrect system time (solved)

2018-05-28 Thread Jone
Hi!
> Does ‘zdump /etc/localtime’ show your timezone time?

1.
J: ~/Desktop> date
Пн май 28 15:42:54 MSK 2018
2.
J: ~/Desktop> zdump /etc/localtime
/etc/localtime  Mon May 28 18:42:58 2018 MSK

1 - Ok, 2 - not Ok/

3. system.scm:
...
(operating-system
 (host-name "guix")
 (timezone "Europe/Moscow")
...

4. ntpd running (default config)



About incorrect system time (solved)

2018-05-27 Thread Jone
For a long time I could not understand why command 'date' show incorrect
time (but 'date -u' displays everything correctly). And this problem is
characteristic only for GuixSD!

After studying the question, I found that "export TZ=MSK" fix this
problem (my timezone is "Europe/Moscow"). But in no other distribution
like that was not required. What is it?



Re: Simple configure-make-make_install with Guix

2018-05-25 Thread Jone
> .. if you want to submit this as a patch to guix ..

O, no)) It was relatively easy, beginners level.
About the rest - thanks, I will consider this in the next packages.

>> (use-modules
>>  (ice-9 match)
>>  (srfi srfi-1)
>>  (guix gexp)

> I don't think you need these three first modules.

- guix gexp is needed, others - really not.



Re: Simple configure-make-make_install with Guix

2018-05-24 Thread Jone
Thanks, Julien.
Minimal working variant:

(use-modules
 (ice-9 match)
 (srfi srfi-1)
 (guix gexp)
 (guix licenses)
 (guix build-system gnu)
 (guix packages)
 (gnu packages)
 (gnu packages gettext)
 (gnu packages pkg-config)
 (gnu packages glib)
 (gnu packages gtk)
 (gnu packages linux)
 (gnu packages audio))
(define-public gvolwheel
  (package
   (name "gvolwheel")
   (version "-1.0")
   (source (local-file "/home/jone/Desktop/gvolwheel-1.0" #:recursive? #t))
   (build-system gnu-build-system)
   ;; see https://github.com/pjotrp/guix-notes/blob/master/HACKING.org
   (arguments
'(#:phases
  (modify-phases %standard-phases
 (delete 'check
   (native-inputs
`(("pkg-config" ,pkg-config)
  ("intltool" ,intltool)
  ("gettext" ,gettext-minimal)))
   (inputs
`(("alsa-lib" ,alsa-lib)
  ("gtk+" ,gtk+)))
   (synopsis "Volume control")
   (description "ALSA mixer")
   (home-page "https://sourceforge.net/projects/gvolwheel;)
   (license gpl2)))
gvolwheel

What else should I fix in this package definition? 



Simple configure-make-make_install with Guix

2018-05-24 Thread Jone
Hello! I'm wondering, how could I operate with unpacked sources?
So far I see only this:

  guix build -f /home/jone/Desktop/template.scm
guix build: error: #: not something we can build

Files:
1. template.scm
(use-modules
 (ice-9 match)
 (srfi srfi-1)
 (guix gexp)
 (guix licenses)
 (guix build-system gnu)
 (guix packages)
 (gnu packages)
 (gnu packages glib)
 (gnu packages gtk)
 (gnu packages audio))
(define-public gvolwheel
  (package
   (name "gvolwheel")
   (version "-1.0")
   (source (local-file "/home/jone/Desktop/gvolwheel-1.0" #:recursive? #t))
   (build-system gnu-build-system)
   (native-inputs
`(("pkg-config" ,pkg-config)))
   (inputs
`(("alsa-lib" ,alsa-lib)
  ("gtk+" ,gtk+)))
   (synopsis "test")
   (description "test")
   (home-page "https://sourceforge.net/projects/gvolwheel;)
   (license gpl2)))

2. ls -1 .
aclocal.m4
AUTHORS
ChangeLog
config.guess
config.h.in
config.sub
configure
configure.ac
COPYING
depcomp
INSTALL
install-sh
ltmain.sh
Makefile.am
Makefile.in
missing
mkinstalldirs
NEWS
pixmaps
po
README
src

This is just an example (a little harder than "GNU Hello"). I would like
to learn to build such things.



Re: Install new package in current generation?

2018-05-23 Thread Jone
> listed in the environment variable “X_XFCE4_LIB_DIRS”

It works! Thanks.



Install new package in current generation?

2018-05-22 Thread Jone
Now:

guix package -i PACKAGE  # -> creating new generation
guix package -d  # remove all generations, except current
guix gc

- not so good: first creating new generation, and next delete all
others (I absolutely do not need a rollback).

Maybe some other way?



Re: Incorrect system time

2018-05-09 Thread Jone
In any case, when I look at my watch and see 22:00 and then I look in
/var/log/messages and see there 01:00.. it's no good.



Re: Incorrect system time

2018-05-09 Thread Jone
Oleg, ‘ntp-service’ is part of dektop-services or something like
that. In any case ntpd process is running.

> They should not be equal, because they are different timezones.  :-)

In Gentoo, or in OpenSUSE 'date' displays time for my timezone, but here so
works 'date -u'. 



Re: Incorrect system time

2018-05-09 Thread Jone
> sudo herd status ntpd

Status of ntpd:
  It is started.
  Running value is 14818.
  It is enabled.
  Provides (ntpd).
  Requires (user-processes networking).
  Conflicts with ().
  Will be respawned.



Re: Incorrect system time

2018-05-09 Thread Jone
> I guess this explains the wrong timestamps of your e-mails! :)

Previously, did not pay attention, but wrong time in system log is
extremely undesirable.

> You can fix it with `hwclock --systohc`

.. and no changes. ??

> Do you run a dual boot with Windows?

I forgot long ago what is dual boot ;) 

In all my previous distribution command 'date' displays the system time, 
and system time was the single time and equaled to my timezone.
Maybe hardware troubles.. but it is very annoying.



Incorrect system time

2018-05-09 Thread Jone
Hi all! I got confused with this:
Xfce panel clock show the right time, in my config.scm:
...
(operating-system
...
  (timezone "Europe/Moscow")
...

but:

sudo hwclock --localtime
2018-05-09 19:53:59.559850+0300(Ok)
sudo hwclock --utc
2018-05-09 22:54:06.184854+0300(wrong!)

and time in system logs too are incorrect.

In short, I need set system date/time for "Europe/Moscow",
everywhere.



Re: Right way: define, build and install

2018-05-03 Thread Jone
Привет, Олег. Мне наверно было бы проще писать на русском, не мучая
системы перевода и остальных участников рассылки. Дело в том, что я
нахожу время на систему только урывками. В стиле работает и черт с
этим. А все эти инсрументы, которые мне нужны.. короче, их
много. Поэтому я и обратился к теме сборки пакетов. 


Re: Right way: define, build and install

2018-05-02 Thread Jone
My config:

;;; POP3
(defvar email-pswd-tmp nil)
(defun rmail-start ()
  "Get mail through pop3 and view mail; default Gmail."
  (interactive)
  (let ((username "yeger9:")  ;; c ":" в конце!
(inbox "~/.Mail/rmail-inbox")
(mail-archive-file-name "~/.Mail/rmail-sent"))
  (if (equal email-pswd-tmp nil)
  (setq email-pswd-tmp (read-passwd "Enter email password: ")))
  (message "Получение входящей почты...")
  (shell-command (concat "movemail --emacs pops://" username email-pswd-tmp
 "@pop.gmail.com" " " inbox))
  (rmail)
  (rmail-summary-last-message)))
(add-hook 'rmail-quit-hook (lambda ()
 (rkill-buffers "rmail.*")))
(add-hook 'mail-setup-hook 'mail-abbrevs-setup)

;;; SMTP
(require 'smtpmail)
(setq send-mail-function 'smtpmail-send-it
  smtpmail-smtp-server "smtp.gmail.com"
  smtpmail-stream-type 'starttls
  smtpmail-smtp-service 587)
(setq user-mail-address "Jone <myem...@gmail.com>")


i.e. mailutils with "pops" (gmail) it seems.
I use google-translate so I answer slowly. There are only wild
ubuntooids :) As win users.



Re: Right way: define, build and install

2018-05-02 Thread Jone
About off-topic, if I understood you correctly, I have Rmail with
default settings. I do not know.

> best off looking at similar package declarations among the
> distribution's official packages.

I go and look, but there are no comments :-( 



Re: Right way: define, build and install

2018-05-02 Thread Jone
But I am ashamed! :)

1. xfce4-cpugraph-plugin.scm

(use-modules (ice-9 match)
 (srfi srfi-1)
 (guix gexp)
 (guix packages)
 (guix build)
 (guix licenses)
 (guix git-download)
  (define-public xfce4-cpugraph-plugin
  (package
(name "xfce4-cpugraph-plugin")
(version "1.0.5")
(source (origin
  (method url-fetch)
  (uri (string-append "http://archive.xfce.org/src/panel-plugins/;
  name "/" (version-major+minor version) "/"
  name "-" version ".tar.bz2"))
  (sha256
   (base32
"1izl53q95m5xm2fiq7385vb1i9nwgjizxkmgpgh33zdckb40xnl5"
(build-system gnu-build-system)
(native-inputs `(("pkg-config" ,pkg-config)
 ("intltool" ,intltool)))
(inputs `(("glib" ,glib)
  ("gtk+" ,gtk+-2)
  ("libxfce4util" ,libxfce4util)
  ("libxfce4ui" ,libxfce4ui)
  ("xfce4-panel" ,xfce4-panel)))
(home-page
 "https://goodies.xfce.org/projects/panel-plugins/;)
(synopsis "cpugraph")
(description
 "TEST")
(license (list gpl2+ lgpl2.0+
)

2. Then in terminal

GUIX_PACKAGE_PATH=/home/jone/sys.cfg/build/my/ guix package -i 
xfce4-cpugraph-plugin

ERROR: In procedure %resolve-variable:
libxfce4util: unbound variable




Right way: define, build and install

2018-05-02 Thread Jone
On Gentoo I actively used github: download, then local build and install
in ~/{bin,tools}. It was easy! I didn't even need ebuilds and did not
think as this works :-)

Now I need several applications which are absent and will not be in
official repositories of a distribution. For an example:
1. https://github.com/x2b/usbeject
2. xfce4-cpugraph-plugin

I tried to define this as "some-package.scm" and build, but the first
requires some magic with gexp, and for the second - it is unknown what
for "use-modules". Finally, in the manual is just one stupid example
"hello"!

Help!!



Re: Simple reconfigure

2018-04-28 Thread Jone
Don't refer to manual, please - it does not answer practical
questions. Why do you think there are so few packages? - and no one
knows how to build them! I tried, and of course I did not succeed. For
example, when I write to elisp, I guess by context how and what I should
do next. And a powerful contextual help system is also very helpful.

I have many practical questions - I use this distribution on real
hardware, as the main system. I like Lisp, but I'm just a user, not a
hacker..

About 'cons' and 'cons*' - okay, let's see in the manual. Examples,
examples, examples, more examples! ;) That would be great.



Simple reconfigure

2018-04-27 Thread Jone
Hello! If I make little changes, like such:
was:

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

now:

  (users (cons (user-account
(name "jone")
(comment "Jone")
(group "users")
(supplementary-groups '("wheel" "netdev" "audio" "video"))
(home-directory "/home/jone"))
   (user-account
(name "guest")
(comment "Guest")
(password "guest" "something")
(group "users")
(supplementary-groups '("netdev" "audio" 
"video"))
(home-directory "/home/guest"))
   %base-user-accounts))

as will be correct: just run 'guix system reconfigure' without options,
or .. ? Can Guix only update configuration files, offline?




Re: xkblayout-state

2018-04-26 Thread Jone
> Please point the author to
> https://www.gnu.org/licenses/gpl-howto.html.

Not with my level of English :(

I somehow launched xkblayout-state from my previous build. My method
switching keyboard layout: 
1. get current window name (xdotool)
2. if Emacs then xdotool->emacs_shortcut
   if not Emacs then ~/bin/xkblayout-state set -1
It's a dirty hack, but.. works!



Guix does not understand config.scm

2018-04-23 Thread Jone
This is my new (and wrong) config:

 1  (use-modules
 2   (srfi srfi-1)
 3   (guix)
 4   (gnu))
 5  (use-service-modules networking desktop admin mcron)
 6  (use-package-modules base bootloaders ssh)
 7  (operating-system
 8(host-name "guix")
 9(timezone "Europe/Moscow")
10(locale "ru_RU.UTF-8")
11(locale-definitions
12 '((locale-definition (source "ru_RU") (name "ru_RU.utf8"))
13   (locale-definition (source "en_US") (name "en_US.utf8"
14(bootloader (bootloader-configuration

24(initrd-modules (cons* "sata_nv"  ;; Nvidia nForce
25   "pata_acpi" %base-initrd-modules))
26(file-systems (cons*

47   %base-file-systems))
48(swap-devices 
'("/dev/disk/by-uuid/0602935f-4ed2-4805-9ec9-e0c06238abf5"))
49    (users (cons (user-account
50  (name "jone")
51  (comment "Jone")
52  (group "users")
    53  (supplementary-groups '("wheel" "netdev" "audio" 
"video"))
54  (home-directory "/home/jone"))
55 %base-user-accounts))
56(sudoers-file (local-file (config-file "/etc/sudoers")))
57(packages
58 (let ((trash (specifications->packages
59   "zile" "wireless-tools")))

67   %base-packages
68(services (cons*
69   (extra-special-file "/usr/bin/env"
70   
(file-append coreutils "/bin/env"))
71   (extra-special-file "/bin/sh"
72   
(file-append bash "/bin/bash"))
73   (xfce-desktop-service)
74   (service mcron-service-type)
75   (service rottlog-service-type)
76   %desktop-services))
77)

Next I run 'guix system reconfigure new.scm':

   new.scm:49:9: config-file: unbound variable
   hint: Did you forget a `use-modules' form?

Ok, for test comment section "(users (cons .." and line "(sudoers-file ..",
but next again:

   new.scm:26:16: specifications->packages: unbound variable
   hint: Did you forget a `use-modules' form?

Questions:
1. How to debug config.scm, line by line? Is that possible?
2. Where can I find the full list of modules for "use-modules"?
3. And how to fix this config?



Не монтируется электронная книжка

2018-03-24 Thread Jone
Более того, она зависла после первого раза. Хардварный сброс.
После второго раза - никакой реакции на подключение.
Только на третий раз удачное соединение. По USB!!

dmesg

1: [sde] Attached SCSI removable disk
[15463.554865] sd 6:0:0:0: [sdd] Attached SCSI removable disk
[15564.604846] usb 1-6.3: USB disconnect, device number 20
[15569.177396] usb 1-6: reset high-speed USB device number 19 using
ehci-pci [15569.629399] usb 1-6.3: new high-speed USB device number 21
using ehci-pci [15569.743468] usb 1-6.3: New USB device found,
idVendor=0489, idProduct=e107 [15569.743473] usb 1-6.3: New USB device
strings: Mfr=1, Product=2, SerialNumber=3 [15569.743475] usb 1-6.3:
Product: Pocketbook 622 [15569.743476] usb 1-6.3: Manufacturer:
Pocketbook [15569.743478] usb 1-6.3: SerialNumber: 3230204E6F76
[15569.746511] usb-storage 1-6.3:1.0: USB Mass Storage device detected
[15569.746596] scsi host6: usb-storage 1-6.3:1.0
[15570.750640] scsi 6:0:0:0: Direct-Access LinuxFile-Stor
Gadget 0326 PQ: 0 ANSI: 2 [15570.752635] scsi 6:0:0:1:
Direct-Access LinuxFile-Stor Gadget 0326 PQ: 0 ANSI: 2
[15570.753233] sd 6:0:0:0: Attached scsi generic sg4 type 0
[15570.753341] sd 6:0:0:1: Attached scsi generic sg5 type 0
[15570.755588] sd 6:0:0:0: Power-on or device reset occurred
[15570.758588] sd 6:0:0:1: Power-on or device reset occurred
[15570.767619] sd 6:0:0:0: [sdd] Attached SCSI removable disk
[15570.878611] sd 6:0:0:1: [sde] Attached SCSI removable disk
[15578.943716] usb 1-6.3: USB disconnect, device number 21
[15649.477402] usb 1-6: reset high-speed USB device number 19 using
ehci-pci [15650.377400] usb 1-6: USB disconnect, device number 19
root@guix ~# 

На всех прошлых дистрибутивах проблем с монтированием не было!



Вопрос по опциям монтирования SSD и logrotate

2018-03-24 Thread Jone
1. Из мануала не ясно, могу ли я использовать noatime и discard.
Хорошо, мы можем выполнять trim по cron (mcron). Этот сервис есть в
%desktop-services? Или я должен явно прописывать это? Как часто следует
выполнять команду trim?

2. Для logrotate есть какой-то аналог, но я забыл какой :) Он включен
по умолчанию?

Я считаю, что дефолтные настройки для Desktop требуют корректировки, с
учетом сказанного выше. Я выполняю reconfigure уже в десятый раз, но
все равно полностью не доволен результатом. 



Re: Modify system behavior after reconfigure

2018-03-20 Thread Jone
> If you want, you can write in one of the other languages that
> developers speak:

Хорошо, Ludo’, я пишу на своем языке. У меня куча вопросов, но к
сожалению мануалы GNU не являются "быстрорастворимыми". А кроме
мануалов любая другая документация с примерами ("howto") отсутствует! 



Re: Modify system behavior after reconfigure

2018-03-17 Thread Jone
Andreas writes:

> Also, this problem can be circumvented by not having packages in the
> *system* definition, but only in *user* profiles. This decouples
> updates of single packages from updates of the system configuration.

Yes, I also came to this: absolute minimum of packages in the system
config (I again remember Gentoo and advices about @world set).

And mcron.. total, I think that I should write the service itself that
reads the definition of jobs from /etc/...



Re: Modify system behavior after reconfigure

2018-03-17 Thread Jone
Ricardo writes:

> Only if you change the version of Guix in between reconfiguration
> or ..

This! I run 'guix pull' every week.
And how do I act? 
1. Run 'guix pull' once a month.
2. Disable internet connection before reconfigure (in case I only need
to update system configuration, without downloading anything from
Internet) 
What "best practicals" exist?



Re: Modify system behavior after reconfigure

2018-03-17 Thread Jone
Ricardo writes:

> Reconfiguring does not take a lot of time when there have been only
> minor changes.  It only takes a couple of seconds.

Well, let's just say, this is not always true. The last time was a full
compilation of Icecat from source (!) "It only takes a couple of
hours" ;) 



Modify system behavior after reconfigure

2018-03-17 Thread Jone
To run 'reconfigure' for minor changes to the system configuration
is inconvenient. For example, this option:

  (sudoers-file (local-file (config-file "/etc/sudoers")))

provides an easy way to make changes at any time. But what about mcron?
The user has a directory ~/.config/cron, but it cannot run system-wide
jobs. So the old way with /etc/cron.d/ still remains comfortable: let's
say I just don't know what tasks I'll need in the future, and add them
one by one - and each time after that run reconfigure.. no way!

I think the question is obvious?
(Forgive me for my bad English, but mostly I only read in this
language, not write).



Re: A few questions about packages

2018-03-13 Thread Jone
Björn wrote:

> I'm not sure if I understood you fully, I hope my answer is the right
> one to your question.

But I understood you.

> Since a week or so we decided to invite people
> also to write in their language and not only in English.

Languages there is, but there is whether people..



Re: A few questions about packages

2018-03-13 Thread Jone
Thanks, Ricardo.

Then still questions:
the difference in a hash is already enough to read two identical
libraries as two different versions? Whether are available dependences
of one package for another?

Need wiki, not only Manual! :)



Re: A few questions about packages

2018-03-13 Thread Jone
And, I seem I begin to understand!
After deleting the previous profiles does not occur "relink" to current
version of library: what has already been established, that will also
remain. Correctly?



Re: A few questions about packages

2018-03-13 Thread Jone
I wrote a simple script:

TRGT="*-gtk+-2.2*"
for i in $(ls -d /gnu/store/$TRGT/)
do
echo
echo "--> $i"
echo "$(guix gc --referrers $i | grep -v \.drv)"
done

Part of output:
--> /gnu/store/595ydgdnkj9vdxr88dkscb0ws9rgjv0g-gtk+-2.24.31/
/gnu/store/595ydgdnkj9vdxr88dkscb0ws9rgjv0g-gtk+-2.24.31
/gnu/store/6h7w5z60zqx6802qxd98wcmx1yrhnzy5-xfce4-appfinder-4.12.0
/gnu/store/8vy4gnmb17xc3hiqjd1b5z28vfsn8jzq-gtk-im-modules
/gnu/store/fi77qxlq9ga6rgl9gg1xfxkfw7vps2l3-gtk-im-modules
/gnu/store/ggrwghpwyfwrmxb90aj846c3ydwprqvl-gtk-im-modules
/gnu/store/miiv6rnlrhbjk34l1ga7v6ys1x6983q4-libxfce4ui-4.12.0
/gnu/store/rki1c8z0v7crppym7qzqys894pikxljc-garcon-0.4.0

--> /gnu/store/blxcjvmcpm4h80wmzrjh8z8hxjp6a7cj-gtk+-2.24.31/
/gnu/store/blxcjvmcpm4h80wmzrjh8z8hxjp6a7cj-gtk+-2.24.31
/gnu/store/sd4qn7ar9a7xyahv6ywvjwa3q0jqngbs-xfce4-taskmanager-1.1.0
/gnu/store/w5ybzdmixcji3ffngqvs8kcnysr265ww-libwnck-2.30.7
/gnu/store/wpy59cvw89rq607i2qsfagavllxc0ixf-murrine-0.98.2

--> /gnu/store/jwaxdxsxfd220dx5a1crcbw3nh2nnpmy-gtk+-2.24.31/
/gnu/store/agfcmv3vyl6s5kwg74xw3hrp76xyc6g0-gnome-themes-standard-3.22.3
/gnu/store/jwaxdxsxfd220dx5a1crcbw3nh2nnpmy-gtk+-2.24.31

--> /gnu/store/lf7379mdvch8y1i1ds4lqblm43sfzlbf-gtk+-2.24.31/
/gnu/store/360i9ca4gnm3rsjj8v43ih0j3mfrp40n-icecat-52.6.0-gnu1
/gnu/store/bnwiazvkqspg4nwg95hs4cj4dvshi0j4-gparted-0.30.0
/gnu/store/c6qmgjl5pv94yh9j5y1i2clcvxslgs68-gtkmm-2.24.5
/gnu/store/gd5kml4ci17nblgr05k38i4w2rpn5fap-webkitgtk-2.18.6
/gnu/store/lf7379mdvch8y1i1ds4lqblm43sfzlbf-gtk+-2.24.31
/gnu/store/mm5qhds0x1vxs37gwf9kxakilawcl8iw-claws-mail-3.16.0

--> /gnu/store/mnxrb9zgbdglhsr98h7r2skn6wv7zvsp-gtk+-2.24.31/
/gnu/store/fmhaw615y43mjrijc0wm6s5ar4xnmy9w-leafpad-0.8.18.1
/gnu/store/gq6iw1d77rbndpz7niijp636rp6kcdyc-gtk-xfce-engine-2.10.1
/gnu/store/mnxrb9zgbdglhsr98h7r2skn6wv7zvsp-gtk+-2.24.31
/gnu/store/s1klb9q9aczcgzffvn7kq6azcdf5aw3g-gtk-engines-2.20.2

--> /gnu/store/rbzlcg13vpabvj2sr6c67icd15wq0vhz-gtk+-2.24.31/
/gnu/store/16rwx833av4k48hk2diqj87mwsc457j3-gtk-im-modules
/gnu/store/rbzlcg13vpabvj2sr6c67icd15wq0vhz-gtk+-2.24.31


It is possible to draw a conclusion, that each application refers the
SEPARATE version of library. What??? Somebody can explain it?



Problems with guile

2018-03-12 Thread Jone
Hello! I wanted to learn more about Scheme. Earlier I could run guile,
but after latest updates (maybe, updates - not sure):
 ~> guile
Backtrace:
  12 (apply-smob/1 #)
In ice-9/boot-9.scm:
705:2 11 (call-with-prompt ("prompt") # …)
In ice-9/eval.scm:
619:8 10 (_ #(#(#)))
In unknown file:
   9 (primitive-load "/home/jone/.guile")
In ice-9/eval.scm:
   721:20  8 (primitive-eval (use-modules (ice-9 readline)))
In ice-9/psyntax.scm:
  1235:36  7 (expand-top-sequence ((use-modules (ice-9 readline))) _ …)
  1182:24  6 (parse _ (("placeholder" placeholder)) ((top) #(# # …)) …)
   285:10  5 (parse _ (("placeholder" placeholder)) (()) _ c (eval) …)
In ice-9/boot-9.scm:
  3365:20  4 (process-use-modules _)
   222:17  3 (map1 (((ice-9 readline
  3366:31  2 (_ ((ice-9 readline)))
   2791:6  1 (resolve-interface _ #:select _ #:hide _ #:prefix _ # _ …)
In unknown file:
   0 (scm-error misc-error #f "~A ~S" ("no code for modu…" …) …)
ERROR: In procedure scm-error:
no code for module (ice-9 readline)


 ~> guix package -I guile
guile-readline  2.2.3
  - installed for test, freshly

 ~> guix package -p /run/current-system/profile -I guile
guile   2.2.3


After comment string in ~/.guile "(use-modules (ice-9 readline))"
guile starts, but does not highlight matching brackets as before.
??





Re: A few questions about packages

2018-03-11 Thread Jone
>Your user’s profiles are not the only ones that can keep packages
>alive.
>You also have a system profile with potentially multiple generations.
>They are stored under /var/guix/profiles/system*

This we already figured out previously in this thread :) 
And:

"Label : GNU with Linux-Libre 4.15.7 (beta)
Prev. generation  : 0  
Current   : Yes
Number of packages: 88  Packages
File name: 
  /var/guix/profiles/system-4-link"

The question remains.



Re: A few questions about packages

2018-03-11 Thread Jone
> On 07/03/2018, Jone wrote:

> Hello. Can I remove old package versions and other builds? On the 
> example of Icecat:
> 
>      252.1 MiB [  ] 
> /5ym67s5vp1vmnc3y4ds4r3687vc3nl25-icecat-52.6.0-gnu1
>      252.0 MiB [  ] 
> /360i9ca4gnm3rsjj8v43ih0j3mfrp40n-icecat-52.6.0-gnu1
>      246.8 MiB [  ] 
> /kd0nnq3i0qarx4vqxcampxfj3igxn84h-icecat-52.3.0-gnu1

Seems I has understood not until the end of..
After running 'guix package -d && guix gc':

ls -d /gnu/store/*gtk+*/

/gnu/store/9kv6d924wcii38zwd4jbkxzlaz8hsl4z-gtk+-3.22.26/
/gnu/store/baps67ax5wj5njl7mcpg825v7wvcd1g6-gtk+-3.22.21/
/gnu/store/blxcjvmcpm4h80wmzrjh8z8hxjp6a7cj-gtk+-2.24.31/
/gnu/store/gfz7znplsbgsw2npdbz5vgfl90q222hv-gtk+-3.22.26/
/gnu/store/j74pvcwvx93fnaq3j6jj1rxzhj80bk16-gtk+-2.24.31/
/gnu/store/jwaxdxsxfd220dx5a1crcbw3nh2nnpmy-gtk+-2.24.31/
/gnu/store/kx3p64ff6pnyj2wppj78s3d41a49d4lp-gtk+-3.22.26-bin/
/gnu/store/lf7379mdvch8y1i1ds4lqblm43sfzlbf-gtk+-2.24.31/
/gnu/store/mnxrb9zgbdglhsr98h7r2skn6wv7zvsp-gtk+-2.24.31/
/gnu/store/rbzlcg13vpabvj2sr6c67icd15wq0vhz-gtk+-2.24.31/
/gnu/store/wsdqwpm22l8dgqqibzbgx5zn4bnkz0ci-gtk+-3.22.26/Can be as something 
optimize?
/gnu/store/z23h6jgiyv180gxvmdc8xnpaqxd2bm7k-gtk+-2.24.31/
/gnu/store/zpvxja0ajxddyxjc1lsnhz53j0ysh822-gtk+-2.24.31/

How can I verify if these paths are needed and for what purpose? Can be
as something optimize (guix gc --optimize not do anything)?



Re: A few questions about packages

2018-03-10 Thread Jone
Another question.. Package zip refers to "compression" package source.
Can I not specify individual packages, but install all of this group?
Can I do this with a single command? (This is a general question, not
just about zip).



Re: A few questions about packages

2018-03-07 Thread Jone
Solved with emacs-guix (very cool tool!):
guix-system-generations -> select to delete (d) -> execute (x) -> guix gc


Re: A few questions about packages

2018-03-07 Thread Jone
Thanks to all respondents, I thumbed through manual. All my questions
relate exclusively to 'reconfigure' and old grub menu entries, and old
system configurations.
guix gc Ok, next:

guix gc -d /gnu/store/kd0nnq3i0qarx4vqxcampxfj3igxn84h-icecat-52.3.0-gnu1
finding garbage collector roots...
guix gc: error: build failed: cannot delete path
`/gnu/store/kd0nnq3i0qarx4vqxcampxfj3igxn84h-icecat-52.3.0-gnu1' since it
is still alive

 - icecat-52.3.0-gnu1 was installed in the first (or second) system
configuration, next 'reconfigure' and 'reconfigure' and 'reconfigure'.. Or
two version of linux-libre - too there is too much :)


A few questions about packages

2018-03-07 Thread Jone
Hello. Can I remove old package versions and other builds? On the example
of Icecat:

252.1 MiB [  ]
/5ym67s5vp1vmnc3y4ds4r3687vc3nl25-icecat-52.6.0-gnu1
252.0 MiB [  ]
/360i9ca4gnm3rsjj8v43ih0j3mfrp40n-icecat-52.6.0-gnu1
246.8 MiB [  ]
/kd0nnq3i0qarx4vqxcampxfj3igxn84h-icecat-52.3.0-gnu1

(Or is it possible to remove a specific package, in "package-version"
format?)

And the next question, is also about Icecat: version 52.6.0 was compiled
from source. This is too long. Can I create binary package from this local
installation?

If possible, please give a couple of examples.


Re: Error system reconfigure with guix-latest

2018-03-06 Thread Jone
Ok, with Your version of a config 'reconfigure' starts, normal output. Also
I added some more packages
to the selected.

But further in an output I see something, similar to compilation of
packages (for "ffmpeg" and
"icecat-52.6.0"), as in Gentoo. Well, that is exactly the output of GCC!
Possibly, this take time..


Re: Error system reconfigure with guix-latest

2018-03-05 Thread Jone
> Can you post the whole config file so we can investigate?

My current config:

;; Prepare environment
(use-modules
 (gnu)
 (gnu packages base)
 (gnu packages admin)
 (gnu packages linux)
 (gnu packages emacs)
 (gnu packages xfce)
 (gnu packages gnuzilla)
 (gnu packages tmux)
 (gnu packages curl)
 (gnu packages video)
 (gnu packages version-control)
 (gnu services networking)
 (gnu system nss)
)
(use-service-modules networking desktop)
(use-package-modules bootloaders ssh)

;; Select packages
(define %pkg-group-base
  '("xfce" "slim" "emacs" "icecat"))
(define %pkg-group-dev
  '("gcc" "glibc" "gcc-toolchain" "git" "automake" "autoconf" "cmake" "make"
"perl" "guile"
"strace"
"linux-libre-headers" "mesa-headers"))

;;;  other pkg groups definitions, omitted 

(operating-system
 (host-name "guix")
 (timezone "Europe/Moscow")
 (locale "en_US.utf8")
 (bootloader (bootloader-configuration
  (bootloader grub-bootloader)
  (target "/dev/sdd")
  (menu-entries (menu-entry
   (label "Old")
   (linux "/boot/vmlinuz-4.14.9-calculate")
   (linux-arguments '("root=/dev/sda3"))
   (initrd
"/boot/initramfs-4.14.9-calculate.img")))
  ))

 (initrd-modules (cons* "sata_nv";; Nvidia nForce
"pata_acpi" %base-initrd-modules))

 (file-systems (cons*
(file-system
 (device "two")
 (mount-point "/")
 (type "ext4")
 (options "noatime,discard 0 1")
 (title 'label))
(file-system
 (device "one")
 (mount-point "/home")
 (type "ext4")
 (options "noatime,discard 0 0")
 (title 'label))
(file-system
 (device "634a6369-c5a8-4f4c-b3e8-35fb92cf850e")
 (mount-point "/mnt/WD-HDD")
 (type "ext4")
 (options "noatime")
 (title 'uuid))
%base-file-systems))
(swap-devices '("/dev/disk/by-uuid/0602935f-4ed2-4805-9ec9-e0c06238abf5"))

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

(packages (append (map specification->package
   (append %pkg-group-base
   %pkg-group-dev))
  %base-packages))
(services (cons*
   ;; (dhcp-client-service)
   (xfce-desktop-service)
   %desktop-services)))


Re: Error system reconfigure with guix-latest

2018-03-04 Thread Jone
Thanks. I rewrite config, following your advice and run 'guix system
--verbosity=10 reconfigure new.scm':

acquiring global GC lock `/var/guix/gc.lock'
acquiring read lock on `/var/guix/temproots/434'
acquiring write lock on `/var/guix/temproots/434'
downgrading to read lock on `/var/guix/temproots/434'
acquiring write lock on `/var/guix/temproots/434'
downgrading to read lock on `/var/guix/temproots/434'
acquiring write lock on `/var/guix/temproots/434'
downgrading to read lock on `/var/guix/temproots/434'
acquiring write lock on `/var/guix/temproots/434'
downgrading to read lock on `/var/guix/temproots/434'
acquiring write lock on `/var/guix/temproots/434'
downgrading to read lock on `/var/guix/temproots/434'
acquiring write lock on `/var/guix/temproots/434'
downgrading to read lock on `/var/guix/temproots/434'
acquiring write lock on `/var/guix/temproots/434'
downgrading to read lock on `/var/guix/temproots/434'
acquiring write lock on `/var/guix/temproots/434'
downgrading to read lock on `/var/guix/temproots/434'
acquiring write lock on `/var/guix/temproots/434'
downgrading to read lock on `/var/guix/temproots/434'
acquiring write lock on `/var/guix/temproots/434'
downgrading to read lock on `/var/guix/temproots/434'
acquiring write lock on `/var/guix/temproots/434'
downgrading to read lock on `/var/guix/temproots/434'
acquiring write lock on `/var/guix/temproots/434'
downgrading to read lock on `/var/guix/temproots/434'
acquiring write lock on `/var/guix/temproots/434'
downgrading to read lock on `/var/guix/temproots/434'
acquiring write lock on `/var/guix/temproots/434'
downgrading to read lock on `/var/guix/temproots/434'
acquiring write lock on `/var/guix/temproots/434'
downgrading to read lock on `/var/guix/temproots/434'
acquiring write lock on `/var/guix/temproots/434'
downgrading to read lock on `/var/guix/temproots/434'
...

and the same thing many more times.
This is a bug?


Error system reconfigure with guix-latest

2018-03-04 Thread Jone
Hello!
I'm newbie. After update system (guix pull) I see this error:

root@guix ~# guix system -n reconfigure /etc/CURRENT.scm
/etc/CURRENT.scm:37:24: error: you need these modules in the initrd for
/dev/sdb2: sata_nv pata_acpi

BUT:
1. Prior to this (before upgrade) everything was OK
2. sata_nv and pata_acpi already selected in CURRENT.scm:

(operating-system
  (host-name "guix")
  (timezone "Europe/Moscow")
  (locale "en_US.utf8")
  (bootloader (bootloader-configuration
   (bootloader grub-bootloader)
   (target "/dev/sdd")))
  (initrd (lambda (file-systems . rest)
  (apply base-initrd file-systems
#:extra-modules '("sata_nv" "pata_acpi")
rest)))
  (file-systems (cons*
  (file-system
(device "two")
 (mount-point "/")
 (type "ext4")
 (title 'label))
(file-system
 (device "one")
 (mount-point "/home")
 (type "ext4")
 (title 'label))
 %base-file-systems))

I didn't find any answers in GuixSD documentation..