Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 311583 - media-gfx/asymptote reports python_version() deprecation warning
Summary: media-gfx/asymptote reports python_version() deprecation warning
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Andrey Grozin
URL:
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2010-03-27 08:37 UTC by W. Trevor King
Modified: 2010-03-27 20:09 UTC (History)
1 user (show)

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


Attachments
Patch to the asymptote directory, replacing ${PYVER} with $(python_get_version) (asy.patch,5.84 KB, patch)
2010-03-27 08:59 UTC, W. Trevor King
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description W. Trevor King 2010-03-27 08:37:47 UTC
In the messages after 'emerge asymptote':

 * Deprecation Warning: python_version is deprecated and will be banned on 2010-07-01.

There are a number of these in calls in various asymptote ebuilds:

  $ grep -r python_version /usr/portage/media-gfx/asymptote/
  /usr/portage/media-gfx/asymptote/asymptote-1.90.ebuild:         python_version
  /usr/portage/media-gfx/asymptote/asymptote-1.90.ebuild:         python_version
  /usr/portage/media-gfx/asymptote/asymptote-1.86.ebuild:         python_version
  /usr/portage/media-gfx/asymptote/asymptote-1.86.ebuild:         python_version
  /usr/portage/media-gfx/asymptote/asymptote-1.91.ebuild:         python_version
  /usr/portage/media-gfx/asymptote/asymptote-1.91.ebuild:         python_version

Looks like a job for:

  $ grep -l python_version $(find /usr/portage -name '*.ebuild') | while read line; do SUBMIT_BUG $line; done

since there are currently 5 (plus this) bugs about this issue and 329 ebuilds (as of March 24th) with this issue.

Alternatively, you could change python.eclass to say "please submit a patch" instead of "please report a bug" ;).


Reproducible: Always

Steps to Reproduce:
1.emerge asymptote

Actual Results:  
 * Deprecation Warning: python_version is deprecated and will be banned on 2010-07-01.


Expected Results:  
clean install
Comment 1 W. Trevor King 2010-03-27 08:59:29 UTC
Created attachment 225425 [details, diff]
Patch to the asymptote directory, replacing ${PYVER} with $(python_get_version)

I'm testing this now, but I expect it to fix the problem.
Comment 2 W. Trevor King 2010-03-27 09:58:06 UTC
Yup, seems to work.
Comment 3 Andrey Grozin gentoo-dev 2010-03-27 20:09:43 UTC
Has been fixed some time ago in asymptote-1.91-r1.