[SRU] xcffib tries to dlopen an unavailable lib

Bug #1532883 reported by Thiago Bellini
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xcffib (Ubuntu)
Fix Released
Low
Unassigned
Wily
Won't Fix
Low
Unassigned

Bug Description

[Impact]

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.

[Test Case]

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'
$

Related branches

Revision history for this message
Thiago Bellini (bellini666) wrote :

The merge proposal I linked should fix the problem. I also built the package with the fix on my ppa (https://launchpad.net/~hackedbellini/+archive/ubuntu/misc/+packages) for anyone wanting to test it.

Mathew Hodson (mhodson)
Changed in xcffib (Ubuntu):
status: New → Fix Released
importance: Undecided → Low
Revision history for this message
Thiago Bellini (bellini666) wrote :

@mathew-hodson: I don't understand... Why was this marked as "Fix Released"? My MP has not been merged yet and AFAIK, the fix was not yet released on the package.

Revision history for this message
Flames_in_Paradise (ellisistfroh-deactivatedaccount) wrote :

@ Thiago

This means it has entered the proposed queue:

see -> https://launchpad.net/ubuntu/wily/+queue?queue_state=3&queue_text=xcffib

Like most packages this gets tested then by willing voluteers ;-)

Revision history for this message
Flames_in_Paradise (ellisistfroh-deactivatedaccount) wrote :

Can't revert status back to "new".

 Matthew, could you pls look at this again?

Revision history for this message
Thiago Bellini (bellini666) wrote :

@ellisistfroh: Oh, I see. Interesting

Well, if it is of any help, I have the same version I sent this fix built on this ppa: https://launchpad.net/~stoq-dev/+archive/ubuntu/lancamentos

It is used to distribute the software we develop at my work (Stoq) and the package was already installed by some its users. I actually received feedback from some of them saying that the upgrade solved their issues.

Revision history for this message
Mathew Hodson (mhodson) wrote :

I set the development task to Released and nominated for Wily, because it's fixed in Xenial. This needs to be SRUed to get the fix for Wily.

Please use the SRU procedure https://wiki.ubuntu.com/StableReleaseUpdates and update the description with an Impact, Test Case, and Regression Potential.

I'll set the development task back for now.

tags: added: packaging wily
Changed in xcffib (Ubuntu):
status: Fix Released → Triaged
Mathew Hodson (mhodson)
Changed in xcffib (Ubuntu):
status: Triaged → Fix Committed
summary: - xcffib tries to dlopen an unavailable lib
+ [SRU] xcffib tries to dlopen an unavailable lib
Changed in xcffib (Ubuntu):
status: Fix Committed → Fix Released
description: updated
Revision history for this message
Daniel Holbach (dholbach) wrote :
Changed in xcffib (Ubuntu Wily):
status: New → Fix Committed
Mathew Hodson (mhodson)
Changed in xcffib (Ubuntu Wily):
importance: Undecided → Low
description: updated
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Thiago, or anyone else affected,

Accepted xcffib into wily-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/xcffib/0.3.4-1ubuntu1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

tags: added: verification-needed
Revision history for this message
Flames_in_Paradise (ellisistfroh-deactivatedaccount) wrote :

Quote from comment #5 here:

> the package was already installed by some its users. I actually received feedback from some of them saying that the upgrade solved their issues.

So marking as testing done .

tags: added: verification-done
removed: verification-needed
Revision history for this message
Brian Murray (brian-murray) wrote :

PPA testing doesn't count as verifying the package from -proposed repository of the official Ubuntu archive.

tags: added: verification-needed
removed: verification-done
Revision history for this message
Flames_in_Paradise (ellisistfroh-deactivatedaccount) wrote :

@ Brian, big excuses, I'll be remembering that then for certain. Had been comparing the code before (not too big a change actually). Especially as this was fixed in the most current release of Ubuntu.

–––

@ Thiago, maybe you can find someone at work (Stoq) & assist to test this bugfix-package?

Revision history for this message
Martin Pitt (pitti) wrote :

The wily update was not verified in half a year, and wily is almost EOL. So I removed the -proposed package.

Changed in xcffib (Ubuntu Wily):
status: Fix Committed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.