Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 549724 - net-im/ejabberd-16.01: version bump
Summary: net-im/ejabberd-16.01: version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Amadeusz Żołnowski (RETIRED)
URL: https://blog.process-one.net/ejabberd...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-17 14:12 UTC by Vadim Efimov
Modified: 2016-02-15 21:50 UTC (History)
5 users (show)

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


Attachments
ejabberd-15.06.ebuild (ejabberd-15.06.ebuild,5.44 KB, text/plain)
2015-06-25 14:32 UTC, Hanno Böck
Details
ejabberd-15.06-ejabberdctl.patch (ejabberd-15.06-ejabberdctl.patch,1.32 KB, patch)
2015-06-25 14:32 UTC, Hanno Böck
Details | Diff
ejabberd-15.10.ebuild (ejabberd-15.10.ebuild,15.97 KB, text/plain)
2015-11-07 20:19 UTC, Vadim Efimov
Details
ejabberd-15.10-ejabberdctl.patch (ejabberd-15.10-ejabberdctl.patch,1.29 KB, patch)
2015-11-07 20:20 UTC, Vadim Efimov
Details | Diff
metadata.xml (metadata.xml,1.38 KB, text/xml)
2015-11-07 21:12 UTC, Vadim Efimov
Details
ebuild for ejabberd-16.01 (ejabberd-16.01.ebuild,15.75 KB, text/plain)
2016-02-13 10:50 UTC, Vadim Efimov
Details
new version of ejabberd-16.01 ebuild (ejabberd-16.01.ebuild,15.77 KB, text/plain)
2016-02-14 22:29 UTC, Vadim Efimov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vadim Efimov 2015-05-17 14:12:16 UTC
ejabberd 15.04 released

Changelog overview
R16B03-1 is now the minimal required Erlang/OTP version
SQLite support
Default db_type can be specified with global default_db option
Included mod_muc_admin, mod_admin_extra and mod_multicast modules
Removed ejabberd_http_poll
Pubsub improvements
Better RFC compliance
Several other bugfixes

Also, seems, fixes bug #547432

Reproducible: Always
Comment 1 Hanno Böck gentoo-dev 2015-06-25 14:31:36 UTC
I've created an ebuild for 15.06, two trivial changes:
* Change url back to upstream's.
* Adopt patch for ejabberdctl

Will attach.
Comment 2 Hanno Böck gentoo-dev 2015-06-25 14:32:21 UTC
Created attachment 405726 [details]
ejabberd-15.06.ebuild
Comment 3 Hanno Böck gentoo-dev 2015-06-25 14:32:40 UTC
Created attachment 405728 [details, diff]
ejabberd-15.06-ejabberdctl.patch
Comment 4 Tim Harder gentoo-dev 2015-06-29 02:01:27 UTC
(In reply to Hanno Boeck from comment #1)
> I've created an ebuild for 15.06, two trivial changes:
> * Change url back to upstream's.
> * Adopt patch for ejabberdctl

Unfortunately we can't (or rather we shouldn't) use upstream's tarball because then that still requires fetching dependencies via git or similar during the build process. I wish they'd just provide a static tarball of everything included otherwise we have to continue making one ourselves or debundle everything.
Comment 5 Vadim Efimov 2015-08-02 20:10:50 UTC
15.07 released, by the way...
https://blog.process-one.net/ejabberd-15-07-released-summer-progress/
Comment 6 Vadim Efimov 2015-08-30 11:46:26 UTC
Small status update.
I work on ebuild, which "emulate" rebar fetch mechanism, but instead download zip achives from github via api and unpack/move them where rebar expect them.
Ebuild "works", but I need to clean it and check actual installation/upgrade of ejabberd.
Comment 7 Vadim Efimov 2015-09-30 19:00:54 UTC
ejabberd 15.09 released
Comment 8 Toralf Förster gentoo-dev 2015-10-15 16:35:24 UTC
Maybe this is a reliable download link :?
 https://www.process-one.net/downloads/ejabberd/15.09/ejabberd-15.09.tgz

(and FWIW 15.09 compiles and starts here at a hardened amd64 fine)
Comment 9 Vadim Efimov 2015-10-19 13:59:43 UTC
(In reply to Toralf Förster from comment #8)
> Maybe this is a reliable download link :?
>  https://www.process-one.net/downloads/ejabberd/15.09/ejabberd-15.09.tgz
> 
> (and FWIW 15.09 compiles and starts here at a hardened amd64 fine)

Link is reliable. But this is only core system, much more downloaded from git repos during compile time.
Comment 10 Vadim Efimov 2015-11-07 20:18:09 UTC
New vesion released.
HTTP upload, metrics and performance.

On the positive side - I finally write first working ebuild, and even test at my installation. Ebuild ispired on nginx one from overlay and use bash hashes.

Rebar build system gently hacked, so it think what deps donloaded by him and works as expected. Ebuild download sources from github by commits, in some cases removes vesion strings to not trigger rebar fetch and inform rebar what deps downloaded.

Huge thanks goes to:
NightNord, for "one liner" which parsed git urls, and
Civil, who suggest nginx ebuild and help with various ideas

TODO: download some deps by tags instead of commits

Please, test and post your suggestions :)
Comment 11 Vadim Efimov 2015-11-07 20:19:36 UTC
Created attachment 416248 [details]
ejabberd-15.10.ebuild

new ebuild
Comment 12 Vadim Efimov 2015-11-07 20:20:18 UTC
Created attachment 416250 [details, diff]
ejabberd-15.10-ejabberdctl.patch

adopted patch
Comment 13 Vadim Efimov 2015-11-07 21:12:18 UTC
Created attachment 416254 [details]
metadata.xml

updated metadata file, and sorry for noise
Comment 14 Nickie Deuxyeux 2015-12-13 14:51:01 UTC
Ebuild tested and working, thanks a lot, Vadim. Should be included in the main portage tree as 15.03 ebuild throws all kinds of errors.
Comment 15 Vincent-Xavier JUMEL 2016-01-10 09:30:23 UTC
15.11 is out too !
Comment 16 Manuel Rüger (RETIRED) gentoo-dev 2016-01-10 11:47:26 UTC
This probably needs a dedicated (proxied) maintainer. 

@Vadim Efimov would you be interested in that?
Comment 17 Amadeusz Żołnowski (RETIRED) gentoo-dev 2016-02-05 13:50:57 UTC
Vadim, thank you for your work! I would like to see you on IRC to talk about the ebuild, update it for 16.01 and commit asap.
Comment 18 Vadim Efimov 2016-02-07 16:19:41 UTC
(In reply to Manuel Rüger from comment #16)
> This probably needs a dedicated (proxied) maintainer. 
> 
> @Vadim Efimov would you be interested in that?

Yes.

(In reply to Amadeusz Żołnowski from comment #17)
> Vadim, thank you for your work! I would like to see you on IRC to talk about
> the ebuild, update it for 16.01 and commit asap.

Channel/nick? I'm evadim, sitting here and there on freenode.


Sorry for long time to answer. I think about converting "one liner" to script, as current one require some manual work. But can do this work one more time "by hand" if somebody going to update ebuild in the main tree...
Comment 19 Amadeusz Żołnowski (RETIRED) gentoo-dev 2016-02-07 18:06:38 UTC
#gentoo-dev
Comment 20 Vadim Efimov 2016-02-13 10:50:15 UTC
Created attachment 425392 [details]
ebuild for ejabberd-16.01

Draft of new version ebuild for ejabberd 16.01 

summary of changes:
- adjust urls for new versions of modules
- correct names/paths of some modules
- drop nif use-flag

In this version names of installed modules in /usr/$(get_libdir)/erlang/lib/ changed from "module_name" to "module_name-version".
Also, should be analysed for conflicts with another packages.
Comment 21 Amadeusz Żołnowski (RETIRED) gentoo-dev 2016-02-13 16:08:04 UTC
What about moving libs into a subdir? Have you tried that? We either need to move them to ejabberd dir or completely debundle. Would it be to install all artefacts into ejabberd/{ebin,priv,src,...}? We cannot install dependencies into a common namespace from ejabberd package.

In the meantime I have packed some of deps into ebuilds, see ejabberd-wip branch on official gentoo repo. I may not have time to finish everything in a short term, so I am still expecting any ready acceptable solution to commit asap. (-:
Comment 22 Vadim Efimov 2016-02-13 17:27:26 UTC
(In reply to Amadeusz Żołnowski from comment #21)
> What about moving libs into a subdir? Have you tried that?

Not yet. Plan to test it as is at this weekends.


> We either need to
> move them to ejabberd dir or completely debundle. Would it be to install all
> artefacts into ejabberd/{ebin,priv,src,...}? We cannot install dependencies
> into a common namespace from ejabberd package.

I suspect, ejabberd core components (p1_*) can be installed to common namespace. Another modules, isn't (maybe). 

> In the meantime I have packed some of deps into ebuilds, see ejabberd-wip
> branch on official gentoo repo.

Does this thing work after that hack?
Comment 23 Amadeusz Żołnowski (RETIRED) gentoo-dev 2016-02-14 11:36:02 UTC
(In reply to Vadim Efimov from comment #22) 
> > In the meantime I have packed some of deps into ebuilds, see ejabberd-wip
> > branch on official gentoo repo.
> 
> Does this thing work after that hack?

Do you mean the hack with overriding deps in rebar.config? E.g. p1_stringprep depends on p1_utils which is installed from p1_utils-1.0.2.ebuild. I have configured it with ERL_LIBS=/usr/lib64/erlang/lib, built with deps overridden with [] and then run tests - passed. I think it should work. I've prepared 11 deps out of 27. p1_* where pretty similar to each other and it was mostly copy-paste-rename. There may be a bit more work with the rest. But as we have all of them in the tree, the maintenance is going to be trivial. But as I said, I don't have time to prepare the other 16 deps in a short-term.
Comment 24 Vadim Efimov 2016-02-14 22:29:08 UTC
Created attachment 425542 [details]
new version of ejabberd-16.01 ebuild

"final" version of 16.01 ebuild

- tested and works at least on my server
- ejabberd & co moved to ejabberd/* folder, so no conflicts expected
- soft block added versus dev-lang/elixir, as ejabberd have his own
- minor sed/paths fixes

So, can be pushed to tree "asap" and then polished in various ways...
Comment 25 Amadeusz Żołnowski (RETIRED) gentoo-dev 2016-02-15 21:50:41 UTC
Thank you a lot for your work! I have just committed the ebuild.