[Bug 1532883] Re: [SRU] xcffib tries to dlopen an unavailable lib

Daniel Holbach daniel.holbach at ubuntu.com
Mon Feb 1 13:35:42 UTC 2016


** Description changed:

  The file "/usr/lib/python2.7/dist-packages/xcffib/__init__.py" tries to
  "ffi.dlopen('libxcb.so')", but 'libxcb.so' doesn't exist considering the
  package's declared dependencies. libxcb1 provides 'libxcb.so.1' and not
  'libxcb.so' (that one is only provided by the '-dev' package)
  
  This only affects wily. Looking at the same file on xenial, it seems
  that it changed the dlopen to use 'libxcb.so.1', which I think is the
  right solution.
+ 
+ TESTCASE:
+ 
+ Before the fix:
+ $ python -c 'import xcffib'
+ Traceback (most recent call last):
+   File "<string>", line 1, in <module>
+   File "/usr/lib/python2.7/dist-packages/xcffib/__init__.py", line 28, in <module>
+     lib = ffi.dlopen('libxcb.so')
+ OSError: cannot load library 'libxcb.so': libxcb.so: cannot open shared object file: No such file or directory
+ $ python3 -c 'import xcffib'
+ Traceback (most recent call last):
+   File "<string>", line 1, in <module>
+   File "/usr/lib/python3/dist-packages/xcffib/__init__.py", line 28, in <module>
+ $
+ 
+ 
+ After applying the fix:
+ $ python -c 'import xcffib'
+ $ python3 -c 'import xcffib'
+ $

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1532883

Title:
  [SRU] xcffib tries to dlopen an unavailable lib

Status in xcffib package in Ubuntu:
  Fix Released
Status in xcffib source package in Wily:
  New

Bug description:
  The file "/usr/lib/python2.7/dist-packages/xcffib/__init__.py" tries
  to "ffi.dlopen('libxcb.so')", but 'libxcb.so' doesn't exist
  considering the package's declared dependencies. libxcb1 provides
  'libxcb.so.1' and not 'libxcb.so' (that one is only provided by the
  '-dev' package)

  This only affects wily. Looking at the same file on xenial, it seems
  that it changed the dlopen to use 'libxcb.so.1', which I think is the
  right solution.

  TESTCASE:

  Before the fix:
  $ python -c 'import xcffib'
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/usr/lib/python2.7/dist-packages/xcffib/__init__.py", line 28, in <module>
      lib = ffi.dlopen('libxcb.so')
  OSError: cannot load library 'libxcb.so': libxcb.so: cannot open shared object file: No such file or directory
  $ python3 -c 'import xcffib'
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/usr/lib/python3/dist-packages/xcffib/__init__.py", line 28, in <module>
  $

  
  After applying the fix:
  $ python -c 'import xcffib'
  $ python3 -c 'import xcffib'
  $

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xcffib/+bug/1532883/+subscriptions



More information about the Ubuntu-sponsors mailing list