summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2012-07-28 22:04:20 +0200
committerMartin Jansa <Martin.Jansa@gmail.com>2012-07-28 22:45:47 +0200
commit7e42a01229ce1928d42b3ccf9b2365a576424729 (patch)
tree021ff3eaeb540d87e1475d003c0d81632d2adb75
parent256f95eec467bf6e24853d8b2c770d4e16622085 (diff)
downloadmeta-openembedded-7e42a01229ce1928d42b3ccf9b2365a576424729.tar.gz
gpsd: drop older version 3.4
* GNUtoo tested 3.5 and it works fine, Thanks Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
-rw-r--r--meta-oe/recipes-navigation/gpsd/gpsd-3.4/0001-SConstruct-fix-DSO-build-for-ntpshm-garmin_monitor.patch41
-rw-r--r--meta-oe/recipes-navigation/gpsd/gpsd-3.4/0001-SConstruct-prefix-includepy-with-sysroot-and-drop-sy.patch72
-rw-r--r--meta-oe/recipes-navigation/gpsd/gpsd_3.4.bb123
-rw-r--r--meta-oe/recipes-navigation/gpsd/gpsd_3.5.bb1
-rw-r--r--meta-systemd/meta-oe/recipes-navigation/gpsd/gpsd_3.4.bbappend18
5 files changed, 0 insertions, 255 deletions
diff --git a/meta-oe/recipes-navigation/gpsd/gpsd-3.4/0001-SConstruct-fix-DSO-build-for-ntpshm-garmin_monitor.patch b/meta-oe/recipes-navigation/gpsd/gpsd-3.4/0001-SConstruct-fix-DSO-build-for-ntpshm-garmin_monitor.patch
deleted file mode 100644
index 1aa4304042..0000000000
--- a/meta-oe/recipes-navigation/gpsd/gpsd-3.4/0001-SConstruct-fix-DSO-build-for-ntpshm-garmin_monitor.patch
+++ /dev/null
@@ -1,41 +0,0 @@
1From e1f780fc2355c22c2c3f0a70c1a1ef2669779c53 Mon Sep 17 00:00:00 2001
2From: Martin Jansa <Martin.Jansa@gmail.com>
3Date: Tue, 24 Apr 2012 13:42:38 +0200
4Subject: [PATCH] SConstruct: fix DSO build for ntpshm, garmin_monitor
5
6| x86_64-oe-linux-gcc -m64
7--sysroot=/OE/shr-core/tmp-eglibc/sysroots/qemux86-64 -o gpsmon
8--sysroot=/OE/shr-core/tmp-eglibc/sysroots/qemux86-64
9-Wl,-rpath=/OE/shr-core/tmp-eglibc/work/x86_64-oe-linux/gpsd/gpsd-3.4-r2/gpsd-3.4
10-Wl,-rpath=/OE/shr-core/tmp-eglibc/sysroots/qemux86-64/usr/lib gpsmon.o
11monitor_italk.o monitor_nmea.o monitor_oncore.o monitor_sirf.o
12monitor_superstar2.o monitor_tnt.o monitor_ubx.o monitor_garmin.o -L.
13-L/OE/shr-core/tmp-eglibc/sysroots/qemux86-64/usr/lib
14-L/OE/shr-core/tmp-eglibc/sysroots/qemux86-64/lib -lrt -lbluetooth
15-lgpsd -lusb-1.0 -lbluetooth -lgps -lncurses -ltinfo
16
17/OE/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/libexec/x86_64-oe-linux/gcc/x86_64-oe-linux/4.6.4/ld:
18* ntpshm.o: undefined reference to symbol 'log@@GLIBC_2.2.5'
19* monitor_garmin.o: undefined reference to symbol 'hypot@@GLIBC_2.2.5'
20
21Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
22---
23 SConstruct | 4 ++--
24 1 files changed, 2 insertions(+), 2 deletions(-)
25
26diff --git a/SConstruct b/SConstruct
27index 7bd44a1..9ff00c1 100644
28--- a/SConstruct
29+++ b/SConstruct
30@@ -806,7 +806,7 @@ if qt_env:
31 # The libraries have dependencies on system libraries
32
33 gpslibs = ["-lgps"]
34-gpsdlibs = ["-lgpsd"] + usblibs + bluezlibs + gpslibs
35+gpsdlibs = ["-lgpsd"] + ["-lm"] + usblibs + bluezlibs + gpslibs
36
37 # Source groups
38
39--
401.7.8.5
41
diff --git a/meta-oe/recipes-navigation/gpsd/gpsd-3.4/0001-SConstruct-prefix-includepy-with-sysroot-and-drop-sy.patch b/meta-oe/recipes-navigation/gpsd/gpsd-3.4/0001-SConstruct-prefix-includepy-with-sysroot-and-drop-sy.patch
deleted file mode 100644
index 27c6aad167..0000000000
--- a/meta-oe/recipes-navigation/gpsd/gpsd-3.4/0001-SConstruct-prefix-includepy-with-sysroot-and-drop-sy.patch
+++ /dev/null
@@ -1,72 +0,0 @@
1From bc224302f1665078c8d15138318709c1a1c2c0a0 Mon Sep 17 00:00:00 2001
2From: Martin Jansa <Martin.Jansa@gmail.com>
3Date: Tue, 24 Apr 2012 18:45:14 +0200
4Subject: [PATCH] SConstruct: prefix includepy with sysroot and drop sysroot
5 from python_lib_dir
6
7* without PYTHONPATH, distutil's sysconfig returns INCLUDEPY without sysroot prefix
8 and with PYTHONPATH from OE it's pointing to native python dir
9
10 $ export PYTHONPATH=/OE/shr-core/tmp-eglibc/sysroots/om-gta02/usr/lib/python2.7/
11 $ python
12 Python 2.7.2 (default, Apr 18 2012, 09:19:59)
13 [GCC 4.6.2] on linux2
14 Type "help", "copyright", "credits" or "license" for more information.
15 >>> from distutils import sysconfig
16 >>> sysconfig.get_config_vars('INCLUDEPY')
17 ['/OE/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/include/python2.7']
18 >>>
19 $ unset PYTHONPATH
20 $ python
21 Python 2.7.2 (default, Apr 18 2012, 09:19:59)
22 [GCC 4.6.2] on linux2
23 Type "help", "copyright", "credits" or "license" for more information.
24 >>> from distutils import sysconfig
25 >>> sysconfig.get_config_vars('INCLUDEPY')
26 ['/python2.7']
27 >>> import sysconfig
28 >>> sysconfig.get_config_vars('INCLUDEPY')
29 ['/OE/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/include/python2.7']
30* python_lib_dir = python_lib_dir.replace(env['sysroot'], '')
31 returns path to target sysroot
32
33Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
34---
35 SConstruct | 9 +++++++++
36 1 files changed, 9 insertions(+), 0 deletions(-)
37
38diff --git a/SConstruct b/SConstruct
39index 9ff00c1..9c0f751 100644
40--- a/SConstruct
41+++ b/SConstruct
42@@ -924,6 +924,12 @@ else:
43 if vars[i] is None:
44 vars[i] = ""
45 (cc, cxx, opt, basecflags, ccshared, ldshared, so_ext, includepy) = vars
46+
47+ if env['sysroot']:
48+ print "Prefixing includepy '%s' with sysroot prefix" % includepy
49+ includepy = os.path.normpath("%s/%s/%s/%s" % (env['sysroot'], env['prefix'], env['includedir'], includepy))
50+ print "'%s'" % includepy
51+
52 # in case CC/CXX was set to the scan-build wrapper,
53 # ensure that we build the python modules with scan-build, too
54 if env['CC'] is None or env['CC'].find('scan-build') < 0:
55@@ -1158,11 +1164,14 @@ if not env['python']:
56 python_install = []
57 else:
58 python_lib_dir = sysconfig.get_python_lib(plat_specific=1)
59+ python_lib_dir = python_lib_dir.replace(env['sysroot'], '')
60 python_module_dir = python_lib_dir + os.sep + 'gps'
61 python_extensions_install = python_env.Install( DESTDIR + python_module_dir,
62 python_built_extensions)
63 if not env['debug'] or env['profiling']:
64 python_env.AddPostAction(python_extensions_install, '$STRIP $TARGET')
65+ env.AddPostAction(python_extensions_install, '$CHRPATH -r "%s" "$TARGET"' \
66+ % (python_lib_dir, ))
67
68 python_modules_install = python_env.Install( DESTDIR + python_module_dir,
69 python_modules)
70--
711.7.8.5
72
diff --git a/meta-oe/recipes-navigation/gpsd/gpsd_3.4.bb b/meta-oe/recipes-navigation/gpsd/gpsd_3.4.bb
deleted file mode 100644
index 16fa7391b5..0000000000
--- a/meta-oe/recipes-navigation/gpsd/gpsd_3.4.bb
+++ /dev/null
@@ -1,123 +0,0 @@
1DESCRIPTION = "A TCP/IP Daemon simplifying the communication with GPS devices"
2SECTION = "console/network"
3LICENSE = "BSD"
4LIC_FILES_CHKSUM = "file://COPYING;md5=d217a23f408e91c94359447735bc1800"
5DEPENDS = "dbus dbus-glib ncurses python libusb1 chrpath-native"
6PROVIDES = "virtual/gpsd"
7
8PR = "r4"
9
10SRC_URI = "http://download.savannah.gnu.org/releases/${PN}/${P}.tar.gz \
11 file://0001-SConstruct-fix-DSO-build-for-ntpshm-garmin_monitor.patch \
12 file://0001-SConstruct-respect-sysroot-setting-when-prepending-L.patch \
13 file://0002-SConstruct-respect-sysroot-also-in-SPLINTOPTS.patch \
14 file://0004-SConstruct-remove-rpath.patch \
15 file://0001-SConstruct-prefix-includepy-with-sysroot-and-drop-sy.patch \
16 file://0001-SConstruct-disable-html-and-man-docs-building-becaus.patch \
17 file://gpsd-default \
18 file://gpsd \
19 file://60-gpsd.rules \
20"
21SRC_URI[md5sum] = "c01353459faa68834309109d4e868460"
22SRC_URI[sha256sum] = "79f7de9ead63c7f5d2c9a92e85b5f82e53323c4d451ef8e27ea265ac3ef9a70f"
23
24inherit scons update-rc.d python-dir pythonnative
25
26INITSCRIPT_NAME = "gpsd"
27INITSCRIPT_PARAMS = "defaults 35"
28
29SYSTEMD_OESCONS ??= "false"
30
31export STAGING_INCDIR
32export STAGING_LIBDIR
33
34EXTRA_OESCONS = " \
35 sysroot=${STAGING_DIR_TARGET} \
36 libQgpsmm='false' \
37 debug='true' \
38 strip='false' \
39 systemd='${SYSTEMD_OESCONS}' \
40"
41# this cannot be used, because then chrpath is not found and only static lib is built
42# target=${HOST_SYS}
43
44do_compile_prepend() {
45 export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}"
46 export PKG_CONFIG="PKG_CONFIG_SYSROOT_DIR=\"${PKG_CONFIG_SYSROOT_DIR}\" pkg-config"
47 export STAGING_PREFIX="${STAGING_DIR_HOST}/${prefix}"
48
49 export BUILD_SYS="${BUILD_SYS}"
50 export HOST_SYS="${HOST_SYS}"
51}
52
53do_install() {
54 export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}"
55 export PKG_CONFIG="PKG_CONFIG_SYSROOT_DIR=\"${PKG_CONFIG_SYSROOT_DIR}\" pkg-config"
56 export STAGING_PREFIX="${STAGING_DIR_HOST}/${prefix}"
57
58 export BUILD_SYS="${BUILD_SYS}"
59 export HOST_SYS="${HOST_SYS}"
60
61 export DESTDIR="${D}"
62 # prefix is used for RPATH and DESTDIR/prefix for instalation
63 ${STAGING_BINDIR_NATIVE}/scons prefix=${prefix} install ${EXTRA_OESCONS}|| \
64 bbfatal "scons install execution failed."
65}
66
67do_install_append() {
68 install -d ${D}/${sysconfdir}/init.d
69 install -m 0755 ${WORKDIR}/gpsd ${D}/${sysconfdir}/init.d/
70 install -d ${D}/${sysconfdir}/default
71 install -m 0644 ${WORKDIR}/gpsd-default ${D}/${sysconfdir}/default/gpsd.default
72
73 #support for udev
74 install -d ${D}/${sysconfdir}/udev/rules.d
75 install -m 0644 ${WORKDIR}/60-gpsd.rules ${D}/${sysconfdir}/udev/rules.d
76 install -d ${D}${base_libdir}/udev/
77 install -m 0755 ${S}/gpsd.hotplug ${D}${base_libdir}/udev/
78
79 #support for python
80 install -d ${D}/${PYTHON_SITEPACKAGES_DIR}/gps
81 install -m 755 ${S}/gps/*.py ${D}/${PYTHON_SITEPACKAGES_DIR}/gps
82}
83
84pkg_postinst_${PN}-conf() {
85 update-alternatives --install ${sysconfdir}/default/gpsd gpsd-defaults ${sysconfdir}/default/gpsd.default 10
86}
87
88pkg_postrm_${PN}-conf() {
89 update-alternatives --remove gpsd-defaults ${sysconfdir}/default/gpsd.default
90}
91
92PACKAGES =+ "libgps libgpsd python-pygps-dbg python-pygps gpsd-udev gpsd-conf gpsd-gpsctl gps-utils"
93
94FILES_gpsd-dev += "${libdir}/pkgconfdir/libgpsd.pc ${libdir}/pkgconfdir/libgps.pc"
95
96FILES_python-pygps-dbg += " ${libdir}/python*/site-packages/gps/.debug"
97
98RDEPENDS_${PN} = "gpsd-gpsctl"
99RRECOMMENDS_${PN} = "gpsd-conf gpsd-udev"
100
101DESCRIPTION_gpsd-udev = "udev relevant files to use gpsd hotplugging"
102FILES_gpsd-udev = "${base_libdir}/udev ${sysconfdir}/udev/*"
103RDEPENDS_gpsd-udev += "udev gpsd-conf"
104
105DESCRIPTION_libgpsd = "C service library used for communicating with gpsd"
106FILES_libgpsd = "${libdir}/libgpsd.so.*"
107
108DESCRIPTION_libgps = "C service library used for communicating with gpsd"
109FILES_libgps = "${libdir}/libgps.so.*"
110
111DESCRIPTION_gpsd-conf = "gpsd configuration files and init scripts"
112FILES_gpsd-conf = "${sysconfdir}"
113
114DESCRIPTION_gpsd-gpsctl = "Tool for tweaking GPS modes"
115FILES_gpsd-gpsctl = "${bindir}/gpsctl"
116
117DESCRIPTION_gps-utils = "Utils used for simulating, monitoring,... a GPS"
118FILES_gps-utils = "${bindir}/*"
119RDEPENDS_gps-utils = "python-pygps"
120
121DESCRIPTION_python-pygps = "Python bindings to gpsd"
122FILES_python-pygps = "${PYTHON_SITEPACKAGES_DIR}/*"
123RDEPENDS_python-pygps = "python-core python-curses gpsd python-json"
diff --git a/meta-oe/recipes-navigation/gpsd/gpsd_3.5.bb b/meta-oe/recipes-navigation/gpsd/gpsd_3.5.bb
index 1b1809f23b..568d49276d 100644
--- a/meta-oe/recipes-navigation/gpsd/gpsd_3.5.bb
+++ b/meta-oe/recipes-navigation/gpsd/gpsd_3.5.bb
@@ -7,7 +7,6 @@ PROVIDES = "virtual/gpsd"
7 7
8PR = "r4" 8PR = "r4"
9 9
10DEFAULT_PREFERENCE = "-1"
11SRC_URI = "http://download.savannah.gnu.org/releases/${PN}/${P}.tar.gz \ 10SRC_URI = "http://download.savannah.gnu.org/releases/${PN}/${P}.tar.gz \
12 file://0001-SConstruct-respect-sysroot-setting-when-prepending-L.patch \ 11 file://0001-SConstruct-respect-sysroot-setting-when-prepending-L.patch \
13 file://0002-SConstruct-respect-sysroot-also-in-SPLINTOPTS.patch \ 12 file://0002-SConstruct-respect-sysroot-also-in-SPLINTOPTS.patch \
diff --git a/meta-systemd/meta-oe/recipes-navigation/gpsd/gpsd_3.4.bbappend b/meta-systemd/meta-oe/recipes-navigation/gpsd/gpsd_3.4.bbappend
deleted file mode 100644
index 9504761574..0000000000
--- a/meta-systemd/meta-oe/recipes-navigation/gpsd/gpsd_3.4.bbappend
+++ /dev/null
@@ -1,18 +0,0 @@
1PRINC := "${@int(PRINC) + 1}"
2
3inherit systemd
4
5FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
6
7SRC_URI += "file://gpsd.service"
8
9SYSTEMD_PACKAGES = "${PN}-systemd"
10SYSTEMD_SERVICE = "${PN}.socket"
11SYSTEMD_OESCONS = "true"
12
13do_install_append() {
14 #support for systemd
15 install -d ${D}${systemd_unitdir}/system/
16 install -m 0644 ${WORKDIR}/${PN}.service ${D}${systemd_unitdir}/system/${PN}.service
17 install -m 0644 ${S}/systemd/${PN}.socket ${D}${systemd_unitdir}/system/${PN}.socket
18}