Skip to contentSkip to conversation

usbguard: Remove pegtl from DEPENDS

PATCH New Alex Kiernan 1 participant 2 messages Jan 5, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 usbguard: Remove pegtl from DEPENDS

Using DEPENDS = "pegtl" with --with-bundled-pegtl doesn't make sense, so drop the DEPENDS.

Also add github-releases checking for newer versions.

Drop redundant setting of S to the default.

---

 meta-oe/recipes-security/usbguard/usbguard_1.1.1.bb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
meta-oe/recipes-security/usbguard/usbguard_1.1.1.bb +3 -3
index 8df78ec81799..2e0934931de2 100644
@@ -16,11 +16,11 @@ SRC_URI = "https://github.com/USBGuard/usbguard/releases/download/${BPN}-${PV}/$
 
 SRC_URI[sha256sum] = "460ebfb4ffc5609739a202a3a1d9fda1c30de033b634845b8baa136352bfb432"
 
-inherit autotools-brokensep bash-completion pkgconfig systemd
+inherit autotools-brokensep bash-completion pkgconfig systemd github-releases
 
-DEPENDS = "glib-2.0-native libcap-ng libqb libxml2-native libxslt-native pegtl protobuf protobuf-native xmlto-native"
+DEPENDS = "glib-2.0-native libcap-ng libqb libxml2-native libxslt-native protobuf protobuf-native xmlto-native"
 
-S = "${WORKDIR}/${BPN}-${PV}"
+UPSTREAM_CHECK_REGEX = "releases/tag/usbguard-(?P<pver>\d+(\.\d+)+)"
 
 EXTRA_OECONF += "\
     --with-bundled-catch \
Signature · 1 line
2.39.0
#1 lore raw

PATCH 2/2 usbguard: Upgrade 1.1.1 -> 1.1.2

---

 .../usbguard/{usbguard_1.1.1.bb => usbguard_1.1.2.bb}           | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-oe/recipes-security/usbguard/{usbguard_1.1.1.bb => usbguard_1.1.2.bb} (97%)
meta-oe/recipes-security/usbguard/usbguard_1.1.2.bb renamed from meta-oe/recipes-security/usbguard/usbguard_1.1.1.bb +1 -1
similarity index 97%
rename from meta-oe/recipes-security/usbguard/usbguard_1.1.1.bb
rename to meta-oe/recipes-security/usbguard/usbguard_1.1.2.bb
index 2e0934931de2..e1e087a6d01e 100644
@@ -14,7 +14,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263"
 SRC_URI = "https://github.com/USBGuard/usbguard/releases/download/${BPN}-${PV}/${BPN}-${PV}.tar.gz \
     file://0001-Add-and-use-pkgconfig-instead-of-libgcrypt-config.patch"
 
-SRC_URI[sha256sum] = "460ebfb4ffc5609739a202a3a1d9fda1c30de033b634845b8baa136352bfb432"
+SRC_URI[sha256sum] = "dcf5c90f3f93030e04df1baeb8d388b678c40dd48b135ea12a7be7dee8944934"
 
 inherit autotools-brokensep bash-completion pkgconfig systemd github-releases
 
Signature · 1 line
2.39.0