Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 347897 - app-admin/python-updater should use cave instead of paludis
Summary: app-admin/python-updater should use cave instead of paludis
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal with 1 vote (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2010-12-06 12:16 UTC by Ciaran McCreesh
Modified: 2011-05-16 23:58 UTC (History)
9 users (show)

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


Attachments
Patch for python-updater-0.8 (python-updater-0.8-cave.patch,2.06 KB, patch)
2011-03-10 14:51 UTC, Philipp
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ciaran McCreesh 2010-12-06 12:16:49 UTC
python-updater currently calls the 'paludis' for Paludis-related actions. The 'paludis' client will soon be deprecated in favour of 'cave'. Please change the commands to the newer client.

As far as I can see, the commands needed are:

    PMS_COMMAND=cave
    PMS_OPTIONS=resolve --preserve-world --execute

For has-version:

    cave has-version

For env variables:

    cave print-id-environment-variable --best "${1}/${2}${3:+:}${3}::/?"  --variable-name USE_PYTHON --format '%v\n'

Also, pretending is the default for 'cave resolve'. You have to explicitly specify --execute to get it to carry something out. It's probably easiest to include the '--execute' in the main 'cave resolve' command string, and then append '--no-execute' if pretending.
Comment 1 Aleksandar Petrinic 2011-01-04 03:23:16 UTC
I would suggest to use also "--lazy" and "--continue-on-failure if-independent" in the PMS_OPTIONS.
Comment 2 Marc-Antoine Perennou 2011-02-24 22:31:07 UTC
Since the paludis client has been removed from git and won't be shipped in the next release, I think this should really be considered as blocking right now
Comment 3 Philipp 2011-03-10 14:51:39 UTC
Created attachment 265459 [details, diff]
Patch for python-updater-0.8

I have tested this a little but it would be nice if someone could test this as well and get it into Gentoo.
Comment 4 Jakub Caban 2011-03-14 20:02:18 UTC
For me this patch works like a charm. I have no power to put it upstream, but had the power to test how it works.
Comment 5 Agostino Sarubbo gentoo-dev 2011-03-16 20:19:52 UTC
this bug has been opened since 2010-12-06.

Atm there is stable request for security bug of python ( bug 358717 )

I think that is very important for paludis users that can't run python-updater properly.
Comment 6 Markos Chandras (RETIRED) gentoo-dev 2011-03-16 20:54:05 UTC
Paludis is not officially supported by Gentoo, therefore this bug has nothing to do with QA
Comment 7 Aleksandar Petrinic 2011-03-16 21:28:01 UTC
Anyway... the patch is already here. So please avoid needless paludis' users pain and make a good action, spending 10 minutes of your precious time and committing the patch.
You can easily see the patch doesn't touch the "emerge stuff".

We spent more time on arguing than time needed to actually get the commit done.

Thanks
Comment 8 Marc-Antoine Perennou 2011-03-19 21:33:50 UTC
So, now, paludis 0.60 has been released, with the paludis client removed. This really is critical, since paludis users with an up to date system won't be able to run python-updater anymore
Comment 9 Agostino Sarubbo gentoo-dev 2011-03-19 21:54:30 UTC
a better workaround is create a symlink with cave and paludis...or create a custom ebuild with  this patch
Comment 10 Marc-Antoine Perennou 2011-03-19 21:59:42 UTC
(In reply to comment #9)
> a better workaround is create a symlink with cave and paludis...or create a
> custom ebuild with  this patch

cave and paludis are two really different clients, the options are not the same, ... A symlink is certainly not an option to consider.
I don't see why this would be a "better" workaround anyway.
python-updater needs a release since a while (see http://bugs.gentoo.org/308579), this release have to land soon, and with this patch applied.
Comment 11 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-03-22 21:21:34 UTC
I have committed a similar fix in r436.
Please test app-admin/python-updater-9999.
Comment 12 Marc-Antoine Perennou 2011-03-22 21:55:26 UTC
Works fine here, thx
Comment 13 Brad Allen 2011-05-01 05:20:11 UTC
(In reply to comment #11)
> I have committed a similar fix in r436.
> Please test app-admin/python-updater-9999.

This works.  Thank you.

Cheat data:  The magic line in /etc/paludis/keywords.conf to get a 9999 version working is:   =app-admin/python-updater-9999 *
Comment 14 Enne Eziarc 2011-05-15 13:24:19 UTC
The python-updater-9999 suggested breaks for me with a new error:

~ # python-updater -P paludis -p
 * Starting Python Updater...
 * Main active version of Python:  2.7
 * Active version of Python 2:     2.7
 * Active version of Python 3:     3.2
 * Unrecognized Python ABI '*'

Same if I try to set 3.2 as main.
Comment 15 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-05-15 15:22:00 UTC
(In reply to comment #14)

It is unrelated to this bug. You have probably set USE_PYTHON="*", which is invalid.
Comment 16 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-05-16 23:58:57 UTC
Fixed in app-admin/python-updater-0.9.