Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 347433 - ruby-ng.eclass false positive on non-ruby-extension shared object
Summary: ruby-ng.eclass false positive on non-ruby-extension shared object
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-01 15:33 UTC by Matteo 'The Peach' Pescarin
Modified: 2011-07-16 09:52 UTC (History)
0 users

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


Attachments
dev-ruby/selenium-webdriver-0.1.1 (selenium-webdriver-0.1.1.ebuild,806 bytes, text/plain)
2010-12-01 15:34 UTC, Matteo 'The Peach' Pescarin
Details
qa-allowed.patch (qa-allowed.patch,2.13 KB, patch)
2011-07-14 08:54 UTC, Hans de Graaff
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matteo 'The Peach' Pescarin 2010-12-01 15:33:17 UTC
installing selenium-webdriver-0.1.1 the install process failed with this error:

>>> Install selenium-webdriver-0.1.1 into /var/tmp/portage/dev-ruby/selenium-webdriver-0.1.1/image/ category dev-ruby
 * Running install phase for ruby18 ...
 * Running install phase for all ...
 * Running check install phase for ruby18 ...
 * Extensions installed for ruby18 with missing links to libruby18.so.1.8
 * libc.so.6 /var/tmp/portage/dev-ruby/selenium-webdriver-0.1.1/image//usr/lib64/ruby/gems/1.8/gems/selenium-webdriver-0.1.1/lib/selenium/webdriver/firefox/native/linux/amd64/x_ignore_nofocus.so libc.so.6 /var/tmp/portage/dev-ruby/selenium-webdriver-0.1.1/image//usr/lib64/ruby/gems/1.8/gems/selenium-webdriver-0.1.1/lib/selenium/webdriver/firefox/native/linux/x86/x_ignore_nofocus.so
 * ERROR: dev-ruby/selenium-webdriver-0.1.1 failed:
 *   Missing links to libruby18.so.1.8

nm -D gives:

000070dc D No
000070e0 D Unknown
         U XFree
         U XGetAtomName
0000471d T XNextEvent
         U XQueryTree
         U XRefreshKeyboardMapping
         U XSetInputFocus
000070d8 D Yes
         w _Jv_RegisterClasses
         U __assert_fail
000070e4 A __bss_start
         w __cxa_finalize
         w __gmon_start__
         U __stack_chk_fail
000070e4 A _edata
0000711c A _end
00004a58 T _fini
00000fe8 T _init
000039d0 T cache_xquery_result
         U dlclose
         U dlerror
         U dlopen
         U dlsym
00003902 T do_nothing
00003c71 T event_on_active_or_adj_window
000044c5 T extract_window_id
000043a3 T fake_keymap_notify_event
         U fclose
         U fopen
         U fprintf
         U fputc
         U fread
         U free
         U fwrite
00007114 B g_cached_xquerytree
000070f8 B g_focus_status
000070f0 B g_library_inited
00003951 T get_active_window
00004617 T get_xlib_handle
00003f9d T identify_active_destroyed
00003ef7 T identify_new_window_situation
00003d07 T identify_switch_situation
000039a7 T init_cached_xquerytree
00003907 T init_focus_keep_struct
00003994 T is_destroy_notify
00004418 T is_emulated_32bit
0000396e T is_focus_in
0000395b T is_focus_out
00003981 T is_reparent_notify
00003bc9 T lookup_in_xquery_cache
         U malloc
         U memset
00003024 T print_event
00004718 T print_event_to_log
000037b8 T print_xquerytree
00003e64 T set_active_window
0000424e T should_discard_focus_in_event
00004112 T should_discard_focus_out_event
         U snprintf
         U sprintf
         U stderr
00004032 T steal_focus_back_if_needed
         U strncmp
         U strstr
         U uname
         U unlink
00003c57 T window_ids_difference
000070ec B xic
Comment 1 Matteo 'The Peach' Pescarin 2010-12-01 15:34:13 UTC
Created attachment 256055 [details]
dev-ruby/selenium-webdriver-0.1.1
Comment 2 Hans de Graaff gentoo-dev Security 2011-07-14 08:54:36 UTC
Created attachment 280039 [details, diff]
qa-allowed.patch

Patch to whitelist shared objects that are not supposed to be linked to ruby.
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2011-07-14 08:58:37 UTC
Make sure to remove the stray has/hasq change, and please apply the rest, since we have no other option I guess..
Comment 4 Hans de Graaff gentoo-dev Security 2011-07-16 09:52:07 UTC
(In reply to comment #3)
> Make sure to remove the stray has/hasq change, and please apply the rest, since
> we have no other option I guess..

The has/hasq stuff was due to the way I had to quickly create the patch (silly cvs).

The other changes are now committed.

An ebuild for selenium-webdriver is on my list, but it requires a few more fixes for LDFLAGS QA checks. I'm closing this bug since selenium-webdriver was just an example.