Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 267524 - net-im/ejabberd should depend on <dev-lang/erlang-13
Summary: net-im/ejabberd should depend on <dev-lang/erlang-13
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Caleb Tennis (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-26 11:05 UTC by Karl-Johan Karlsson
Modified: 2009-06-09 13:28 UTC (History)
5 users (show)

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


Attachments
patch to make ejabberd work with erlang 13 (ejabberd-2.0.5-erlang-13.patch,16.48 KB, patch)
2009-05-24 03:49 UTC, jamatik
Details | Diff
Ebuild-diff from r2 to r3 to work with the patch (ejabberd-2.0.5-r3.ebuild.diff,639 bytes, text/plain)
2009-05-24 03:53 UTC, jamatik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Karl-Johan Karlsson 2009-04-26 11:05:25 UTC
Upstream's opinion (as seen at http://svn.process-one.net/ejabberd/trunk/README revision 2040) is that eJabberd needs Erlang >= R10B-9 and < R13. ejabberd-2.0.5-r1.ebuild currently says >=dev-lang/erlang-11.2.5. It should at least also say <dev-lang/erlang-13. Trying to run ejabberd-2.0.5-r1 on erlang-13 gives the following error:

root@nukapai ~ # /usr/sbin/ejabberd
Erlang R13B (erts-5.7.1) [source] [rq:1] [async-threads:0]

Eshell V5.7.1  (abort with ^G)
(ejabberd@nukapai)1>
=INFO REPORT==== 26-Apr-2009::12:59:15 ===
    application: ejabberd
    exited: {bad_return,
                {{ejabberd_app,start,[normal,[]]},
                 {'EXIT',
                     {{case_clause,
                          {error,
                              {request,
                                  {get_until,unicode,[],erl_scan,tokens,
                                      [1]}}}},
                      [{epp_dodger,parse_form,4},
                       {epp_dodger,parse,5},
                       {ejabberd_loglevel,compile_string,2},
                       {ejabberd_loglevel,set,1},
                       {ejabberd_app,start,2},
                       {application_master,start_it_old,4}]}}}}
    type: temporary

BREAK: (a)bort (c)ontinue (p)roc info (i)nfo (l)oaded
       (v)ersion (k)ill (D)b-tables (d)istribution
a
root@nukapai ~ #

Reproducible: Always

Steps to Reproduce:




Portage 2.2_rc31 (hardened/x86, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.28-hardened-r7 i686)
=================================================================
System uname: Linux-2.6.28-hardened-r7-i686-AMD_Athlon-tm-_Processor-with-gentoo-2.0.0
Timestamp of tree: Sun, 26 Apr 2009 02:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p17-r1
dev-lang/python:     2.5.4-r2, 2.6.2
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r8
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    1.9
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-ggdb -march=athlon -O2 -pipe -fweb -ftracer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-ggdb -march=athlon -O2 -pipe -fweb -ftracer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical"
FEATURES="buildpkg ccache distlocks fixpackages nostrip parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.gentoo.se http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow aac alsa bash-completion berkdb cracklib crypt emacs flac hardened idn ipv6 logrotate midi mmx mp3 nis nls nptl nptlonly ogg pam pic readline sasl ssl tcpd unicode urandom vorbis x86 xorg zlib" ALSA_CARDS="emu10k1" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="mouse keyboard evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt intel    mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage      siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware         voodoo"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 jamatik 2009-04-29 06:14:08 UTC
with the recent ejabberd update and a past upgrade to erlang 13, I run into this to.
should be critical as the programm-script runs normal but no connections are possible. so fats fix needed or masking erlang 13. It is slotable to have version 12 and 13?
Comment 2 Karl-Johan Karlsson 2009-04-30 16:51:19 UTC
Upstream has a bug (with patches) for Erlang R13 compatibility: https://support.process-one.net/browse/EJAB-919
Comment 3 Christian Faulhammer (RETIRED) gentoo-dev 2009-05-20 15:25:25 UTC
caleb, will you handle this?  I want to request stabilisation of Erlang 13 soon, so this should be fixed.
Comment 4 Caleb Tennis (RETIRED) gentoo-dev 2009-05-20 22:42:40 UTC
I removed stale versions and added a <dev-lang/erlang-13 to 2.0.4 and 2.0.5-r2.  I think this satisfies the needs of the bug, but let me know if something else needs done.
Comment 5 Christian Faulhammer (RETIRED) gentoo-dev 2009-05-22 10:05:18 UTC
(In reply to comment #4)
> I removed stale versions and added a <dev-lang/erlang-13 to 2.0.4 and 2.0.5-r2.
>  I think this satisfies the needs of the bug, but let me know if something else
> needs done.

 The patches mentioned in comment 2 can be worth a look.  A stable Erlang 13 together with ejabberd will lead to a up-/downgrade cycle.
Comment 6 Caleb Tennis (RETIRED) gentoo-dev 2009-05-22 10:55:41 UTC
I agree, I just hope someone else can test/patch it as I'm not running 13 on any of my systems at the moment to get a good idea of what works.
Comment 7 Christian Faulhammer (RETIRED) gentoo-dev 2009-05-22 10:57:17 UTC
(In reply to comment #6)
> I agree, I just hope someone else can test/patch it as I'm not running 13 on
> any of my systems at the moment to get a good idea of what works.

 Karl, jamatik: It would be great if any of you could do those tests.  I would like to know if the patches work well with 12 and 13.
Comment 8 jamatik 2009-05-24 03:49:44 UTC
Created attachment 192256 [details, diff]
patch to make ejabberd work with erlang 13

modifed patch tested with erlang 12 and 13 (removing of now unused file ram_file_io_server.erl didn't work, so put a rm-line into the ebuild)

ebuild-diff follows
Comment 9 jamatik 2009-05-24 03:53:13 UTC
Created attachment 192258 [details]
Ebuild-diff from r2 to r3 to work with the patch
Comment 10 Christian Faulhammer (RETIRED) gentoo-dev 2009-06-03 06:08:04 UTC
I applied those patches, looks all fine.  Thanks for your support, we appreciate it.

Caleb, I will call for stabilisation of Erlang 13 in one months time as long as there is no bugfix for release for it.  Is it ok for you to target ejabberd 2.0.5-r3 for stabilisation, too?
Comment 11 Caleb Tennis (RETIRED) gentoo-dev 2009-06-03 09:36:38 UTC
yep, we can stabilize at the same time - that's fine with me.
Comment 12 Dennis Schridde 2009-06-04 00:45:56 UTC
Using net-im/ejabberd-2.0.5-r3:
Error in process <0.270.0> on node 'ejabberd@<host>' with exit value: {badarg,[{erlang,register,[asn1_driver_owner,<0.270.0>]},{asn1rt_driver_handler,init,2}]}
Comment 13 Dennis Schridde 2009-06-04 00:47:16 UTC
(In reply to comment #12)
> Using net-im/ejabberd-2.0.5-r3:
> Error in process <0.270.0> on node 'ejabberd@<host>' with exit value:
> {badarg,[{erlang,register,[asn1_driver_owner,<0.270.0>]},{asn1rt_driver_handler,init,2}]}
That is using dev-lang/erlang-13.2-r1 of course. Note that before the erlang version bump, the ejabberd.log was empty, which means that the error did not occur before.
Comment 14 Christian Faulhammer (RETIRED) gentoo-dev 2009-06-09 10:38:59 UTC
(In reply to comment #12)
> Using net-im/ejabberd-2.0.5-r3:
> Error in process <0.270.0> on node 'ejabberd@<host>' with exit value:
> {badarg,[{erlang,register,[asn1_driver_owner,<0.270.0>]},{asn1rt_driver_handler,init,2}]}

 Erlang 12 is ok?  You can quickpkg Erlang 13 to quickly go back to that version.
Comment 15 Dennis Schridde 2009-06-09 13:28:12 UTC
(In reply to comment #14)
> (In reply to comment #12)
> > Using net-im/ejabberd-2.0.5-r3:
> > Error in process <0.270.0> on node 'ejabberd@<host>' with exit value:
> > {badarg,[{erlang,register,[asn1_driver_owner,<0.270.0>]},{asn1rt_driver_handler,init,2}]}
> 
>  Erlang 12 is ok?  You can quickpkg Erlang 13 to quickly go back to that
> version.
Will try Erlang 12 later. The server seems to keep running so far, so the issue seems not to be critical.

Meanwhile there was another error which neither seemed critical (services still up and running), but which may be related to Erlang 13:
=ERROR REPORT==== 2009-06-05 16:37:35 ===
** Generic server <0.4319.0> terminating 
** Last message in was {tcp,#Port<0.9550>,
                            <<23,3,1,0,32,67,111,167,30,180,179,132,28,42,112,
                              177,191,249,74,130,182,114,182,34,26,76,188,120,
                              113,48,179,69,27,116,124,46,196,23,3,1,1,176,   
                              145,165,67,98,115,233,195,214,63,179,207,88,60, 
                              45,202,228,76,209,199,202,212,76,222,169,155,8, 
                              216,206,30,171,207,113,231,103,50,22,103,177,   
                              114,63,152,109,250,149,211,238,28,172,66,84,238,
                              138,9,156,169,222,67,167,47,49,136,149,90,22,   
                              231,32,240,81,56,45,157,50,201,143,32,196,109,  
                              154,243,155,145,217,26,19,102,9,136,100,199,28, 
                              171,143,29,22,124,103,252,211,155,24,184,163,   
                              190,159,186,73,201,123,107,44,4,31,51,192,25,   
                              148,8,26,162,142,156,228,243,63,130,74,201,87,  
                              100,147,42,175,181,170,60,71,210,42,202,141,166,
                              36,227,37,137,110,77,21,188,163,6,109,18,13,249,
                              112,18,92,103,134,52,55,136,131,97,156,204,8,   
                              251,100,142,96,142,94,158,95,242,208,67,0,145,  
                              197,110,30,250,133,191,178,194,51,104,184,3,132,
                              229,208,200,37,210,214,243,107,126,61,114,30,   
                              236,19,18,39,56,196,40,159,123,225,228,138,41,  
                              69,52,2,136,158,244,104,167,239,40,192,218,210, 
                              203,219,34,238,253,167,127,187,181,98,67,210,63,
                              93,160,96,237,202,40,44,153,85,137,1,120,41,34, 
                              49,103,12,80,162,212,217,77,167,226,58,197,215, 
                              105,12,75,22,28,197,81,239,53,166,123,208,136,  
                              231,210,39,236,201,132,248,112,190,155,128,6,   
                              165,220,8,248,125,128,38,147,8,166,249,188,24,  
                              193,33,14,213,140,237,179,57,27,22,216,246,172, 
                              65,27,164,193,59,49,234,101,128,60,122,108,172, 
                              128,111,194,60,38,52,38,216,0,155,236,38,1,199, 
                              118,235,123,144,139,137,90,58,20,197,102,255,85,
                              166,18,37,54,96,144,130,156,139,30,232,150,250, 
                              159,124,86,184,89,11,56,129,35,204,175,84,180,  
                              53,162,153,175,247,133,253,53,117,249,32,150,   
                              200,56,89,20,167,227,152,228,167,95,2,0,41,246, 
                              23,9,32,191,63,144,251,194,154,242,161,190,156, 
                              255,160,194,0>>}                                
** When Server state == {state,                                               
                            {tlssock,#Port<0.9550>,#Port<0.9552>},            
                            tls,                                              
                            {maxrate,50000,115.99834494472725,                
                                1244212055753605},                            
                            <0.4320.0>,131072,                                
                            {xml_stream_state,<0.4320.0>,#Port<0.9553>,       
                                [{xmlelement,"stream:stream",                 
                                     [{"xmlns:stream",                        
                                       "http://etherx.jabber.org/streams"},   
                                      {"xmlns","jabber:server"},              
                                      {"xmlns:db","jabber:server:dialback"},  
                                      {"to","kynes.de"},                      
                                      {"version","1.0"}],                     
                                     []}],                                    
                                0,131072},                                    
                            infinity}                                         
** Reason for termination ==                                                  
** {badarg,[{erlang,port_control,                                             
                    [#Port<0.9552>,3,                                         
                     <<23,3,1,0,32,67,111,167,30,180,179,132,28,42,112,177,   
                       191,249,74,130,182,114,182,34,26,76,188,120,113,48,    
                       179,69,27,116,124,46,196,23,3,1,1,176,145,165,67,98,   
                       115,233,195,214,63,179,207,88,60,45,202,228,76,209,    
                       199,202,212,76,222,169,155,8,216,206,30,171,207,113,   
                       231,103,50,22,103,177,114,63,152,109,250,149,211,238,  
                       28,172,66,84,238,138,9,156,169,222,67,167,47,49,136,
                       149,90,22,231,32,240,81,56,45,157,50,201,143,32,196,
                       109,154,243,155,145,217,26,19,102,9,136,100,199,28,
                       171,143,29,22,124,103,252,211,155,24,184,163,190,159,
                       186,73,201,123,107,44,4,31,51,192,25,148,8,26,162,142,
                       156,228,243,63,130,74,201,87,100,147,42,175,181,170,
                       60,71,210,42,202,141,166,36,227,37,137,110,77,21,188,
                       163,6,109,18,13,249,112,18,92,103,134,52,55,136,131,
                       97,156,204,8,251,100,142,96,142,94,158,95,242,208,67,
                       0,145,197,110,30,250,133,191,178,194,51,104,184,3,132,
                       229,208,200,37,210,214,243,107,126,61,114,30,236,19,
                       18,39,56,196,40,159,123,225,228,138,41,69,52,2,136,
                       158,244,104,167,239,40,192,218,210,203,219,34,238,253,
                       167,127,187,181,98,67,210,63,93,160,96,237,202,40,44,
                       153,85,137,1,120,41,34,49,103,12,80,162,212,217,77,
                       167,226,58,197,215,105,12,75,22,28,197,81,239,53,166,
                       123,208,136,231,210,39,236,201,132,248,112,190,155,
                       128,6,165,220,8,248,125,128,38,147,8,166,249,188,24,
                       193,33,14,213,140,237,179,57,27,22,216,246,172,65,27,
                       164,193,59,49,234,101,128,60,122,108,172,128,111,194,
                       60,38,52,38,216,0,155,236,38,1,199,118,235,123,144,
                       139,137,90,58,20,197,102,255,85,166,18,37,54,96,144,
                       130,156,139,30,232,150,250,159,124,86,184,89,11,56,
                       129,35,204,175,84,180,53,162,153,175,247,133,253,53,
                       117,249,32,150,200,56,89,20,167,227,152,228,167,95,2,
                       0,41,246,23,9,32,191,63,144,251,194,154,242,161,190,
                       156,255,160,194,0>>]},
            {tls,recv_data,2},
            {ejabberd_receiver,handle_info,2},
            {gen_server,handle_msg,5},
            {proc_lib,wake_up,3}]}