#999682 erlang-mode: Broken symlinks in man/man3

#999682#5
Date:
2021-11-14 21:53:33 UTC
From:
To:
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(["release", ReleaseConfig]) ->
	{ok, Conf} = file:consult(ReleaseConfig),
	{ok, Spec} = reltool:get_target_spec(Conf),
	reltool:eval_target_spec(Spec, code:root_dir(), "rel");
```

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

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

#999682#10
Date:
2021-11-15 14:50:19 UTC
From:
To:
Hi Sebastian.

Erlang packages do not come with these manpages. In fact, erlang-mode
just contains a link /usr/lib/erlang/man -> /usr/share/man, so I guess
your script just tries to copy all manpages to the container. And it
breaks if it can't dereference a link.

I'm not sure I can do anything about it. But you're welcome to submit
bugs to the packages with these symlinks
(/usr/share/man/man3/LIST_EMPTY.3 is in manpages-dev for example).

Cheers!

#999682#15
Date:
2021-11-15 15:28:26 UTC
From:
To:
Ah, thank you so much for quick response.

I'll look into manpages-dev and potentially file an issue there instead.

Best regards

#999682#20
Date:
2021-11-15 18:43:15 UTC
From:
To:
For full disclosure it's already tracked in this issue.
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=973885

Best regards