All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] gpsd: fix Python 2.5 build failure
@ 2012-07-30  7:08 spdawson at gmail.com
  2012-07-30 17:16 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: spdawson at gmail.com @ 2012-07-30  7:08 UTC (permalink / raw)
  To: buildroot

From: Simon Dawson <spdawson@gmail.com>

The platform.linux_distribution method was introduced in Python 2.6. Some
of the Buildroot autobuilders still use Python 2.5, which is causing build
failures such as the following.

  http://autobuild.buildroot.net/results/045f1f69bac170d8e75cb4952a2e5b4e85a677b8/build-end.log

This patch removes the linux distribution check from the gpsd SConstruct file.

Signed-off-by: Simon Dawson <spdawson@gmail.com>
---
 ...sconstruct-python-2.5-compat-distro-check.patch |   27 ++++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 package/gpsd/gpsd-04-sconstruct-python-2.5-compat-distro-check.patch

diff --git a/package/gpsd/gpsd-04-sconstruct-python-2.5-compat-distro-check.patch b/package/gpsd/gpsd-04-sconstruct-python-2.5-compat-distro-check.patch
new file mode 100644
index 0000000..767a450
--- /dev/null
+++ b/package/gpsd/gpsd-04-sconstruct-python-2.5-compat-distro-check.patch
@@ -0,0 +1,27 @@
+The platform.linux_distribution method was introduced in Python 2.6. Some
+of the Buildroot autobuilders still use Python 2.5, which is causing build
+failures such as the following.
+
+  http://autobuild.buildroot.net/results/045f1f69bac170d8e75cb4952a2e5b4e85a677b8/build-end.log
+
+This patch removes the linux distribution check from the gpsd SConstruct file.
+
+Signed-off-by: Simon Dawson <spdawson@gmail.com>
+diff -Nurp a/SConstruct b/SConstruct
+--- a/SConstruct	2012-07-30 07:57:16.515688546 +0100
++++ b/SConstruct	2012-07-30 08:00:30.135679914 +0100
+@@ -80,14 +80,6 @@ systemd = os.path.exists("/usr/share/sys
+ 
+ # Set distribution-specific defaults here
+ imloads = True
+-if sys.platform.startswith('linux'):
+-    (distro, version, cutename) = platform.linux_distribution()
+-    if distro == 'Fedora':
+-        if int(version) >= 13:
+-            # See https://fedoraproject.org/wiki/Features/ChangeInImplicitDSOLinking
+-            imloads = False
+-    elif os.path.exists("/etc/arch-release"):
+-        imloads = False
+ 
+ # Does our platform has a working memory-barrier instruction?
+ # The shared-memory export won't be reliable without it.
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH] gpsd: fix Python 2.5 build failure
  2012-07-30  7:08 [Buildroot] [PATCH] gpsd: fix Python 2.5 build failure spdawson at gmail.com
@ 2012-07-30 17:16 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2012-07-30 17:16 UTC (permalink / raw)
  To: buildroot

Le Mon, 30 Jul 2012 08:08:21 +0100,
spdawson at gmail.com a ?crit :

> From: Simon Dawson <spdawson@gmail.com>
> 
> The platform.linux_distribution method was introduced in Python 2.6. Some
> of the Buildroot autobuilders still use Python 2.5, which is causing build
> failures such as the following.
> 
>   http://autobuild.buildroot.net/results/045f1f69bac170d8e75cb4952a2e5b4e85a677b8/build-end.log
> 
> This patch removes the linux distribution check from the gpsd SConstruct file.
> 
> Signed-off-by: Simon Dawson <spdawson@gmail.com>

Applied, thanks.

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-07-30 17:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-30  7:08 [Buildroot] [PATCH] gpsd: fix Python 2.5 build failure spdawson at gmail.com
2012-07-30 17:16 ` Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.