Bug 1379898 - rebar does not seem to build ejabberd, but does not print any errors and returns exit code 0
Summary: rebar does not seem to build ejabberd, but does not print any errors and retu...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: erlang-rebar
Version: rawhide
Hardware: All
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Peter Lemenkov
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-28 02:48 UTC by Randy Barlow
Modified: 2016-10-17 19:43 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-10-17 19:43:26 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
rebar output (37.83 KB, text/plain)
2016-09-28 02:48 UTC, Randy Barlow
no flags Details

Description Randy Barlow 2016-09-28 02:48:59 UTC
Created attachment 1205382 [details]
rebar output

Description of problem:
I've been working on debugging ejabberd's build, and I think it might be a problem in rebar. It looks like rebar is checking the dependencies and exiting with code 0 with seemingly no errors, without building anything.


Version-Release number of selected component (if applicable):
erlang-rebar-2.6.4-2.fc26.x86_64


How reproducible:
Every time


Steps to Reproduce:
1. Try to build ejabberd on Rawhide


Actual results:
The build fails, due to rebar not building any beam or app files.


Expected results:
Rebar should either build the files or print an error and return an exit code.


Additional info:
I am going to attach the full rebar output. I used my spec file to create a failing build in ~/rpbbuild/BUILD/ejabberd-16.08 so that I would have all the patches applied and dependencies installed. Then I ran the commands shown in the attachment. Note that rebar exits after resolving the dependency information, but does not seem to build any output, doesn't print errors, and returns a 0 exit code.

The output does not show this, but earlier in this shell session I did run these commands so that rebar would skip looking for the dependencies in the deps/ folder:

REBAR_DEPS_PREFER_LIBS=TRUE
export REBAR_DEPS_PREFER_LIBS
IGNORE_MISSING_DEPS=TRUE
export IGNORE_MISSING_DEPS

Comment 1 Randy Barlow 2016-10-17 19:43:26 UTC
Peter got ejabberd to build by avoiding their Makefile. I'm still not sure why rebar wouldn't build as described here, but I'm happy to assume that it was an environmental problem. Since I'm unblocked, I will close this for now.


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