diff options
| author | Fabio Estevam <festevam@denx.de> | 2024-10-29 15:27:47 -0300 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-11-01 12:07:12 +0000 |
| commit | f1f814c4f74c97a0fc7dcd8c5857213b229b809c (patch) | |
| tree | aa2d53c4bfd4964fb4f9dce974c28dde65723ecc | |
| parent | b4c99bbcec3b2e7b45524b17dab90e4bc3c14c0f (diff) | |
| download | poky-f1f814c4f74c97a0fc7dcd8c5857213b229b809c.tar.gz | |
usbutils: Update to version 018
Update to version 018, which has been converted to meson.
Patch 0001-usbutils.pc.in-Fix-Cflags-entry.patch is no longer needed
as usbutils now uses meson.
Patch 0001-usb-devices-Fix-usb-devices-with-busybox.patch has been
upstreamed.
Add CC0-1.0, LGPL-2.1-or-later, and MIT to the LICENSES entry
due to the following usbutils commits:
https://github.com/gregkh/usbutils/commit/32154d0dbea27fc1de8ad07da9110c5ec5f141d8
https://github.com/gregkh/usbutils/commit/d04e63e5517f89d508b3a206c6611edafc82ac8f
License-Update: Add CC0-1.0, LGPL-2.1-or-later, and MIT entries.
(From OE-Core rev: d10843f712f9e14e744f60243b995dc1e65f891c)
Signed-off-by: Fabio Estevam <festevam@denx.de>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rwxr-xr-x | meta/recipes-bsp/usbutils/usbutils/0001-usb-devices-Fix-usb-devices-with-busybox.patch | 37 | ||||
| -rw-r--r-- | meta/recipes-bsp/usbutils/usbutils/0001-usbutils.pc.in-Fix-Cflags-entry.patch | 34 | ||||
| -rw-r--r-- | meta/recipes-bsp/usbutils/usbutils_018.bb (renamed from meta/recipes-bsp/usbutils/usbutils_017.bb) | 20 |
3 files changed, 10 insertions, 81 deletions
diff --git a/meta/recipes-bsp/usbutils/usbutils/0001-usb-devices-Fix-usb-devices-with-busybox.patch b/meta/recipes-bsp/usbutils/usbutils/0001-usb-devices-Fix-usb-devices-with-busybox.patch deleted file mode 100755 index dbe5d7c18b..0000000000 --- a/meta/recipes-bsp/usbutils/usbutils/0001-usb-devices-Fix-usb-devices-with-busybox.patch +++ /dev/null | |||
| @@ -1,37 +0,0 @@ | |||
| 1 | From da155d965a34b5c5770dc30fa52eb7ef405f3a30 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Teresa Remmet <t.remmet@phytec.de> | ||
| 3 | Date: Thu, 5 Sep 2024 08:37:48 +0200 | ||
| 4 | Subject: [PATCH] usb-devices: Fix usb-devices with busybox | ||
| 5 | |||
| 6 | The busybox find command is missing the -printf parameter leading to | ||
| 7 | the error: | ||
| 8 | |||
| 9 | find: unrecognized: -printf | ||
| 10 | |||
| 11 | Replace the parameter with sed. | ||
| 12 | |||
| 13 | This patch was originally created by Daniel Fancsali. | ||
| 14 | |||
| 15 | Upstream-Status: Backport [https://github.com/gregkh/usbutils/commit/da155d965a34b5c5770dc30fa52eb7ef405f3a30] | ||
| 16 | |||
| 17 | Signed-off-by: Teresa Remmet <t.remmet@phytec.de> | ||
| 18 | --- | ||
| 19 | usb-devices | 2 +- | ||
| 20 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 21 | |||
| 22 | diff --git a/usb-devices b/usb-devices | ||
| 23 | index 5f60ad5a1ed0..51f48b4ad628 100755 | ||
| 24 | --- a/usb-devices | ||
| 25 | +++ b/usb-devices | ||
| 26 | @@ -192,7 +192,7 @@ if [ ! -d /sys/bus ]; then | ||
| 27 | exit 1 | ||
| 28 | fi | ||
| 29 | |||
| 30 | -for device in $(find /sys/bus/usb/devices -name 'usb*' -printf '%f\n' | sort -V) | ||
| 31 | +for device in $(find /sys/bus/usb/devices -name 'usb*' | sed -E 's#^.*/##g' | sort -V) | ||
| 32 | do | ||
| 33 | print_device "/sys/bus/usb/devices/$device" 0 0 0 | ||
| 34 | done | ||
| 35 | -- | ||
| 36 | 2.34.1 | ||
| 37 | |||
diff --git a/meta/recipes-bsp/usbutils/usbutils/0001-usbutils.pc.in-Fix-Cflags-entry.patch b/meta/recipes-bsp/usbutils/usbutils/0001-usbutils.pc.in-Fix-Cflags-entry.patch deleted file mode 100644 index 039dd5cd72..0000000000 --- a/meta/recipes-bsp/usbutils/usbutils/0001-usbutils.pc.in-Fix-Cflags-entry.patch +++ /dev/null | |||
| @@ -1,34 +0,0 @@ | |||
| 1 | From f558919e858453a31313a3df35906de2e036940c Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Fabio Estevam <festevam@denx.de> | ||
| 3 | Date: Thu, 4 Jan 2024 03:32:11 +0100 | ||
| 4 | Subject: [PATCH] usbutils.pc.in: Fix Cflags entry | ||
| 5 | |||
| 6 | When updating the usbutils version in OpenEmbedded from 015 to 017, | ||
| 7 | the following QA error is seen: | ||
| 8 | |||
| 9 | QA Issue: File /usr/lib/pkgconfig/usbutils.pc in package usbutils-dev contains reference to TMPDIR [buildpaths] | ||
| 10 | |||
| 11 | As this causes reproducibility problem due to the host PC path being | ||
| 12 | leaked, it is treated as error. | ||
| 13 | |||
| 14 | Fix it by using the standard Cflags entry. | ||
| 15 | |||
| 16 | Upstream-Status: Submitted [https://github.com/gregkh/usbutils/pull/184/commits/3b3e5e1ebea7060bfa118d25a91b816dfa176b31] | ||
| 17 | Signed-off-by: Fabio Estevam <festevam@denx.de> | ||
| 18 | --- | ||
| 19 | usbutils.pc.in | 2 +- | ||
| 20 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 21 | |||
| 22 | diff --git a/usbutils.pc.in b/usbutils.pc.in | ||
| 23 | index e69778c3195c..0aa0005de951 100644 | ||
| 24 | --- a/usbutils.pc.in | ||
| 25 | +++ b/usbutils.pc.in | ||
| 26 | @@ -15,4 +15,4 @@ Requires: libusb-1.0 >= 1.0.14 libudev >= 196 | ||
| 27 | Conflicts: | ||
| 28 | Libs: -L${libdir} | ||
| 29 | Libs.private: @LIBUSB_LIBS@ @UDEV_LIBS@ | ||
| 30 | -Cflags: @CFLAGS@ @LIBUSB_CFLAGS@ @UDEV_CFLAGS@ | ||
| 31 | +Cflags: -I${includedir} | ||
| 32 | -- | ||
| 33 | 2.34.1 | ||
| 34 | |||
diff --git a/meta/recipes-bsp/usbutils/usbutils_017.bb b/meta/recipes-bsp/usbutils/usbutils_018.bb index 83d5c7287d..b96a1b4f19 100644 --- a/meta/recipes-bsp/usbutils/usbutils_017.bb +++ b/meta/recipes-bsp/usbutils/usbutils_018.bb | |||
| @@ -3,21 +3,21 @@ DESCRIPTION = "Contains the lsusb utility for inspecting the devices connected t | |||
| 3 | HOMEPAGE = "http://www.linux-usb.org" | 3 | HOMEPAGE = "http://www.linux-usb.org" |
| 4 | SECTION = "base" | 4 | SECTION = "base" |
| 5 | 5 | ||
| 6 | LICENSE = "GPL-2.0-or-later & (GPL-2.0-only | GPL-3.0-only)" | 6 | LICENSE = "GPL-2.0-or-later & (GPL-2.0-only | GPL-3.0-only) & CC0-1.0 & LGPL-2.1-or-later & MIT" |
| 7 | # License files went missing in 010, when 011 is released add LICENSES/* back | 7 | LIC_FILES_CHKSUM = "file://LICENSES/CC0-1.0.txt;md5=cf1af55fc6f5b9a23e12086005298dcd \ |
| 8 | LIC_FILES_CHKSUM = "file://lsusb.c;endline=1;md5=7226e442a172bcf25807246d7ef1eba1 \ | 8 | file://LICENSES/GPL-2.0-only.txt;md5=c89d4ad08368966d8df5a90ea96bebe4 \ |
| 9 | file://lsusb.py.in;beginline=2;endline=2;md5=c443ada211d701156e42ea36d41625b3 \ | 9 | file://LICENSES/GPL-2.0-or-later.txt;md5=c89d4ad08368966d8df5a90ea96bebe4 \ |
| 10 | " | 10 | file://LICENSES/GPL-3.0-only.txt;md5=050f496cfea7876fc13cdea643e041e0 \ |
| 11 | 11 | file://LICENSES/LGPL-2.1-or-later.txt;md5=8c6e7513c570546f65ae570dae278c17 \ | |
| 12 | file://LICENSES/MIT.txt;md5=e8f57dd048e186199433be2c41bd3d6d \ | ||
| 13 | " | ||
| 12 | DEPENDS = "libusb1 virtual/libiconv udev" | 14 | DEPENDS = "libusb1 virtual/libiconv udev" |
| 13 | 15 | ||
| 14 | SRC_URI = "${KERNELORG_MIRROR}/linux/utils/usb/usbutils/usbutils-${PV}.tar.gz \ | 16 | SRC_URI = "${KERNELORG_MIRROR}/linux/utils/usb/usbutils/usbutils-${PV}.tar.gz \ |
| 15 | file://0001-usbutils.pc.in-Fix-Cflags-entry.patch \ | ||
| 16 | file://0001-usb-devices-Fix-usb-devices-with-busybox.patch \ | ||
| 17 | " | 17 | " |
| 18 | SRC_URI[sha256sum] = "f704c4cb78a060db88b43aac6ebfd3d93c2c5cf1d6dd0e42936faaf00814ab00" | 18 | SRC_URI[sha256sum] = "0048d2d8518fb0cc7c0516e16e52af023e52b55ddb3b2068a77041b5ef285768" |
| 19 | 19 | ||
| 20 | inherit autotools pkgconfig update-alternatives | 20 | inherit meson pkgconfig update-alternatives |
| 21 | 21 | ||
| 22 | ALTERNATIVE:${PN} = "lsusb" | 22 | ALTERNATIVE:${PN} = "lsusb" |
| 23 | ALTERNATIVE_PRIORITY = "100" | 23 | ALTERNATIVE_PRIORITY = "100" |
