Return-Path: X-Greylist: delayed 879 seconds by postgrey-1.34 at layers.openembedded.org; Tue, 20 May 2014 20:30:50 UTC Received: from na01-bn1-obe.outbound.protection.outlook.com (unknown [207.46.163.188]) by mail.openembedded.org (Postfix) with ESMTP id 91D3260167 for ; Tue, 20 May 2014 20:30:50 +0000 (UTC) Received: from CO1PR04MB556.namprd04.prod.outlook.com (10.141.73.23) by CO1PR04MB556.namprd04.prod.outlook.com (10.141.73.23) with Microsoft SMTP Server (TLS) id 15.0.944.11; Tue, 20 May 2014 20:16:19 +0000 Received: from CO1PR04MB556.namprd04.prod.outlook.com ([169.254.8.38]) by CO1PR04MB556.namprd04.prod.outlook.com ([169.254.8.38]) with mapi id 15.00.0944.000; Tue, 20 May 2014 20:16:19 +0000 From: Robert Calhoun To: "openembedded-devel@lists.openembedded.org" Thread-Topic: [meta-oe][PATCH 1/2] Support gpsd version 3.10 (fixup patches, refactor to use include file for both 3.7 + 3.10, fix gpsd-doc ) Thread-Index: AQHPdGhcR9dOB4JRDku+LEiAD8xMRA== Date: Tue, 20 May 2014 20:16:18 +0000 Message-ID: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.4.1.140326 x-originating-ip: [50.43.173.41] x-forefront-prvs: 02176E2458 x-forefront-antispam-report: SFV:NSPM; SFS:(6009001)(428001)(199002)(189002)(4396001)(79102001)(81342001)(54356999)(74662001)(50986999)(74502001)(64706001)(66066001)(101416001)(83506001)(31966008)(92566001)(20776003)(80022001)(15975445006)(77982001)(21056001)(83072002)(85852003)(15202345003)(81542001)(36756003)(99396002)(92726001)(99286001)(46102001)(2656002)(86362001)(575784001)(87936001)(76482001)(83322001)(19580405001)(19580395003)(579004); DIR:OUT; SFP:; SCL:1; SRVR:CO1PR04MB556; H:CO1PR04MB556.namprd04.prod.outlook.com; FPR:; MLV:sfv; PTR:InfoNoRecords; A:1; MX:1; LANG:en; received-spf: None (: shotspotter.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=rcalhoun@shotspotter.com; MIME-Version: 1.0 X-OriginatorOrg: shotspotter.com Subject: [meta-oe][PATCH 1/2] Support gpsd version 3.10 (fixup patches, refactor to use include file for both 3.7 + 3.10, fix gpsd-doc ) X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 May 2014 20:30:59 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable TODO: identify when udev is in use and add support for it automatically --- ...prefix-includepy-with-sysroot-and-drop-sy.patch | 71 ++++++++ ...struct-respect-sysroot-also-in-SPLINTOPTS.patch | 30 ++++ .../gpsd-3.10/0004-SConstruct-remove-rpath.patch | 42 +++++ meta-oe/recipes-navigation/gpsd/gpsd.inc | 179 +++++++++++++++++++++ meta-oe/recipes-navigation/gpsd/gpsd_3.10.bb | 15 ++ meta-oe/recipes-navigation/gpsd/gpsd_3.7.bb | 140 +--------------- .../recipes-navigation/gpsd/supported-chipsets.inc | 28 ++++ 7 files changed, 372 insertions(+), 133 deletions(-) create mode 100644=20 meta-oe/recipes-navigation/gpsd/gpsd-3.10/0001-SConstruct-prefix-includepy- with-sysroot-and-drop-sy.patch create mode 100644=20 meta-oe/recipes-navigation/gpsd/gpsd-3.10/0002-SConstruct-respect-sysroot-a lso-in-SPLINTOPTS.patch create mode 100644=20 meta-oe/recipes-navigation/gpsd/gpsd-3.10/0004-SConstruct-remove-rpath.patc h create mode 100644 meta-oe/recipes-navigation/gpsd/gpsd.inc create mode 100644 meta-oe/recipes-navigation/gpsd/gpsd_3.10.bb create mode 100644 meta-oe/recipes-navigation/gpsd/supported-chipsets.inc diff --git=20 a/meta-oe/recipes-navigation/gpsd/gpsd-3.10/0001-SConstruct-prefix-includep y-with-sysroot-and-drop-sy.patch b/meta-oe/recipes-navigation/gpsd/gpsd-3.10/0001-SConstruct-prefix-includep y-with-sysroot-and-drop-sy.patch new file mode 100644 index 0000000..e557703 --- /dev/null +++=20 b/meta-oe/recipes-navigation/gpsd/gpsd-3.10/0001-SConstruct-prefix-includep y-with-sysroot-and-drop-sy.patch @@ -0,0 +1,71 @@ +From dd3ca38b27cce93f7e932abaa27b41371234fa90 Mon Sep 17 00:00:00 2001 +From: Martin Jansa +Date: Tue, 24 Apr 2012 18:45:14 +0200 +Subject: [PATCH] SConstruct: prefix includepy with sysroot and drop sysroot + from python_lib_dir + +* without PYTHONPATH, distutil's sysconfig returns INCLUDEPY without sysroot prefix + and with PYTHONPATH from OE it's pointing to native python dir + + $ export=20 PYTHONPATH=3D/OE/shr-core/tmp-eglibc/sysroots/om-gta02/usr/lib/python2.7/ + $ python + Python 2.7.2 (default, Apr 18 2012, 09:19:59) + [GCC 4.6.2] on linux2 + Type "help", "copyright", "credits" or "license" for more information. + >>> from distutils import sysconfig + >>> sysconfig.get_config_vars('INCLUDEPY') + =20 ['/OE/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/include/python2.7'] + >>> + $ unset PYTHONPATH + $ python + Python 2.7.2 (default, Apr 18 2012, 09:19:59) + [GCC 4.6.2] on linux2 + Type "help", "copyright", "credits" or "license" for more information. + >>> from distutils import sysconfig + >>> sysconfig.get_config_vars('INCLUDEPY') + ['/python2.7'] + >>> import sysconfig + >>> sysconfig.get_config_vars('INCLUDEPY') + =20 ['/OE/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/include/python2.7'] +* python_lib_dir =3D python_lib_dir.replace(env['sysroot'], '') + returns path to target sysroot + +Signed-off-by: Martin Jansa +--- + SConstruct | 9 +++++++++ + 1 files changed, 9 insertions(+), 0 deletions(-) + +diff --git a/SConstruct b/SConstruct +index 14e2f59..47c5753 100644 +--- a/SConstruct ++++ b/SConstruct +@@ -1084,6 +1084,10 @@ else: + if vars[i] is None: + vars[i] =3D [] + (cc, cxx, opt, basecflags, ccshared, ldshared, so_ext, includepy, ldflags) =3D vars ++ if env['sysroot']: ++ print "Prefixing includepy '%s' with sysroot prefix" % includepy ++ includepy =3D os.path.normpath("%s/%s/%s/%s" % (env['sysroot'], env['prefix'], env['includedir'], includepy)) ++ print "'%s'" % includepy + # FIXME: build of python wrappers doesn't pickup flags set for coveraging, manually add them here + if env['coveraging']: + basecflags +=3D ' -coverage' +@@ -1350,11 +1358,14 @@ if not env['python']: + python_install =3D [] + else: + python_lib_dir =3D sysconfig.get_python_lib(plat_specific=3D1) ++ python_lib_dir =3D python_lib_dir.replace(env['sysroot'], '') + python_module_dir =3D python_lib_dir + os.sep + 'gps' + python_extensions_install =3D python_env.Install( DESTDIR + python_module_dir, + =20 python_built_extensions) + if not env['debug'] and not env['profiling'] and env['strip']: + python_env.AddPostAction(python_extensions_install, '$STRIP $TARGET') ++ env.AddPostAction(python_extensions_install, '$CHRPATH -r "%s" "$TARGET"' \ ++ % (python_lib_dir, )) +=20 + python_modules_install =3D python_env.Install( DESTDIR + python_module_dir, + python_modules) + +--=20 +1.7.8.5 + diff --git=20 a/meta-oe/recipes-navigation/gpsd/gpsd-3.10/0002-SConstruct-respect-sysroot -also-in-SPLINTOPTS.patch b/meta-oe/recipes-navigation/gpsd/gpsd-3.10/0002-SConstruct-respect-sysroot -also-in-SPLINTOPTS.patch new file mode 100644 index 0000000..06dd6e7 --- /dev/null +++=20 b/meta-oe/recipes-navigation/gpsd/gpsd-3.10/0002-SConstruct-respect-sysroot -also-in-SPLINTOPTS.patch @@ -0,0 +1,30 @@ +From f5f262be8ae54bd0c0f52802f2007ec89163756f Mon Sep 17 00:00:00 2001 +From: Martin Jansa +Date: Tue, 24 Apr 2012 11:52:35 +0200 +Subject: [PATCH 1/2] SConstruct: respect sysroot also in SPLINTOPTS + +Signed-off-by: Martin Jansa +Signed-off-by: Denis 'GNUtoo' Carikli +--- + SConstruct | 5 ++++- + 1 files changed, 4 insertions(+), 1 deletions(-) + +diff --git a/SConstruct b/SConstruct +index 14e2f59..47c5753 100644 +--- a/SConstruct ++++ b/SConstruct +@@ -1414,7 +1425,10 @@ def Utility(target, source, action): + # Report splint warnings + # Note: test_bits.c is unsplintable because of the PRI64 macros. + # If you get preprocessor or fatal errors, add +showscan. +-splintopts =3D "-I/usr/include/libusb-1.0 +quiet" ++if not env['sysroot']: ++ splintopts =3D "-I/usr/include/libusb-1.0 +quiet" ++else: ++ splintopts =3D "-I%s/usr/include/libusb-1.0 +quiet" % env['sysroot'] + # splint does not know about multi-arch, work around that + ma_status, ma =3D _getstatusoutput('dpkg-architecture -qDEB_HOST_MULTIARCH') + if ma_status =3D=3D 0: +--=20 +1.7.5.4 + diff --git=20 a/meta-oe/recipes-navigation/gpsd/gpsd-3.10/0004-SConstruct-remove-rpath.pa tch=20 b/meta-oe/recipes-navigation/gpsd/gpsd-3.10/0004-SConstruct-remove-rpath.pa tch new file mode 100644 index 0000000..83b98bb --- /dev/null +++=20 b/meta-oe/recipes-navigation/gpsd/gpsd-3.10/0004-SConstruct-remove-rpath.pa tch @@ -0,0 +1,42 @@ +From 7d736bbd517c12d19d7b85a5b0db84732b2f86da Mon Sep 17 00:00:00 2001 +From: Martin Jansa +Date: Tue, 24 Apr 2012 16:24:35 +0200 +Subject: [PATCH 2/2] SConstruct: remove rpath + +* even with correct prefix (without DESTDIR) included it's redundant + WARNING: QA Issue: libgps: + =20 /work/armv4t-oe-linux-gnueabi/gpsd/gpsd-3.5-r0/packages-split/libgps/usr/li b/libgps.so.20.0 + contains probably-redundant RPATH /usr/lib +* and with prefix from scons.bbclass it's invalid + WARNING: QA Issue: package libgps contains bad RPATH + =20 /OE/shr-core/tmp-eglibc/work/armv4t-oe-linux-gnueabi/gpsd/gpsd-3.5-r0/image /usr/lib + in file + =20 /OE/shr-core/tmp-eglibc/work/armv4t-oe-linux-gnueabi/gpsd/gpsd-3.5-r0/packa ges-split/libgps/usr/lib/libgps.so.20.0 + +Signed-off-by: Martin Jansa +Signed-off-by: Denis 'GNUtoo' Carikli +--- + SConstruct | 7 +++++-- + 1 files changed, 5 insertions(+), 2 deletions(-) + +diff --git a/SConstruct b/SConstruct +index a1bddb9..3e7c607 100644 +--- a/SConstruct ++++ b/SConstruct +@@ -1205,8 +1205,11 @@ if qt_env: +=20 + # We don't use installdir here in order to avoid having DESTDIR affect the rpath + if env["shared"] and env["chrpath"]: +- env.AddPostAction(binaryinstall, '$CHRPATH -r "%s" "$TARGET"' \ +- % (installdir('libdir', False), )) ++ if not env['sysroot']: ++ env.AddPostAction(binaryinstall, '$CHRPATH -r "%s" "$TARGET"' \ ++ % (installdir('libdir', False), )) ++ else: ++ env.AddPostAction(binaryinstall, '$CHRPATH -d "$TARGET"') +=20 + if not env['debug'] and not env['profiling'] and env['strip']: + env.AddPostAction(binaryinstall, '$STRIP $TARGET') +--=20 +1.7.5.4 + diff --git a/meta-oe/recipes-navigation/gpsd/gpsd.inc b/meta-oe/recipes-navigation/gpsd/gpsd.inc new file mode 100644 index 0000000..ecff14c --- /dev/null +++ b/meta-oe/recipes-navigation/gpsd/gpsd.inc @@ -0,0 +1,179 @@ +SUMMARY =3D "Daemon that parses and shares GPS devices" +DESCRIPTION =3D "gpsd is a service daemon that monitors one or more GPSes or AIS receivers attached to a host computer \ +through serial or USB ports, making all data on the location/course/velocity of the sensors available to be queried \ +via TCP, messagebus, or shared memory" +AUTHOR =3D "Authors: Eric S. Raymond, Chris Kuethe, Gary Miller. Former authors whose bits have been plowed under by \ +code turnover: Remco Treffcorn, Derrick Brashear, Russ Nelson." +HOMEPAGE =3D "http://www.catb.org/gpsd/" +SECTION =3D "console/network" +LICENSE =3D "BSD" +LIC_FILES_CHKSUM =3D "file://COPYING;md5=3Dd217a23f408e91c94359447735bc180= 0 " +DEPENDS =3D "dbus dbus-glib ncurses python libusb1 chrpath-replacement-native" +PROVIDES =3D "virtual/gpsd" + +EXTRANATIVEPATH +=3D "chrpath-native" + +# override gpsd-default to select device other than /dev/ttyS0 + +SRC_URI =3D "http://download.savannah.gnu.org/releases/${PN}/${P}.tar.gz \ + file://gpsd-default \ + file://gpsd \ + file://60-gpsd.rules \ + file://gpsd.service \ +" + +inherit scons update-rc.d python-dir pythonnative systemd + +INITSCRIPT_NAME =3D "gpsd" +INITSCRIPT_PARAMS =3D "defaults 35" + +export STAGING_INCDIR +export STAGING_LIBDIR + + +SYSTEMD_OESCONS =3D "${@base_contains('DISTRO_FEATURES', 'systemd', 'true'= , 'false',d)}" + +PACKAGECONFIG +=3D "${@base_contains('DISTRO_FEATURES', 'bluetooth', 'bluez', '', d)}" +PACKAGECONFIG +=3D "${@base_contains('DISTRO_FEATURES', 'ipv6', 'ipv6', ''= , d)}" +PACKAGECONFIG +=3D "${@base_contains('DISTRO_FEATURES', 'usbhost', 'usb', '', d)}" +# TODO: handle udev support automatically + +include supported-chipsets.inc + +# CONNECTIVITY +PACKAGECONFIG[bluez] =3D "bluez=3D'true',bluez=3D'false',bluez4" +PACKAGECONFIG[ipv6] =3D "ipv6=3D'true',ipv6=3D'false'," +PACKAGECONFIG[usb] =3D "usb=3D'true',usb=3D'false',udev libusb" + +# RECEIVERS +PACKAGECONFIG[ashtech] =3D "ashtech=3D'true',ashtech=3D'false'" +PACKAGECONFIG[earthmate] =3D "earthmate=3D'true',earthmate=3D'false'" +PACKAGECONFIG[evermore] =3D "evermore=3D'true',evermore=3D'false'" +PACKAGECONFIG[fury] =3D "fury=3D'true',fury=3D'false'" +PACKAGECONFIG[fv18] =3D "fv18=3D'true',fv18=3D'false'" +PACKAGECONFIG[garmin] =3D "garmin=3D'true',garmin=3D'false'" +PACKAGECONFIG[garmintxt] =3D "garmintxt=3D'true',garmintxt=3D'false'" +PACKAGECONFIG[geostar] =3D "geostar=3D'true',geostar=3D'false'" +PACKAGECONFIG[itrax] =3D "itrax=3D'true',itrax=3D'false'" +PACKAGECONFIG[mtk3301] =3D "mtk3301=3D'true',mtk3301=3D'false'" +PACKAGECONFIG[navcom] =3D "navcom=3D'true',navcom=3D'false'" +PACKAGECONFIG[ntrip] =3D "ntrip=3D'true',ntrip=3D'false'" +PACKAGECONFIG[oceanserver] =3D "oceanserver=3D'true',oceanserver=3D'false'= " +PACKAGECONFIG[oncore] =3D "oncore=3D'true',oncore=3D'false'" +PACKAGECONFIG[rtcm104v2] =3D "rtcm104v2=3D'true',rtcm104v2=3D'false'" +PACKAGECONFIG[rtcm104v3] =3D "rtcm104v3=3D'true',rtcm104v3=3D'false'" +PACKAGECONFIG[sirf] =3D "sirf=3D'true',sirf=3D'false'" +PACKAGECONFIG[superstar2] =3D "superstar2=3D'true',superstar2=3D'false'" +PACKAGECONFIG[tnt] =3D "tnt=3D'true',tnt=3D'false'" +PACKAGECONFIG[tripmate] =3D "tripmate=3D'true',tripmate=3D'false'" +PACKAGECONFIG[tsip] =3D "tsip=3D'true',tsip=3D'false'" +PACKAGECONFIG[ublox] =3D "ublox=3D'true',ublox=3D'false'" + + +EXTRA_OESCONS =3D " \ + sysroot=3D${STAGING_DIR_TARGET} \ + libQgpsmm=3D'false' \ + debug=3D'true' \ + strip=3D'false' \ + systemd=3D'${SYSTEMD_OESCONS}' \ + ${EXTRA_OECONF} \ +" +# this cannot be used, because then chrpath is not found and only static lib is built +# target=3D${HOST_SYS} + +do_compile_prepend() { + export PKG_CONFIG_PATH=3D"${PKG_CONFIG_PATH}" + export=20 PKG_CONFIG=3D"PKG_CONFIG_SYSROOT_DIR=3D\"${PKG_CONFIG_SYSROOT_DIR}\" pkg-config" + export STAGING_PREFIX=3D"${STAGING_DIR_HOST}/${prefix}" + + export BUILD_SYS=3D"${BUILD_SYS}" + export HOST_SYS=3D"${HOST_SYS}" +} + +do_install() { + export PKG_CONFIG_PATH=3D"${PKG_CONFIG_PATH}" + export=20 PKG_CONFIG=3D"PKG_CONFIG_SYSROOT_DIR=3D\"${PKG_CONFIG_SYSROOT_DIR}\" pkg-config" + export STAGING_PREFIX=3D"${STAGING_DIR_HOST}/${prefix}" + + export BUILD_SYS=3D"${BUILD_SYS}" + export HOST_SYS=3D"${HOST_SYS}" + + export DESTDIR=3D"${D}" + # prefix is used for RPATH and DESTDIR/prefix for instalation + ${STAGING_BINDIR_NATIVE}/scons prefix=3D${prefix} install ${EXTRA_OESCONS}|| \ + bbfatal "scons install execution failed." +} + +do_install_append() { + install -d ${D}/${sysconfdir}/init.d + install -m 0755 ${WORKDIR}/gpsd ${D}/${sysconfdir}/init.d/ + install -d ${D}/${sysconfdir}/default + install -m 0644 ${WORKDIR}/gpsd-default ${D}/${sysconfdir}/default/gpsd.default + + #support for udev + install -d ${D}/${sysconfdir}/udev/rules.d + install -m 0644 ${WORKDIR}/60-gpsd.rules ${D}/${sysconfdir}/udev/rules.d + install -d ${D}${base_libdir}/udev/ + install -m 0755 ${S}/gpsd.hotplug ${D}${base_libdir}/udev/ + + #support for python + install -d ${D}/${PYTHON_SITEPACKAGES_DIR}/gps + install -m 755 ${S}/gps/*.py ${D}/${PYTHON_SITEPACKAGES_DIR}/gps + + #support for systemd + install -d ${D}${systemd_unitdir}/system/ + install -m 0644 ${WORKDIR}/${PN}.service ${D}${systemd_unitdir}/system/${PN}.service + install -m 0644 ${S}/systemd/${PN}.socket ${D}${systemd_unitdir}/system/${PN}.socket +} + +pkg_postinst_${PN}-conf() { + update-alternatives --install ${sysconfdir}/default/gpsd gpsd-defaults ${sysconfdir}/default/gpsd.default 10 +} + +pkg_postrm_${PN}-conf() { + update-alternatives --remove gpsd-defaults ${sysconfdir}/default/gpsd.default +} + +# Note: you probably want executables "gpsd", "gpsctl", "gpsmon" and library "libgps". +# Select package "gpsd" for the former; add "libgps" for library support. "libgpsd" is generally not needed. +# Add "gpsd-udev" for hot-plug support. TODO: automatically add udev support when udev is a DISTRO_FEATURE. + +PACKAGES =3D+ "libgps libgpsd python-pygps-dbg python-pygps gpsd-udev gpsd-conf gpsd-gpsctl gps-utils" + +FILES_${PN}-dev +=3D "${libdir}/pkgconfdir/libgpsd.pc ${libdir}/pkgconfdir/libgps.pc" + +FILES_python-pygps-dbg +=3D " ${libdir}/python*/site-packages/gps/.debug" + +RDEPENDS_${PN} =3D "gpsd-gpsctl" +RRECOMMENDS_${PN} =3D "gpsd-conf" + +SUMMARY_gpsd-udev =3D "udev relevant files to use gpsd hotplugging" +FILES_gpsd-udev =3D "${base_libdir}/udev ${sysconfdir}/udev/*" +RDEPENDS_gpsd-udev +=3D "udev gpsd-conf" + +SUMMARY_libgpsd =3D "C service library which supports querying GPS devices directly; used by gpsd." +FILES_libgpsd =3D "${libdir}/libgpsd.so.*" + +SUMMARY_libgps =3D "C service library which supports communicating with an instance of the gpsd; almost certainly what you want." +FILES_libgps =3D "${libdir}/libgps.so.*" + +SUMMARY_gpsd-conf =3D "gpsd configuration files and init scripts" +FILES_gpsd-conf =3D "${sysconfdir}" +CONFFILES_gpsd-conf =3D "${sysconfdir}/default/gpsd.default" + +SUMMARY_gpsd-gpsctl =3D "Tools for controlling GPS via gpsd or directly an= d monitoring PPS status" +FILES_gpsd-gpsctl =3D "${bindir}/gpsctl ${bindir}/gpsmon" + +SUMMARY_gps-utils =3D "Utils used for simulating, monitoring,... a GPS (requires python)" +FILES_gps-utils =3D "${bindir}/*" +RDEPENDS_gps-utils =3D "python-pygps" + +SUMMARY_python-pygps =3D "Python bindings to gpsd" +FILES_python-pygps =3D "${PYTHON_SITEPACKAGES_DIR}/*" +RDEPENDS_python-pygps =3D "python-core python-curses gpsd python-json" + + +RPROVIDES_${PN} +=3D "${PN}-systemd" +RREPLACES_${PN} +=3D "${PN}-systemd" +RCONFLICTS_${PN} +=3D "${PN}-systemd" +SYSTEMD_SERVICE_${PN} =3D "${PN}.socket" diff --git a/meta-oe/recipes-navigation/gpsd/gpsd_3.10.bb b/meta-oe/recipes-navigation/gpsd/gpsd_3.10.bb new file mode 100644 index 0000000..715b5a7 --- /dev/null +++ b/meta-oe/recipes-navigation/gpsd/gpsd_3.10.bb @@ -0,0 +1,15 @@ +include gpsd.inc + +# patches are version-specific, although currently these are the same as those in 3.7 +SRC_URI_append =3D "\ + =20 file://0001-SConstruct-prefix-includepy-with-sysroot-and-drop-sy.patch \ + file://0002-SConstruct-respect-sysroot-also-in-SPLINTOPTS.patch \ + file://0004-SConstruct-remove-rpath.patch \ +" + +PR =3D "r1" + +SRC_URI[md5sum] =3D "fc5b03aae38b9b5b6880b31924d0ace3" +SRC_URI[sha256sum] =3D "706fc2c1cf3dfbf87c941f543381bccc9c4dc9f8240eec407dcbf2f70b854320" + + diff --git a/meta-oe/recipes-navigation/gpsd/gpsd_3.7.bb b/meta-oe/recipes-navigation/gpsd/gpsd_3.7.bb index 97f3354..6b5e456 100644 --- a/meta-oe/recipes-navigation/gpsd/gpsd_3.7.bb +++ b/meta-oe/recipes-navigation/gpsd/gpsd_3.7.bb @@ -1,139 +1,13 @@ -SUMMARY =3D "A TCP/IP Daemon simplifying the communication with GPS device= s" -SECTION =3D "console/network" -LICENSE =3D "BSD" -LIC_FILES_CHKSUM =3D "file://COPYING;md5=3Dd217a23f408e91c94359447735bc180= 0 " -DEPENDS =3D "dbus dbus-glib ncurses python libusb1 chrpath-replacement-native" -PROVIDES =3D "virtual/gpsd" +include gpsd.inc -EXTRANATIVEPATH +=3D "chrpath-native" - -PR =3D "r14" - -SRC_URI =3D "http://download.savannah.gnu.org/releases/${PN}/${P}.tar.gz \ +# assume patches are version-specific +SRC_URI_append =3D "\ + =20 file://0001-SConstruct-disable-html-and-man-docs-building-becaus.patch \ + =20 file://0001-SConstruct-prefix-includepy-with-sysroot-and-drop-sy.patch \ file://0002-SConstruct-respect-sysroot-also-in-SPLINTOPTS.patch \ file://0004-SConstruct-remove-rpath.patch \ - =20 file://0001-SConstruct-prefix-includepy-with-sysroot-and-drop-sy.patch \ - =20 file://0001-SConstruct-disable-html-and-man-docs-building-becaus.patch \ - file://gpsd-default \ - file://gpsd \ - file://60-gpsd.rules \ - file://gpsd.service \ " +PR =3D "r15" + SRC_URI[md5sum] =3D "52d9785eaf1a51298bb8900dbde88f98" SRC_URI[sha256sum] =3D "7800c478ee9d7ca7a502b0f892828561b1fbf7bc69d9d38c447c82c3628302ac" - -inherit scons update-rc.d python-dir pythonnative systemd - -INITSCRIPT_NAME =3D "gpsd" -INITSCRIPT_PARAMS =3D "defaults 35" - -SYSTEMD_OESCONS =3D "${@base_contains('DISTRO_FEATURES', 'systemd', 'true'= , 'false',d)}" - -export STAGING_INCDIR -export STAGING_LIBDIR - -PACKAGECONFIG ??=3D "bluez" -PACKAGECONFIG[bluez] =3D "bluez=3D'true',bluez=3D'false',bluez4" - -EXTRA_OESCONS =3D " \ - sysroot=3D${STAGING_DIR_TARGET} \ - libQgpsmm=3D'false' \ - debug=3D'true' \ - strip=3D'false' \ - systemd=3D'${SYSTEMD_OESCONS}' \ - ${EXTRA_OECONF} \ -" -# this cannot be used, because then chrpath is not found and only static lib is built -# target=3D${HOST_SYS} - -do_compile_prepend() { - export PKG_CONFIG_PATH=3D"${PKG_CONFIG_PATH}" - export=20 PKG_CONFIG=3D"PKG_CONFIG_SYSROOT_DIR=3D\"${PKG_CONFIG_SYSROOT_DIR}\" pkg-config" - export STAGING_PREFIX=3D"${STAGING_DIR_HOST}/${prefix}" - - export BUILD_SYS=3D"${BUILD_SYS}" - export HOST_SYS=3D"${HOST_SYS}" -} - -do_install() { - export PKG_CONFIG_PATH=3D"${PKG_CONFIG_PATH}" - export=20 PKG_CONFIG=3D"PKG_CONFIG_SYSROOT_DIR=3D\"${PKG_CONFIG_SYSROOT_DIR}\" pkg-config" - export STAGING_PREFIX=3D"${STAGING_DIR_HOST}/${prefix}" - - export BUILD_SYS=3D"${BUILD_SYS}" - export HOST_SYS=3D"${HOST_SYS}" - - export DESTDIR=3D"${D}" - # prefix is used for RPATH and DESTDIR/prefix for instalation - ${STAGING_BINDIR_NATIVE}/scons prefix=3D${prefix} install ${EXTRA_OESCONS}|| \ - bbfatal "scons install execution failed." -} - -do_install_append() { - install -d ${D}/${sysconfdir}/init.d - install -m 0755 ${WORKDIR}/gpsd ${D}/${sysconfdir}/init.d/ - install -d ${D}/${sysconfdir}/default - install -m 0644 ${WORKDIR}/gpsd-default ${D}/${sysconfdir}/default/gpsd.default - - #support for udev - install -d ${D}/${sysconfdir}/udev/rules.d - install -m 0644 ${WORKDIR}/60-gpsd.rules ${D}/${sysconfdir}/udev/rules.d - install -d ${D}${base_libdir}/udev/ - install -m 0755 ${S}/gpsd.hotplug ${D}${base_libdir}/udev/ - - #support for python - install -d ${D}/${PYTHON_SITEPACKAGES_DIR}/gps - install -m 755 ${S}/gps/*.py ${D}/${PYTHON_SITEPACKAGES_DIR}/gps - - #support for systemd - install -d ${D}${systemd_unitdir}/system/ - install -m 0644 ${WORKDIR}/${PN}.service ${D}${systemd_unitdir}/system/${PN}.service - install -m 0644 ${S}/systemd/${PN}.socket ${D}${systemd_unitdir}/system/${PN}.socket -} - -pkg_postinst_${PN}-conf() { - update-alternatives --install ${sysconfdir}/default/gpsd gpsd-defaults ${sysconfdir}/default/gpsd.default 10 -} - -pkg_postrm_${PN}-conf() { - update-alternatives --remove gpsd-defaults ${sysconfdir}/default/gpsd.default -} - -PACKAGES =3D+ "libgps libgpsd python-pygps-dbg python-pygps gpsd-udev gpsd-conf gpsd-gpsctl gps-utils" - -FILES_${PN}-dev +=3D "${libdir}/pkgconfdir/libgpsd.pc ${libdir}/pkgconfdir/libgps.pc" - -FILES_python-pygps-dbg +=3D " ${libdir}/python*/site-packages/gps/.debug" - -RDEPENDS_${PN} =3D "gpsd-gpsctl" -RRECOMMENDS_${PN} =3D "gpsd-conf gpsd-udev gpsd-machine-conf" - -SUMMARY_gpsd-udev =3D "udev relevant files to use gpsd hotplugging" -FILES_gpsd-udev =3D "${base_libdir}/udev ${sysconfdir}/udev/*" -RDEPENDS_gpsd-udev +=3D "udev gpsd-conf" - -SUMMARY_libgpsd =3D "C service library used for communicating with gpsd" -FILES_libgpsd =3D "${libdir}/libgpsd.so.*" - -SUMMARY_libgps =3D "C service library used for communicating with gpsd" -FILES_libgps =3D "${libdir}/libgps.so.*" - -SUMMARY_gpsd-conf =3D "gpsd configuration files and init scripts" -FILES_gpsd-conf =3D "${sysconfdir}" -CONFFILES_gpsd-conf =3D "${sysconfdir}/default/gpsd.default" - -SUMMARY_gpsd-gpsctl =3D "Tool for tweaking GPS modes" -FILES_gpsd-gpsctl =3D "${bindir}/gpsctl" - -SUMMARY_gps-utils =3D "Utils used for simulating, monitoring,... a GPS" -FILES_gps-utils =3D "${bindir}/*" -RDEPENDS_gps-utils =3D "python-pygps" - -SUMMARY_python-pygps =3D "Python bindings to gpsd" -FILES_python-pygps =3D "${PYTHON_SITEPACKAGES_DIR}/*" -RDEPENDS_python-pygps =3D "python-core python-curses gpsd python-json" - -RPROVIDES_${PN} +=3D "${PN}-systemd" -RREPLACES_${PN} +=3D "${PN}-systemd" -RCONFLICTS_${PN} +=3D "${PN}-systemd" -SYSTEMD_SERVICE_${PN} =3D "${PN}.socket" diff --git a/meta-oe/recipes-navigation/gpsd/supported-chipsets.inc b/meta-oe/recipes-navigation/gpsd/supported-chipsets.inc new file mode 100644 index 0000000..dee898b --- /dev/null +++ b/meta-oe/recipes-navigation/gpsd/supported-chipsets.inc @@ -0,0 +1,28 @@ +# gpsd probes for various binary chipsets in a predefined search order. To minimize build size +# and protocol probe time, override this file using .bbappend and remove any unwanted chipsets +# For a list of all features run "scons -h" +# "nmea", "nmea2000" and "aivdm" (required for nmea2000) are always included + +PACKAGECONFIG +=3D "ashtech" +PACKAGECONFIG +=3D "earthmate" +PACKAGECONFIG +=3D "evermore" +PACKAGECONFIG +=3D "fury" +PACKAGECONFIG +=3D "fv18" +PACKAGECONFIG +=3D "garmin" +PACKAGECONFIG +=3D "garmintxt" +PACKAGECONFIG +=3D "geostar" +PACKAGECONFIG +=3D "itrax" +PACKAGECONFIG +=3D "mtk3301" +PACKAGECONFIG +=3D "navcom" +PACKAGECONFIG +=3D "ntrip" +PACKAGECONFIG +=3D "oceanserver" +PACKAGECONFIG +=3D "oncore" +PACKAGECONFIG +=3D "rtcm104v2" +PACKAGECONFIG +=3D "rtcm104v3" +PACKAGECONFIG +=3D "sirf" +PACKAGECONFIG +=3D "superstar2" +PACKAGECONFIG +=3D "tnt" +PACKAGECONFIG +=3D "tripmate" +PACKAGECONFIG +=3D "tsip" +PACKAGECONFIG +=3D "ublox" + --=20 1.9.1