[virt-tools-list] [PATCH] Export the symbol osinfo_product_get_codename

Giuseppe Scrivano gscrivan at redhat.com
Mon Aug 26 13:02:33 UTC 2013


Signed-off-by: Giuseppe Scrivano <gscrivan at redhat.com>
---
while playing with libosinfo from Python I got this error:

Traceback (most recent call last):
  File "./demo2.py", line 16, in <module>
    print os.get_codename()
  File "/usr/lib/python2.7/site-packages/gi/types.py", line 113, in function
    return info.invoke(*args, **kwargs)
gi._glib.GError: Could not locate osinfo_product_get_codename: `osinfo_product_get_codename': /usr/local/lib/libosinfo-1.0.so.0: undefined symbol: osinfo_product_get_codename

the following patch fixes it.

 osinfo/libosinfo.syms | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/osinfo/libosinfo.syms b/osinfo/libosinfo.syms
index bb5fc6f..c56ff1f 100644
--- a/osinfo/libosinfo.syms
+++ b/osinfo/libosinfo.syms
@@ -419,6 +419,10 @@ LIBOSINFO_0.2.7 {
 	osinfo_platform_get_all_devices;
 } LIBOSINFO_0.2.6;
 
+LIBOSINFO_0.2.8 {
+	osinfo_product_get_codename;
+} LIBOSINFO_0.2.7;
+
 /* Symbols in next release...
 
   LIBOSINFO_0.0.2 {
-- 
1.8.3.1




More information about the virt-tools-list mailing list