Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 408087 - app-admin/python-updater always rebuilds packages without python bindings/support
Summary: app-admin/python-updater always rebuilds packages without python bindings/sup...
Status: RESOLVED DUPLICATE of bug 384525
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-13 22:11 UTC by Alexey Prokopchuk
Modified: 2012-03-14 03:37 UTC (History)
0 users

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


Attachments
patch for python-updater skip packages without python support (python-updater-no-zero-abi-rebuild.patch,518 bytes, text/plain)
2012-03-13 22:11 UTC, Alexey Prokopchuk
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Prokopchuk 2012-03-13 22:11:02 UTC
Created attachment 305263 [details]
patch for python-updater skip packages without python support

My English is not very good, excuse me if I said something wrong.

After 'python' use flag was removed from several packages, python-updater always tries to rebuild all packages without python binding/support. 
For example: sys-libs/cracklib built with "-python", and python-updater shows message when run: "Adding to list: sys-libs/cracklib:0 ; check: PYTHON_ABIS [ Previous Python ABIs: , new Python ABIs: 2.7 ]". And it happens everytime I run python-updater, but cracklib isn't in PKGS_MANUAL.
In my opinion, python-updater must skip packages without python bindings/support instead of trying to rebuild them.

This behavior appears due to incomplete verification of matching old and new python ABI versions: when old ABI version is empty, python-updater assumes it not equal to new and includes package to rebuild list. Attached patch can solve this problem.

With best regards.
Comment 1 Arfrever Frehtes Taifersar Arahesis 2012-03-13 23:15:51 UTC
Duplicate of bug #384525.
Comment 2 Arfrever Frehtes Taifersar Arahesis 2012-03-13 23:22:53 UTC
Users can set PYTHON_ABIS variable in /etc/make.conf, and then this variable would be stored in environment.bz2 even if support for Python (e.g. "python" USE flag) is disabled.
Comment 3 Alexey Prokopchuk 2012-03-13 23:52:15 UTC
Well, but if PYTHON_ABIS is empty (usually this is the case), with these changes python-updater will simply skip unnecessary rebuild. When PYTHON_ABIS is defined in /etc/make.conf, python-updater will behave as usual. Or have I missing something else?

In any case, this change adds only empty string check and nothing more. It will help most people to prevent permanent unnecessary rebuilding of packages and will not affect normal python-updater's operation.

With best regards.
Comment 4 Mike Gilbert gentoo-dev 2012-03-14 03:37:48 UTC

*** This bug has been marked as a duplicate of bug 384525 ***