Github messages for voidlinux
 help / color / mirror / Atom feed
From: 0n-s <0n-s@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [ISSUE] ejabberd overwrites system Elixir
Date: Thu, 30 Apr 2020 22:18:32 +0200	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-21494@inbox.vuxu.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 3987 bytes --]

New issue by 0n-s on void-packages repository

https://github.com/void-linux/void-packages/issues/21494

Description:
<!-- Don't request update of package. We have a script for that. https://alpha.de.repo.voidlinux.org/void-updates/void-updates.txt . However, a quality pull request may help. -->
### System

* xuname:  
  Void 5.4.35_1 x86_64 AuthenticAMD uptodate rrrmFFFFF
* package:  
  ejabberd-20.02_2

### Expected behavior
ejabberd should use the elixir package in XBPS instead of installing its own. If it requires a specific version, it could be packaged & work with xbps-alternatives to allow usage of the latest elixir, or at least not overwrite each other's files & not break each other (like how the guile & guile1.8 packages work).
### Actual behavior
ejabberd installs its own Elixir distribution (which, by the way, is a rather old 1.4.4, in comparison to the elixir package's 1.10.2), as well as even overwriting some of the elixir package's binaries. I doubt this is an Elixir 1.4.4 problem, but it causes `elixir(1)` to encounter some concerning-looking problems even with a simple `elixir -v`:
```
$ elixir -v
=SUPERVISOR REPORT==== 30-Apr-2020::20:05:34.064575 ===
    supervisor: {local,'Elixir.Logger.Supervisor'}
    errorContext: start_error
    reason: noproc
    offender: [{pid,undefined},
               {id,'Elixir.Logger.ErrorHandler'},
               {mfargs,
                   {'Elixir.Logger.Watcher',watcher,
                       [error_logger,'Elixir.Logger.ErrorHandler',
                        {true,false,500}]}},
               {restart_type,permanent},
               {shutdown,5000},
               {child_type,worker}]
=CRASH REPORT==== 30-Apr-2020::20:05:34.089540 ===
  crasher:
    initial call: application_master:init/4
    pid: <0.85.0>
    registered_name: []
    exception exit: {{shutdown,
                         {failed_to_start_child,'Elixir.Logger.ErrorHandler',
                             noproc}},
                     {'Elixir.Logger.App',start,[normal,[]]}}
      in function  application_master:init/4 (application_master.erl, line 138)
    ancestors: [<0.84.0>]
    message_queue_len: 1
    messages: [{'EXIT',<0.86.0>,normal}]
    links: [<0.84.0>,<0.44.0>]
    dictionary: []
    trap_exit: true
    status: running
    heap_size: 376
    stack_size: 27
    reductions: 193
  neighbours:

=INFO REPORT==== 30-Apr-2020::20:05:34.102432 ===
    application: logger
    exited: {{shutdown,
                 {failed_to_start_child,'Elixir.Logger.ErrorHandler',noproc}},
             {'Elixir.Logger.App',start,[normal,[]]}}
    type: temporary
Erlang/OTP 22 [erts-10.7] [source] [64-bit] [smp:1:1] [ds:1:1:10] [async-threads:1] [hipe]

Elixir 1.4.4
```
Using `xbps-install -f elixir` & then executing the command once again is business as usual:
```
elixir -v
Erlang/OTP 22 [erts-10.7] [source] [64-bit] [smp:1:1] [ds:1:1:10] [async-threads:1] [hipe]

Elixir 1.10.2 (compiled with Erlang/OTP 22)
```
Notice, also, the modified binaries in ejabberd's install:
```
$ ls -l /usr/bin/elixir /usr/bin/mix /usr/bin/iex | cut -c 42-
/usr/bin/elixir
/usr/bin/iex
/usr/bin/mix
```
These were symlinks in the elixir package, not files!
```
$ xbps-query -Rf elixir | grep -F '/usr/bin/'
/usr/bin/elixir -> /usr/lib/elixir/bin/elixir
/usr/bin/elixirc -> /usr/lib/elixir/bin/elixirc
/usr/bin/iex -> /usr/lib/elixir/bin/iex
/usr/bin/mix -> /usr/lib/elixir/bin/mix
```
In addition, the extra Elixir install (which should really be in its own package, & that's only if ejabberd doesn't work with the current version; docs do not seem to mention incompatibility with latest versions, correct me if I'm wrong):
```
$ ls /usr/lib/elixir* -d
/usr/lib/elixir-1.4.4  /usr/lib/elixir
```
### Steps to reproduce the behavior
Install elixir, then ejabberd. The overwriting works in reverse as well, but not the other effects (e.g. `elixir -v` should work).

             reply	other threads:[~2020-04-30 20:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-30 20:18 0n-s [this message]
2022-04-16  2:02 ` github-actions
2022-07-19  2:14 ` github-actions

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-21494@inbox.vuxu.org \
    --to=0n-s@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).