GNOME Bugzilla – Bug 655711
summarize depscan output by package
Last modified: 2011-08-03 12:31:50 UTC
Created attachment 192978 [details] [review] proposed patch The current gtkdoc-depscan output is useful for figuring out where exactly the symbols are used. It is not so useful for just seeing what packages and versions are required and why. An implementation is attached. For instance, running it on current evince produces: gdk-2.24 required for 1 gdk_x11_set_sm_client_id gdk-pixbuf-2.6 required for 4 gdk_pixbuf_rotate_simple 2 gdk_pixbuf_format_is_disabled gio-2.26 required for 16 g_settings_get_boolean 9 g_dbus_method_invocation_return_value 6 g_settings_set_boolean 4 g_dbus_proxy_call 3 g_dbus_node_info_new_for_xml 3 g_dbus_connection_emit_signal 3 g_dbus_connection_register_object 3 g_settings_new 3 GDBusNodeInfo 3 GDBusInterfaceVTable 2 g_dbus_connection_call 2 G_DBUS_ERROR 2 g_dbus_method_invocation_return_error_literal 2 g_dbus_connection_call_finish 2 g_dbus_proxy_call_finish 2 g_dbus_proxy_new_for_bus 2 g_settings_get_int 2 g_dbus_connection_unregister_object 2 g_settings_get_string 2 g_dbus_proxy_new_for_bus_finish 2 g_settings_get_enum 1 g_settings_set 1 g_dbus_node_info_unref 1 g_dbus_node_info_ref 1 g_settings_set_string 1 g_dbus_proxy_get_name_owner 1 g_dbus_connection_signal_subscribe 1 g_bus_unown_name 1 GDBusSignalCallback 1 g_dbus_connection_flush_sync 1 g_settings_delay 1 g_settings_get 1 g_bus_own_name 1 g_dbus_connection_signal_unsubscribe 1 g_dbus_connection_call_sync 1 g_bus_watch_name_on_connection 1 g_settings_set_int 1 g_bus_unwatch_name 1 g_bus_get_sync glib-2.28 required for 1 g_list_free_full gobject-2.26 required for 3 g_value_get_variant gtk-2.24 required for 15 gtk_combo_box_text_append_text 3 gtk_combo_box_text_new 1 gtk_combo_box_get_has_entry
Review of attachment 192978 [details] [review]: Yes, great idea. ::: gtkdoc-depscan.in @@ +381,3 @@ + print '%s required for' % since + for x in summary[since]: + print ' %u %s' % (x[1], x[0]) what about a %4d for nicer alignment?
(In reply to comment #1) > what about a %4d for nicer alignment? If you think so. I can see reasons both for aligning it and for keeping it close to the symbol.
Yeti, please set your username in gitconfig. Fixed it for the attached patch already.