[Bug 1035136] Re: [SRU] Fix lsb-core for 12.10 and 13.04
Petteri S
petteri.stenius at ubisecure.com
Tue Aug 20 20:08:42 UTC 2013
Hello
I don't think this issue was completely fixed. I see this error when I
run install_initd with lsb version 4.0-0ubuntu27.2
Traceback (most recent call last):
File "/usr/lib/lsb/install_initd", line 102, in <module>
initdutils.save_depends(depends)
File "/usr/lib/lsb/initdutils.py", line 138, in save_depends
fh = file(DEPENDS, 'w')
NameError: global name 'file' is not defined
There still exists some references to 'file' in initdutils.py
$ grep -n file\( initdutils.py
54:def scan_initfile(initfile):
99: fh = file(FACILITIES, 'w')
125: independs = RFC822Parser(fileob=file(DEPENDS))
138: fh = file(DEPENDS, 'w')
171: print(scan_initfile('init-fragment'))
Thanks.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to lsb in Ubuntu.
https://bugs.launchpad.net/bugs/1035136
Title:
[SRU] Fix lsb-core for 12.10 and 13.04
Status in “lsb” package in Ubuntu:
Fix Released
Status in “lsb” source package in Quantal:
Fix Committed
Status in “lsb” source package in Raring:
Fix Committed
Bug description:
[Impact]
This bug makes certian LSB applications unusable.
As Ubuntu 12.10 and 13.04 will still be around for a while, this bug
is worth fixing.
The fixes are in the related branch, the purpose of the fixes are
simple, make the affected scripts compatible with Python 3 as they are
expected to.
[Test Case]
$ /usr/lib/lsb/install_initd
Usage: /usr/lib/lsb/install_initd /etc/init.d/<init-script>
Better to test with actual LSB applications that uses scripts under
/usr/lib/lsb/
[Regression Potential]
Almost zero, as the origin scripts in lsb-core just crashes.
[Other Info]
This problem is mostly due to incompatibilty of Python 2/3 and Ubuntu's clumsy way of port LSB scripts to Python 3 (calling 2to3 in debian/rules)
Origin bug report:
"""
Received a crash after installing an app
ProblemType: Crash
DistroRelease: Ubuntu 12.10
Package: lsb-core 4.0-0ubuntu22
ProcVersionSignature: Ubuntu 3.5.0-8.8-generic 3.5.0
Uname: Linux 3.5.0-8-generic x86_64
NonfreeKernelModules: wl
ApportVersion: 2.4-0ubuntu6
Architecture: amd64
Date: Thu Aug 9 19:26:12 2012
ExecutablePath: /usr/lib/lsb/install_initd
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
InterpreterPath: /usr/bin/python3.2mu
ProcCmdline: /usr/bin/python3 /usr/lib/lsb/install_initd /etc/init.d/logmein-hamachi
ProcEnviron:
PATH=(custom, no user)
LANG=en_US.UTF-8
PythonArgs: ['/usr/lib/lsb/install_initd', '/etc/init.d/logmein-hamachi']
SourcePackage: lsb
Title: install_initd crashed with SyntaxError in __main__: invalid syntax
UpgradeStatus: Upgraded to quantal on 2012-06-26 (44 days ago)
UserGroups:
"""
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lsb/+bug/1035136/+subscriptions
More information about the foundations-bugs
mailing list