Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emacs isn’t found in $PATH after 3.19 upgrade #2324

Open
oaguy1 opened this issue Jan 9, 2024 · 8 comments
Open

Emacs isn’t found in $PATH after 3.19 upgrade #2324

oaguy1 opened this issue Jan 9, 2024 · 8 comments

Comments

@oaguy1
Copy link

oaguy1 commented Jan 9, 2024

In both bash and ash, I am unable to launch emacs after performing the alpine 3.19 upgrade. It doesn’t crash, it simply cannot find it in the path. I even tried removing and reinstalling emacs, but to no avail. Screenshot of the issue below.

IMG_5238

@oaguy1
Copy link
Author

oaguy1 commented Jan 9, 2024

Adding screenshot with my app version included.

IMG_5239

@saagarjha
Copy link
Member

Do you have /usr/bin/emacs on your system?

@oaguy1
Copy link
Author

oaguy1 commented Jan 9, 2024

I do not

@saagarjha
Copy link
Member

DId you have emacs installed before this update? Did it work before then?

@oaguy1
Copy link
Author

oaguy1 commented Jan 9, 2024 via email

@mavigno
Copy link

mavigno commented Jan 24, 2024

Same thing here. After apk add emacs withou errors the system can’t find emacs

@nomaded
Copy link

nomaded commented Jan 27, 2024

I hit the same problem on my ipad today, with Alpine v3.19.1. Then I tried "apk add emacs-nox" and now /usr/bin/emacs exists. Of course, when I try to run emacs, I get "Fatal error 31: Bad system call", so emacs still doesn't work, but for different reasons. I guess I'll go back to Alpine v3.18.6.

@fstamour
Copy link

fstamour commented Feb 12, 2024

This is an issue with alpine, not ish.

I got that problem using an alpine:3.19 container, and I found this issue first when looking up the error, so I'm writing this for the next victim 😆

It can be reproduced with docker:

> echo 'apk add emacs; emacs --version' |  docker run -i --rm alpine:3.19
fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/main/x86_64/APKINDEX.tar.gzfetch https://dl-cdn.alpinelinux.org/alpine/v3.19/community/x86_64/APKINDEX.tar.gz
(1/1) Installing emacs (29.1-r3)
Executing busybox-1.36.1-r15.trigger
OK: 24 MiB in 16 packages
/bin/sh: emacs: not found

And this shows that there isn't even a file named emacs:

> echo 'apk add emacs file; find / -name emacs -exec file \{\} \; 2>/dev/null' |  docker run -i --rm alpine:3.19
fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/community/x86_64/APKINDEX.tar.gz
(1/3) Installing emacs (29.1-r3)
(2/3) Installing libmagic (5.45-r1)
(3/3) Installing file (5.45-r1)
Executing busybox-1.36.1-r15.trigger
OK: 33 MiB in 18 packages
/var/games/emacs: directory
/usr/lib/emacs: directory
/usr/share/emacs: directory

I ended up using the package emacs-nox instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants