Update and cleanup sysrepo packages
cover Update and cleanup sysrepo packages
Update all of the sysrepo related packages to their latest versions and clean them up. The recipes were all moved under recipes-extended instead of recipes-sysrepo, and various things caught by yocto-check-layer were fixed.
Denys Dmytriyenko (8):
sysrepo: move and clean up
sysrepo-plugins-common: move and clean up
libyang: move bbappend
libnetconf2: move and clean up
libredblack: move and clean up
nw-configurator: move and clean up
tsn-yang-models: move and clean up
netopeer2-server: move and clean up
Ryan Eatmon (5):
libnetconf2: Wrap libpam dependency
libyang: Remove recipe in favor of newer upstream version
libyang: Add BBCLASSEXTEND for native
sysrepo: Update to version 3.3.10
netopeer2-server: Update to version 2.2.35
.../sysrepo/libnetconf2_git.bb | 25 +++++++++
.../sysrepo}/libredblack_git.bb | 6 +--
.../sysrepo/libyang_%.bbappend | 1 +
.../0001-Add-EST-Yang-Models.patch | 10 ++--
.../netopeer2-server/netopeer2-server | 0
.../netopeer2-serverd.service | 0
.../sysrepo/netopeer2-server_git.bb | 53 +++++++++++++++++++
.../sysrepo}/nw-configurator.bb | 6 +--
.../nw-configurator}/nw-configurator.c | 0
.../0001-so-version.patch | 23 ++++++++
.../sysrepo/sysrepo-plugins-common_git.bb | 17 ++++++
...-Hardcode-correct-path-to-tar-binary.patch | 4 +-
.../sysrepo/sysrepo/sysrepo | 0
.../sysrepo/sysrepo/sysrepod.service | 0
.../sysrepo/sysrepo_git.bb | 46 ++++++++--------
.../sysrepo}/tsn-yang-models_git.bb | 2 -
.../libnetconf2/libnetconf2_git.bb | 24 ---------
.../recipes-sysrepo/libyang/libyang_git.bb | 23 --------
.../netopeer2-server/netopeer2-server_git.bb | 47 ----------------
.../netopeer2-server_git.bbappend | 5 --
.../0001-so-version.patch | 15 ------
.../sysrepo-plugins-common_git.bb | 26 ---------
22 files changed, 154 insertions(+), 179 deletions(-)
create mode 100644 meta-arago-extras/recipes-extended/sysrepo/libnetconf2_git.bb
rename meta-arago-extras/{recipes-sysrepo/libredblack => recipes-extended/sysrepo}/libredblack_git.bb (62%)
create mode 100644 meta-arago-extras/recipes-extended/sysrepo/libyang_%.bbappend
rename meta-arago-extras/{recipes-sysrepo/netopeer2-server => recipes-extended/sysrepo}/netopeer2-server/0001-Add-EST-Yang-Models.patch (84%)
rename meta-arago-extras/{recipes-sysrepo/netopeer2-server => recipes-extended/sysrepo}/netopeer2-server/netopeer2-server (100%)
rename meta-arago-extras/{recipes-sysrepo/netopeer2-server => recipes-extended/sysrepo}/netopeer2-server/netopeer2-serverd.service (100%)
create mode 100644 meta-arago-extras/recipes-extended/sysrepo/netopeer2-server_git.bb
rename meta-arago-extras/{recipes-sysrepo/nw-configurator => recipes-extended/sysrepo}/nw-configurator.bb (74%)
rename meta-arago-extras/{recipes-sysrepo/nw-configurator/files => recipes-extended/sysrepo/nw-configurator}/nw-configurator.c (100%)
create mode 100644 meta-arago-extras/recipes-extended/sysrepo/sysrepo-plugins-common/0001-so-version.patch
create mode 100644 meta-arago-extras/recipes-extended/sysrepo/sysrepo-plugins-common_git.bb
rename meta-arago-extras/{recipes-sysrepo => recipes-extended}/sysrepo/sysrepo/0001-Hardcode-correct-path-to-tar-binary.patch (88%)
rename meta-arago-extras/{recipes-sysrepo => recipes-extended}/sysrepo/sysrepo/sysrepo (100%)
rename meta-arago-extras/{recipes-sysrepo => recipes-extended}/sysrepo/sysrepo/sysrepod.service (100%)
rename meta-arago-extras/{recipes-sysrepo => recipes-extended}/sysrepo/sysrepo_git.bb (50%)
rename meta-arago-extras/{recipes-sysrepo/tsn-yang-models => recipes-extended/sysrepo}/tsn-yang-models_git.bb (96%)
delete mode 100644 meta-arago-extras/recipes-sysrepo/libnetconf2/libnetconf2_git.bb
delete mode 100644 meta-arago-extras/recipes-sysrepo/libyang/libyang_git.bb
delete mode 100644 meta-arago-extras/recipes-sysrepo/netopeer2-server/netopeer2-server_git.bb
delete mode 100644 meta-arago-extras/recipes-sysrepo/netopeer2-server/netopeer2-server_git.bbappend
delete mode 100644 meta-arago-extras/recipes-sysrepo/sysrepo-plugins-common/0001-so-version.patch
delete mode 100644 meta-arago-extras/recipes-sysrepo/sysrepo-plugins-common/sysrepo-plugins-common_git.bbSignature · 1 line
2.17.1
PATCH 1/13 libnetconf2: Wrap libpam dependency
Check the DISTRO_FEATURES to make sure that pam is turned on before depending on libpam. The libpam recipe is gated behind this check and this recipe will fail if you do not have pam enabled.
--- .../recipes-sysrepo/libnetconf2/libnetconf2_git.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
meta-arago-extras/recipes-sysrepo/libnetconf2/libnetconf2_git.bb +3 -1
@@ -11,7 +11,9 @@ SRCREV = "91cd6d75722c65de5c005d908f6d645b48cee89b" S = "${WORKDIR}/git" -DEPENDS = "libssh openssl libyang libxcrypt libpam" +DEPENDS = "libssh openssl libyang libxcrypt \ + ${@bb.utils.contains('DISTRO_FEATURES','pam','libpam','',d)} \ +" FILES:${PN} += "${datadir}/yang/modules/libnetconf2/*"
Signature · 1 line
2.17.1
PATCH 2/13 libyang: Remove recipe in favor of newer upstream version
In reply to Ryan Eatmonmeta-openembedded has a newer version, so we no longer need to carry this in meta-arago-extras.
--- .../recipes-sysrepo/libyang/libyang_git.bb | 23 ------------------- 1 file changed, 23 deletions(-) delete mode 100644 meta-arago-extras/recipes-sysrepo/libyang/libyang_git.bb
meta-arago-extras/recipes-sysrepo/libyang/libyang_git.bb deleted +0 -23
@@ -1,23 +0,0 @@ -SUMMARY = "YANG data modelling language parser and toolkit" -DESCRIPTION = "libyang is YANG data modelling language parser and toolkit written (and providing API) in C. The library is used e.g. in libnetconf2, Netopeer2 or sysrepo projects." -SECTION = "libs" -LICENSE = "BSD-3-Clause" -LIC_FILES_CHKSUM = "file://LICENSE;md5=f3916d7d8d42a6508d0ea418cfff10ad" - -SRC_URI = "git://github.com/CESNET/libyang.git;protocol=https;branch=devel" - -PV = "2.1.77+git" -SRCREV = "a804113c9bbac3e36c53221be469c1ca5af5b435" - -S = "${WORKDIR}/git" - -DEPENDS = "libpcre2" - -FILES:${PN} += "${datadir}/yang/modules/libyang/*" - -inherit cmake pkgconfig - -# Specify any options you want to pass to cmake using EXTRA_OECMAKE: -EXTRA_OECMAKE = " -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_BUILD_TYPE:String=Release " - -BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.17.1
PATCH 3/13 libyang: Add BBCLASSEXTEND for native
In reply to Ryan EatmonWe need to add BBCLASSEXTEND for native so that we can build sysrepo-native for the netopeer2-server install.
--- .../recipes-sysrepo/libnetconf2/libnetconf2_git.bb | 6 +++--- .../recipes-sysrepo/libyang/libyang_%.bbappend | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 meta-arago-extras/recipes-sysrepo/libyang/libyang_%.bbappend
meta-arago-extras/recipes-sysrepo/libnetconf2/libnetconf2_git.bb +3 -3
@@ -6,12 +6,12 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=08a5578c9bab06fb2ae84284630b973f" SRC_URI = "git://github.com/CESNET/libnetconf2.git;protocol=https;branch=devel" -PV = "2.1.34+git" -SRCREV = "91cd6d75722c65de5c005d908f6d645b48cee89b" +PV = "3.5.5+git" +SRCREV = "4c7858c9c41f1ac04d2b15c032291e335fc0f5f5" S = "${WORKDIR}/git" -DEPENDS = "libssh openssl libyang libxcrypt \ +DEPENDS = "libssh openssl libyang libxcrypt mbedtls curl \ ${@bb.utils.contains('DISTRO_FEATURES','pam','libpam','',d)} \ "
meta-arago-extras/recipes-sysrepo/libyang/libyang_%.bbappend new file +1 -0
@@ -0,0 +1 @@ +BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.17.1
Re: [meta-arago][master][PATCH 03/13] libyang: Add BBCLASSEXTEND for native
This patch is incorrect - it got extra stuff in it.
Quoted 39 lines · Ryan Eatmon via lists.yoctoproject.org
We need to add BBCLASSEXTEND for native so that we can build sysrepo-native for the netopeer2-server install.
Signed-off-by Ryan Eatmon <[email protected]>--- .../recipes-sysrepo/libnetconf2/libnetconf2_git.bb | 6 +++--- .../recipes-sysrepo/libyang/libyang_%.bbappend | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 meta-arago-extras/recipes-sysrepo/libyang/libyang_%.bbappendmeta-arago-extras/recipes-sysrepo/libnetconf2/libnetconf2_git.bb +3
-3@@ -6,12 +6,12 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=08a5578c9bab06fb2ae84284630b973f" SRC_URI = "git://github.com/CESNET/libnetconf2.git;protocol=https;branch=devel" -PV = "2.1.34+git" -SRCREV = "91cd6d75722c65de5c005d908f6d645b48cee89b" +PV = "3.5.5+git" +SRCREV = "4c7858c9c41f1ac04d2b15c032291e335fc0f5f5" S = "${WORKDIR}/git" -DEPENDS = "libssh openssl libyang libxcrypt \ +DEPENDS = "libssh openssl libyang libxcrypt mbedtls curl \ ${@bb.utils.contains('DISTRO_FEATURES','pam','libpam','',d)} \ "meta-arago-extras/recipes-sysrepo/libyang/libyang_%.bbappend new file +1
-0@@ -0,0 +1 @@ +BBCLASSEXTEND = "native nativesdk"Signature · 1 line
2.17.1
Re: [meta-arago][master][PATCH 03/13] libyang: Add BBCLASSEXTEND for native
Quoted 2 lines · Denys Dmytriyenko
This patch is incorrect - it got extra stuff in it.
Got to love rebasing... I'll fix it.
Quoted 40 lines · Ryan Eatmon via lists.yoctoproject.org
Quoted 39 lines
We need to add BBCLASSEXTEND for native so that we can build sysrepo-native for the netopeer2-server install.
Signed-off-by Ryan Eatmon <[email protected]>--- .../recipes-sysrepo/libnetconf2/libnetconf2_git.bb | 6 +++--- .../recipes-sysrepo/libyang/libyang_%.bbappend | 1 + 2 files changed, 4 insertions(+), 3 deletions(-)create mode 100644 meta-arago-extras/recipes-sysrepo/libyang/libyang_%.bbappend
meta-arago-extras/recipes-sysrepo/libnetconf2/libnetconf2_git.bb +3
-3@@ -6,12 +6,12 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=08a5578c9bab06fb2ae84284630b973f" SRC_URI = "git://github.com/CESNET/libnetconf2.git;protocol=https;branch=devel" -PV = "2.1.34+git" -SRCREV = "91cd6d75722c65de5c005d908f6d645b48cee89b" +PV = "3.5.5+git" +SRCREV = "4c7858c9c41f1ac04d2b15c032291e335fc0f5f5" S = "${WORKDIR}/git" -DEPENDS = "libssh openssl libyang libxcrypt \ +DEPENDS = "libssh openssl libyang libxcrypt mbedtls curl \ ${@bb.utils.contains('DISTRO_FEATURES','pam','libpam','',d)} \ "meta-arago-extras/recipes-sysrepo/libyang/libyang_%.bbappend new file +1
-0@@ -0,0 +1 @@ +BBCLASSEXTEND = "native nativesdk"Signature · 1 line
2.17.1
Signature · 3 lines
Ryan Eatmon [email protected] ----------------------------------------- Texas Instruments, Inc. - LCPD - MGTS
PATCH 4/13 sysrepo: Update to version 3.3.10
In reply to Ryan EatmonWith the update to libyang we need to move to a newer version of sysrepo.
--- ...-Hardcode-correct-path-to-tar-binary.patch | 4 ++-- .../recipes-sysrepo/sysrepo/sysrepo_git.bb | 23 +++++++++++-------- 2 files changed, 15 insertions(+), 12 deletions(-)
meta-arago-extras/recipes-sysrepo/sysrepo/sysrepo/0001-Hardcode-correct-path-to-tar-binary.patch +2 -2
@@ -17,8 +17,8 @@ diff --git a/CMakeLists.txt b/CMakeLists.txt index 22c95420..2ba1f44e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt -@@ -402,10 +402,7 @@ check_symbol_exists(mkstemps "stdlib.h" SR_HAVE_MKSTEMPS) - unset(CMAKE_REQUIRED_DEFINITIONS) +@@ -558,10 +558,7 @@ target_link_libraries(sysrepo ${CMAKE_THREAD_LIBS_INIT}) + set(CMAKE_REQUIRED_LIBRARIES pthread) # tar -find_program(TAR_BINARY "tar")
meta-arago-extras/recipes-sysrepo/sysrepo/sysrepo_git.bb +13 -10
@@ -4,21 +4,21 @@ DESCRIPTION = "" LICENSE = "BSD-3-Clause" LIC_FILES_CHKSUM = "file://LICENSE;md5=ef345f161efb68c3836e6f5648b2312f" -SRC_URI = "git://github.com/sysrepo/sysrepo.git;protocol=https;branch=devel \ +SRC_URI = "git://github.com/sysrepo/sysrepo.git;protocol=https;branch=master \ file://0001-Hardcode-correct-path-to-tar-binary.patch \ ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', \ 'file://sysrepo','', d)} \ ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', \ 'file://sysrepod.service','', d)}" -PV = "2.2.71+git" -SRCREV = "b828f0ab4693c613cc66efd053a146e05854d5c8" +PV = "3.3.10+git" +SRCREV = "ef93a1253cc97f13671759f6e7790cbf729a5ae9" S = "${WORKDIR}/git" DEPENDS = "libyang protobuf protobuf-c protobuf-c-native libredblack libev libnetconf2" -FILES:${PN} += "${datadir}/yang/* ${libdir}/sysrepo-plugind/*" +FILES:${PN} += "${datadir}/yang/* ${libdir}/sysrepo-plugind/* ${bindir}/*" inherit cmake pkgconfig python3native python3-dir inherit ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}
@@ -27,20 +27,18 @@ inherit ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)} # Specify any options you want to pass to cmake using EXTRA_OECMAKE: EXTRA_OECMAKE = " -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_BUILD_TYPE:String=Release -DBUILD_EXAMPLES:String=False -DENABLE_TESTS:String=False -DREPOSITORY_LOC:PATH=/etc/sysrepo -DCALL_TARGET_BINS_DIRECTLY=False -DGEN_LANGUAGE_BINDINGS:String=False " -BBCLASSEXTEND = "native nativesdk" - SYSTEMD_PACKAGES = "${PN}" SYSTEMD_SERVICE:${PN} = "sysrepod.service" SYSTEMD_AUTO_ENABLE:${PN} = "disable" RDEPENDS:${PN} += "tar" -do_install:append () { +do_install:append:class-target () { install -d ${D}${sysconfdir}/sysrepo/data/notifications install -d ${D}${sysconfdir}/sysrepo/yang - install -o root -g root ${S}/modules/ietf-netconf-notifications.yang ${D}${sysconfdir}/sysrepo/yang/[email protected] - install -o root -g root ${S}/modules/ietf-netconf-with-defaults.yang ${D}${sysconfdir}/sysrepo/yang/[email protected] - install -o root -g root ${S}/modules/ietf-netconf.yang ${D}${sysconfdir}/sysrepo/yang/[email protected] + install -o root -g root ${S}/modules/[email protected] ${D}${sysconfdir}/sysrepo/yang/[email protected] + install -o root -g root ${S}/modules/[email protected] ${D}${sysconfdir}/sysrepo/yang/[email protected] + install -o root -g root ${S}/modules/[email protected] ${D}${sysconfdir}/sysrepo/yang/[email protected] install -d ${D}${sysconfdir}/init.d if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then install -m 0775 ${UNPACKDIR}/sysrepo ${D}${sysconfdir}/init.d/
@@ -52,3 +50,8 @@ do_install:append () { install -m 0644 ${UNPACKDIR}/sysrepod.service ${D}${systemd_system_unitdir} fi } + +BBCLASSEXTEND = "native" + +SYSROOT_DIRS:append = " ${bindir}" +
Signature · 1 line
2.17.1
PATCH 5/13 netopeer2-server: Update to version 2.2.35
In reply to Ryan EatmonWith the update to a newer libyang, we need to move to a newer version of netopeer2-server.
--- .../netopeer2-server/0001-Add-EST-Yang-Models.patch | 10 +++++----- .../netopeer2-server/netopeer2-server_git.bb | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-)
meta-arago-extras/recipes-sysrepo/netopeer2-server/netopeer2-server/0001-Add-EST-Yang-Models.patch +5 -5
@@ -3,9 +3,9 @@ Upstream-Status: Inappropriate [arago specific] diff --git a/scripts/setup.sh b/scripts/setup.sh index 7bba711..4a98e66 100755 ---- a/scripts/setup.sh -+++ b/scripts/setup.sh -@@ -41,6 +41,12 @@ MODULES=( +--- a/scripts/common.sh ++++ b/scripts/common.sh +@@ -12,6 +12,12 @@ NP2_MODULES=( "[email protected]" "[email protected] -e encode-xml -e replay -e subtree -e xpath" "[email protected] -e on-change"
@@ -16,5 +16,5 @@ index 7bba711..4a98e66 100755 +"[email protected]" +"[email protected]" ) - - CMD_INSTALL= + + LN2_MODULES=(
meta-arago-extras/recipes-sysrepo/netopeer2-server/netopeer2-server_git.bb +4 -4
@@ -3,19 +3,19 @@ DESCRIPTION = "Netopeer2 is based on the new generation of the NETCONF and YANG LICENSE = "BSD-3-Clause" LIC_FILES_CHKSUM = "file://LICENSE;md5=41daedff0b24958b2eba4f9086d782e1" -SRC_URI = "git://github.com/CESNET/Netopeer2.git;protocol=https;branch=devel \ +SRC_URI = "git://github.com/CESNET/Netopeer2.git;protocol=https;branch=master \ ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', \ 'file://netopeer2-server', '', d)} \ ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', \ 'file://netopeer2-serverd.service', '', d)} \ " -PV = "2.1.59+git" -SRCREV = "b81788d9a81770313a0eb7f88d4224726b3d6e15" +PV = "2.2.35+git" +SRCREV = "6d1cb61ef3ce2274a91dc9cbc51318bcd0b54697" S = "${WORKDIR}/git" -DEPENDS = "libyang libnetconf2 sysrepo curl" +DEPENDS = "libyang libnetconf2 sysrepo systemd" RDEPENDS:${PN} += "bash curl" FILES:${PN} += "${datadir}/yang* ${datadir}/netopeer2/* ${libdir}/sysrepo-plugind/*"
Signature · 1 line
2.17.1
PATCH 6/13 sysrepo: move and clean up
In reply to Ryan EatmonFrom: Denys Dmytriyenko <[email protected]>
* Move into recipes-extended
* Shorten SUMMARY and don't empty DESCRIPTION
* Don't hardode /usr and /etc when passing to CMake
* No need to change SYSROOT_DIRS
---
...-Hardcode-correct-path-to-tar-binary.patch | 0
.../sysrepo/sysrepo/sysrepo | 0
.../sysrepo/sysrepo/sysrepod.service | 0
.../sysrepo/sysrepo_git.bb | 31 ++++++++++---------
4 files changed, 16 insertions(+), 15 deletions(-)
rename meta-arago-extras/{recipes-sysrepo => recipes-extended}/sysrepo/sysrepo/0001-Hardcode-correct-path-to-tar-binary.patch (100%)
rename meta-arago-extras/{recipes-sysrepo => recipes-extended}/sysrepo/sysrepo/sysrepo (100%)
rename meta-arago-extras/{recipes-sysrepo => recipes-extended}/sysrepo/sysrepo/sysrepod.service (100%)
rename meta-arago-extras/{recipes-sysrepo => recipes-extended}/sysrepo/sysrepo_git.bb (68%)meta-arago-extras/recipes-extended/sysrepo/sysrepo/0001-Hardcode-correct-path-to-tar-binary.patch renamed from meta-arago-extras/recipes-sysrepo/sysrepo/sysrepo/0001-Hardcode-correct-path-to-tar-binary.patch +0 -0
meta-arago-extras/recipes-extended/sysrepo/sysrepo/sysrepo renamed from meta-arago-extras/recipes-sysrepo/sysrepo/sysrepo/sysrepo +0 -0
meta-arago-extras/recipes-extended/sysrepo/sysrepo/sysrepod.service renamed from meta-arago-extras/recipes-sysrepo/sysrepo/sysrepo/sysrepod.service +0 -0
meta-arago-extras/recipes-extended/sysrepo/sysrepo_git.bb renamed from meta-arago-extras/recipes-sysrepo/sysrepo/sysrepo_git.bb +16 -15
@@ -1,15 +1,13 @@ -# Recipe created by recipetool -SUMMARY = "YANG-based configuration and operational state data store for Unix/Linux applications." -DESCRIPTION = "" +SUMMARY = "YANG-based configuration and operational state data store" LICENSE = "BSD-3-Clause" LIC_FILES_CHKSUM = "file://LICENSE;md5=ef345f161efb68c3836e6f5648b2312f" -SRC_URI = "git://github.com/sysrepo/sysrepo.git;protocol=https;branch=master \ - file://0001-Hardcode-correct-path-to-tar-binary.patch \ - ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', \ - 'file://sysrepo','', d)} \ - ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', \ - 'file://sysrepod.service','', d)}" +SRC_URI = " \ + git://github.com/sysrepo/sysrepo.git;protocol=https;branch=master \ + file://0001-Hardcode-correct-path-to-tar-binary.patch \ + ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'file://sysrepo','', d)} \ + ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'file://sysrepod.service','', d)} \ +" PV = "3.3.10+git" SRCREV = "ef93a1253cc97f13671759f6e7790cbf729a5ae9"
@@ -23,9 +21,15 @@ FILES:${PN} += "${datadir}/yang/* ${libdir}/sysrepo-plugind/* ${bindir}/*" inherit cmake pkgconfig python3native python3-dir inherit ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)} - -# Specify any options you want to pass to cmake using EXTRA_OECMAKE: -EXTRA_OECMAKE = " -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_BUILD_TYPE:String=Release -DBUILD_EXAMPLES:String=False -DENABLE_TESTS:String=False -DREPOSITORY_LOC:PATH=/etc/sysrepo -DCALL_TARGET_BINS_DIRECTLY=False -DGEN_LANGUAGE_BINDINGS:String=False " +EXTRA_OECMAKE = " \ + -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \ + -DCMAKE_BUILD_TYPE:String=Release \ + -DBUILD_EXAMPLES:String=False \ + -DENABLE_TESTS:String=False \ + -DREPOSITORY_LOC:PATH=${sysconfdir}/sysrepo \ + -DCALL_TARGET_BINS_DIRECTLY=False \ + -DGEN_LANGUAGE_BINDINGS:String=False \ +" SYSTEMD_PACKAGES = "${PN}" SYSTEMD_SERVICE:${PN} = "sysrepod.service"
@@ -52,6 +56,3 @@ do_install:append:class-target () { } BBCLASSEXTEND = "native" - -SYSROOT_DIRS:append = " ${bindir}" -
Signature · 1 line
2.17.1
PATCH 7/13 sysrepo-plugins-common: move and clean up
In reply to Ryan EatmonFrom: Denys Dmytriyenko <[email protected]>
* Move into recipes-extended
* Shorten SUMMARY and don't empty DESCRIPTION
* Move patch into correct dir, don't alter FILESEXTRAPATHS
* Update patch to remove fuzz
* Set PV to a numeric value
* Don't hardcode /usr when passing to CMake
* No need for empty do_install:append
--- .../0001-so-version.patch | 23 ++++++++++++++++ .../sysrepo/sysrepo-plugins-common_git.bb | 17 ++++++++++++ .../0001-so-version.patch | 15 ----------- .../sysrepo-plugins-common_git.bb | 26 ------------------- 4 files changed, 40 insertions(+), 41 deletions(-) create mode 100644 meta-arago-extras/recipes-extended/sysrepo/sysrepo-plugins-common/0001-so-version.patch create mode 100644 meta-arago-extras/recipes-extended/sysrepo/sysrepo-plugins-common_git.bb delete mode 100644 meta-arago-extras/recipes-sysrepo/sysrepo-plugins-common/0001-so-version.patch delete mode 100644 meta-arago-extras/recipes-sysrepo/sysrepo-plugins-common/sysrepo-plugins-common_git.bb
meta-arago-extras/recipes-extended/sysrepo/sysrepo-plugins-common/0001-so-version.patch new file +23 -0
@@ -0,0 +1,23 @@ +From 3e2db769c1579010cb83d90f4a63ed256ddda4b8 Mon Sep 17 00:00:00 2001 +From: Ravi Gunasekaran <[email protected]> +Date: Tue, 27 Jun 2023 17:20:59 +0000 +Subject: [PATCH] so version + +Upstream-Status: Inappropriate [arago specific] + +--- + CMakeLists.txt | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index dc4e5d4..5b04b51 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -37,6 +37,7 @@ include_directories(${LIBYANG_INCLUDE_DIRS}) + include_directories(${SYSREPO_INCLUDE_DIRS}) + + add_library(${PROJECT_NAME} SHARED ${SRPC_SOURCES}) ++set_target_properties(${PROJECT_NAME} PROPERTIES VERSION 1.0.0 SOVERSION 1) + + # project version + set_target_properties(${PROJECT_NAME}
meta-arago-extras/recipes-extended/sysrepo/sysrepo-plugins-common_git.bb new file +17 -0
@@ -0,0 +1,17 @@ +SUMMARY = "Common utilities/functionalities for sysrepo plugins" +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=f91d5dfaae99cc1943a8eca222cafa5c" + +SRC_URI = "gitsm://github.com/telekom/sysrepo-plugins-common.git;protocol=https;branch=devel" +SRC_URI += "file://0001-so-version.patch" + +PV = "0.1+git" +SRCREV = "20885de0d3bb95a05610fdb3a0f83d8f7c370fad" + +S = "${WORKDIR}/git" + +DEPENDS = "libyang sysrepo" + +inherit cmake pkgconfig + +EXTRA_OECMAKE = "-DCMAKE_INSTALL_PREFIX:PATH=${prefix}"
meta-arago-extras/recipes-sysrepo/sysrepo-plugins-common/0001-so-version.patch deleted +0 -15
@@ -1,15 +0,0 @@ - -Upstream-Status: Inappropriate [arago specific] - -diff --git a/CMakeLists.txt b/CMakeLists.txt -index fd64b80..910510d 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -23,6 +23,7 @@ include_directories(${LIBYANG_INCLUDE_DIRS}) - include_directories(${SYSREPO_INCLUDE_DIRS}) - - add_library(${PROJECT_NAME} SHARED ${SRPC_SOURCES}) -+set_target_properties(${PROJECT_NAME} PROPERTIES VERSION 1.0.0 SOVERSION 1) - - install( - TARGETS ${PROJECT_NAME}
meta-arago-extras/recipes-sysrepo/sysrepo-plugins-common/sysrepo-plugins-common_git.bb deleted +0 -26
@@ -1,26 +0,0 @@ -SUMMARY = "Set of utilities/functionalities which can be used for easier build of sysrepo plugins." -DESCRIPTION = "" -LICENSE = "BSD-3-Clause" -LIC_FILES_CHKSUM = "file://LICENSE;md5=f91d5dfaae99cc1943a8eca222cafa5c" - -SRC_URI = "gitsm://github.com/telekom/sysrepo-plugins-common.git;protocol=https;branch=devel " -SRC_URI += " file://0001-so-version.patch " -FILESEXTRAPATHS:prepend := "${THISDIR}:" - -PV = "dev+git" -SRCREV = "20885de0d3bb95a05610fdb3a0f83d8f7c370fad" - -S = "${WORKDIR}/git" - -DEPENDS = "libyang sysrepo" - -FILES:${PN} += "" - -inherit cmake pkgconfig - -# Specify any options you want to pass to cmake using EXTRA_OECMAKE: -EXTRA_OECMAKE = " -DCMAKE_INSTALL_PREFIX:PATH=/usr " - -do_install:append () { - true -}
Signature · 1 line
2.17.1
PATCH 8/13 libyang: move bbappend
In reply to Ryan EatmonFrom: Denys Dmytriyenko <[email protected]>
* Move into recipes-extended
---
.../libyang => recipes-extended/sysrepo}/libyang_%.bbappend | 0
1 file changed, 0 insertions(+), 0 deletions(-)
rename meta-arago-extras/{recipes-sysrepo/libyang => recipes-extended/sysrepo}/libyang_%.bbappend (100%)meta-arago-extras/recipes-extended/sysrepo/libyang_%.bbappend renamed from meta-arago-extras/recipes-sysrepo/libyang/libyang_%.bbappend +0 -0
Signature · 1 line
2.17.1
PATCH 9/13 libnetconf2: move and clean up
In reply to Ryan EatmonFrom: Denys Dmytriyenko <[email protected]>
* Move into recipes-extended
* Shorten SUMMARY, split DESCRIPTION
* Don't hardcode /usr when passing to CMake
---
.../sysrepo}/libnetconf2_git.bb | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
rename meta-arago-extras/{recipes-sysrepo/libnetconf2 => recipes-extended/sysrepo}/libnetconf2_git.bb (54%)meta-arago-extras/recipes-extended/sysrepo/libnetconf2_git.bb renamed from meta-arago-extras/recipes-sysrepo/libnetconf2/libnetconf2_git.bb +4 -5
@@ -1,5 +1,6 @@ -SUMMARY = "libnetconf2 is a NETCONF library in C intended for building NETCONF clients and servers" -DESCRIPTION = "The library provides functions to connect NETCONF client and server to each other via SSH and to send, receive and process NETCONF messages." +SUMMARY = "NETCONF library in C for building NETCONF clients and servers" +DESCRIPTION = "The library provides functions to connect NETCONF client and server \ +to each other via SSH and to send, receive and process NETCONF messages." SECTION = "libs" LICENSE = "BSD-3-Clause" LIC_FILES_CHKSUM = "file://LICENSE;md5=08a5578c9bab06fb2ae84284630b973f"
@@ -19,8 +20,6 @@ FILES:${PN} += "${datadir}/yang/modules/libnetconf2/*" inherit cmake pkgconfig -# Specify any options you want to pass to cmake using EXTRA_OECMAKE: -#EXTRA_OECMAKE = " -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_BUILD_TYPE:String=Release -DLIBYANG_INCLUDE_DIR=/usr/include -DLIBYANG_LIBRARY=/usr/lib " -EXTRA_OECMAKE = " -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_BUILD_TYPE:String=Release " +EXTRA_OECMAKE = "-DCMAKE_INSTALL_PREFIX:PATH=${prefix} -DCMAKE_BUILD_TYPE:String=Release" BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.17.1
PATCH 10/13 libredblack: move and clean up
In reply to Ryan EatmonFrom: Denys Dmytriyenko <[email protected]>
* Move into recipes-extended
* Clean unnecessary comments
libredblack cleanup
---
.../sysrepo}/libredblack_git.bb | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
rename meta-arago-extras/{recipes-sysrepo/libredblack => recipes-extended/sysrepo}/libredblack_git.bb (62%)meta-arago-extras/recipes-extended/sysrepo/libredblack_git.bb renamed from meta-arago-extras/recipes-sysrepo/libredblack/libredblack_git.bb +1 -5
@@ -10,12 +10,8 @@ SRCREV = "a399310d99b61eec4d3c0677573ab5dddcf9395d" S = "${WORKDIR}/git" -# NOTE: if this software is not capable of being built in a separate build directory -# from the source, you should replace autotools with autotools-brokensep in the -# inherit line inherit python3native autotools -# Specify any options you want to pass to the configure script using EXTRA_OECONF: -EXTRA_OECONF = " --without-rbgen " +EXTRA_OECONF = "--without-rbgen" BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.17.1
Re: [meta-arago][master][PATCH 10/13] libredblack: move and clean up
Quoted 6 lines · Ryan Eatmon via lists.yoctoproject.org
From: Denys Dmytriyenko <[email protected]>
* Move into recipes-extended
* Clean unnecessary commentsSigned-off-by Denys Dmytriyenko <[email protected]>
Huh, when I squashed the 2 commits into 1, I missed some extra text below...
Quoted 32 lines
libredblack cleanup
Signed-off-by Denys Dmytriyenko <[email protected]>Signed-off-by Ryan Eatmon <[email protected]>--- .../sysrepo}/libredblack_git.bb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) rename meta-arago-extras/{recipes-sysrepo/libredblack => recipes-extended/sysrepo}/libredblack_git.bb (62%)meta-arago-extras/recipes-extended/sysrepo/libredblack_git.bb renamed from meta-arago-extras/recipes-sysrepo/libredblack/libredblack_git.bb +1
-5@@ -10,12 +10,8 @@ SRCREV = "a399310d99b61eec4d3c0677573ab5dddcf9395d" S = "${WORKDIR}/git" -# NOTE: if this software is not capable of being built in a separate build directory -# from the source, you should replace autotools with autotools-brokensep in the -# inherit line inherit python3native autotools -# Specify any options you want to pass to the configure script using EXTRA_OECONF: -EXTRA_OECONF = " --without-rbgen " +EXTRA_OECONF = "--without-rbgen" BBCLASSEXTEND = "native nativesdk"Signature · 1 line
2.17.1
Re: [meta-arago][master][PATCH 10/13] libredblack: move and clean up
Quoted 9 lines · Denys Dmytriyenko
Quoted 6 lines · Ryan Eatmon via lists.yoctoproject.org
From: Denys Dmytriyenko <[email protected]>
* Move into recipes-extended
* Clean unnecessary commentsSigned-off-by Denys Dmytriyenko <[email protected]>Huh, when I squashed the 2 commits into 1, I missed some extra text below...
I'll fix that and send a v2.
Quoted 33 lines
Quoted 33 lines
libredblack cleanup
Signed-off-by Denys Dmytriyenko <[email protected]>Signed-off-by Ryan Eatmon <[email protected]>--- .../sysrepo}/libredblack_git.bb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)rename meta-arago-extras/{recipes-sysrepo/libredblack => recipes-extended/sysrepo}/libredblack_git.bb (62%)
meta-arago-extras/recipes-extended/sysrepo/libredblack_git.bb renamed from meta-arago-extras/recipes-sysrepo/libredblack/libredblack_git.bb +1
-5@@ -10,12 +10,8 @@ SRCREV = "a399310d99b61eec4d3c0677573ab5dddcf9395d" S = "${WORKDIR}/git" -# NOTE: if this software is not capable of being built in a separate build directory -# from the source, you should replace autotools with autotools-brokensep in the -# inherit line inherit python3native autotools -# Specify any options you want to pass to the configure script using EXTRA_OECONF: -EXTRA_OECONF = " --without-rbgen " +EXTRA_OECONF = "--without-rbgen" BBCLASSEXTEND = "native nativesdk"Signature · 1 line
2.17.1
Signature · 3 lines
Ryan Eatmon [email protected] ----------------------------------------- Texas Instruments, Inc. - LCPD - MGTS
PATCH 11/13 nw-configurator: move and clean up
In reply to Ryan EatmonFrom: Denys Dmytriyenko <[email protected]>
* Move into recipes-extended
* Set SUMMARY instead of DESCRIPTION
* FILES_${PN}-dev is incorrect - old syntax and is not needed
* Tabs/spaces cleanup
---
.../sysrepo}/nw-configurator.bb | 6 ++----
.../sysrepo/nw-configurator}/nw-configurator.c | 0
2 files changed, 2 insertions(+), 4 deletions(-)
rename meta-arago-extras/{recipes-sysrepo/nw-configurator => recipes-extended/sysrepo}/nw-configurator.bb (74%)
rename meta-arago-extras/{recipes-sysrepo/nw-configurator/files => recipes-extended/sysrepo/nw-configurator}/nw-configurator.c (100%)meta-arago-extras/recipes-extended/sysrepo/nw-configurator.bb renamed from meta-arago-extras/recipes-sysrepo/nw-configurator/nw-configurator.bb +2 -4
@@ -1,4 +1,4 @@ -DESCRIPTION = "Sysrepo based repo to configure EST" +SUMMARY = "Sysrepo based repo to configure EST" LICENSE = "BSD-3-Clause" LIC_FILES_CHKSUM = "file://nw-configurator.c;beginline=1;endline=33;md5=3538caaf9bfb8372347877ad393660fa"
@@ -8,14 +8,12 @@ SRC_URI = "file://nw-configurator.c" S = "${WORKDIR}/sources" UNPACKDIR = "${S}" -FILES_${PN}-dev = "${includedir}" - DEPENDS = "sysrepo" inherit autotools pkgconfig do_compile() { - ${CC} ${CFLAGS} ${LDFLAGS} -I=${STAGING_INCDIR} ${S}/nw-configurator.c -o nw-configurator -lsysrepo + ${CC} ${CFLAGS} ${LDFLAGS} -I=${STAGING_INCDIR} ${S}/nw-configurator.c -o nw-configurator -lsysrepo } BBCLASSEXTEND = "native nativesdk"
meta-arago-extras/recipes-extended/sysrepo/nw-configurator/nw-configurator.c renamed from meta-arago-extras/recipes-sysrepo/nw-configurator/files/nw-configurator.c +0 -0
Signature · 1 line
2.17.1
PATCH 12/13 tsn-yang-models: move and clean up
In reply to Ryan EatmonFrom: Denys Dmytriyenko <[email protected]>
* Move into recipes-extended
* Don't empty DESCRIPTION
---
.../sysrepo}/tsn-yang-models_git.bb | 2 --
1 file changed, 2 deletions(-)
rename meta-arago-extras/{recipes-sysrepo/tsn-yang-models => recipes-extended/sysrepo}/tsn-yang-models_git.bb (96%)meta-arago-extras/recipes-extended/sysrepo/tsn-yang-models_git.bb renamed from meta-arago-extras/recipes-sysrepo/tsn-yang-models/tsn-yang-models_git.bb +0 -2
@@ -1,6 +1,4 @@ -# Recipe created by recipetool SUMMARY = "TSN based YANG models" -DESCRIPTION = "" LICENSE = "BSD-3-Clause" LIC_FILES_CHKSUM = "file://README.md;md5=a89040f014c0c9c9360e29ddf88bf4a7"
Signature · 1 line
2.17.1
PATCH 13/13 netopeer2-server: move and clean up
In reply to Ryan EatmonFrom: Denys Dmytriyenko <[email protected]>
* Move into recipes-extended
* Combine with bbappend
* Shorten SUMMARY, split DESCRIPTION
* Update DEPENDS - remove systemd and add sysrepo-native
* Don't hardcode /usr when passing to CMake
* Also pass -DSYSREPO_SETUP=OFF to CMake
* Update installing scripts - remove user/group, add permissions
---
.../0001-Add-EST-Yang-Models.patch | 0
.../netopeer2-server/netopeer2-server | 0
.../netopeer2-serverd.service | 0
.../sysrepo/netopeer2-server_git.bb | 53 +++++++++++++++++++
.../netopeer2-server/netopeer2-server_git.bb | 47 ----------------
.../netopeer2-server_git.bbappend | 5 --
6 files changed, 53 insertions(+), 52 deletions(-)
rename meta-arago-extras/{recipes-sysrepo/netopeer2-server => recipes-extended/sysrepo}/netopeer2-server/0001-Add-EST-Yang-Models.patch (100%)
rename meta-arago-extras/{recipes-sysrepo/netopeer2-server => recipes-extended/sysrepo}/netopeer2-server/netopeer2-server (100%)
rename meta-arago-extras/{recipes-sysrepo/netopeer2-server => recipes-extended/sysrepo}/netopeer2-server/netopeer2-serverd.service (100%)
create mode 100644 meta-arago-extras/recipes-extended/sysrepo/netopeer2-server_git.bb
delete mode 100644 meta-arago-extras/recipes-sysrepo/netopeer2-server/netopeer2-server_git.bb
delete mode 100644 meta-arago-extras/recipes-sysrepo/netopeer2-server/netopeer2-server_git.bbappendmeta-arago-extras/recipes-extended/sysrepo/netopeer2-server/0001-Add-EST-Yang-Models.patch renamed from meta-arago-extras/recipes-sysrepo/netopeer2-server/netopeer2-server/0001-Add-EST-Yang-Models.patch +0 -0
meta-arago-extras/recipes-extended/sysrepo/netopeer2-server/netopeer2-server renamed from meta-arago-extras/recipes-sysrepo/netopeer2-server/netopeer2-server/netopeer2-server +0 -0
meta-arago-extras/recipes-extended/sysrepo/netopeer2-server/netopeer2-serverd.service renamed from meta-arago-extras/recipes-sysrepo/netopeer2-server/netopeer2-server/netopeer2-serverd.service +0 -0
meta-arago-extras/recipes-extended/sysrepo/netopeer2-server_git.bb new file +53 -0
53 lines not on this page · raw message
meta-arago-extras/recipes-sysrepo/netopeer2-server/netopeer2-server_git.bb deleted +0 -47
47 lines not on this page · raw message
meta-arago-extras/recipes-sysrepo/netopeer2-server/netopeer2-server_git.bbappend deleted +0 -5
@@ -1,5 +0,0 @@ -FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" - -SRC_URI += "file://0001-Add-EST-Yang-Models.patch" - -FILES:${PN} += "/usr/share/yang* /usr/share/netopeer2/* /usr/lib/sysrepo-plugind/*"
Signature · 1 line
2.17.1