Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 02 Nov 2015 22:02:29 +0000
From:      bugzilla-noreply@freebsd.org
To:        python@FreeBSD.org
Subject:   maintainer-feedback requested: [Bug 204231] [patch] lang/jython: Fix numerous bugs and update to 2.7.0
Message-ID:  <bug-204231-21822-AF2r5D49qE@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-204231-21822@https.bugs.freebsd.org/bugzilla/>
References:  <bug-204231-21822@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
Sergey Kozlov <kozlov.sergey.404@gmail.com> has reassigned Bugzilla Automation
<bugzilla@FreeBSD.org>'s request for maintainer-feedback to python@FreeBSD.org:
Bug 204231: [patch] lang/jython: Fix numerous bugs and update to 2.7.0
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204231



--- Description ---
Created attachment 162715
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=162715&action=edit
Patch to 2.7.0

* Update to 2.7.0
* Update distinfo
* Change MASTER_SITES to use https and modern mirror as suggested by [1]
* Jython uses two licenses, indicate that in the port. Extract the licenses
from the jar earlier so ports framework can find them
* The port complains when trying to build with openjdk6, so set JAVE_VERSION to
1.7+
* Mark NO_ARCH
* Null the PATH for installer invocation. If installer finds python2.7 in PATH
it installs python wrapper script instead of bash one. [2]
* Exclude "ensurepip" module from the installation as it doesn't build on
FreeBSD
* Change kinda dirty and not obvious replacement of "-cl"(asspath) to addition
to JAVA_OPTS. This hack is needed to place jython cachedir into user's home
directory, as it needs to be writable by the user invoking jython
* Write comments to not obvious parts of the installation
* Wrapper script is now placed in bin/ directory in JYTHON_PREFIX rather then
in root, fix that
* Jython uses *$py.class files as an analog for *.pyc ones in plain Python,
installer puts pre-compiled *$py.class files into the STAGEDIR. We need to
recompile that because, after installation: 1) If we invoke Jython as user - it
can't use the *$py.class files as they have different source path inside,
slowing down the startup; 2) If we invoke jython as root - it will recompile
the *$py.class files breaking the de-installation process of the package.
Compilation phase always have non-portrelated errors, so we need to ignore it's
exit code
* Don't ignore the exit code of symlink installation as we don't expect that to
fail

[1] https://central.maven.org/
[2]
https://hg.python.org/jython/file/tip/installer/src/java/org/python/util/instal
l/StartScriptGenerator.java#l22



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-204231-21822-AF2r5D49qE>