Bug 1672916 - Installing erlang-rebar3 breaks the erlang-rebar package
Summary: Installing erlang-rebar3 breaks the erlang-rebar package
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: erlang-rebar3
Version: 31
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Timothée Floure
QA Contact: Fedora Extras Quality Assurance
Depends On: 1748545
TreeView+ depends on / blocked
Reported: 2019-02-06 08:13 UTC by Timothée Floure
Modified: 2019-09-03 20:03 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed:

Attachments (Terms of Use)

Description Timothée Floure 2019-02-06 08:13:31 UTC
Description of problem:
The erlang-rebar (= rebar2 library + executable) package is broken when the erlang-rebar3 package is installed

Steps to Reproduce:
1. install the erlang-rebar package
2. install the erlang-rebar3 package (from f30/rawhide)
3. run the `rebar` command (any parameter)

Actual results:

~ » rebar --version
Uncaught error in rebar_core: {'EXIT',
escript: exception error: undefined function rebar_utils:delayed_halt/1
  in function  erl_eval:local_func/6 (erl_eval.erl, line 557)
  in call from escript:interpret/4 (escript.erl, line 789)
  in call from escript:start/1 (escript.erl, line 277)
  in call from init:start_em/1 
  in call from init:do_boot/3 

Expected results:

~ » rebar --version
rebar 2.6.4 undefined undefined undefined

Additional info:
Most likely due to both rebar2 and rebar3 erlang applications using the same name (`rebar`).

Comment 1 Ben Cotton 2019-08-13 17:04:40 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to '31'.

Comment 2 Randy Barlow 2019-09-03 20:03:49 UTC
I've observed that rebar 2 does not work even when rebar3 is not installed:


Note You need to log in before you can comment on or make changes to this bug.