bug#51928: GHC 8.10 occupies 1.6 GiB

2021-11-17 Thread Ludovic Courtès
Hi!

GHC takes way too much space (GHC itself, not the closure):

--8<---cut here---start->8---
$ guix size ghc@8.10
konserveja ero   totalself
/gnu/store/allyyvs2xg396s23csrmqfx19n9zayp7-ghc-8.10.71831.0  
1599.4  87.3%
/gnu/store/z9alkwg8anajvasd01pyx4rzcasli3yf-ghc-8.10.7-doc 190.2   
150.8   8.2%
/gnu/store/fa6wj5bxkj5ll1d7292a70knmyl7a0cr-glibc-2.31  38.4
36.7   2.0%
/gnu/store/01b4w3m6mp55y531kyi1g8shh722kwqm-gcc-7.5.0-lib   71.0
32.6   1.8%
/gnu/store/zzkly5rbfvahwqgcs7crz0ilpi7x5g5p-ncurses-6.2 76.9 
5.9   0.3%
/gnu/store/35afkywncrr5xsb4cxcljf6rpjcb7f61-gmp-6.2.0   73.8 
2.7   0.2%
/gnu/store/mmhimfwmmidf09jw1plw3aw1g1zn2nkh-bash-static-5.0.16   1.6 
1.6   0.1%
/gnu/store/pwcp239kjf7lnj5i4lkdzcfcxwcfyk72-bash-minimal-5.0.16 39.4 
1.0   0.1%
/gnu/store/bw15z9kh9c65ycc2vbhl2izwfwfva7p1-libffi-3.3  71.2 
0.2   0.0%
total: 1831.0 MiB
$ guix describe
Generacio 194   Nov 07 2021 23:40:30(nuna)
  guix bd41e59
repository URL: https://git.savannah.gnu.org/git/guix.git
branch: master
commit: bd41e590dd24e54797fb8b6854c244efd4d12df5
--8<---cut here---end--->8---

Most of it comes from $libdir, specifically:

--8<---cut here---start->8---
$ du -s 
/gnu/store/ifr4svr31053fgqay0il5acipl7b6579-ghc-8.10.7/lib/ghc-8.10.7/*|sort 
-k1 -n| tail
23756   
/gnu/store/ifr4svr31053fgqay0il5acipl7b6579-ghc-8.10.7/lib/ghc-8.10.7/haskeline-0.8.2
28776   
/gnu/store/ifr4svr31053fgqay0il5acipl7b6579-ghc-8.10.7/lib/ghc-8.10.7/text-1.2.4.1
47664   
/gnu/store/ifr4svr31053fgqay0il5acipl7b6579-ghc-8.10.7/lib/ghc-8.10.7/containers-0.6.5.1
48428   
/gnu/store/ifr4svr31053fgqay0il5acipl7b6579-ghc-8.10.7/lib/ghc-8.10.7/ghc-prim-0.6.1
50768   
/gnu/store/ifr4svr31053fgqay0il5acipl7b6579-ghc-8.10.7/lib/ghc-8.10.7/ghci-8.10.7
54100   
/gnu/store/ifr4svr31053fgqay0il5acipl7b6579-ghc-8.10.7/lib/ghc-8.10.7/template-haskell-2.16.0.0
80200   
/gnu/store/ifr4svr31053fgqay0il5acipl7b6579-ghc-8.10.7/lib/ghc-8.10.7/bin
151868  
/gnu/store/ifr4svr31053fgqay0il5acipl7b6579-ghc-8.10.7/lib/ghc-8.10.7/base-4.14.3.0
426416  
/gnu/store/ifr4svr31053fgqay0il5acipl7b6579-ghc-8.10.7/lib/ghc-8.10.7/Cabal-3.2.1.0
538168  
/gnu/store/ifr4svr31053fgqay0il5acipl7b6579-ghc-8.10.7/lib/ghc-8.10.7/ghc-8.10.7
$ du -s 
/gnu/store/ifr4svr31053fgqay0il5acipl7b6579-ghc-8.10.7/lib/ghc-8.10.7/ghc-8.10.7/*|sort
 -k1 -n|tail
652 
/gnu/store/ifr4svr31053fgqay0il5acipl7b6579-ghc-8.10.7/lib/ghc-8.10.7/ghc-8.10.7/Llvm
716 
/gnu/store/ifr4svr31053fgqay0il5acipl7b6579-ghc-8.10.7/lib/ghc-8.10.7/ghc-8.10.7/SPARC
1108
/gnu/store/ifr4svr31053fgqay0il5acipl7b6579-ghc-8.10.7/lib/ghc-8.10.7/ghc-8.10.7/RegAlloc
2256
/gnu/store/ifr4svr31053fgqay0il5acipl7b6579-ghc-8.10.7/lib/ghc-8.10.7/ghc-8.10.7/DynFlags.dyn_hi
2256
/gnu/store/ifr4svr31053fgqay0il5acipl7b6579-ghc-8.10.7/lib/ghc-8.10.7/ghc-8.10.7/DynFlags.hi
2256
/gnu/store/ifr4svr31053fgqay0il5acipl7b6579-ghc-8.10.7/lib/ghc-8.10.7/ghc-8.10.7/DynFlags.p_hi
23724   
/gnu/store/ifr4svr31053fgqay0il5acipl7b6579-ghc-8.10.7/lib/ghc-8.10.7/ghc-8.10.7/GHC
90908   
/gnu/store/ifr4svr31053fgqay0il5acipl7b6579-ghc-8.10.7/lib/ghc-8.10.7/ghc-8.10.7/libHSghc-8.10.7-ghc8.10.7.so
127908  
/gnu/store/ifr4svr31053fgqay0il5acipl7b6579-ghc-8.10.7/lib/ghc-8.10.7/ghc-8.10.7/libHSghc-8.10.7.a
225972  
/gnu/store/ifr4svr31053fgqay0il5acipl7b6579-ghc-8.10.7/lib/ghc-8.10.7/ghc-8.10.7/libHSghc-8.10.7_p.a
--8<---cut here---end--->8---

Can we at least (re)move those ‘.a’ files?

Thoughts?

Ludo’.





bug#51869: [PATCH] Add emacs-vala-mode

2021-11-17 Thread Liliana Marie Prikler
Hi,

Am Dienstag, den 16.11.2021, 19:48 + schrieb Vivien Kraus:
> > > +   (emacs-substitute-sexps "vala-mode.el"
> > > + (";; Support multiline strings" 'disabled.)
> > > + ("(defcustom vala-multiline-strings nil"
> > > +  "This variable is ignored.")))
> > This inserts mostly bogus into the file rather than killing the
> > sexps
> > as it should.  
> 
> The first substitution fully kills the whole sexp (and inserts a
> comment that reads "Support for multiline strings disabled." if you
> don’t read too closely ^^). 
That was too sneaky for me :P

> It’s true that the second does not kill the defcustom expansion, but
> since it’s part of the intended public API, I’m not so sure we should
> remove it altogether. I think it’s clearer for the user that way,
> because the two modifications are kind of documented in the source.
> 
> Also, it’s shorter.
I'm pretty sure you can still use vala-multiline-strings inside a
custom-set-variables form, it will just do nothing as it ought to.  

> Anyway, Here are the two versions, you decide.
I rewrote your batch-edit version to be a little clearer and to leave
documented FIXMEs in the code.  I pushed the rewrite, so you should now
be able to use emacs-vala-mode, with or without lsp.

Cheers






bug#51900: [core-updates-frozen] xorg-server-xwayland broken

2021-11-17 Thread Guillaume Le Vaillant
According to [1], since 21.1 series of Xorg, XWayland is packaged
separately. The attached patch replaces xorg-xserver-xwayland by the
xwayland package.

However it looks like it's not working so far, the tests fail with:
--8<---cut here---start->8---
XKB: Failed to compile keymap
Keyboard initialization failed. This could be a missing or incorrect setup of 
xkeyboard-config.
(EE) 
Fatal server error:
(EE) Failed to activate virtual core keyboard: 2(EE)
--8<---cut here---end--->8---

I tried adding the same keyboard-related parameters as the ones in
xorg-server (xbk_dir and xkb_bin_dir), but it doesn't seem to
make a difference.

Does someone have an idea?


[1] https://lists.x.org/archives/xorg/2021-October/060799.html
From 457921b36c49c68e58ac067ede50637ce71a200c Mon Sep 17 00:00:00 2001
From: Guillaume Le Vaillant 
Date: Wed, 17 Nov 2021 15:20:34 +0100
Subject: [PATCH] WIP: gnu: Replace xorg-server-xwayland by xwayland.

* gnu/packages/xorg.scm (xorg-server-xwayland): Remove varable.
  (xwayland): New variable.
* gnu/packages/enlightenment.scm (enlightenment)[inputs]: Replace
  xorg-server-xwayland by xwayland.
* gnu/packages/freedesktop.scm (weston)[inputs, arguments]: Idem.
* gnu/packages/gnome.scm (mutter)[inputs, arguments]: Idem.
* gnu/packages/wm.scm (wlroots)[inputs, arguments]: Idem.
---
 gnu/packages/enlightenment.scm |  2 +-
 gnu/packages/freedesktop.scm   |  4 +--
 gnu/packages/gnome.scm |  4 +--
 gnu/packages/wm.scm|  5 ++-
 gnu/packages/xorg.scm  | 63 +++---
 5 files changed, 57 insertions(+), 21 deletions(-)

diff --git a/gnu/packages/enlightenment.scm b/gnu/packages/enlightenment.scm
index 8c7da4a5b4..9b3fcfabaa 100644
--- a/gnu/packages/enlightenment.scm
+++ b/gnu/packages/enlightenment.scm
@@ -369,7 +369,7 @@ (define-public enlightenment
("setxkbmap" ,setxkbmap)
("xcb-util-keysyms" ,xcb-util-keysyms)
("xkeyboard-config" ,xkeyboard-config)
-   ("xorg-server-xwayland" ,xorg-server-xwayland)))
+   ("xwayland" ,xwayland)))
 (propagated-inputs
  `(("efl" ,efl)
("libxkbcommon" ,libxkbcommon)
diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm
index 003da5c7a5..7511b2014c 100644
--- a/gnu/packages/freedesktop.scm
+++ b/gnu/packages/freedesktop.scm
@@ -1147,7 +1147,7 @@ (define-public weston
("pango" ,pango)
("pipewire" ,pipewire)
("wayland-protocols" ,wayland-protocols)
-   ("xorg-server-xwayland" ,xorg-server-xwayland)))
+   ("xwayland" ,xwayland)))
 (propagated-inputs
  `(("libxkbcommon" ,libxkbcommon)
("pixman" ,pixman)
@@ -1164,7 +1164,7 @@ (define-public weston
 "-Dbackend-default=auto"
 "-Dsystemd=false"
 (string-append "-Dxwayland-path="
-   (assoc-ref %build-inputs "xorg-server-xwayland")
+   (assoc-ref %build-inputs "xwayland")
"/bin/Xwayland"))
#:parallel-tests? #f   ; Parallel tests cause failures.
#:phases
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 39ab43c90c..73af9eddd9 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -7507,7 +7507,7 @@ (define-public mutter
 
  ;; The following flags are needed for the bundled clutter
  (string-append "-Dxwayland_path="
-(assoc-ref %build-inputs "xorg-server-xwayland")
+(assoc-ref %build-inputs "xwayland")
 "/bin/Xwayland")
 
  ;; the remaining flags are needed for the bundled cogl
@@ -7572,7 +7572,7 @@ (define-public mutter
("startup-notification" ,startup-notification)
("upower-glib" ,upower)
("xkeyboard-config" ,xkeyboard-config)
-   ("xorg-server-xwayland" ,xorg-server-xwayland)
+   ("xwayland" ,xwayland)
("zenity" ,zenity)))
 (synopsis "Window and compositing manager")
 (home-page "https://www.gnome.org;)
diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm
index e19a08da47..b746d68485 100644
--- a/gnu/packages/wm.scm
+++ b/gnu/packages/wm.scm
@@ -1486,8 +1486,7 @@ (define-public wlroots
  (add-before 'configure 'hardcode-paths
(lambda* (#:key inputs #:allow-other-keys)
  (substitute* "xwayland/server.c"
-   (("Xwayland") (string-append (assoc-ref inputs
-   "xorg-server-xwayland")
+   (("Xwayland") (string-append (assoc-ref inputs "xwayland")
 "/bin/Xwayland")))
  #t)
 (propagated-inputs
@@ -1503,7 +1502,7 @@ (define-public wlroots
("wayland-protocols" ,wayland-protocols)
("xcb-util-errors" ,xcb-util-errors)
("xcb-util-wm" ,xcb-util-wm)
-   ("xorg-server-xwayland" 

bug#36551: Waydroid

2021-11-17 Thread phodina via Bug reports for GNU Guix
Hi,

there's a new alternative to Anbox [1]. I've created patches that aim to bring 
the support [2].

Cheers
Petr

[1]: https://waydro.id/
[2]: http://issues.guix.gnu.org/51737





bug#51918: home-bash-service-type adds the defaults and aliases to the end of the file

2021-11-17 Thread Andrew Tropin
Test in guix-home.sh looks correct, but it fails:
https://git.savannah.gnu.org/cgit/guix.git/tree/tests/guix-home.sh?h=5eb5c0789f34e87ee417a53ddfcfa3b6521bb337#n98

Seems something changed in home-bash-service-type, for some reason it
adds the serialized content of aliases field and guix-bashrc variable
after the content of bashrc field.

Original implementation works as expected and adds the content of bashrc
to the end of ~/.bashrc.

--8<---cut here---start->8---
(list
 ((@ (gnu services) service)
  (@ (gnu home-services shells) home-bash-service-type)
  ((@ (gnu home-services shells) home-bash-configuration)
   (guix-defaults? #t)
   (bashrc (list "echo hi"
 ((@ (gnu services) simple-service)
  'test-bash
  (@ (gnu home-services shells) home-bash-service-type)
  ((@ (gnu home-services shells) home-bash-extension)
   (bashrc (list "echo very hi")
--8<---cut here---end--->8---

https://git.sr.ht/~abcdw/rde/tree/master/item/gnu/home-services/shells.scm

-- 
Best regards,
Andrew Tropin


signature.asc
Description: PGP signature


bug#51916: Can’t reconfigure with GNOME on core-updates-frozen

2021-11-17 Thread Vivien Kraus via Bug reports for GNU Guix

Dear guix,

There has been some discussion on IRC about this, but it lacks a formal
guix issue.

When using the gnome-service-type on core-updates-frozen, I can’t
reconfigure my system, because of the following error message:

guix system: error: profile contains conflicting entries for at-spi2-core
guix system: error:   first entry: at-spi2-core@2.40.0 
/gnu/store/6p5vr2dbvrcg5yd7frjhkbm1q5mapcs0-at-spi2-core-2.40.0
guix system: error:... propagated from at-spi2-atk@2.38.0
guix system: error:... propagated from gtk+@3.24.30
guix system: error:... propagated from network-manager-applet@1.22.0
guix system: error:   second entry: at-spi2-core@2.40.0 
/gnu/store/cczaicsl51krzxqfqll1dn451ngcai4h-at-spi2-core-2.40.0
guix system: error:... propagated from gnome@40.5
hint: Try upgrading both `network-manager-applet' and `gnome', or remove one of 
them from the profile.

Best regards,

Vivien


signature.asc
Description: PGP signature