Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 476088 - app-office/openoffice-bin-3.4.1 @preserved-rebuild wants to reinstall because of missing python:2.6
Summary: app-office/openoffice-bin-3.4.1 @preserved-rebuild wants to reinstall because...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Chí-Thanh Christopher Nguyễn
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-07 18:00 UTC by Amadeusz Żołnowski (RETIRED)
Modified: 2013-07-26 10:22 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Amadeusz Żołnowski (RETIRED) gentoo-dev 2013-07-07 18:00:20 UTC
emerge --depclean removed python:2.6 and @preserved-rebuild wants to reinstall openoffice-bin because of missing python:2.6, but of course reinstall doesn't help in this case:

!!! existing preserved libs:
>>> package: dev-lang/python-2.6.8-r2
 *  - /usr/lib64/libpython2.6.so.1.0
 *      used by /usr/lib64/openoffice/basis3.4/program/python-core-2.6.1/lib/lib-dynload/_bisect.so (app-office/openoffice-bin-3.4.1)
 *      used by /usr/lib64/openoffice/basis3.4/program/python-core-2.6.1/lib/lib-dynload/_bytesio.so (app-office/openoffice-bin-3.4.1)
 *      used by /usr/lib64/openoffice/basis3.4/program/python-core-2.6.1/lib/lib-dynload/_codecs_cn.so (app-office/openoffice-bin-3.4.1)
 *      used by 56 other files
Use emerge @preserved-rebuild to rebuild packages using these libraries

I don't know if this is openoffice-bin issue (not depending on python:2.6) or portage bug.

Reproducible: Always
Comment 1 Chí-Thanh Christopher Nguyễn gentoo-dev 2013-07-07 18:43:21 UTC
This is a problem of openoffice-bin.
I didn't want to make python:2.6 a hard dependency, because only minor functions are affected.
Comment 2 Amadeusz Żołnowski (RETIRED) gentoo-dev 2013-07-08 07:29:31 UTC
Minor or not it is a dependency. Could you add it to not confuse users, please? Maybe in the future releases they move on to newer versions of Python.
Comment 3 Chí-Thanh Christopher Nguyễn gentoo-dev 2013-07-08 09:47:44 UTC
Well it is optional, and not automagic.

So I saw no reason to make it a hard dependency in the ebuild.
Comment 4 Amadeusz Żołnowski (RETIRED) gentoo-dev 2013-07-08 11:33:53 UTC
Well, but then portage warns every time about existing preserved libs, which doesn't look much like an optional and is frustrating. Should we learn users to ignore such warnings? On the other hand adding python:2.6 to world file isn't clean either, because if openoffice-bin is removed, python:2.6 is left. It requires from users handling dependencies by themselves, but this should be the portage job.

Maybe you could add at least "python" to IUSE and make it enabled by default and comment it in metadata.xml what is going to happen if it is disabled?
Comment 5 Chí-Thanh Christopher Nguyễn gentoo-dev 2013-07-08 11:38:20 UTC
I could make a python flag and prevent installation of the stuff in /usr/lib64/openoffice/basis3.4/program/python-core-2.6.1/ if it is unset.
Comment 6 Amadeusz Żołnowski (RETIRED) gentoo-dev 2013-07-08 14:15:12 UTC
Yes, please.
Comment 7 Chí-Thanh Christopher Nguyễn gentoo-dev 2013-07-23 22:44:01 UTC
Fixed by unconditionally depending on python:2.7 in openoffice-bin-4.0.0

I might add a python USE flag later.
Comment 8 Amadeusz Żołnowski (RETIRED) gentoo-dev 2013-07-26 10:22:19 UTC
Thanks! :-)