All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] gpsd: Only require and build for Python3
@ 2020-02-02  2:17 Alistair Francis
  2020-02-15 18:41 ` Martin Jansa
  0 siblings, 1 reply; 2+ messages in thread
From: Alistair Francis @ 2020-02-02  2:17 UTC (permalink / raw)
  To: openembedded-devel

Signed-off-by: Alistair Francis <alistair@alistair23.me>
---
v2:
 - Actually rename everything

 meta-oe/recipes-navigation/gpsd/gpsd_3.19.bb | 24 ++++++++++----------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/meta-oe/recipes-navigation/gpsd/gpsd_3.19.bb b/meta-oe/recipes-navigation/gpsd/gpsd_3.19.bb
index dbbc7140f..f74ebda5f 100644
--- a/meta-oe/recipes-navigation/gpsd/gpsd_3.19.bb
+++ b/meta-oe/recipes-navigation/gpsd/gpsd_3.19.bb
@@ -2,7 +2,7 @@ SUMMARY = "A TCP/IP Daemon simplifying the communication with GPS devices"
 SECTION = "console/network"
 LICENSE = "BSD-2-Clause"
 LIC_FILES_CHKSUM = "file://COPYING;md5=01764c35ae34d9521944bb6ab312af53"
-DEPENDS = "dbus ncurses python python3 pps-tools"
+DEPENDS = "dbus ncurses python3 pps-tools"
 PROVIDES = "virtual/gpsd"
 
 SRC_URI = "${SAVANNAH_GNU_MIRROR}/${BPN}/${BP}.tar.gz \
@@ -84,7 +84,7 @@ do_install_append() {
     install -m 0644 ${S}/systemd/${BPN}.socket ${D}${systemd_unitdir}/system/${BPN}.socket
 }
 
-PACKAGES =+ "libgps libgpsd python-pygps gpsd-udev gpsd-conf gpsd-gpsctl gps-utils"
+PACKAGES =+ "libgps libgpsd python3-pygps gpsd-udev gpsd-conf gpsd-gpsctl gps-utils"
 
 RPROVIDES_${PN}-dbg += "python-pygps-dbg"
 
@@ -114,17 +114,17 @@ FILES_gpsd-gpsctl = "${bindir}/gpsctl"
 SUMMARY_gps-utils = "Utils used for simulating, monitoring,... a GPS"
 # Python files are required for gps/fake, required for gpsfake.
 FILES_gps-utils = "${bindir}/* ${libdir}/gps/*.py ${libdir}/gps/*.so"
-RDEPENDS_gps-utils = "python-pygps"
-
-SUMMARY_python-pygps = "Python bindings to gpsd"
-FILES_python-pygps = "${PYTHON_SITEPACKAGES_DIR}/* ${libdir}/gps/*.py ${libdir}/*.egg-info"
-RDEPENDS_python-pygps = " \
-    python-core \
-    python-io \
-    python-threading \
-    python-terminal \
+RDEPENDS_gps-utils = "python3-pygps"
+
+SUMMARY_python3-pygps = "Python bindings to gpsd"
+FILES_python3-pygps = "${PYTHON_SITEPACKAGES_DIR}/* ${libdir}/gps/*.py ${libdir}/*.egg-info"
+RDEPENDS_python3-pygps = " \
+    python3-core \
+    python3-io \
+    python3-threading \
+    python3-terminal \
     gpsd \
-    python-json"
+    python3-json"
 
 RPROVIDES_${PN} += "${PN}-systemd"
 RREPLACES_${PN} += "${PN}-systemd"
-- 
2.25.0



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

* Re: [PATCH v2] gpsd: Only require and build for Python3
  2020-02-02  2:17 [PATCH v2] gpsd: Only require and build for Python3 Alistair Francis
@ 2020-02-15 18:41 ` Martin Jansa
  0 siblings, 0 replies; 2+ messages in thread
From: Martin Jansa @ 2020-02-15 18:41 UTC (permalink / raw)
  To: Alistair Francis; +Cc: openembedded-devel

FYI: this doesn't prevent the scons to detect python(2) in HOSTTOOLS if
some layers adds it there, like meta-updater does, reported here:
https://github.com/advancedtelematic/meta-updater/issues/684

It would be nice to have python PACKAGECONFIG to explicitly disable this
all when not needed.

On Sun, Feb 2, 2020 at 3:17 AM Alistair Francis <alistair@alistair23.me>
wrote:

> Signed-off-by: Alistair Francis <alistair@alistair23.me>
> ---
> v2:
>  - Actually rename everything
>
>  meta-oe/recipes-navigation/gpsd/gpsd_3.19.bb | 24 ++++++++++----------
>  1 file changed, 12 insertions(+), 12 deletions(-)
>
> diff --git a/meta-oe/recipes-navigation/gpsd/gpsd_3.19.bb
> b/meta-oe/recipes-navigation/gpsd/gpsd_3.19.bb
> index dbbc7140f..f74ebda5f 100644
> --- a/meta-oe/recipes-navigation/gpsd/gpsd_3.19.bb
> +++ b/meta-oe/recipes-navigation/gpsd/gpsd_3.19.bb
> @@ -2,7 +2,7 @@ SUMMARY = "A TCP/IP Daemon simplifying the communication
> with GPS devices"
>  SECTION = "console/network"
>  LICENSE = "BSD-2-Clause"
>  LIC_FILES_CHKSUM = "file://COPYING;md5=01764c35ae34d9521944bb6ab312af53"
> -DEPENDS = "dbus ncurses python python3 pps-tools"
> +DEPENDS = "dbus ncurses python3 pps-tools"
>  PROVIDES = "virtual/gpsd"
>
>  SRC_URI = "${SAVANNAH_GNU_MIRROR}/${BPN}/${BP}.tar.gz \
> @@ -84,7 +84,7 @@ do_install_append() {
>      install -m 0644 ${S}/systemd/${BPN}.socket
> ${D}${systemd_unitdir}/system/${BPN}.socket
>  }
>
> -PACKAGES =+ "libgps libgpsd python-pygps gpsd-udev gpsd-conf gpsd-gpsctl
> gps-utils"
> +PACKAGES =+ "libgps libgpsd python3-pygps gpsd-udev gpsd-conf gpsd-gpsctl
> gps-utils"
>
>  RPROVIDES_${PN}-dbg += "python-pygps-dbg"
>
> @@ -114,17 +114,17 @@ FILES_gpsd-gpsctl = "${bindir}/gpsctl"
>  SUMMARY_gps-utils = "Utils used for simulating, monitoring,... a GPS"
>  # Python files are required for gps/fake, required for gpsfake.
>  FILES_gps-utils = "${bindir}/* ${libdir}/gps/*.py ${libdir}/gps/*.so"
> -RDEPENDS_gps-utils = "python-pygps"
> -
> -SUMMARY_python-pygps = "Python bindings to gpsd"
> -FILES_python-pygps = "${PYTHON_SITEPACKAGES_DIR}/* ${libdir}/gps/*.py
> ${libdir}/*.egg-info"
> -RDEPENDS_python-pygps = " \
> -    python-core \
> -    python-io \
> -    python-threading \
> -    python-terminal \
> +RDEPENDS_gps-utils = "python3-pygps"
> +
> +SUMMARY_python3-pygps = "Python bindings to gpsd"
> +FILES_python3-pygps = "${PYTHON_SITEPACKAGES_DIR}/* ${libdir}/gps/*.py
> ${libdir}/*.egg-info"
> +RDEPENDS_python3-pygps = " \
> +    python3-core \
> +    python3-io \
> +    python3-threading \
> +    python3-terminal \
>      gpsd \
> -    python-json"
> +    python3-json"
>
>  RPROVIDES_${PN} += "${PN}-systemd"
>  RREPLACES_${PN} += "${PN}-systemd"
> --
> 2.25.0
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>


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

end of thread, other threads:[~2020-02-15 18:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-02  2:17 [PATCH v2] gpsd: Only require and build for Python3 Alistair Francis
2020-02-15 18:41 ` Martin Jansa

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.