Subject: bug#48335: Emacs is broken

From: Xinglu Chen <[email-masked]>
Date: Sat, 10 Jul 2021 17:55:20 +0200

On Thu, Jul 08 2021, Maxim Cournoyer wrote:

> Hello Xinglu,
>
> Xinglu Chen <[email-masked]> writes:
>
>> On Fri, May 21 2021, Maxim Cournoyer wrote:
>>
>>> Hi,
>>>
>>> Xinglu Chen <[email-masked]> writes:
>>>
>>>> ~/src/guix $ guix environment --ad-hoc emacs -- emacs --version
>>>> The following derivation will be built:
>>>>    /gnu/store/js53a7lydr66bk3wpwkaj1j8j43mirrm-profile.drv
>>>>
>>>> building CA certificate bundle...
>>>> listing Emacs sub-directories...
>>>> building fonts directory...
>>>> generating GLib schema cache...
>>>> creating GTK+ icon theme cache...
>>>> building cache files for GTK+ input methods...
>>>> building directory of Info manuals...
>>>> building database for manual pages...
>>>> building XDG desktop file cache...
>>>> building XDG MIME database...
>>>> building profile with 1 package...
>>>> /gnu/store/gbzd8hc6360vaxmk2xh5bzkx7dkkwl8q-profile/bin/emacs:
>>>> error while loading shared libraries: libm17n-core.so.0: cannot
>>>> open shared object file: No such file or directory
>
> [...]
>
> Using the same commit you were using last,
> 652a03888e1609bd1a687326760436867fe2abb7, I can obtain the same Emacs
> (same store hash):
>
> $ guix time-machine --commit=652a03888e1609bd1a687326760436867fe2abb7 -- environment --ad-hoc emacs
> [env]$ which emacs
> /gnu/store/gbzd8hc6360vaxmk2xh5bzkx7dkkwl8q-profile/bin/emacs
>
> Have you tried it in a container, like so:
>
> $ guix time-machine --commit=652a03888e1609bd1a687326760436867fe2abb7 \
>   -- environment -C --ad-hoc emacs -- emacs --version

Hmm, the commands fails with

--8<---------------cut here---------------start------------->8---
[...]
building package cache...
-builder for `/gnu/store/k4ih7z9q04nghfvw4by007z8ijskghkn-guix-package-cache.drv' failed to produce output path `/gnu/store/n6qbwd1ahj3b4jzgp0np3fhvw9msgz06-guix-package-cache'
build of /gnu/store/k4ih7z9q04nghfvw4by007z8ijskghkn-guix-package-cache.drv failed
View build log at '/var/log/guix/drvs/k4/ih7z9q04nghfvw4by007z8ijskghkn-guix-package-cache.drv.bz2'.
cannot build derivation `/gnu/store/cfsrsvrz5c3mrxkm0ddlq9hy2bbvbl5c-profile.drv': 1 dependencies couldn't be built
guix time-machine: error: build of `/gnu/store/cfsrsvrz5c3mrxkm0ddlq9hy2bbvbl5c-profile.drv' failed
--8<---------------cut here---------------end--------------->8---

> Perhaps NixOS, being similar to Guix, is somehow interfering?

Yeah, that could be the case.