[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#705146: marked as done (jython: hard-coded jythonHome does not work with virtualenv)



Your message dated Thu, 21 Nov 2013 16:18:38 +0000
with message-id <E1VjWxi-0007p3-PB@franck.debian.org>
and subject line Bug#705146: fixed in jython 2.5.3-1
has caused the Debian Bug report #705146,
regarding jython: hard-coded jythonHome does not work with virtualenv
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
705146: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=705146
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: jython
Version: 2.5.2-1
Severity: normal
Tags: patch

The perl script used to start the Jython interpreter does not work with
virtualenv:

python2.7 virtualenv-1.9.1/virtualenv.py --python=jython .venv/jy25
Running virtualenv with interpreter /usr/bin/jython
Cannot find file /usr/share/jython/Include (bad symlink)
Cannot find file /usr/share/jython/cachedir (bad symlink)
New jython executable in .venv/jy25/bin/jython
ERROR: The executable .venv/jy25/bin/jython is not functioning
ERROR: It thinks sys.prefix is u'/usr/share/jython' (should be u'<snip>/.venv/jy25')
ERROR: virtualenv is not compatible with this system or executable

One possible solution is as follows:

--- /usr/bin/jython     2012-05-08 10:50:08.000000000 +0100
+++ /tmp/jython 2013-04-10 16:37:35.000000000 +0100
@@ -6,11 +6,12 @@
 # Released under the GPL.

 use strict;
+use File::Basename;
 use Text::ParseWords;

 # Debian constants.
 #
-my $jythonHome = '/usr/share/jython';
+my $jythonHome = dirname(dirname($0));
 my $debianJNIDir = '/usr/lib/jni';
 my $defaultRuntime = '/usr/bin/java';

-- System Information:
Debian Release: 7.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages jython depends on:
ii  antlr3                                           3.2-7
ii  default-jre-headless [java5-runtime-headless]    1:1.6-47
ii  libasm3-java                                     3.3.2-1
ii  libconstantine-java                              0.7-3
ii  libguava-java                                    11.0.2-1
ii  libjffi-java                                     1.0.2-9
ii  libjline-java                                    1.0-2
ii  libjnr-netdb-java                                1.0.3-2
ii  libjnr-posix-java                                1.1.4~git1.8aa26268b-1
ii  libjnr-x86asm-java                               0.1-1
ii  liblivetribe-jsr223-java                         2.0.6-1
ii  libreadline-java                                 0.8.0.1+dfsg-2+b1
ii  openjdk-6-jre-headless [java5-runtime-headless]  6b27-1.12.4-1
ii  perl                                             5.14.2-20

Versions of packages jython recommends:
ii  default-jdk                    1:1.6-47
ii  openjdk-6-jdk [java-compiler]  6b27-1.12.4-1

Versions of packages jython suggests:
pn  jython-doc               <none>
pn  libmysql-java            <none>
pn  libpostgresql-jdbc-java  <none>
pn  libservlet2.5-java       <none>

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: jython
Source-Version: 2.5.3-1

We believe that the bug you reported is fixed in the latest version of
jython, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 705146@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Sylvestre Ledru <sylvestre@debian.org> (supplier of updated jython package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Thu, 21 Nov 2013 14:25:27 +0100
Source: jython
Binary: jython jython-doc
Architecture: source all
Version: 2.5.3-1
Distribution: unstable
Urgency: low
Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>
Changed-By: Sylvestre Ledru <sylvestre@debian.org>
Description: 
 jython     - Python seamlessly integrated with Java
 jython-doc - Jython documentation including API docs
Closes: 676831 690116 705146 705825
Changes: 
 jython (2.5.3-1) unstable; urgency=low
 .
   * New upstream release (Closes: #690116)
   * Adopt the package under the pkg-java umbrella
     (Closes: #705825)
   * Standards-Version updated to 3.9.5
   * Import in the pkg-java VCS
   * Switch to dpkg-source 3.0 (quilt) format
   * jython should work unde virtualenv (Closes: #705146)
     Thanks to Arthur Noel for the patch
   * Update of the description (Closes: #676831)
Checksums-Sha1: 
 48eece4c8bf61d82015c6be7fadab300ef754628 1563 jython_2.5.3-1.dsc
 fb2329935da29375f6c58e80c361a22fef1ce694 5731140 jython_2.5.3.orig.tar.bz2
 8f2bb601866a67ef1632c38b372751aa341a5acd 17611 jython_2.5.3-1.debian.tar.gz
 25318458e744ef548ad23e810815fece46c0628a 6908170 jython_2.5.3-1_all.deb
 3c789bf2ce00854e8d35d1541069ea852006bfb1 580666 jython-doc_2.5.3-1_all.deb
Checksums-Sha256: 
 b8aebcd02335bb6f9cced0b729f82ed1a14fe7846cd0f171df4e8f92c52d0f94 1563 jython_2.5.3-1.dsc
 f65ba40098f9312ed487219e64c4ea01fecad927411b1a72dc1d8cadf0ddc947 5731140 jython_2.5.3.orig.tar.bz2
 61907aaff21a84d1a01935ab66df12db882344770eaabe0d87e24a4684064eb0 17611 jython_2.5.3-1.debian.tar.gz
 0f5b915d72202319ea70eea2fac88d0f7d829cc6b6594359828757d1b244d186 6908170 jython_2.5.3-1_all.deb
 2170badb1ffdf4141b3d49c2e08074ff8bac948286f7c1505dc1cea272ed84ce 580666 jython-doc_2.5.3-1_all.deb
Files: 
 74971485adff684ac00f98085d7ca7b5 1563 python optional jython_2.5.3-1.dsc
 2e4210614f20aa3cbcef9031601679b7 5731140 python optional jython_2.5.3.orig.tar.bz2
 c6d292143c0dc35026349205ababd7a9 17611 python optional jython_2.5.3-1.debian.tar.gz
 0b5e88add03f414dca9f426078646b3a 6908170 python optional jython_2.5.3-1_all.deb
 1fe596e5ed0505edd0ffcd9eb04109b7 580666 doc optional jython-doc_2.5.3-1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (GNU/Linux)

iEYEARECAAYFAlKOMWoACgkQiOXXM92JlhC2bwCgzEjPsqa9MHtkxqB7zOkZifB7
skYAoO6wme/LSKc8V66kGut1ox5s+s6h
=KWZX
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: