[From nobody Sat Sep  5 19:51:07 2026
Received: (at submit) by bugs.debian.org; 14 Nov 2021 21:53:38 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.2-bugs.debian.org_2005_01_02
 (2018-09-13) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.9 required=4.0 tests=BAYES_00,DIGITS_LETTERS,
 DKIM_ADSP_CUSTOM_MED,FORGED_GMAIL_RCVD,FOURLA,FREEMAIL_FROM,GENDER,
 GMAIL,HAS_PACKAGE,NML_ADSP_CUSTOM_MED,RCVD_IN_PBL,RDNS_NONE,
 SPF_SOFTFAIL,SPOOFED_FREEMAIL,SPOOFED_FREEMAIL_NO_RDNS,SPOOF_GMAIL_MID,
 TXREP,XMAILER_REPORTBUG autolearn=no autolearn_force=no
 version=3.4.2-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 74; hammy, 150; neutral, 70; spammy,
 0. spammytokens: hammytokens:0.000-+--X-Debbugs-Cc,
 0.000-+--XDebbugsCc, 0.000-+--sk:taint_o, 0.000-+--sk:TAINT_O,
 0.000-+--H*M:reportbug
Return-path: &lt;visnae@gmail.com&gt;
Received: from [37.120.60.189] (port=36640 helo=[172.17.0.2])
 by buxtehude.debian.org with esmtp (Exim 4.92)
 (envelope-from &lt;visnae@gmail.com&gt;) id 1mmNRR-0006Zj-Hs
 for submit@bugs.debian.org; Sun, 14 Nov 2021 21:53:38 +0000
Content-Type: text/plain; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Sebastian Olsson &lt;visnae@gmail.com&gt;
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: erlang-mode: Broken symlinks in man/man3
Message-ID: &lt;163692681358.856.14907002373001577113.reportbug@6149361dae77&gt;
X-Mailer: reportbug 7.10.3+deb11u1
Date: Sun, 14 Nov 2021 21:53:33 +0000
Delivered-To: submit@bugs.debian.org

Package: erlang-mode
Version: 1:23.2.6+dfsg-1
Severity: normal
X-Debbugs-Cc: visnae@gmail.com

Dear Maintainer,

I installed the erlang package on an Debian bullseye docker container to perform the following escript:

```
#!/usr/bin/env escript
%% -*- erlang -*-
%%! -sname edts-helper

main([&quot;release&quot;, ReleaseConfig]) -&gt;
	{ok, Conf} = file:consult(ReleaseConfig),
	{ok, Spec} = reltool:get_target_spec(Conf),
	reltool:eval_target_spec(Spec, code:root_dir(), &quot;rel&quot;);
```

This failed with `&quot;read file info /usr/lib/erlang/man/man3/LIST_EMPTY.3 failed&quot;}`

Investigating I realized it was because there was broken symlinks that `erlang-mode` installed.

```
root@10759c6aee0e:/usr/lib/erlang/man# find . -xtype l
./man3/LIST_EMPTY.3
./man3/LIST_ENTRY.3
./man3/LIST_FIRST.3
./man3/LIST_FOREACH.3
./man3/LIST_HEAD.3
./man3/LIST_HEAD_INITIALIZER.3
./man3/LIST_INIT.3
./man3/LIST_INSERT_AFTER.3
./man3/LIST_INSERT_BEFORE.3
./man3/LIST_INSERT_HEAD.3
./man3/LIST_NEXT.3
./man3/LIST_REMOVE.3
```

They all point to non-existing `man3/list.3`

After installing `erlang-manpages` I got a file called `lists.3erl.gz` but the links are sadly still broken.

If I remove the package `erlang-mode` the escript works.

Best regards

-- System Information:
Debian Release: 11.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.14.15-arch1-1 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: unable to detect

Versions of packages erlang-mode depends on:
ii  emacsen-common  3.0.4

erlang-mode recommends no packages.

Versions of packages erlang-mode suggests:
ii  erlang           1:23.2.6+dfsg-1
ii  erlang-doc       1:23.2.6+dfsg-1
ii  erlang-manpages  1:23.2.6+dfsg-1

-- no debconf information
]