Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 308299 - app-arch/ipkg-utils: Verify and potentially improve Python-related code
Summary: app-arch/ipkg-utils: Verify and potentially improve Python-related code
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Highest normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 308257
  Show dependency tree
 
Reported: 2010-03-07 17:10 UTC by Arfrever Frehtes Taifersar Arahesis (RETIRED)
Modified: 2011-03-05 23:47 UTC (History)
1 user (show)

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


Attachments
multi_python.patch (multi_python.patch,1.59 KB, patch)
2010-03-20 04:23 UTC, James Rowe
Details | Diff
ipkg-utils-1.7-hashlib_update.patch (ipkg-utils-1.7-hashlib_update.patch,693 bytes, patch)
2010-03-20 04:23 UTC, James Rowe
Details | Diff
ipkg-utils-1.7.050831-hashlib_update.patch (ipkg-utils-1.7.050831-hashlib_update.patch,710 bytes, patch)
2010-03-20 04:24 UTC, James Rowe
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-03-07 17:10:23 UTC
- If this package could support installation for multiple versions of Python,
  then please try to adjust the ebuilds to support it.
- Ensure that the ebuilds do not use deprecated functions or variables.
- Please check if Python 3 is supported by this package.
- If this package does not support Python 3:
  - Specify dependency on Python 2.
    You can use PYTHON_DEPEND helper variable, which should be set before
    inheriting of python eclass.
  - If this package cannot support installation for multiple versions of
    Python, then set active version of Python using
    python_set_active_version().
  - Ensure that shebangs in installed scripts specify correct version of
    Python. If shebangs are too generic (e.g. '#!/usr/bin/python'), then you
    can use python_convert_shebangs() to convert shebangs.
    (Wrapper scripts generated by python_generate_wrapper_scripts() do not
    require any changes.)

Please see documentation [1] for more details.
[1] http://www.gentoo.org/proj/en/Python/developersguide.xml
Comment 1 James Rowe 2010-03-20 04:22:34 UTC
  ipkg-utils works with all currently supported Python 2 versions, but not with 
Python 3 mostly because of the print syntax changes and nasty indentation.

  The attached patch adds support for installing with multiple Python 2.x
versions, and also fixes hashlib warnings with recent 2.x releases.

  It hasn't been tested all that much, as systems I use ipkg-utils aren't
updated often enough to have the necessary eclass changes.

Thanks,

James
Comment 2 James Rowe 2010-03-20 04:23:08 UTC
Created attachment 224313 [details, diff]
multi_python.patch
Comment 3 James Rowe 2010-03-20 04:23:55 UTC
Created attachment 224315 [details, diff]
ipkg-utils-1.7-hashlib_update.patch

hashlib updates for 1.7.
Comment 4 James Rowe 2010-03-20 04:24:19 UTC
Created attachment 224317 [details, diff]
ipkg-utils-1.7.050831-hashlib_update.patch

hashlib update for 1.7.050831.
Comment 5 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-03-05 23:47:08 UTC
Fixed in app-arch/ipkg-utils-1.7.050831-r1.