Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 377081 - >=dev-libs/yajl-2.0.0: needs to use preserve_old_lib
Summary: >=dev-libs/yajl-2.0.0: needs to use preserve_old_lib
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: Normal major (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-30 16:02 UTC by Andrew Frink
Modified: 2013-06-23 22:26 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to update dependencies of virt-manager-0.9.0 for virtinst and yajl (virt-manager-0.9.0-deps.patch,862 bytes, patch)
2011-08-01 15:54 UTC, Elias Probst
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Frink 2011-07-30 16:02:31 UTC
After upgrading world virt-manager-0.9.0 fails with the message below and does not depend on the correct version of dev-libs/yajl. Downgrading to =dev-libs/yajl-1.0.11-r1 solves the problem.

# virt-manager 
Traceback (most recent call last):
  File "/usr/share/virt-manager/virt-manager.py", line 383, in <module>
    main()
  File "/usr/share/virt-manager/virt-manager.py", line 246, in main
    from virtManager import cli
  File "/usr/share/virt-manager/virtManager/cli.py", line 29, in <module>
    import libvirt
  File "/usr/lib64/python2.6/site-packages/libvirt.py", line 25, in <module>
    raise lib_e
ImportError: libyajl.so.1: cannot open shared object file: No such file or directory
Comment 1 Elias Probst 2011-08-01 15:54:04 UTC
Created attachment 281753 [details, diff]
Patch to update dependencies of virt-manager-0.9.0 for virtinst and yajl

Furthermore, app-emulation/virt-manager-0.9.0 needs to depend on app-emulation/virtinst-0.600.0 to run.

Attached is a patch to update the dependencies of app-emulation/virt-manager-0.9.0 accordingly.
Comment 2 Doug Goldstein (RETIRED) gentoo-dev 2011-08-02 21:24:09 UTC
You just need to run revdep-rebuild and all is well. Unfortunately the maintainer of yajl didn't notate that.

Hans:

You should have a pkg_preinst() section that calls preserve_old_lib and pkg_postinst() that calls preserve_old_lib_notify. Check out dev-lib/openssl for an example.
Comment 3 Michael Weber (RETIRED) gentoo-dev 2013-06-23 22:26:10 UTC
FEATURES=preserve-libs is on now.