Subject: bug#54400: Emacs error in Ubuntu

From: Liliana Marie Prikler <[email-masked]>
Date: Wed, 16 Mar 2022 09:02:58 +0100

Hi Vicente,

Am Dienstag, dem 15.03.2022 um 17:09 +0100 schrieb Vicente Mataix
ferrandiz:
> Greetings,
> 
> I follow the instructions from:
> 
> https://guix.gnu.org/manual/en/guix.html#Binary-Installation
> 
> Installation (Ubuntu 20.04):
> 
> cd /tmp
> wget
> https://git.savannah.gnu.org/cgit/guix.git/plain/etc/guix-install.sh
> chmod +x guix-install.sh
> ./guix-install.sh
> guix install glibc-utf8-locales
> export GUIX_LOCPATH="$HOME/.guix-profile/lib/locale"
> 
> Update:
> 
> guix pull
> 
> Install emacs:
> 
> guix install emacs
> 
> Load environment:
> 
> GUIX_PROFILE="$HOME/.guix-profile"
>     . "$GUIX_PROFILE/etc/profile"
> 
> Run emacs:
> 
> emacs
> 
> /home/vmataixf/.guix-profile/bin/emacs: error while loading shared
> libraries: liblzma.so.5: cannot open shared object file: No such file
> or director
That is an interesting and surprisingly difficult to debug error you
have there.  On Guix System, we have
--8<---------------cut here---------------start------------->8---
$ ldd $GUIX_ENVIRONMENT/bin/.emacs-27.2-real | grep lzma
	liblzma.so.5 => /gnu/store/c8isj4jq6knv0icfgr43di6q3nvdzkx7-xz-5.2.5/lib/liblzma.so.5 (0x00007f7919fee000)
--8<---------------cut here---------------end--------------->8---
where xz is one of those magic libraries you'd expect to exist in any
distro.  However,

--8<---------------cut here---------------start------------->8---
$ guix show emacs | recsel -p dependencies
dependencies: [email-masked] [email-masked] [email-masked] [email-masked]
+ [email-masked] [email-masked] [email-masked] [email-masked] [email-masked] [email-masked]
+ [email-masked] [email-masked] [email-masked] [email-masked] [email-masked]
+ [email-masked] [email-masked] [email-masked] [email-masked] [email-masked]
+ [email-masked] [email-masked] [email-masked] [email-masked] [email-masked]
+ [email-masked] [email-masked] [email-masked] [email-masked]
+ [email-masked] [email-masked] [email-masked] [email-masked]
--8<---------------cut here---------------end--------------->8---

If at all, xz is included as implicit input to unpack Emacs!  We should
probably add it as explicit input instead.

Cheers