Your message dated Tue, 15 Sep 2015 10:00:35 +0000
with message-id <[email protected]>
and subject line Bug#790557: fixed in zeroc-ice 3.5.1-6.1
has caused the Debian Bug report #790557,
regarding ice35-translators: slice2py generates code not usable by python 3.x
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 [email protected]
immediately.)
--
790557: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=790557
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: ice35-translators
Version: 3.5.1-6+b3
Severity: important
Tags: upstream patch
When there are nested modules in the slice files, slice2py generate python code
not compatible with python 3.x because it uses implicit relative import.
The bug was reported on upstream forums and upstream provided a patch which we
applied and tested successfully on the Debian version.
The forum thread is here : https://zeroc.com/forums/bug-reports/6186-slice2py-
generates-code-not-usable-python-3-3-a.html
-- System Information:
Debian Release: 8.1
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.16.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages ice35-translators depends on:
ii libc6 2.19-18
ii libgcc1 1:4.9.2-10
ii libiceutil35 3.5.1-6+b3
ii libslice35 3.5.1-6+b3
ii libstdc++6 4.9.2-10
ice35-translators recommends no packages.
ice35-translators suggests no packages.
-- no debconf information
diff --git a/cpp/src/slice2py/Main.cpp b/cpp/src/slice2py/Main.cpp
index 0bb4efe..cd37d02 100644
--- a/cpp/src/slice2py/Main.cpp
+++ b/cpp/src/slice2py/Main.cpp
@@ -306,9 +306,40 @@ PackageVisitor::readInit(const string& dir, StringList& modules, StringList& sub
}
else
{
+ //
+ // This case occurs in old (Ice <= 3.5.1) code that used implicit
+ // relative imports, such as:
+ //
+ // File: outer/__init__.py
+ //
+ // import inner
+ //
+ // These aren't supported in Python 3. We'll translate these into
+ // explicit relative imports:
+ //
+ // from . import inner
+ //
submodules.push_back(name);
}
}
+ else if(s.find("from . import") == 0)
+ {
+ if(state != InSubmodules)
+ {
+ ostringstream os;
+ os << "invalid line `" << s << "' in `" << initPath << "'";
+ throw os.str();
+ }
+
+ if(s.size() < 15)
+ {
+ ostringstream os;
+ os << "invalid line `" << s << "' in `" << initPath << "'";
+ throw os.str();
+ }
+
+ submodules.push_back(s.substr(14));
+ }
}
if(state != InSubmodules)
@@ -351,7 +382,7 @@ PackageVisitor::writeInit(const string& dir, const string& name, const StringLis
os << _submoduleTag << endl;
for(StringList::const_iterator p = submodules.begin(); p != submodules.end(); ++p)
{
- os << "import " << *p << endl;
+ os << "from . import " << *p << endl;
}
}
--- End Message ---
--- Begin Message ---
Source: zeroc-ice
Source-Version: 3.5.1-6.1
We believe that the bug you reported is fixed in the latest version of
zeroc-ice, 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 [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Matthias Klose <[email protected]> (supplier of updated zeroc-ice 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 [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Sat, 12 Sep 2015 20:21:11 +0200
Source: zeroc-ice
Binary: zeroc-ice35 ice35-translators ice35-services libicestorm35v5
libicegrid35v5 libicebox35v5 icebox libicepatch2-35v5 libglacier2-35v5
libfreeze35v5 libicedb35v5 ice35-slice libzeroc-ice35v5 libicessl35v5
libiceutil35v5 libicexml35v5 libslice35v5 libzeroc-ice35-dev libzeroc-ice35-dbg
python-zeroc-ice python3-zeroc-ice php-zeroc-ice libzeroc-ice3.5-cil
ruby-zeroc-ice libzeroc-ice3.5-java icegrid-gui
Architecture: source amd64 all
Version: 3.5.1-6.1
Distribution: unstable
Urgency: medium
Maintainer: Francisco Moya <[email protected]>
Changed-By: Matthias Klose <[email protected]>
Description:
ice35-services - Services bundled into ZeroC Ice
ice35-slice - Slice definitions for Ice services
ice35-translators - Slice translators to several languages
icebox - Plugin-based meta-application for ZeroC Ice
icegrid-gui - GUI for IceGrid service
libfreeze35v5 - Libraries implementing a persistence framework for ZeroC Ice
libglacier2-35v5 - Libraries implementing a firewall service for ZeroC Ice
libicebox35v5 - Libraries implementing a plugin framework for ZeroC Ice
libicedb35v5 - Libraries for persistent backends for ZeroC Ice
libicegrid35v5 - Libraries implementing grid-like services for ZeroC Ice
libicepatch2-35v5 - Libraries implementing a distribution service for ZeroC Ice
libicessl35v5 - Ice for C++ SSL plug-in
libicestorm35v5 - Libraries implementing an event service for ZeroC Ice
libiceutil35v5 - Ice for C++ misc utility library
libicexml35v5 - ZeroC Ice for C++ XML parser library
libslice35v5 - Ice for C++ Slice parser library
libzeroc-ice3.5-cil - Ice for C# libraries
libzeroc-ice3.5-java - Ice for Java libraries
libzeroc-ice35-dbg - Ice for C++ debugging symbols
libzeroc-ice35-dev - Ice for C++ development libraries
libzeroc-ice35v5 - Ice for C++ runtime library
php-zeroc-ice - Ice for PHP extension
python-zeroc-ice - Ice for Python libraries (Python 2)
python3-zeroc-ice - Ice for Python libraries (Python 3)
ruby-zeroc-ice - Ice for Ruby modules
zeroc-ice35 - Internet Communications Engine
Closes: 745100 763717 769139 790557 790570 791319
Changes:
zeroc-ice (3.5.1-6.1) unstable; urgency=medium
.
* Non-maintainer upload.
.
[ Matthias Klose ]
* Build using GCC 5.
* Rename runtime libraries, follow-up for the libstdc++6 library transition.
Closes: #791319.
.
[ Emmanuel Bourg ]
* Fix build with OpenJDK 8. Closes: #745100.
.
[ Hector Oron ]
* Enable parallel builds. Closes: #769139.
* Fix "DEB_HOST_ vs DEB_BUILD_ variable usage mixup". Closes: #763717.
.
[ Jean-Baptiste Rouault ]
* Include generated .rb files in the ruby-zeroc-ice package.
Closes: #790570.
* Fix slice2py code generation with Python3. Closes: #790557.
Checksums-Sha1:
5beaaa079beb9a288de69e0995eddc7904a93bc4 3819 zeroc-ice_3.5.1-6.1.dsc
27dc05fe730cbcf006ef571bdbd90f2d231d131e 48676
zeroc-ice_3.5.1-6.1.debian.tar.xz
4d898e6e1598e8cfff7b187345912be11d809170 1963906
ice35-services_3.5.1-6.1_amd64.deb
5bcb25b2433cd16f07071f60f0ced696b90e4409 167280 ice35-slice_3.5.1-6.1_all.deb
03b3aa0ced5d8a65a6b9b923c63f6ff6ea5917c3 651912
ice35-translators_3.5.1-6.1_amd64.deb
15e036602ee9885eb498715451f80aa0b5d67622 90706 icebox_3.5.1-6.1_amd64.deb
8e4ad1a8a8a219b19939559b95a7ec9aa6952525 853816 icegrid-gui_3.5.1-6.1_all.deb
5e66630b610dacb0d6a9f42a9a951eb78e0c7d10 217462
libfreeze35v5_3.5.1-6.1_amd64.deb
30c80a457693aed5b40bf47da5b1795e52433400 168622
libglacier2-35v5_3.5.1-6.1_amd64.deb
ef1eafd68f166a17ca219e9cc7ae89d6778f32aa 77504
libicebox35v5_3.5.1-6.1_amd64.deb
eaaa63ed7c104f3fef40c1c30ca0eb565f96c887 46320 libicedb35v5_3.5.1-6.1_amd64.deb
937fb573c2d0bd84268da1860cf0b9cfe10c149f 482390
libicegrid35v5_3.5.1-6.1_amd64.deb
d8e265cdc13b9562dc8fc129620bd9809aa761c6 126054
libicepatch2-35v5_3.5.1-6.1_amd64.deb
7331902433212446276161b6ebc9f2147b90c0e6 133734
libicessl35v5_3.5.1-6.1_amd64.deb
22acc63a1624dc6aff97a57b29491a2f2c074883 410060
libicestorm35v5_3.5.1-6.1_amd64.deb
a5523f228f67a051a26f7900e6ad7c244df5a04d 114712
libiceutil35v5_3.5.1-6.1_amd64.deb
7bedafca37bd444e88f42d704cb036692328a989 55952
libicexml35v5_3.5.1-6.1_amd64.deb
d1e0c4ab23771253d085b14b929eb9e1a7152c35 401298
libslice35v5_3.5.1-6.1_amd64.deb
b25c07e445aaf717d13a33c139361ec66f0fc36f 388940
libzeroc-ice3.5-cil_3.5.1-6.1_all.deb
214696764efd309c8ce57262ec5aa95e76e6c54c 3279066
libzeroc-ice3.5-java_3.5.1-6.1_all.deb
84e86cce890944cbd9c4c8c6eddb46704a7e4ffe 74294848
libzeroc-ice35-dbg_3.5.1-6.1_amd64.deb
d3513c7680a2464091158b9826137737a756c9e9 220552
libzeroc-ice35-dev_3.5.1-6.1_amd64.deb
2cb4d153891a2e6854955a49bf01d23111058d17 852088
libzeroc-ice35v5_3.5.1-6.1_amd64.deb
66efb2b8a7775bad1e9b488c11b660911ea060ae 194760
php-zeroc-ice_3.5.1-6.1_amd64.deb
162b67f66ef417ce14dd57377f13ed0fc868e0dd 324234
python-zeroc-ice_3.5.1-6.1_amd64.deb
d8df69598389f5fb073b159cb2fce6ba2606bc60 324342
python3-zeroc-ice_3.5.1-6.1_amd64.deb
99ce8db4b8f0c4a8e2f55a2011c9232ffbcfa3f8 215670
ruby-zeroc-ice_3.5.1-6.1_amd64.deb
c176e4f1623c718a75e34073b6be7b12faafd930 43650 zeroc-ice35_3.5.1-6.1_all.deb
Checksums-Sha256:
ebb9ef1e2c99b8761481a565ac9ff038c57850a5d11a80119631e336dc96c2db 3819
zeroc-ice_3.5.1-6.1.dsc
d6489f2cae06c5d6f16e1d7c2b34175e636b1eb046d462c0ab0b0ffbcb7f91da 48676
zeroc-ice_3.5.1-6.1.debian.tar.xz
38bbeaa1a08b5fb43223af94f9d8590e7a03655e75ffc20431ba938562288f68 1963906
ice35-services_3.5.1-6.1_amd64.deb
12f30241e571de062315326c64344eda381438018648d8493aa5b23b0fe905ae 167280
ice35-slice_3.5.1-6.1_all.deb
cc71a8961f7eb6ac5e1e425d383e87a4e6bce6b21600a23caf6482f2cc5f6bdd 651912
ice35-translators_3.5.1-6.1_amd64.deb
0567456a3eb7092c48ed184fa84e6ffe26417e5f62e69e3b2b2b4ff2078d9424 90706
icebox_3.5.1-6.1_amd64.deb
cce43114dcdac350bd4112c3c4a16ea44da094da700903fc7a22e46fc3215dab 853816
icegrid-gui_3.5.1-6.1_all.deb
63bbe692145c04b447f9a073b27eb6bf2af2ab4b58c866221ce712a97b1cc7ea 217462
libfreeze35v5_3.5.1-6.1_amd64.deb
772f8b487d45865f9721ef11973e7de76c3e4205000f88016aca90ea5f34cf53 168622
libglacier2-35v5_3.5.1-6.1_amd64.deb
993c55fd2043b5a7875347d8418eb6e065e15485289dc2cf29ad2ff9c1039173 77504
libicebox35v5_3.5.1-6.1_amd64.deb
15d26e9070e8d2f15b0932ac02c18399bcfa37e6ea1b67b0a6215a3f4cb0a9f9 46320
libicedb35v5_3.5.1-6.1_amd64.deb
2616afb661a049c515b2b776157460848521da165d0a7460e3614323c508425e 482390
libicegrid35v5_3.5.1-6.1_amd64.deb
6be70ef610813ceeebc678735b303c938895724644bce1b3d02e6e2a2095dcfa 126054
libicepatch2-35v5_3.5.1-6.1_amd64.deb
9fa394e8c9eea894b289f8bf136292e1b6c9130f77ebf032d2e2ae8472b612ee 133734
libicessl35v5_3.5.1-6.1_amd64.deb
553e094e57435579ab42633abe1b26bad465aff3b8dd439d20c81616401eac61 410060
libicestorm35v5_3.5.1-6.1_amd64.deb
e40e278431da7a3c5b76e68a6547596123037a9ee9127615888706fa368171ab 114712
libiceutil35v5_3.5.1-6.1_amd64.deb
815d326fa4d6925732565a2a6eb9eedfd00ec7269c27087646a9bb38073c1c8f 55952
libicexml35v5_3.5.1-6.1_amd64.deb
2fc882b6352ad593950797da949cd5b77a67c2f8d1a6e56b1648d30c9960c8be 401298
libslice35v5_3.5.1-6.1_amd64.deb
f548e580d54d02f2e03462e27503945e66266573fa8b02823fea4deeb040b3c0 388940
libzeroc-ice3.5-cil_3.5.1-6.1_all.deb
8baaf1f1a32a18c9408863b8ec858f3f545a392b018ceb749bba3c97c150e864 3279066
libzeroc-ice3.5-java_3.5.1-6.1_all.deb
68e9275205b5428d928aa09cfcab93bf3d476d82b24fb1aa05b2f5eb9e0da7b9 74294848
libzeroc-ice35-dbg_3.5.1-6.1_amd64.deb
9ef2878da7059053364e32fb50aaa299c08ab7128fd46f1cc25b3334a514edf5 220552
libzeroc-ice35-dev_3.5.1-6.1_amd64.deb
1c5e69c4548285984b9655b3cf1eaf9f9e752b4b5a4768abd6fe5d18e7749f88 852088
libzeroc-ice35v5_3.5.1-6.1_amd64.deb
d73608145e9bb082ac0bee156b5ff4089963fe42ae45c343af4c58e36f618966 194760
php-zeroc-ice_3.5.1-6.1_amd64.deb
4902003f9ca671a7347f7f14df1158554cf15c03960cde6cb003df5df38d1805 324234
python-zeroc-ice_3.5.1-6.1_amd64.deb
c33b265833ae2c3e30b69846e00902203226f3751726e52a1ff3604cefc54e6e 324342
python3-zeroc-ice_3.5.1-6.1_amd64.deb
37b1a4e597c6c98ae6e15e698ff3a86a687dbcbf1e3b1a3f70aa6b0ce9d062ce 215670
ruby-zeroc-ice_3.5.1-6.1_amd64.deb
560d034e5ca1e3c17c2ec826fda3107b25aa6815c62cfbab590d1abce6033a78 43650
zeroc-ice35_3.5.1-6.1_all.deb
Files:
db96b99fa90425235293987e97a0d469 3819 devel optional zeroc-ice_3.5.1-6.1.dsc
c13004a2742c6e7c23b804cf6d14a6c8 48676 devel optional
zeroc-ice_3.5.1-6.1.debian.tar.xz
4f134f4ff67f4f693e8af3080eb50a47 1963906 devel optional
ice35-services_3.5.1-6.1_amd64.deb
3072365cb1670fd301198563cf44b6d9 167280 devel optional
ice35-slice_3.5.1-6.1_all.deb
b2115918616bb9254641a6f530d148df 651912 devel optional
ice35-translators_3.5.1-6.1_amd64.deb
60db23a53899512dbf0b4b60e4172026 90706 devel optional
icebox_3.5.1-6.1_amd64.deb
90c45f2d791f1bef88c5130a7d519c2f 853816 devel optional
icegrid-gui_3.5.1-6.1_all.deb
b9b5247d063f6fa3c193cbfc9b93b346 217462 libs optional
libfreeze35v5_3.5.1-6.1_amd64.deb
a6dc7776354293c9b07e5ac6d25a12d4 168622 libs optional
libglacier2-35v5_3.5.1-6.1_amd64.deb
82d5e5f83443c4f2bc781d7ab73d833b 77504 libs optional
libicebox35v5_3.5.1-6.1_amd64.deb
ef6a042771e14e4b67f382019fdbe44f 46320 libs optional
libicedb35v5_3.5.1-6.1_amd64.deb
4b7099631b0038cced0ece631add26ca 482390 libs optional
libicegrid35v5_3.5.1-6.1_amd64.deb
30a5fd7052a16298fce31fa61af3cb77 126054 libs optional
libicepatch2-35v5_3.5.1-6.1_amd64.deb
ea7442f8024eead9c8d332b8f7a0e075 133734 libs optional
libicessl35v5_3.5.1-6.1_amd64.deb
b8dcb11459e3c1b9c84e8292df7365c6 410060 libs optional
libicestorm35v5_3.5.1-6.1_amd64.deb
fa4b19d144cb57fec01ce6a42fc2adb7 114712 libs optional
libiceutil35v5_3.5.1-6.1_amd64.deb
fcd1f115771e930f3d69cb2bed13816a 55952 libs optional
libicexml35v5_3.5.1-6.1_amd64.deb
4d07c395d0f171f30db51c58474436c3 401298 libs optional
libslice35v5_3.5.1-6.1_amd64.deb
b74b64fc0aa83db9a09b1761194d0a9e 388940 cli-mono optional
libzeroc-ice3.5-cil_3.5.1-6.1_all.deb
1ce6a06327fdfa8915ff0112306a27d4 3279066 java optional
libzeroc-ice3.5-java_3.5.1-6.1_all.deb
7d00af45484a25704ae5e730637880da 74294848 debug extra
libzeroc-ice35-dbg_3.5.1-6.1_amd64.deb
b023d37e8c363e03c845e1381452a806 220552 libdevel optional
libzeroc-ice35-dev_3.5.1-6.1_amd64.deb
ef663ba2b84031418e26503b2e6d11c3 852088 libs optional
libzeroc-ice35v5_3.5.1-6.1_amd64.deb
635be08919c4c47d351c9c93f03ff69c 194760 php optional
php-zeroc-ice_3.5.1-6.1_amd64.deb
3705cfd015b391a945c75ead6fe3fc29 324234 python optional
python-zeroc-ice_3.5.1-6.1_amd64.deb
fd77d13f19d3a530e991ef4c53ed585e 324342 python optional
python3-zeroc-ice_3.5.1-6.1_amd64.deb
c6c1eef0edc4b2f894aabfc6c9a88cf5 215670 ruby optional
ruby-zeroc-ice_3.5.1-6.1_amd64.deb
c85ee92c69e88b68b69fb0045051f15b 43650 devel optional
zeroc-ice35_3.5.1-6.1_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQIcBAEBCAAGBQJV9qAOAAoJEL1+qmB3j6b1Q6oQAIl8McJwWA1CkxVfkXzKfc1c
x9Ur0OYQLZ/MucPkI99dxalMqOyYkSnl0dnFflRWOqGUvrNE6EuTORBmGEk6Cs+C
7GPAZ/6qqEv+xw1JKIAlfkuWtQNKPdaalWn2wP8C7DETbzdh8cB8FPh75eYwpe3E
1uXv2FRLckR2HrIVcUe/9sqs+pmwLf7BSkRnzBPEGHh/LWN2Q2MJEMjecCAFVyFH
oumq+XXvF++ryQ91pDVf18o6Ew/zu4hKJeb4dTwi1KIiA/Ka1F/8vze5xvxNP2HC
r0CiAGjBAPj6HaPA6/8x/Gzk+dEYcX/mlYNzuVwZokOTb3y7DPgDuVen4rdPmOlj
UhEUiQcli62/wAuEfV3psn7qGSx2kuVmDdCh96N9YEgiT60xf+bQeahZYoOMCoEu
MUQWqZxIwHOdzK7aROiKBcIn1Tb1mZJIIXK5wxIti0bb0xvv6TVwcBQxOfrpC8uk
LrQrRDFtCROoRKoNFh3R2qFb4r8My4nOF+CCDnKOgQ5OHSLQS0nUWgDpRY96NhyZ
yG6qMNXSVNVsqDLKV+h0+RdWpNlQ9ffuvW1f8RiXD4t47h/mmgeyL6BiV8feEHJw
Rtt5KnKJy0CxfIA1SOs/0cKAyKm/r2XsccO4lVRv+7Tbhk7lPDE25GRH2yyuB4Sf
BHYzyp10oYLYGrjVBRfy
=DcqB
-----END PGP SIGNATURE-----
--- End Message ---