Bug 106208 - erlang 10.2.7 version bump + epoll patch
Bug#: 106208 Product:  Gentoo Linux Version: 2005.1 Platform: All
OS/Version: Linux Status: RESOLVED Severity: enhancement Priority: P2
Resolution: TEST-REQUEST Assigned To: lang-misc@gentoo.org Reported By: max@city.veganet.ru
Component: Ebuilds
URL: 
Summary: erlang 10.2.7 version bump + epoll patch
Keywords:  
Status Whiteboard: 
Opened: 2005-09-16 12:05 0000
Description:   Opened: 2005-09-16 12:05 0000
I've applied patch from ejabberd maillist and its works fine for a week now on
my ejabberd server.
http://developer.sipphone.com/ejabberd/erlang_epoll_patch/
btw, dependence on tk now depends on X flag.

------- Comment #1 From Max Loparyev 2005-09-16 12:06:11 0000 -------
Created an attachment (id=68603) [details]
new ebuild

------- Comment #2 From Max Loparyev 2005-09-16 12:06:45 0000 -------
Created an attachment (id=68605) [details]
epoll patch 

------- Comment #3 From Matthew Kennedy (RETIRED) 2005-10-18 14:06:45 0000 -------
I used your ebuild from Comment #1 and adjusted it to get the poll patch from
distfiles, rather than in files/ to save space.  I changed the file name to use
MY_PV. Attached is my diff from 10.2.6 to the adjusted ebuild for 10.2.7.

I tried it out, it seems to work fine.  vapier, I can commit it to the tree if you
consent.  I have recomputed/checked the other patches we apply.

------- Comment #4 From Matthew Kennedy (RETIRED) 2005-10-18 14:07:29 0000 -------
Created an attachment (id=70969) [details]
diff from 10.2.6 to (adjusted) 10.2.7

------- Comment #5 From SpanKY 2005-10-18 15:31:36 0000 -------
any chance we can make sure upstream erlang is aware of the epoll patch before
we start using it ?

------- Comment #6 From SpanKY 2005-10-18 15:35:32 0000 -------
Created an attachment (id=70981) [details]
erlang-10.2.6-10.2.7.patch

if you want to test & commit this patch, that'd be cool

------- Comment #7 From Matthew Kennedy (RETIRED) 2005-10-20 07:09:04 0000 -------
On second thoughts, perhaps we should apply the epoll patch via a local USE
flag?

------- Comment #8 From Matthew Kennedy (RETIRED) 2005-10-20 07:11:57 0000 -------
Created an attachment (id=71067) [details]
diff erlang-10.2.{6,7}.ebuild

Support for local USE flag, "epoll".

------- Comment #9 From SpanKY 2005-10-20 10:01:49 0000 -------
i dont think we should bother with that ... a quick glance at the code shows
that it should fall back to other poll methods if epoll fails to work

------- Comment #10 From Matthew Kennedy (RETIRED) 2005-10-29 13:26:55 0000 -------
Commit Attachement #70981 to portage. Thanks for the bug report and epoll
information.