Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 305103 - dev-java/jython:2.5: Prepare for being Python ABI provider
Summary: dev-java/jython:2.5: Prepare for being Python ABI provider
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All All
: Highest normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on: 348306
Blocks: 297727
  Show dependency tree
 
Reported: 2010-02-14 18:38 UTC by Arfrever Frehtes Taifersar Arahesis (RETIRED)
Modified: 2012-07-18 10:45 UTC (History)
1 user (show)

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


Attachments

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-02-14 18:38:48 UTC
Some changes are required in dev-java/jython:2.5:
- /usr/bin/jython-2.5 should set -Dpython.executable=/usr/bin/jython-2.5.
- /usr/bin/jython-2.5 should unset EPYTHON to avoid circular execution:
  python -> jython-2.5 -> java-config-2 -> python
- /usr/bin/jython-2.5 should set Dpython.cachedir depending on a variable
  to avoid regeneration of cache for each package.
  /usr/bin/jython-2.5 could contain:
  -Dpython.cachedir=${JYTHON_CACHEDIR-${HOME}/.jythoncachedir}
  JYTHON_CACHEDIR variable would be set in python_execute_function() in
  python.eclass. Which directory do you suggest? One of possibilities would be
  /var/cache/jython-2.5.
- Jython should respect PYTHONDONTWRITEBYTECODE variable to avoid sandbox
  violations.
- Optionally some patches from Python 2.5 should be applied.
Comment 1 Alistair Bush (RETIRED) gentoo-dev 2010-03-05 21:30:07 UTC
arfrever,  java-config has now been updated to support python 2.6 which probably means that this bug is a bit redundant now.

Do you agree that we can't really work on this now?  Lets keep this open tho.
Comment 2 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-03-07 09:34:50 UTC
This bug is separate from anything in java-config. It's about support for "2.5-jython" Python ABI.
Comment 3 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-03-19 19:23:32 UTC
Additional changes:
- Scripts installed using Distutils should be installed into /usr/bin instead of
  /usr/share/jython-2.5/bin.
- Jython should respect PYTHONPATH variable.
Comment 4 Alistair Bush (RETIRED) gentoo-dev 2010-03-19 19:31:56 UTC
[21:25] <Arfrever> It requires change of INSTALL_SCHEMES["java"]["scripts"] in distutils/command/install.py.
[21:28] <ali_bush> within the python code that jython installs?
[21:29] <Arfrever> ali_bush: /usr/share/jython-2.5/Lib/distutils/command/install.py
[21:30] <Arfrever> It affects 'jython-2.5 setup.py install' when run with Python packages.
Comment 5 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-12-09 21:14:19 UTC
If there are no objections, then I will implement the following changes:
- Proper usage of python.eclass
- IUSE="+readline +ssl +threads +xml"
  "ssl", "threads" and "xml" USE flags cannot be disabled and should be forced
  in package.use.force. "readline" USE flag will automatically enable GNU
  Readline.
- Support for PYTHONDONTWRITEBYTECODE in Distutils (backported from CPython).
- Renaming of "jython-2.5" script to "jython2.5", for consistency with CPython.
- Deletion of unsetting of EPYTHON. This variable needs to be passed to Jython.
  The problems need to be fixed in java-config (bug #348306).
Comment 6 Alistair Bush (RETIRED) gentoo-dev 2010-12-13 06:33:55 UTC
(In reply to comment #5)
> If there are no objections, then I will implement the following changes:
> - Proper usage of python.eclass
> - IUSE="+readline +ssl +threads +xml"
>   "ssl", "threads" and "xml" USE flags cannot be disabled and should be forced
>   in package.use.force. "readline" USE flag will automatically enable GNU
>   Readline.
> - Support for PYTHONDONTWRITEBYTECODE in Distutils (backported from CPython).
> - Renaming of "jython-2.5" script to "jython2.5", for consistency with CPython.
> - Deletion of unsetting of EPYTHON. This variable needs to be passed to Jython.
>   The problems need to be fixed in java-config (bug #348306).
> 

I have no issues with this.  Could you send me a patch of the changes you make (so I can get my head around them)

Thanks.
Comment 7 Alistair Bush (RETIRED) gentoo-dev 2010-12-13 10:39:07 UTC
(In reply to comment #6)
Could you send me a patch of the changes you make
> (so I can get my head around them)
> 
> Thanks.
> 

Hi Arfrever.  Reviewed patches and they seem fine to me.  I'm happy for you to commit them.   minor changes don't need further review.
Comment 8 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-12-13 14:15:24 UTC
(In reply to comment #5)

These changes have been implemented in dev-java/jython-2.5.1-r2.

Remaining required changes:
- Support for PYTHONDONTWRITEBYTECODE in import system to avoid sandbox
  violations.
Comment 9 Serkan Kaba (RETIRED) gentoo-dev 2011-05-07 08:01:40 UTC
(In reply to comment #8)
> Remaining required changes:
> - Support for PYTHONDONTWRITEBYTECODE in import system to avoid sandbox
>   violations.

The changelog says this is also fixed, and there's a patch for that. Do we have any other blockers left?
Comment 10 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-05-07 17:44:34 UTC
(In reply to comment #9)

It's not fixed in dev-java/jython-2.5.1-r2.
Comment 11 Ralph Sennhauser (RETIRED) gentoo-dev 2012-07-10 12:14:20 UTC
(In reply to comment #5)
> If there are no objections, then I will implement the following changes:
> - Proper usage of python.eclass
> - IUSE="+readline +ssl +threads +xml"
>   "ssl", "threads" and "xml" USE flags cannot be disabled and should be
> forced
>   in package.use.force. "readline" USE flag will automatically enable GNU
>   Readline.

What is this about? Adding use flags which aren't used at all. Can you elaborate?
readline arguably does something but the others are noops.

> - Support for PYTHONDONTWRITEBYTECODE in Distutils (backported from CPython).

No idea what needs to be done here.

> - Renaming of "jython-2.5" script to "jython2.5", for consistency with
> CPython.
> - Deletion of unsetting of EPYTHON. This variable needs to be passed to
> Jython.
>   The problems need to be fixed in java-config (bug #348306).
Comment 12 Ralph Sennhauser (RETIRED) gentoo-dev 2012-07-18 10:45:49 UTC
We have already a bug about the sandbox violation. As this is the last remaining issue on this bug I close this one in favor of the more specific bug 405245. Thanks for your work.