Can't find emacs package

9 posts / 0 new
Last post
#1 Thu, 2015-04-09 08:53
romanoff
  • romanoff's picture
  • Offline
  • Last seen: 2 years 10 months ago
  • Joined: 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)

Thu, 2015-04-09 21:46
romanoff
  • romanoff's picture
  • Offline
  • Last seen: 2 years 10 months ago
  • Joined: 2015-04-09

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?

Fri, 2015-04-10 00:31 (Reply to #2)
clandmeter
  • clandmeter's picture
  • Offline
  • Last seen: 1 month 2 weeks ago
  • Joined: 2011-05-05
Fri, 2015-04-10 01:53 (Reply to #3)
romanoff
  • romanoff's picture
  • Offline
  • Last seen: 2 years 10 months ago
  • Joined: 2015-04-09

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?

Fri, 2015-04-10 02:21 (Reply to #4)
romanoff
  • romanoff's picture
  • Offline
  • Last seen: 2 years 10 months ago
  • Joined: 2015-04-09

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.

Fri, 2015-04-10 08:36 (Reply to #5)
clandmeter
  • clandmeter's picture
  • Offline
  • Last seen: 1 month 2 weeks ago
  • Joined: 2011-05-05

Correct, its only edge.

Wed, 2015-05-13 11:47
ncopa
  • ncopa's picture
  • Offline
  • Last seen: 2 years 1 month ago
  • Joined: 2011-05-12

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.

Sun, 2016-02-07 10:31 (Reply to #7)
spl
  • spl's picture
  • Offline
  • Last seen: 2 years 1 month ago
  • Joined: 2016-02-07

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.

Sun, 2016-02-07 11:15 (Reply to #8)
spl
  • spl's picture
  • Offline
  • Last seen: 2 years 1 month ago
  • Joined: 2016-02-07

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 uses stderr as an lvalue.

Log in or register to post comments