Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 857099 - dev-lang/erlang: OpenRC init scripts assume netifrc (net.lo) (Fix "Service `epmd' needs non existent service `net.lo'")
Summary: dev-lang/erlang: OpenRC init scripts assume netifrc (net.lo) (Fix "Service `e...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jonathan Davies
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2022-07-09 06:26 UTC by ignamartinoli
Modified: 2022-07-12 03:52 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ignamartinoli 2022-07-09 06:26:39 UTC
I created [this](https://github.com/gentoo/gentoo/pull/26299) PR to standardize the `epmd` to people who don't use `net.*` files.

I began receiving the error ``Service `epmd' needs non existent service `net.lo'`` whenever I run `rc-service bluetooth restart` (in other words when the cache reloads).

I don't really know how pushing to Gentoo works, so I opened a bug here just in case.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-09 06:28:11 UTC
Wow, that's a bit gross. Nice find!
Comment 2 ignamartinoli 2022-07-09 06:31:32 UTC
Thanks Sam! I'm really happy to help this community and learn new things :D
Comment 3 Larry the Git Cow gentoo-dev 2022-07-09 08:32:07 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f47e0dfd9efcdace35f4b87ba9e3273be6d06dbb

commit f47e0dfd9efcdace35f4b87ba9e3273be6d06dbb
Author:     igna_martinoli <ignamartinoli@protonmail.com>
AuthorDate: 2022-07-09 07:56:01 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-07-09 08:31:51 +0000

    dev-lang/erlang: fix localhost dependency in init script
    
    net.lo is netifrc specific.
    
    Closes: https://bugs.gentoo.org/857099
    Closes: https://github.com/gentoo/gentoo/pull/26303
    Signed-off-by: igna_martinoli <ignamartinoli@protonmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-lang/erlang/{erlang-23.3.4.12.ebuild => erlang-23.3.4.12-r1.ebuild} | 0
 .../erlang/{erlang-23.3.4.14-r1.ebuild => erlang-23.3.4.14-r2.ebuild}   | 0
 dev-lang/erlang/{erlang-24.3.3.ebuild => erlang-24.3.3-r1.ebuild}       | 0
 dev-lang/erlang/{erlang-24.3.4.ebuild => erlang-24.3.4-r1.ebuild}       | 0
 dev-lang/erlang/{erlang-25.0.ebuild => erlang-25.0-r1.ebuild}           | 0
 dev-lang/erlang/files/epmd.init                                         | 2 +-
 dev-lang/erlang/files/epmd.init-r2                                      | 2 +-
 7 files changed, 2 insertions(+), 2 deletions(-)
Comment 4 Tom Gillespie 2022-07-11 21:02:18 UTC
Hi. The fix breaks the ability to start epmd in docker containers because loopback will fail to start however net.lo will not fail to start. The underlying cause is probably that the use of need is too strong. The service should be able to start even if loopback fails.
Comment 5 ignamartinoli 2022-07-11 23:11:52 UTC
Hey Tom, I'm sorry to hear that. I'm no expert but I'll get working into this right now