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

Bug 498190

Summary: sys-apps/systemd supports python3 natively
Product: Gentoo Linux Reporter: Arc Riley <arc>
Component: [OLD] Core systemAssignee: Gentoo systemd Team <systemd>
Status: RESOLVED FIXED    
Severity: normal CC: alex_y_xu, nikoli
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Arc Riley 2014-01-15 18:27:36 UTC
Systemd has supported Python 3 for some time, but the Gentoo ebuild hasn't been updated to reflect this.  This small patch does the trick nicely.

--- systemd-208-r2.ebuild	2014-01-15 18:22:58.676353931 +0000
+++ systemd-208-r3.ebuild	2014-01-15 14:51:32.306342634 +0000
@@ -5,7 +5,7 @@
 EAPI=5
 
 AUTOTOOLS_PRUNE_LIBTOOL_FILES=all
-PYTHON_COMPAT=( python2_7 )
+PYTHON_COMPAT=( python{2_7,3_2,3_3} )
 inherit autotools-utils bash-completion-r1 fcaps linux-info multilib \
 	multilib-minimal pam python-single-r1 systemd toolchain-funcs udev \
 	user
Comment 1 Nikoli 2014-02-15 06:56:47 UTC
Seems trivial, is something blocking it?
Comment 2 Mike Gilbert gentoo-dev 2014-02-16 18:38:24 UTC
None of the systemd maintainers have verified that python3 will work. We are not going to enable it without doing so.

This is a fairly low priority; the python-devel stuff isn't very useful to most users.
Comment 3 Mike Gilbert gentoo-dev 2014-02-16 19:24:04 UTC
I did some basic testing; mainly reading the journal using the systemd.journal module.

+  16 Feb 2014; Mike Gilbert <floppym@gentoo.org> systemd-208-r3.ebuild,
+  systemd-9999.ebuild:
+  Enabled python3 support, bug 498190.