pegtl: Initial recipe
PATCH v2 1/2 pegtl: Initial recipe
Introduce the Parsing Expression Grammar Template Library (PEGTL)
a zero-dependency C++ header-only parser combinator library for creating parsers according to the Parsing Expression Grammar (PEG).
--- meta-oe/recipes-extended/pegtl/pegtl_2.1.4.bb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 meta-oe/recipes-extended/pegtl/pegtl_2.1.4.bb
meta-oe/recipes-extended/pegtl/pegtl_2.1.4.bb new file +12 -0
@@ -0,0 +1,12 @@ +DESCRIPTION="header-only library for creating parsers according to Parsing Expression Grammar" +HOMEPAGE="https://github.com/taocpp/PEGTL" +LICENSE="MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=80cb066ab204c7fe022f1cfe0c2c6818" + +SRC_URI="https://github.com/taocpp/PEGTL/archive/${PV}.tar.gz" +SRC_URI[md5sum] = "fe96a704913523763642a2c4c4618091" +SRC_URI[sha256sum] = "5699558ce06e8fad0530143199eeaefd29128fb4584879975c87947c8ad0395f" + +inherit cmake + +S="${WORKDIR}/PEGTL-${PV}"
Signature · 1 line
2.17.1
PATCH v2 2/2 usbguard: Initial recipe
Introduce the USBGuard software framework that helps to protect against rogue USB devices (a.k.a. BadUSB) by implementing basic whitelisting and blacklisting capabilities based on device attributes.
--- .../usbguard/usbguard_0.7.4.bb | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 meta-oe/recipes-security/usbguard/usbguard_0.7.4.bb
meta-oe/recipes-security/usbguard/usbguard_0.7.4.bb new file +37 -0
@@ -0,0 +1,37 @@ +DESCRIPTION="USBGuard framework helps to protect against BadUSB." +HOMEPAGE="https://github.com/dkopecek/usbguard" +LICENSE="GPLv2" +LIC_FILES_CHKSUM = "file://LICENSE;md5=8264535c0c4e9c6c335635c4026a8022" + +SRC_URI="https://github.com/USBGuard/usbguard/archive/${BP}.tar.gz" +SRC_URI[md5sum] = "ddaa9ae884200c861ad946f34dfd5ab9" +SRC_URI[sha256sum] = "d37886508583565aae0df6a110b11524c59b39e0deb25ee49fc34274e4784f55" + +inherit autotools pkgconfig systemd bash-completion + +S= "${WORKDIR}/${BPN}-${BP}" + +DEPENDS = "protobuf-native libxml2-native libxslt-native xmlto-native glib-2.0-native \ + dbus dbus-glib libqb libseccomp libcap-ng libgcrypt libsodium protobuf pegtl" + +EXTRA_OECONF += "--with-bundled-catch" + +PACKAGECONFIG ??= "libsodium \ + ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \ + ${@bb.utils.filter('DISTRO_FEATURES', 'polkit', d)}" + +PACKAGECONFIG[systemd] = "--enable-systemd,--disable-systemd" +PACKAGECONFIG[libsodium] = "--with-crypto-library=sodium" +PACKAGECONFIG[libgcrypt] = "--with-crypto-library=gcrypt" +PACKAGECONFIG[polkit] = "--with-polkit,--without-polkit" +PACKAGECONFIG[dbus] = "--with-dbus,--without-dbus" + +SYSTEMD_SERVICE_${PN} = "${PN}.service" +SYSTEMD_PACKAGES += "${PN}" + + +do_install_append(){ + + sed -i 's|/var/log/usbguard/usbguard-audit.log|/var/log/usbguard-audit.log|g' \ + ${D}${sysconfdir}/usbguard/usbguard-daemon.conf +}
Signature · 1 line
2.17.1
Re: [meta-oe][PATCH v2 2/2] usbguard: Initial recipe
it seems to be using recipes from other layers see
ERROR: Nothing PROVIDES 'libseccomp' (but /mnt/a/yoe/sources/meta-openembedded/meta-oe/recipes-security/usbguard/usbguard_0.7.4.bb DEPENDS on or otherwise requires it). Close matches:
libcomps
ERROR: Nothing RPROVIDES 'usbguard-dev' (but /mnt/a/yoe/sources/meta-openembedded/meta-oe/recipes-security/usbguard/usbguard_0.7.4.bb RDEPENDS on or otherwise requires it)
No eligible RPROVIDERs exist for 'usbguard-dev'
NOTE: Runtime target 'usbguard-dev' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['usbguard-dev']
ERROR: Nothing RPROVIDES 'usbguard' (but /mnt/a/yoe/sources/meta-openembedded/meta-oe/recipes-security/usbguard/usbguard_0.7.4.bb RDEPENDS on or otherwise requires it)
No eligible RPROVIDERs exist for 'usbguard'
NOTE: Runtime target 'usbguard' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['usbguard']
I would prefer it to be a packageconfig and disabled by default so it can build without libseccomp
Quoted 59 lines · Ayoub Zaki
Introduce the USBGuard software framework that helps to protect against rogue USB devices (a.k.a. BadUSB) by implementing basic whitelisting and blacklisting capabilities based on device attributes.
--- .../usbguard/usbguard_0.7.4.bb | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 meta-oe/recipes-security/usbguard/usbguard_0.7.4.bbmeta-oe/recipes-security/usbguard/usbguard_0.7.4.bb new file +37
-1@@ -0,0 +1,37 @@ +DESCRIPTION="USBGuard framework helps to protect against BadUSB." +HOMEPAGE="https://github.com/dkopecek/usbguard" +LICENSE="GPLv2" +LIC_FILES_CHKSUM = "file://LICENSE;md5=8264535c0c4e9c6c335635c4026a8022" + +SRC_URI="https://github.com/USBGuard/usbguard/archive/${BP}.tar.gz" +SRC_URI[md5sum] = "ddaa9ae884200c861ad946f34dfd5ab9" +SRC_URI[sha256sum] = "d37886508583565aae0df6a110b11524c59b39e0deb25ee49fc34274e4784f55" + +inherit autotools pkgconfig systemd bash-completion + +S= "${WORKDIR}/${BPN}-${BP}" + +DEPENDS = "protobuf-native libxml2-native libxslt-native xmlto-native glib-2.0-native \ + dbus dbus-glib libqb libseccomp libcap-ng libgcrypt libsodium protobuf pegtl" + +EXTRA_OECONF += "--with-bundled-catch" + +PACKAGECONFIG ??= "libsodium \ + ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \ + ${@bb.utils.filter('DISTRO_FEATURES', 'polkit', d)}" + +PACKAGECONFIG[systemd] = "--enable-systemd,--disable-systemd" +PACKAGECONFIG[libsodium] = "--with-crypto-library=sodium" +PACKAGECONFIG[libgcrypt] = "--with-crypto-library=gcrypt" +PACKAGECONFIG[polkit] = "--with-polkit,--without-polkit" +PACKAGECONFIG[dbus] = "--with-dbus,--without-dbus" + +SYSTEMD_SERVICE_${PN} = "${PN}.service" +SYSTEMD_PACKAGES += "${PN}" + + +do_install_append(){ + + sed -i 's|/var/log/usbguard/usbguard-audit.log|/var/log/usbguard-audit.log|g' \ + ${D}${sysconfdir}/usbguard/usbguard-daemon.conf +} --2.17.1
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Re: [meta-oe][PATCH v2 2/2] usbguard: Initial recipe
Hi Khem,
Quoted 19 lines · Khem Raj
it seems to be using recipes from other layers see
ERROR: Nothing PROVIDES 'libseccomp' (but
/mnt/a/yoe/sources/meta-openembedded/meta-oe/recipes-security/usbguard/usbguard_0.7.4.bbDEPENDS on or otherwise requires it). Close matches:
libcomps
ERROR: Nothing RPROVIDES 'usbguard-dev' (but/mnt/a/yoe/sources/meta-openembedded/meta-oe/recipes-security/usbguard/usbguard_0.7.4.bbRDEPENDS on or otherwise requires it)
No eligible RPROVIDERs exist for 'usbguard-dev'
NOTE: Runtime target 'usbguard-dev' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['usbguard-dev']
ERROR: Nothing RPROVIDES 'usbguard' (but/mnt/a/yoe/sources/meta-openembedded/meta-oe/recipes-security/usbguard/usbguard_0.7.4.bbRDEPENDS on or otherwise requires it)
No eligible RPROVIDERs exist for 'usbguard'
NOTE: Runtime target 'usbguard' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['usbguard']
Quoted 2 lines
I would prefer it to be a packageconfig and disabled by default so it can build without libseccomp
Right libseccomp is provided by meta-security layer, it is not a required dependency, I will remove it and send a new patch.
Quoted 55 lines · Ayoub Zaki
Quoted 53 lines
Introduce the USBGuard software framework that helps to protect against rogue USB devices (a.k.a. BadUSB) by implementing basic whitelisting and blacklisting capabilities based on device attributes.
--- .../usbguard/usbguard_0.7.4.bb | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+)create mode 100644 meta-oe/recipes-security/usbguard/usbguard_0.7.4.bb
meta-oe/recipes-security/usbguard/usbguard_0.7.4.bb new file +37
-1@@ -0,0 +1,37 @@ +DESCRIPTION="USBGuard framework helps to protect against BadUSB." +HOMEPAGE="https://github.com/dkopecek/usbguard" +LICENSE="GPLv2" +LIC_FILES_CHKSUM = "file://LICENSE;md5=8264535c0c4e9c6c335635c4026a8022" + +SRC_URI="https://github.com/USBGuard/usbguard/archive/${BP}.tar.gz" +SRC_URI[md5sum] = "ddaa9ae884200c861ad946f34dfd5ab9" +SRC_URI[sha256sum] = "d37886508583565aae0df6a110b11524c59b39e0deb25ee49fc34274e4784f55" + +inherit autotools pkgconfig systemd bash-completion + +S= "${WORKDIR}/${BPN}-${BP}" + +DEPENDS = "protobuf-native libxml2-native libxslt-native xmlto-native glib-2.0-native \ + dbus dbus-glib libqb libseccomp libcap-ng libgcrypt libsodium protobuf pegtl" + +EXTRA_OECONF += "--with-bundled-catch" + +PACKAGECONFIG ??= "libsodium \ + ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \ + ${@bb.utils.filter('DISTRO_FEATURES', 'polkit', d)}" + +PACKAGECONFIG[systemd] = "--enable-systemd,--disable-systemd" +PACKAGECONFIG[libsodium] = "--with-crypto-library=sodium" +PACKAGECONFIG[libgcrypt] = "--with-crypto-library=gcrypt" +PACKAGECONFIG[polkit] = "--with-polkit,--without-polkit" +PACKAGECONFIG[dbus] = "--with-dbus,--without-dbus" + +SYSTEMD_SERVICE_${PN} = "${PN}.service" +SYSTEMD_PACKAGES += "${PN}" + + +do_install_append(){ + + sed -i 's|/var/log/usbguard/usbguard-audit.log|/var/log/usbguard-audit.log|g' \ + ${D}${sysconfdir}/usbguard/usbguard-daemon.conf +} --2.17.1
Quoted 5 lines
Quoted 5 lines
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Mit freundlichen Grüßen / Kind regards
Signature · 10 lines
Ayoub Zaki Embedded Systems Consultant Vaihinger Straße 2/1 D-71634 Ludwigsburg Mobile : +4917662901545 Email : [email protected] Homepage : https://embexus.com VAT No. : DE313902634
Quoted 15 lines · Ayoub Zaki
Introduce the Parsing Expression Grammar Template Library (PEGTL)
a zero-dependency C++ header-only parser combinator library for creating parsers according to the Parsing Expression Grammar (PEG).--- meta-oe/recipes-extended/pegtl/pegtl_2.1.4.bb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 meta-oe/recipes-extended/pegtl/pegtl_2.1.4.bbmeta-oe/recipes-extended/pegtl/pegtl_2.1.4.bb new file +0
-0
meta-oe/recipes-extended/pegtl/pegtl_2.1.4.bb line 6
Quoted 6 lines
meta-oe/recipes-extended/pegtl/pegtl_2.1.4.bb new file +6
-0@@ -0,0 +1,12 @@ +DESCRIPTION="header-only library for creating parsers according to Parsing Expression Grammar" +HOMEPAGE="https://github.com/taocpp/PEGTL" +LICENSE="MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=80cb066ab204c7fe022f1cfe0c2c6818" + +SRC_URI="https://github.com/taocpp/PEGTL/archive/${PV}.tar.gz"
lets not use archive from github instead use git fetcher itslelf
pegtl-2.1.4: https://github.com/taocpp/PEGTL/archive/2.1.4.tar.gz:SRC_URI uses unstable GitHub archives [src-uri-bad]
secondly it also fails to build with clang/libc++, not going to block on that but it will be good if there is a fix for it
https://errors.yoctoproject.org/Errors/Details/253679/
Quoted 14 lines
meta-oe/recipes-extended/pegtl/pegtl_2.1.4.bb new file +6
-1+SRC_URI[md5sum] = "fe96a704913523763642a2c4c4618091" +SRC_URI[sha256sum] = "5699558ce06e8fad0530143199eeaefd29128fb4584879975c87947c8ad0395f" + +inherit cmake + +S="${WORKDIR}/PEGTL-${PV}" --2.17.1
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Hi Khem,
Quoted 23 lines · Khem Raj
Quoted 14 lines · Ayoub Zaki
Introduce the Parsing Expression Grammar Template Library (PEGTL)
a zero-dependency C++ header-only parser combinator library for creating parsers according to the Parsing Expression Grammar (PEG).--- meta-oe/recipes-extended/pegtl/pegtl_2.1.4.bb | 12 ++++++++++++ 1 file changed, 12 insertions(+)create mode 100644 meta-oe/recipes-extended/pegtl/pegtl_2.1.4.bb
meta-oe/recipes-extended/pegtl/pegtl_2.1.4.bb new file +0
-0meta-oe/recipes-extended/pegtl/pegtl_2.1.4.bb line 6
Quoted 6 lines
meta-oe/recipes-extended/pegtl/pegtl_2.1.4.bb new file +6
-0@@ -0,0 +1,12 @@ +DESCRIPTION="header-only library for creating parsers according to Parsing Expression Grammar" +HOMEPAGE="https://github.com/taocpp/PEGTL" +LICENSE="MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=80cb066ab204c7fe022f1cfe0c2c6818" + +SRC_URI="https://github.com/taocpp/PEGTL/archive/${PV}.tar.gz"lets not use archive from github instead use git fetcher itslelf
Quoted 2 lines
pegtl-2.1.4: https://github.com/taocpp/PEGTL/archive/2.1.4.tar.gz:
SRC_URIuses unstable GitHub archives [src-uri-bad]
you are right, I'll change that to use git fetcher.
I will send new patch.
Thanks !
Quoted 5 lines
secondly it also fails to build with clang/libc++, not going to block on that but it will be good if there is a fix for it
https://errors.yoctoproject.org/Errors/Details/253679/
It does not seems an easy fix for build using clang/c++
Quoted 10 lines
Quoted 10 lines
meta-oe/recipes-extended/pegtl/pegtl_2.1.4.bb new file +6
-1+SRC_URI[md5sum] = "fe96a704913523763642a2c4c4618091" +SRC_URI[sha256sum] = "5699558ce06e8fad0530143199eeaefd29128fb4584879975c87947c8ad0395f" + +inherit cmake + +S="${WORKDIR}/PEGTL-${PV}" --2.17.1
Quoted 5 lines
Quoted 5 lines
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Mit freundlichen Grüßen / Kind regards
Signature · 10 lines
Ayoub Zaki Embedded Systems Consultant Vaihinger Straße 2/1 D-71634 Ludwigsburg Mobile : +4917662901545 Email : [email protected] Homepage : https://embexus.com VAT No. : DE313902634