guix system reconfigure compiles everything too long
Hello! I have been running `guix system reconfigure /etc/config.scm` before, and it finished after 1 or 2 hours. Now it is working more than 6 hours on Lenovo G50-30. It compiles everything http://0x0.st/sxda.png http://0x0.st/sxnm.png even icecat http://0x0.st/sx51.png I want it uses binaries, do not need to compile sources. Cannot understand, why adding (packages (cons* icecat)) produces compilation process of icecat? Please, what is wrong? My current /etc/config.scm is this: # cat /etc/config.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) (gnu packages lxde) (gnu packages gnuzilla) (gnu packages image-viewers) (gnu packages curl) (gnu packages wget) (gnu packages compression) ) (use-service-modules desktop) (use-package-modules certs gnome) (operating-system (host-name "antelope") (timezone "Europe/Moscow") (locale "en_US.utf8") ;; Use the UEFI variant of GRUB with the EFI System ;; Partition mounted on /boot/efi. (bootloader (bootloader-configuration (bootloader grub-bootloader) (target "/dev/sda"))) (file-systems (cons (file-system (device "/dev/sda1") (mount-point "/") (type "ext4") ) %base-file-systems)) (swap-devices '("/dev/sda2")) (users (cons* (user-account (name "bob") (comment "bob is good too") (group "users") (supplementary-groups '("wheel" "netdev" "audio" "video")) (home-directory "/home/bob")) %base-user-accounts)) ;; This is where we specify system-wide packages. (packages (cons* nss-certs ;for HTTPS access gvfs ;for user mounts lxde lxde-common lxde-icon-theme lxpanel lxmenu-data lxinput lxsession pcmanfm gedit file-roller evince gpicview icecat curl wget unzip %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 ;; NetworkManager, and more. (services (cons* (xfce-desktop-service) %desktop-services)) ;; Allow resolution of '.local' host names with mDNS. (name-service-switch %mdns-host-lookup-nss)) And my old config was this: # cat /root/config.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 "antelope") (timezone "Europe/Moscow") (locale "en_US.utf8") ;; Use the UEFI variant of GRUB with the EFI System ;; Partition mounted on /boot/efi. (bootloader (bootloader-configuration (bootloader grub-bootloader) (target "/dev/sda"))) (file-systems (cons (file-system (device "/dev/sda1") (mount-point "/") (type "ext4") ) %base-file-systems)) (swap-devices '("/dev/sda2")) (users (cons* (user-account (name "bob") (comment "bob is good too") (group "users") (supplementary-groups '("wheel" "netdev" "audio" "video")) (home-directory "/home/bob")) %base-user-accounts)) ;; This is where we specify system-wide packages. (packages (cons* nss-certs ;for HTTPS access gvfs ;for user mounts %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 ;; NetworkManager, and more. (services (cons* (xfce-desktop-service) %desktop-services)) ;; Allow resolution of '.local' host names with mDNS. (name-service-switch %mdns-host-lookup-nss)) Why new config takes so much time? And after new system reconfiguration I have KDE and Gnome. But I need only LXDE and Xfce.
Re: Trying to package GIMP Resynthesizer
Hi Thorsten, On September 19, 2018 12:25:23 PM UTC, Thorsten Wilms wrote: >Hi! > >I'm trying to package https://github.com/bootchk/resynthesizer > >Unfortunately, this happens: > >--- >$: guix build --keep-failed gimp-resynthesizer >checking that generated files are newer than configure... done >configure: creating ./config.status >./configure: line 9047: /bin/sh: No such file or directory >--- I've had this before, and the way I could work around it was by setting the SHELL environment variable. Grep for 'setenv "SHELL"' in the package sources and I'm sure you'll find instances of that. I'm not sure of the root cause, probably there are some hard-coded paths somewhere that should be patched in one of our packages? HTH! Maxim
Re: LXDE desktop in config.scm
Thank you very much, Leo Famulari! Yes, only 2 changes in config make my system offers LXDE on login screen. These: adding to (use-modules (gnu packages lxde)) and adding to (packages (cons* lxde)) But I have 4 troubles now. First is that I have all DEs installed now, but I want only Xfce and LXDE. I have 5 elements on login screen now: - Xfce, as it was - KDE, - LXDE, as I wanted to add - Gnome - Openbox Sorry, why? I do not need KDE, Gnome. I thought this config only adds LXDE. Please, what is wrong in my config? I only added lxde, gedit, icecat to (packages) list and (gnu packages lxde), (gnu packages gnuzilla) to (use-modules) list. # cat /etc/config.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) (gnu packages lxde) (gnu packages gnuzilla) ) (use-service-modules desktop) (use-package-modules certs gnome) (operating-system (host-name "antelope") (timezone "Europe/Moscow") (locale "en_US.utf8") ;; Use the UEFI variant of GRUB with the EFI System ;; Partition mounted on /boot/efi. (bootloader (bootloader-configuration (bootloader grub-bootloader) (target "/dev/sda"))) ;; Specify a mapped device for the encrypted root partition. ;; The UUID is that returned by 'cryptsetup luksUUID'. ;(mapped-devices ; (list (mapped-device ;(source (uuid "12345678-1234-1234-1234-hash888abc")) ;(target "my-root") ;(type luks-device-mapping (file-systems (cons (file-system (device "/dev/sda1") (mount-point "/") (type "ext4") ) %base-file-systems)) (swap-devices '("/dev/sda2")) (users (cons (user-account (name "bob") (comment "bob is good too") (group "users") (supplementary-groups '("wheel" "netdev" "audio" "video")) (home-directory "/home/bob")) %base-user-accounts)) ;; This is where we specify system-wide packages. (packages (cons* nss-certs ;for HTTPS access gvfs ;for user mounts gedit icecat lxde %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 ;; NetworkManager, and more. (services (cons* (xfce-desktop-service) %desktop-services)) ;; Allow resolution of '.local' host names with mDNS. (name-service-switch %mdns-host-lookup-nss)) The second problem is that in LXDE I cannot switch keyboard to another language. I added applet 'Keyboard handler', configured it not to use system configurations, added russian (and turkish to try), checked Left-Win and also Alt-Shift for switch, but no keyboard keys, no mouse clicks to flag nothing giving effect. I have only US keyboard. How to figure? May be, I need to add other packages to config.scm like lxde-common, lxpannel, lxinput? The third problem, when I add applet Volume control it does not appears. I need something else to add to config? In Xfce I had nice pavucontrol applet on a panel. Th fourth is that on Xfce and LXDE I have no menu icons in video players, also in xfce-terminal: http://0x0.st/sxlH.png http://0x0.st/sxkQ.png What to do? I ask this cause last `guix system reconfigure /etc/config.scm` worked too long on my Lenovo G50-30 and I need exact instructions that were never described specially for me. ‐‐‐ Original Message ‐‐‐ среда, сентябрь 19, 2018 12:48 ночи, Leo Famulari пишет: > On Tue, Sep 18, 2018 at 04:58:52PM +, znavko wrote: > > > Here are presented only xfce-desktop-service, gnome-desktop-service, > > mate-desktop-service, but no lxde. > > These services, which provide desktop using XFCE, GNOME, and MATE, are > defined in the file 'gnu/services/desktop.scm': > > https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/services/desktop.scm > > Currently, we don't have a desktop service for LXDE. > > Maybe a service is not required? It's possible to use i3 without a > desktop service. One just adds 'i3-wm' to the 'packages' field of their > config.scm and it will be available at the login screen. > > > ;; This is where we specify system-wide packages. > > (packages (cons* nss-certs ;for HTTPS access > > gvfs ;for user mounts > > gedit > > icecat > > %base-packages)) > > You could try adding lxde to that list... > > > ;; 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 > > ;; NetworkManager, and more. > > (services
Re: LXDE desktop in config.scm
Leo Famulari transcribed 2.3K bytes: > On Tue, Sep 18, 2018 at 04:58:52PM +, znavko wrote: > > Here are presented only xfce-desktop-service, gnome-desktop-service, > > mate-desktop-service, but no lxde. > > These services, which provide desktop using XFCE, GNOME, and MATE, are > defined in the file 'gnu/services/desktop.scm': > > https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/services/desktop.scm > > Currently, we don't have a desktop service for LXDE. > > Maybe a service is not required? It's possible to use i3 without a > desktop service. One just adds 'i3-wm' to the 'packages' field of their > config.scm and it will be available at the login screen. > > > ;; This is where we specify system-wide packages. > > (packages (cons* nss-certs ;for HTTPS access > >gvfs ;for user mounts > >gedit > >icecat > >%base-packages)) > > You could try adding lxde to that list... As far as I know we don't even have a functional LXDE stack? I've been working slowly on lxde + lxqt, none of them in a state where you can log into it. > > > > ;; 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 > > ;; NetworkManager, and more. > > (services (cons* (xfce-desktop-service) > >%desktop-services)) > > ... and, unless you want to use XFCE, change that to (services > %desktop-services)
Re: LXDE desktop in config.scm
Nevermind my last email, I got a bit mixed up between lxqt and lxde. (Oops, I even added 'lxde' myself)
Trying to package GIMP Resynthesizer
Hi! I'm trying to package https://github.com/bootchk/resynthesizer Unfortunately, this happens: --- $: guix build --keep-failed gimp-resynthesizer checking that generated files are newer than configure... done configure: creating ./config.status ./configure: line 9047: /bin/sh: No such file or directory --- What I have so far: --- (define-module (gimp-resynthesizer) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix build-system gnu) #:use-module (gnu packages gtk) #:use-module (gnu packages pkg-config) #:use-module (gnu packages autotools) #:use-module (gnu packages glib) #:use-module (gnu packages gimp)) ;; GIMP does not respect any plugin search path environment variable, so after ;; installation users have to edit their GIMP settings to include ;; “$GUIX_PROFILE/lib/gimp/2.0/plug-ins” in ;; “Edit->Preferences->Folders->Plug Ins”. (define-public gimp-resynthesizer (package (name "gimp-resynthesizer") (version "2.0.3") (source (origin (method url-fetch) (uri (string-append "https://github.com/bootchk/resynthesizer/archive/v"; version ".tar.gz")) (sha256 (base32 "0l3404w6rqny7h3djskxf149gzx6x4qhndgbh3403c9lbh4pi1kr" (build-system gnu-build-system) (native-inputs `(("autoconf" ,autoconf-wrapper) ("automake" ,automake) ("glib" ,glib "bin") ; glib-gettextize ("intltool" ,intltool) ("pkg-config" ,pkg-config))) (inputs `(("gimp" ,gimp) ("gdk-pixbuf" ,gdk-pixbuf) ; needed by gimp-2.0.pc ("cairo" ,cairo) ("gegl" ,gegl) ("gtk+" ,gtk+-2) ; needed by gimpui-2.0.pc ("glib" ,glib))) (home-page "https://github.com/bootchk/resynthesizer";) (synopsis "GIMP plugins for texture synthesis") (description "Resynthesizer plugins for GIMP. Encompasses tools for healing selections (content aware fill), enlarging the canvas and healing the border, increasing the resolution while adding detail and transfering the style of an image.") (license license:gpl3+))) --- Since I hardly know what I'm doing, I have been bothering people in #guix and using gimp-fourier from gimp.scm as reference: --- (define-public gimp-fourier (package (name "gimp-fourier") (version "0.4.3-2") (source (origin (method url-fetch) (uri (string-append "http://registry.gimp.org/files/fourier-"; version ".tar.gz")) (sha256 (base32 "1rpacyad678lqgxa3hh2n0zpg4azs8dpa8q079bqsl12812k9184" (build-system gnu-build-system) (arguments `(#:tests? #f ;no tests #:phases (modify-phases %standard-phases ;; FIXME: The gegl package only installs "gegl-0.4.pc", but ;; "gimp-2.0.pc" requires "gegl-0.3.pc", so we just copy it. (replace 'configure (lambda* (#:key inputs #:allow-other-keys) (mkdir-p "tmppkgconfig") (copy-file (string-append (assoc-ref inputs "gegl") "/lib/pkgconfig/gegl-0.4.pc") "tmppkgconfig/gegl-0.3.pc") (setenv "PKG_CONFIG_PATH" (string-append "tmppkgconfig:" (or (getenv "PKG_CONFIG_PATH") ""))) #t)) (add-after 'unpack 'set-prefix (lambda* (#:key outputs #:allow-other-keys) ;; gimptool-2.0 does not allow us to install to any target ;; directory. (let ((target (string-append (assoc-ref outputs "out") "/lib/gimp/" (car (string-split ,(package-version gimp) #\.)) ".0/plug-ins"))) (substitute* "Makefile" (("\\$\\(PLUGIN_INSTALL\\) fourier") (string-append "cp fourier " target))) (mkdir-p target)) #t) (inputs `(("fftw" ,fftw) ("gimp" ,gimp) ;; needed by gimp-2.0.pc ("gdk-pixbuf" ,gdk-pixbuf) ("gegl" ,gegl) ("cairo" ,cairo) ("glib" ,glib) ;; needed by gimpui-2.0.pc ("gtk+" ,gtk+-2))) (native-inputs `(("pkg-config" ,pkg-config))) (home-page "http://registry.gimp.org/node/19596";) (synopsis "GIMP plug-in to edit image in fourier space") (description "This package provides a simple plug-in to apply the fourier transform on an image, allowing you to work with the transformed image inside GIMP. You can draw or apply filters in fourier space and get the modified image with an inverse fourier transform.") (license license:gpl3+))) --- I suspect I will need the (add-after 'unpack 'set-prefix ...) form, too, but ... one step at a time and no cargo-culting :) I've been to
Re: Fish shell error: __fish_pwd in command substitution called on standard input
OK, found out what's happening thanks to Nils' links. Running `guix build --check fish` fixes the issue... until next garbage collection, which explains why I would not always see the issue. I'll keep discussing this at https://issues.guix.info/issue/30265. -- Pierre Neidhardt https://ambrevar.xyz/ signature.asc Description: PGP signature