-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
including gpb as dependency in erlang.mk, fails relx when generating a release #94
Comments
Which version of erlang are you using? |
I'm using 19.1 and getting the following |
@orotemo, did you get the same error as @lukebakken? If so, it seems the |
@tomas-abrahamsson yes! Thanks. |
Hmm.. preliminary diagnosis, it looks like (a) erlang.mk builds gpb on its own instead of using deps/gpb/Makefile or rebar, and (b) does does not support the I've yet to dig into (a). This leads to the Don't have any solution yet, though.. (Many Thanks for complete steps to recreate the issue!) |
Adding https://github.com/lukebakken/gpb_94/blob/master/Makefile#L5 However, I don't see any of the |
If I add Output:
|
Thanks @lukebakken for digging further! So one need |
I really don't know, myself. I've only used It appears you can remove |
@orotemo do you think the solution by @lukebakken works well enough? |
@tomas-abrahamsson @lukebakken: sorry for taking so long, and thank you. I managed with this solution. anyway, maybe for @essen this is just a short look to help us understand what needs to change to resolve this. |
The vsn not being supported is a known issue. The double DEPS is more surprising and sounds like a bug in Erlang.mk. |
How should we move forward on this? Regarding double DEPS, should be continued as an issue on Erlang.mk? Regarding |
Actually I think I see the problem. Autopatch should not run, yet it does because it sees rebar on the following line: https://github.com/tomas-abrahamsson/gpb/blob/master/Makefile#L125 But since rebar is not used, and you don't do anything special with dependencies, we have no reason to run autopatch. I have to fix Erlang.mk to ignore comments when looking for rebar usage. |
Ok, I see. I'll be more or less offline for a few days from now, but rephrasing is quick, so should it still be needed by then, I'll do that. |
Oddly enough Erlang doesn't care if the The fix is in, you can close this: ninenines/erlang.mk@a8fffe1 Thanks! |
Excellent! Closing. @orotemo, should anything surface, just reopen or open a new. |
I've opened ninenines/erlang.mk#633 for the double DEPS thing, FYI. |
the usual erlang.mk build process
Then create a Makefile in the root dir:
and in the new app (named 'an_app')
apps/an_app/Makefile
:run make, and it fails. the relx.
Didn't quite get to the root of the problem. sorry about that.
The text was updated successfully, but these errors were encountered: