[Bug 1083830] New: Scons isn't ready for python3 yet
http://bugzilla.opensuse.org/show_bug.cgi?id=1083830 Bug ID: 1083830 Summary: Scons isn't ready for python3 yet Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: openSUSE Factory Status: NEW Severity: Normal Priority: P5 - None Component: Development Assignee: bnc-team-screening@forge.provo.novell.com Reporter: davejplater@gmail.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- I've been working with the ffado developer to try to fix the scons with python3 issues and already in ffado-2.4.0 there are three scons functions that fail with python3. With the upcoming 2.4.1 release ffado no longer builds due to more failed python3 scons functions. Fedora has already reverted to python2. I've attempted to build scons git which contains many python 3 fixes but failed. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1083830
http://bugzilla.opensuse.org/show_bug.cgi?id=1083830#c1
Andreas Stieger
http://bugzilla.opensuse.org/show_bug.cgi?id=1083830
http://bugzilla.opensuse.org/show_bug.cgi?id=1083830#c2
--- Comment #2 from Dave Plater
http://bugzilla.opensuse.org/show_bug.cgi?id=1083830
http://bugzilla.opensuse.org/show_bug.cgi?id=1083830#c3
Andreas Stieger
http://bugzilla.opensuse.org/show_bug.cgi?id=1083830
http://bugzilla.opensuse.org/show_bug.cgi?id=1083830#c4
--- Comment #4 from Andreas Stieger
http://bugzilla.opensuse.org/show_bug.cgi?id=1083830
http://bugzilla.opensuse.org/show_bug.cgi?id=1083830#c5
Andreas Stieger
http://bugzilla.opensuse.org/show_bug.cgi?id=1083830
http://bugzilla.opensuse.org/show_bug.cgi?id=1083830#c6
--- Comment #6 from Dave Plater
Also you omitted the fact that you had libffado-SConstruct-py3.patch in your package.
Can you please avoid making the bug about the proposed solution: Let's talk about the underlying problems: scons provides the full python power in build scripts, so not every conceivable build script will work on Python 3. In this case this affects ffado.
We seem to not have Python 2 available in Tumbleweed anymore, so this is not a matter of switching back.
Feedback from scons developers is that this is a problem with the build scripts consuming cli output, which is python 3 is no longer a string but bytes / utf-8, needing a conversion.
This is the only remaining part of the original Fedora patch: "return True # FIXME: The following TryRun fails on Python3" TryRun() is an integral part of scons, it uses TryBuild() which fails on python3 along with CheckLibWithHeader(), this is an scons bug, if you look at the patch libffado-SConstruct-py3.patch you will see that it works around these problems. These functions are used as described in the scons documentation therefore IMHO it is a bug. If there is a link that I can pass on to the ffado developer on how to overcome these problems, that will help. He is aware of decode() functions. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1083830
http://bugzilla.opensuse.org/show_bug.cgi?id=1083830#c7
Andreas Stieger
TryRun() is an integral part of scons, it uses TryBuild() which fails on python3 along with CheckLibWithHeader(), this is an scons bug, if you look at the patch libffado-SConstruct-py3.patch you will see that it works around these problems. These functions are used as described in the scons documentation therefore IMHO it is a bug.
Yes but why is this not in your original bug? I encountered similar problems and fixed them both with scons 3.0.1 and in the SConstruct of serf which used python 2 specific code. So the with ffado+scons+python 3 is confirmable. Happy to patch in anything in scons git that you think helps here. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1083830
http://bugzilla.opensuse.org/show_bug.cgi?id=1083830#c8
--- Comment #8 from Dave Plater
http://bugzilla.opensuse.org/show_bug.cgi?id=1083830
http://bugzilla.opensuse.org/show_bug.cgi?id=1083830#c9
Dave Plater
http://bugzilla.opensuse.org/show_bug.cgi?id=1083830
http://bugzilla.opensuse.org/show_bug.cgi?id=1083830#c10
Dave Plater
http://bugzilla.opensuse.org/show_bug.cgi?id=1083830
http://bugzilla.opensuse.org/show_bug.cgi?id=1083830#c11
Andreas Stieger
http://bugzilla.opensuse.org/show_bug.cgi?id=1083830
http://bugzilla.opensuse.org/show_bug.cgi?id=1083830#c14
--- Comment #14 from Andreas Stieger
From https://build.opensuse.org/request/show/587460 "Seems to break gpsd" "gpsd build fail... does not even detect socket.h"
-- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com