unity --version
/usr/bin/unity:249: SyntaxWarning: "\ " is an invalid escape sequence. Such
sequences will not work in the future. Did you mean "\\ "? A raw string is also
an option.
help="Run unity under debugging to help debugging an issue. /!\ Only if devs
ask for it.")
/usr/bin/unity:251: SyntaxWarning: "\ " is an invalid escape sequence. Such
sequences will not work in the future. Did you mean "\\ "? A raw string is also
an option.
help="Path to compiz. /!\ Only if devs ask for it.")
/usr/bin/unity:253: SyntaxWarning: "\ " is an invalid escape sequence. Such
sequences will not work in the future. Did you mean "\\ "? A raw string is also
an option.
help="Run unity under gdb and print a backtrace on crash. /!\ Only if devs
ask for it.")
/usr/bin/unity:259: SyntaxWarning: "\ " is an invalid escape sequence. Such
sequences will not work in the future. Did you mean "\\ "? A raw string is also
an option.
help="Run unity /!\ This is for compatibility with other desktop interfaces
and acts the same as running unity without --replace")
unity 7.7.1
I fixed with:
tools/unity.cmake: Fix Python 3.12+ SyntaxWarning in CLI help texts
Prefix option parser help strings containing '/!\' with 'r' (raw string)
to avoid invalid escape sequence warnings on newer Python versions.
--- unity-7.7.1+26.04.20260306/tools/unity.cmake 2026-03-31
22:06:08.000000000 +0000
+++ unity-7.7.2+27.04.20261113/tools/unity.cmake 2026-11-08
13:00:29.000000000 +0000
@@ -246,17 +246,17 @@
parser = OptionParser(version= "%prog @UNITY_VERSION@", usage=usage)
parser.add_option("--advanced-debug", action="store_true",
- help="Run unity under debugging to help debugging an
issue. /!\ Only if devs ask for it.")
+ help=r"Run unity under debugging to help debugging an
issue. /!\ Only if devs ask for it.")
parser.add_option("--compiz-path", action="store", dest="compiz_path",
- help="Path to compiz. /!\ Only if devs ask for it.")
+ help=r"Path to compiz. /!\ Only if devs ask for it.")
parser.add_option("--debug", action="store_true",
- help="Run unity under gdb and print a backtrace on
crash. /!\ Only if devs ask for it.")
+ help=r"Run unity under gdb and print a backtrace on
crash. /!\ Only if devs ask for it.")
parser.add_option("--distro", action="store_true",
help="Remove local build if present with default values
to return to the package value (this doesn't run unity and need root access)")
parser.add_option("--log", action="store",
help="Store log under filename.")
parser.add_option("--replace", action="store_true",
- help="Run unity /!\ This is for compatibility with other
desktop interfaces and acts the same as running unity without --replace")
+ help=r"Run unity /!\ This is for compatibility with
other desktop interfaces and acts the same as running unity without --replace")
if is_systemd_session() and not is_unity_running_in_upstart():
parser.add_option("--ignore-systemd", action="store_true",
dest="ignore_session_manager",
help="Run unity without systemd support")
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2173682
Title:
unity:FTBFS in tenacious
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unity/+bug/2173682/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs