Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 529252 - =sys-libs/libsemanage-2.4_rc5 /usr/libexec/selinux/semanage_migrate_store SyntaxError in line 28
Summary: =sys-libs/libsemanage-2.4_rc5 /usr/libexec/selinux/semanage_migrate_store Syn...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: SELinux (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jason Zaman
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-14 18:03 UTC by Alpha Bravo
Modified: 2015-05-10 10:21 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alpha Bravo 2014-11-14 18:03:48 UTC
# /usr/libexec/selinux/semanage_migrate_store 
  File "/usr/libexec/selinux/semanage_migrate_store", line 28
    print "copying %s to %s" % (src, dst)
                           ^
SyntaxError: invalid syntax


Active python version is 3.3

Reproducible: Always
Comment 1 Sven Vermeulen (RETIRED) gentoo-dev 2014-11-14 21:29:17 UTC
Hmm, looks like the migration code is still pretty Python 2.7-ish in its design. I'll see how to force it to use python2.7 (not sure if the best practice is to just update the shebang to point to python2.7 or if I need to do something in the ebuild instead).
Comment 2 Jason Zaman gentoo-dev 2014-11-19 20:31:28 UTC
I sent a patch upstream to make the script work on both python 2 and 3. 

http://marc.info/?l=selinux&m=141642876015488&w=2
Comment 3 Jason Zaman gentoo-dev 2014-11-22 13:28:52 UTC
in tree, sys-libs/libsemanage-2.4_rc6-r1
Comment 4 Jason Zaman gentoo-dev 2015-05-10 10:21:39 UTC
2.4 userland is stable now