Can't find emacs package
#1
Thu, 2015-04-09 08:53
romanoff
-
- Offline
- 2 years 10 months ago
- 2015-04-09
Wanted to use alpine linux with docker. When I am in docker container, I want to use editor of my choice (emacs), but it doesn't seem to be in standard packages. Is there a way to install it? (I didn't try from source, but it would probably require quite a bit of build dependencies + it would take a while)
I see that emacs package is present - http://pkgs.alpinelinux.org/package/testing/x86_64/emacs . But it's in testing repository. How can I add testing repository so that packages were installed from it as well?
http://wiki.alpinelinux.org/wiki/Alpine_Linux_package_management#Packages_and_Repositories
Thanks for reply. I actually found this url before and things are a bit different than what I would expect. Right now this is the content of my /etc/apk/repositories:
http://dl-4.alpinelinux.org/alpine/v3.1/main
I wanted to introduce test repository. For this I inserted another line:
@testing http://dl-4.alpinelinux.org/alpine/v3.1/testing
Here is the output I get after this on 'apk update':
/ # apk update
fetch http://dl-4.alpinelinux.org/alpine/v3.1/main/x86_64/APKINDEX.tar.gz
fetch http://dl-4.alpinelinux.org/alpine/v3.1/testing/x86_64/APKINDEX.tar.gz
ERROR: http://dl-4.alpinelinux.org/alpine/v3.1/testing: IO ERROR
WARNING: Ignoring APKINDEX.a70d848e.tar.gz: No such file or directory
v3.1.3-17-g19907e3 [http://dl-4.alpinelinux.org/alpine/v3.1/main]
OK: 4867 distinct packages available
Seems like 3.1 repository doesn't have testing repo for 64 bit architecture at all (seems like it only has it for ARM). So, I don't know where package database comes from (the one that is reflected on http://pkgs.alpinelinux.org/packages )
Also with latest repository (3.1) when I install ruby, I get 2.1.5, but in package search I can find 2.2 - http://pkgs.alpinelinux.org/package/main/x86/ruby
Is there a way for me to be able to install same packages as the ones present in package search?
Just found out that I have to use edge repository (not 3.1). In this case emacs will be in testing. Seems like http://pkgs.alpinelinux.org/packages reflects edge, not 3.1.
Correct, its only edge.
emacs does not work with musl libc and I don't think it is easily fixable. Emacs does some nasty tricks with malloc that is non-portable.
Has this status changed? There have been some recent commits to the Emacs repository for
gmalloc.c(bug #22085, cb22fce, d6585a9). Of course, there is no release, yet, but it might at least build.Hmm, I just tried to build the latest Emacs in git (3a2b6aa), but it seems like they don't have all the changes from this
musl.patch. They're at least missing this line that adds a check for__GLIBC__where compiling a part that usesstderras an lvalue.