Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 197787 - app-office/{dia,dia2code,gnumeric}, dev-libs/boost, x11-libs/vte - wrong python handling
Summary: app-office/{dia,dia2code,gnumeric}, dev-libs/boost, x11-libs/vte - wrong pyth...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-01 15:30 UTC by Patrizio Bassi
Modified: 2008-02-24 22:42 UTC (History)
2 users (show)

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


Attachments
python-updater-fix-grep.patch (python-updater-fix-grep.patch,1.17 KB, patch)
2007-11-02 12:46 UTC, Ali Polatel (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Patrizio Bassi 2007-11-01 15:30:57 UTC
bored of pythong 2.4 i unmerged it few weeks ago.
today i run python updater

 * Starting Python Updater from 2.4 to 2.5 :
 * Searching for packages with files in /usr/lib/python2.4 /usr/lib32/python2.4 /usr/lib64/python2.4 ..
 * Adding to list (manually): =x11-libs/vte-0.16.9
 * Adding to list (manually): =app-office/dia2code-0.8.1
 * Adding to list (manually): =app-office/gnumeric-1.6.3
 * Adding to list (manually): =app-office/dia-0.96.1
 * Adding to list (manually): =dev-libs/boost-1.34.1

all merged successfully.
i run it again and it wanted to merge them again.

endlessy. what's the issue here?
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-11-01 15:37:28 UTC
Well, the issue it that none of these ebuilds uses python_mod_{optimize,cleanup}, so it leaves orphaned crap on the system which triggers python-updater.
Comment 2 Gilles Dartiguelongue (RETIRED) gentoo-dev 2007-11-01 22:58:03 UTC
vte done in CVS
Comment 3 Patrizio Bassi 2007-11-02 09:48:30 UTC
good, when all the 5 packages will be fixed i will:

1) recompile all 5
2) python-update and report success
Comment 4 Tiziano Müller (RETIRED) gentoo-dev 2007-11-02 10:59:53 UTC
@Jakub: you're wrong. boost uses distutils (which is only needed for pyste) but links against the python-library which makes it necessary to rebuild it.
@hawking: seems like a bug in python-updater since those are all manually added ebuilds
Comment 5 Ali Polatel (RETIRED) gentoo-dev 2007-11-02 11:52:10 UTC
(In reply to comment #4)
> @hawking: seems like a bug in python-updater since those are all manually added
> ebuilds
> 
Well, that's expected behaviour. The newly added --direct-only option can be used to skip manually added packages.

Comment 6 Ali Polatel (RETIRED) gentoo-dev 2007-11-02 12:09:08 UTC
The wrong behaviour is that app-office/dia2code is added but it's not listed
in manual packages. The problematic part of code is
python-updater:189
if [ -n "$(echo ${CATPKGVER} | grep ${pkg})" ]; then
so it adds app-office/dia2code when app-office/dia exists in the list.
Comment 7 Tiziano Müller (RETIRED) gentoo-dev 2007-11-02 12:33:49 UTC
@hawking: "endlessy. what's the issue here?" ... this is the problem according to the bug reporter :)
Comment 8 Ali Polatel (RETIRED) gentoo-dev 2007-11-02 12:46:26 UTC
Created attachment 135000 [details, diff]
python-updater-fix-grep.patch

This patch fixes the issue in my previous comment.
Comment 9 Ali Polatel (RETIRED) gentoo-dev 2007-11-02 12:50:26 UTC
reassigning bug to python as this has nothing to do with gnome.
Comment 10 Patrizio Bassi 2007-11-02 18:18:48 UTC
fast resume:

vte fixed,
dia2code should not be added anymore after script patch.

what about boost and gnumeric? same issue of dia?
Comment 11 Ali Polatel (RETIRED) gentoo-dev 2007-11-02 18:25:33 UTC
(In reply to comment #10)
> fast resume:
> 
> vte fixed,
> dia2code should not be added anymore after script patch.
> 
> what about boost and gnumeric? same issue of dia?
> 
I guess I haven't been clear enough, packages gnumeric,dia,boost and vte link to python although they don't install packages under python's library. This is why python-updater adds these manually to the list if they're installed. If you don't want to see them use --direct-only with python-updater so it'll just list the packages that have files installed in previous python's library.
Comment 12 Patrizio Bassi 2007-11-02 19:52:43 UTC
maybe i'm a bit dump but i didn't understand what "manually" means.

basically with that option only ebuilds into python library dir will be reemerged right?
Comment 13 Gilles Dartiguelongue (RETIRED) gentoo-dev 2007-11-03 00:19:33 UTC
$ equery files vte
[snip]
/usr/lib/python2.5/site-packages
/usr/lib/python2.5/site-packages/gtk-2.0
/usr/lib/python2.5/site-packages/gtk-2.0/vtemodule.a
/usr/lib/python2.5/site-packages/gtk-2.0/vtemodule.la
/usr/lib/python2.5/site-packages/gtk-2.0/vtemodule.so
[snip]

doesn't that justify the use of the postrm/postinst stuff ??? I'm no python master so please forgive me if the question is just stupid.

For gnumeric, it seems it's only a plugin loader.
Comment 14 Tiziano Müller (RETIRED) gentoo-dev 2007-11-03 07:55:21 UTC
@eva: nope, the post{inst,rm} stuff only creates/removes python byte-compiled files (for example: foo.py[co] for foo.py)
Comment 15 Patrizio Bassi 2007-11-24 11:04:41 UTC
will this be merged in portage?
Comment 16 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-02-24 22:42:42 UTC
besides dia that I have pending changes to commit, all of this should have been taken care of through bug #207667. If it's not the case, please reopen individual bugs.