instrospection: compile polkitagent against local polkit-gobject
Submitted by Alban Browaeys
Assigned to David Zeuthen @david
Description
Created attachment 59876 instrospection: compile polkitagent against local polkit-gobject
polkitagent gir compilation fails with:
GISCAN PolkitAgent-1.0.gir ./.libs/libpolkit-agent-1.so: undefined reference to `polkit_authority_register_authentication_agent_with_options_sync' collect2: ld returned 1 exit status linking of temporary binary failed: Command '['/bin/bash', '../../libtool', '--mode=link', '--tag=CC', '--silent', 'gcc', '-o', '/home/prahal/checkout/gnome/polkit/src/polkitagent/tmp-introspectwLciY4/PolkitAgent-1.0', '-export-dynamic', '-O0', '-g', '-Wall', '-Wchar-subscripts', '-Wmissing-declarations', '-Wnested-externs', '-Wpointer-arith', '-Wcast-align', '-Wsign-compare', '-Wformat', '-Wformat-security', '-Wl,--as-needed', '-L/opt/gnome/lib64', '-L/opt/gnome/lib64', '/home/prahal/checkout/gnome/polkit/src/polkitagent/tmp-introspectwLciY4/PolkitAgent-1.0.o', '-L.', 'libpolkit-agent-1.la', '-pthread', '-Wl,--export-dynamic', '-L/opt/gnome/lib64', '-lgio-2.0', '-lgobject-2.0', '-lgthread-2.0', '-lgmodule-2.0', '-lrt', '-lglib-2.0']' returned non-zero exit status 1
Attached patch fixes this by adding polkit-gobject to the gir libs.
Patch 59876, "instrospection: compile polkitagent against local polkit-gobject":
0001-instrospection-compile-polkitagent-against-local-polki.txt