Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 529252

Summary: =sys-libs/libsemanage-2.4_rc5 /usr/libexec/selinux/semanage_migrate_store SyntaxError in line 28
Product: Gentoo Linux Reporter: Alpha Bravo <aos>
Component: SELinuxAssignee: Jason Zaman <perfinion>
Status: RESOLVED FIXED    
Severity: normal CC: selinux
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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