summaryrefslogtreecommitdiffstats
path: root/package/gpsd
diff options
context:
space:
mode:
authorSimon Dawson <spdawson@gmail.com>2012-07-30 08:08:21 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2012-07-30 19:12:44 +0200
commit4233993b0669ceace5f6e4670c563577035d791f (patch)
tree91e293b4fd536a86851659abea91e08dd8d4bfb1 /package/gpsd
parent1b28718006cadcd840fa7ab29027c541f2ded1eb (diff)
downloadbuildroot-novena-4233993b0669ceace5f6e4670c563577035d791f.tar.gz
buildroot-novena-4233993b0669ceace5f6e4670c563577035d791f.zip
gpsd: fix Python 2.5 build failure
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> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/gpsd')
-rw-r--r--package/gpsd/gpsd-04-sconstruct-python-2.5-compat-distro-check.patch27
1 files changed, 27 insertions, 0 deletions
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 000000000..767a450b7
--- /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.