erlzmq icon indicating copy to clipboard operation
erlzmq copied to clipboard

Rebared version of erlzmq

Open benoitc opened this issue 14 years ago • 11 comments

rebar is more and more used in erlang world to manage erlang projects distribution and build. Here is a full rebared version of erlzmq replacing current build system.

This version also fix build on ox.

More info about rebar :

https://bitbucket.org/basho/rebar/wiki/Home

benoitc avatar Jan 12 '11 08:01 benoitc

Is there an option not to hard code the paths in the rebar.config file?

saleyn avatar Jan 15 '11 05:01 saleyn

no this is the only way you can do it. Exccept handling a rebar.config.template and edit path from the Makefile like I do in couch_zmq.

benoitc avatar Jan 15 '11 11:01 benoitc

The need to modify the config file manually doesn't seem very convenient because such local changes can easily get committed to the repository, and impact people who have ZMQ installed in an alternative location. With autotools that path is given to the configure script at build-time and doesn't involve changing any sources from the repository. Perhaps generating the rebar.config from a template is a better approach, but once you do that, the question becomes - is that reinventing the wheel behind the confgiure scipt?

saleyn avatar Jan 15 '11 16:01 saleyn

Well configure script is barely usable when you deploy an application using reltools. Also using rebar allows you to install it as a dependance of your erlang application and not pollute global space (so you can have different versions too).

Rebar config allows you to pass different path to link erlzmq against zeromq depending on your installation, that what do configure too somehow. If you want I can provide you a version of the makefile allowing you to customize CFLAGS and LDFLAGS if you need.

benoitc avatar Jan 15 '11 16:01 benoitc

I merged your OSX and push-pull commits.

saleyn avatar Jan 15 '11 17:01 saleyn

I'll be happy to pull your rebar changes if you can work out a solution that doesn't involve local modifications of the versioned repository files at build time.

saleyn avatar Jan 15 '11 17:01 saleyn

I will work on it later today. Thanks anyway :)

benoitc avatar Jan 16 '11 01:01 benoitc

That would be great to have it merged in ;)

pusewicz avatar Feb 17 '11 16:02 pusewicz

Have those changes been completed?

saleyn avatar Feb 21 '11 14:02 saleyn

i'm not quite sure how to do it right now. I'm thinking to have a default rebar.config and eventually using autotools to build a new one. Would it be OK for your ?

benoitc avatar Feb 22 '11 18:02 benoitc

Either that or maybe modify the bootstrap to have the user pass the vital directories that would generate rebar.config from a template.

saleyn avatar Feb 22 '11 23:02 saleyn