[Bug 1035136] Re: install_initd crashed with SyntaxError in __main__: invalid syntax

2013-07-01 Thread Ma Xiaojun
** Branch linked: lp:~damage3025/ubuntu/quantal/lsb/fix-1035136

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1035136

Title:
  install_initd crashed with SyntaxError in __main__: invalid syntax

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lsb/+bug/1035136/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1035136] Re: install_initd crashed with SyntaxError in __main__: invalid syntax

2013-07-01 Thread Ma Xiaojun
** Branch linked: lp:~damage3025/ubuntu/raring/lsb/fix-1035136

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1035136

Title:
  install_initd crashed with SyntaxError in __main__: invalid syntax

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lsb/+bug/1035136/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1035136] Re: install_initd crashed with SyntaxError in __main__: invalid syntax

2013-07-01 Thread Dmitrijs Ledkovs
** Changed in: lsb (Ubuntu)
   Status: Fix Released => Fix Committed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1035136

Title:
  install_initd crashed with SyntaxError in __main__: invalid syntax

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lsb/+bug/1035136/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1035136] Re: install_initd crashed with SyntaxError in __main__: invalid syntax

2013-07-01 Thread Colin Watson
Hardly irrelevant.  Those scripts also have 2to3 run over them, so
that's OK.

There is a remaining incompatibility in initdutils.py, for which I've
just uploaded a fix.  After that, /usr/lib/lsb/install_initd seems to
work fine in a saucy chroot.

lsb (4.1+Debian11ubuntu3) saucy; urgency=low

  * Use open() rather than file() in initdutils.py, for Python 3
compatibility (see LP #1035136).
  * Test fileob and strob against None in RFC822Parser.__init__ rather than
testing their truth value, to avoid a misleading error in the case of a
file with no LSB headers.

 -- Colin Watson   Mon, 01 Jul 2013 12:36:13 +0100

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1035136

Title:
  install_initd crashed with SyntaxError in __main__: invalid syntax

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lsb/+bug/1035136/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1035136] Re: install_initd crashed with SyntaxError in __main__: invalid syntax

2013-07-01 Thread Ma Xiaojun
No, Colin. Debian's fix is irrelevant here.

If it is about this diff:
http://anonscm.debian.org/gitweb/?p=collab-maint/lsb.git;a=commitdiff;h=f4ed7f08600d633c3daba9f494997f1c3aed;hp=b459407133b43ce0bcb2231eff1408fe9f0b41b7

What it does is that it makes initdutils.py , still a Python 2 script,
compatible with Python 3 (hopefully).

But in, Ubuntu saucy, Python 2 script install_initd, lsbinstall and
remove_initd had their shebang (#!) changed to "/usr/bin/python3" by
something in debian/rules, so it is still broken.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1035136

Title:
  install_initd crashed with SyntaxError in __main__: invalid syntax

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lsb/+bug/1035136/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1035136] Re: install_initd crashed with SyntaxError in __main__: invalid syntax

2013-07-01 Thread Colin Watson
I guess this is what was fixed in saucy:

lsb (4.1+Debian10) unstable; urgency=low

  [ Steve Langasek ]
  * Fix the remaining problems of initdutils.py python3 compatibility
(Closes: #673586)
  * Revert unnecessary use of /bin/echo -n (Closes: #708337)

  [ Didier Raboud ]
  * Compress source with xz

 -- Didier Raboud   Wed, 15 May 2013 11:06:44 +0200

So we'd just need backports of the appropriate changes to initdutils.py.

** Also affects: lsb (Ubuntu Quantal)
   Importance: Undecided
   Status: New

** Also affects: lsb (Ubuntu Raring)
   Importance: Undecided
   Status: New

** Changed in: lsb (Ubuntu Quantal)
   Status: New => Triaged

** Changed in: lsb (Ubuntu Raring)
   Status: New => Triaged

** Changed in: lsb (Ubuntu Quantal)
   Importance: Undecided => Medium

** Changed in: lsb (Ubuntu Raring)
   Importance: Undecided => Medium

** Changed in: lsb (Ubuntu)
   Status: Confirmed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1035136

Title:
  install_initd crashed with SyntaxError in __main__: invalid syntax

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lsb/+bug/1035136/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1035136] Re: install_initd crashed with SyntaxError in __main__: invalid syntax

2013-06-30 Thread Ma Xiaojun
Actually all the files under /usr/lib/lsb are in Python2...
"#! /usr/bin/python3" is just wrong.

@mitya57
The synatx difference is far beyond the difference of "except" I guess. You may 
run 2to3 to see the changeset required.

BTW, "assert True" non-sense at the beginning of initdutils.py will be
rejected by Python 3.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1035136

Title:
  install_initd crashed with SyntaxError in __main__: invalid syntax

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lsb/+bug/1035136/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1035136] Re: install_initd crashed with SyntaxError in __main__: invalid syntax

2013-06-30 Thread Dmitry Shachnev
Can we make that file use `except .. as ..` syntax? (That would be
compatible with both Python 2 & 3)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1035136

Title:
  install_initd crashed with SyntaxError in __main__: invalid syntax

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lsb/+bug/1035136/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1035136] Re: install_initd crashed with SyntaxError in __main__: invalid syntax

2013-06-30 Thread Ma Xiaojun
The problem is, well, /usr/lib/lsb/initdutils.py is a Python 2 script.

** Tags added: raring

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1035136

Title:
  install_initd crashed with SyntaxError in __main__: invalid syntax

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lsb/+bug/1035136/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1035136] Re: install_initd crashed with SyntaxError in __main__: invalid syntax

2012-10-09 Thread Chris Davis
same issue affecting eset nod32 installation

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1035136

Title:
  install_initd crashed with SyntaxError in __main__: invalid syntax

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lsb/+bug/1035136/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1035136] Re: install_initd crashed with SyntaxError in __main__: invalid syntax

2012-09-20 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: lsb (Ubuntu)
   Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1035136

Title:
  install_initd crashed with SyntaxError in __main__: invalid syntax

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lsb/+bug/1035136/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1035136] Re: install_initd crashed with SyntaxError in __main__: invalid syntax

2012-08-10 Thread Brian Murray
As logmein-hamachi isn't provided by an Ubuntu package I don't believe
we can do anything about this as it looks like install_initd is crashing
trying to parse the /etc/init.d/logmein-hamachi file.

** Visibility changed to: Public

** Changed in: lsb (Ubuntu)
   Importance: Medium => Low

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1035136

Title:
  install_initd crashed with SyntaxError in __main__: invalid syntax

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lsb/+bug/1035136/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs