Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 308299

Summary: app-arch/ipkg-utils: Verify and potentially improve Python-related code
Product: Gentoo Linux Reporter: Arfrever Frehtes Taifersar Arahesis (RETIRED) <arfrever>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: normal CC: jnrowe
Priority: Highest    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 308257    
Attachments: multi_python.patch
ipkg-utils-1.7-hashlib_update.patch
ipkg-utils-1.7.050831-hashlib_update.patch

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.