{"action":"created","issue":{"url":"https://api.github.com/repos/opf/openproject/issues/2645","labels_url":"https://api.github.com/repos/opf/openproject/issues/2645/labels{/name}","comments_url":"https://api.github.com/repos/opf/openproject/issues/2645/comments","events_url":"https://api.github.com/repos/opf/openproject/issues/2645/events","html_url":"https://github.com/opf/openproject/pull/2645","id":59477289,"number":2645,"title":"update eventmachine to >=1.0.4 which works with ruby 2.2","user":{"login":"linki","id":36162,"avatar_url":"https://avatars.githubusercontent.com/u/36162?v=3","gravatar_id":"","url":"https://api.github.com/users/linki","html_url":"https://github.com/linki","followers_url":"https://api.github.com/users/linki/followers","following_url":"https://api.github.com/users/linki/following{/other_user}","gists_url":"https://api.github.com/users/linki/gists{/gist_id}","starred_url":"https://api.github.com/users/linki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linki/subscriptions","organizations_url":"https://api.github.com/users/linki/orgs","repos_url":"https://api.github.com/users/linki/repos","events_url":"https://api.github.com/users/linki/events{/privacy}","received_events_url":"https://api.github.com/users/linki/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-02T12:51:57Z","updated_at":"2015-03-02T12:51:59Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/opf/openproject/pulls/2645","html_url":"https://github.com/opf/openproject/pull/2645","diff_url":"https://github.com/opf/openproject/pull/2645.diff","patch_url":"https://github.com/opf/openproject/pull/2645.patch"},"body":"installing eventmachine 1.0.3 fails on ruby 2.2. let's update it to something above 1.0.3... turns out to be 1.0.7 at the moment.\r\n\r\n```\r\nroot@8f9ca7f05618:/usr/src/openproject# ruby --version\r\nruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-linux-gnu]\r\n```\r\n\r\n```\r\nroot@5224282495a3:/usr/src/openproject# gem install eventmachine --version 1.0.3\r\nFetching: eventmachine-1.0.3.gem (100%)\r\nBuilding native extensions.  This could take a while...\r\nERROR:  Error installing eventmachine:\r\n\tERROR: Failed to build gem native extension.\r\n\r\n    /usr/bin/ruby2.2 -r ./siteconf20150302-204-hq45bu.rb extconf.rb\r\nchecking for main() in -lssl... yes\r\nchecking for main() in -lcrypto... yes\r\nchecking for openssl/ssl.h... yes\r\nchecking for openssl/err.h... yes\r\nchecking for rb_trap_immediate in ruby.h,rubysig.h... no\r\nchecking for rb_thread_blocking_region()... no\r\nchecking for inotify_init() in sys/inotify.h... yes\r\nchecking for writev() in sys/uio.h... yes\r\nchecking for rb_wait_for_single_fd()... yes\r\nchecking for rb_enable_interrupt()... no\r\nchecking for rb_time_new()... yes\r\nchecking for sys/event.h... no\r\nchecking for epoll_create() in sys/epoll.h... yes\r\ncreating Makefile\r\n\r\nmake \"DESTDIR=\" clean\r\n\r\nmake \"DESTDIR=\"\r\ncompiling kb.cpp\r\nkb.cpp: In member function 'virtual void KeyboardDescriptor::Read()':\r\nkb.cpp:77:27: warning: ignoring return value of 'ssize_t read(int, void*, size_t)', declared with attribute warn_unused_result [-Wunused-result]\r\n  read (GetSocket(), &c, 1);\r\n                           ^\r\ncompiling binder.cpp\r\ncompiling page.cpp\r\ncompiling ed.cpp\r\ncompiling em.cpp\r\nem.cpp: In member function 'void EventMachine_t::_RunEpollOnce()':\r\nem.cpp:574:37: error: 'rb_thread_select' was not declared in this scope\r\n   EmSelect (0, NULL, NULL, NULL, &tv);\r\n                                     ^\r\nem.cpp: In member function 'int SelectData_t::_Select()':\r\nem.cpp:827:67: error: 'rb_thread_select' was not declared in this scope\r\n  return EmSelect (maxsocket+1, &fdreads, &fdwrites, &fderrors, &tv);\r\n                                                                   ^\r\nem.cpp: In member function 'void EventMachine_t::_RunSelectOnce()':\r\nem.cpp:946:40: error: 'rb_thread_select' was not declared in this scope\r\n      EmSelect (0, NULL, NULL, NULL, &tv);\r\n                                        ^\r\nem.cpp: In member function 'void EventMachine_t::SignalLoopBreaker()':\r\nem.cpp:282:34: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)', declared with attribute warn_unused_result [-Wunused-result]\r\n  write (LoopBreakerWriter, \"\", 1);\r\n                                  ^\r\nem.cpp: In member function 'void EventMachine_t::_ReadLoopBreaker()':\r\nem.cpp:991:50: warning: ignoring return value of 'ssize_t read(int, void*, size_t)', declared with attribute warn_unused_result [-Wunused-result]\r\n  read (LoopBreakerReader, buffer, sizeof(buffer));\r\n                                                  ^\r\nmake: *** [em.o] Error 1\r\n\r\nmake failed, exit code 2\r\n\r\nGem files will remain installed in /var/lib/gems/2.2.0/gems/eventmachine-1.0.3 for inspection.\r\nResults logged to /var/lib/gems/2.2.0/extensions/x86_64-linux/2.2.0/eventmachine-1.0.3/gem_make.out\r\n```\r\n\r\n```\r\nroot@5224282495a3:/usr/src/openproject# gem install eventmachine --version 1.0.4\r\nFetching: eventmachine-1.0.4.gem (100%)\r\nBuilding native extensions.  This could take a while...\r\nSuccessfully installed eventmachine-1.0.4\r\nParsing documentation for eventmachine-1.0.4\r\nInstalling ri documentation for eventmachine-1.0.4\r\nDone installing documentation for eventmachine after 1 seconds\r\n1 gem installed\r\n```"},"comment":{"url":"https://api.github.com/repos/opf/openproject/issues/comments/76706533","html_url":"https://github.com/opf/openproject/pull/2645#issuecomment-76706533","issue_url":"https://api.github.com/repos/opf/openproject/issues/2645","id":76706533,"user":{"login":"TeatroIO","id":7524941,"avatar_url":"https://avatars.githubusercontent.com/u/7524941?v=3","gravatar_id":"","url":"https://api.github.com/users/TeatroIO","html_url":"https://github.com/TeatroIO","followers_url":"https://api.github.com/users/TeatroIO/followers","following_url":"https://api.github.com/users/TeatroIO/following{/other_user}","gists_url":"https://api.github.com/users/TeatroIO/gists{/gist_id}","starred_url":"https://api.github.com/users/TeatroIO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeatroIO/subscriptions","organizations_url":"https://api.github.com/users/TeatroIO/orgs","repos_url":"https://api.github.com/users/TeatroIO/repos","events_url":"https://api.github.com/users/TeatroIO/events{/privacy}","received_events_url":"https://api.github.com/users/TeatroIO/received_events","type":"User","site_admin":false},"created_at":"2015-03-02T12:51:59Z","updated_at":"2015-03-02T12:51:59Z","body":"I've prepared a stage to preview changes. <a href='http://linki-fix-eventmachine.opf-openproject-2af22bf12c7dfdad4ddf.ttrcloud.com' target='_blank'>Open stage</a> or <a href='http://linki-fix-eventmachine.opf-openproject-2af22bf12c7dfdad4ddf.ttrcloud.com/teatro.log' target='_blank'>view logs</a>."}}