Move openwrt-upstream packages to meta-openwrt
cover Move openwrt-upstream packages to meta-openwrt
...01-rtnl_flush-Error-on-failed-write.patch | 34 --------------- .../relayd/relayd_git.bb | 17 -------- .../libubox/0001-version-libraries.patch | 28 ------------ .../libubox/libubox/fix-libdir.patch | 40 ------------------ .../recipes-devtools/libubox/libubox_git.bb | 30 ------------- 5 files changed, 149 deletions(-)
libubox is probably uncontroversial and in fact was suggested by
Khem Raj here: http://lists.openembedded.org/pipermail/openembedded-devel/2018-January/116565.html
relayd I'm not as sure about as it's in meta-networking and there is the off chance it's actually in use. I'm open to opinions.
In any event I'm updating meta-openwrt with the good things done in meta-openembedded, as well as other work to meake meta-openwrt more generally useful (for use as a hybrid with regular OE, as a more openwrt-built-with-OE distro, and as a pick the bits that make sense to you repo).
Regards,
Daniel
PATCH 1/2 libubox: Move to meta-openwrt repo
From: "Daniel F. Dickinson" <[email protected]>
libubox is primarily useful in the context of openwrt packages and per Khem Raj does not belong in meta-oe (see
http://lists.openembedded.org/pipermail/openembedded-devel/2018-January/116565.html)
--- .../libubox/libubox/0001-version-libraries.patch | 28 --------------- .../libubox/libubox/fix-libdir.patch | 40 ---------------------- meta-oe/recipes-devtools/libubox/libubox_git.bb | 30 ---------------- 3 files changed, 98 deletions(-) delete mode 100644 meta-oe/recipes-devtools/libubox/libubox/0001-version-libraries.patch delete mode 100644 meta-oe/recipes-devtools/libubox/libubox/fix-libdir.patch delete mode 100644 meta-oe/recipes-devtools/libubox/libubox_git.bb
meta-oe/recipes-devtools/libubox/libubox/0001-version-libraries.patch deleted +0 -28
@@ -1,28 +0,0 @@ -diff --git a/CMakeLists.txt b/CMakeLists.txt -index 57804cf..1aa7f27 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -18,6 +18,7 @@ ENDIF() - SET(SOURCES avl.c avl-cmp.c blob.c blobmsg.c uloop.c usock.c ustream.c ustream-fd.c vlist.c utils.c safe_list.c runqueue.c md5.c kvlist.c ulog.c base64.c) - - ADD_LIBRARY(ubox SHARED ${SOURCES}) -+SET_TARGET_PROPERTIES(ubox PROPERTIES VERSION 1.0.1 SOVERSION 1) - ADD_LIBRARY(ubox-static STATIC ${SOURCES}) - SET_TARGET_PROPERTIES(ubox-static PROPERTIES OUTPUT_NAME ubox) - -@@ -46,6 +47,7 @@ find_library(json NAMES json-c) - IF(EXISTS ${json}) - ADD_LIBRARY(blobmsg_json SHARED blobmsg_json.c) - TARGET_LINK_LIBRARIES(blobmsg_json ubox ${json}) -+ SET_TARGET_PROPERTIES(blobmsg_json PROPERTIES VERSION 1.0.1 SOVERSION 1) - - ADD_LIBRARY(blobmsg_json-static STATIC blobmsg_json.c) - SET_TARGET_PROPERTIES(blobmsg_json-static -@@ -55,6 +57,7 @@ IF(EXISTS ${json}) - TARGET_LINK_LIBRARIES(jshn blobmsg_json ${json}) - - ADD_LIBRARY(json_script SHARED json_script.c) -+ SET_TARGET_PROPERTIES(json_script PROPERTIES VERSION 1.0.1 SOVERSION 1) - TARGET_LINK_LIBRARIES(json_script ubox) - - INSTALL(TARGETS blobmsg_json blobmsg_json-static jshn json_script
meta-oe/recipes-devtools/libubox/libubox/fix-libdir.patch deleted +0 -40
@@ -1,40 +0,0 @@ -[PATCH] fix the CMAKE_INSTALL_LIBDIR - -Upstream-Status: Pending - -libdir maybe /usr/lib64 for 64bit machine - -Signed-off-by: Roy Li <[email protected]> ---- - CMakeLists.txt | 8 ++++---- - 1 file changed, 4 insertions(+), 4 deletions(-) - -diff --git a/CMakeLists.txt b/CMakeLists.txt -index 57804cf..2c7bdc1 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -35,8 +35,8 @@ INSTALL(FILES ${headers} - DESTINATION include/libubox - ) - INSTALL(TARGETS ubox ubox-static -- ARCHIVE DESTINATION lib -- LIBRARY DESTINATION lib -+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} -+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} - ) - - ADD_SUBDIRECTORY(lua) -@@ -58,8 +58,8 @@ IF(EXISTS ${json}) - TARGET_LINK_LIBRARIES(json_script ubox) - - INSTALL(TARGETS blobmsg_json blobmsg_json-static jshn json_script -- ARCHIVE DESTINATION lib -- LIBRARY DESTINATION lib -+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} -+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} - RUNTIME DESTINATION bin - ) - --- -1.9.1 -
meta-oe/recipes-devtools/libubox/libubox_git.bb deleted +0 -30
@@ -1,30 +0,0 @@ -DESCRIPTION = "C utility functions for OpenWrt" -SECTION = "libs" -LICENSE = "GPLv2" -LIC_FILES_CHKSUM = "\ - file://avl.c;endline=39;md5=00810155fed3d604816ec5814523d60a \ - file://avl-cmp.c;endline=15;md5=1603e6094b432a5f3f320877a06f41b5 \ - file://base64.c;endline=61;md5=51fdff010d45b0086ac0a6e035693dc0 \ - file://blobmsg.c;endline=15;md5=7ed64c1570e8c9b46c4fc6fbd16c489e \ - file://list.h;endline=28;md5=2d5f5475fbd0f08741354c5a99c2e983 \ - file://md5.h;endline=39;md5=048bf9f68963c207a0c2b3a94c9d2aaa \ - file://md5.c;endline=51;md5=0a448eea0bcbc89e3c7e6608f2d119a0 \ - file://usock.h;endline=18;md5=f0dfdc8de858e66d66d74036611bba14 \ -" - -SRC_URI = "\ - git://git.openwrt.org/project/libubox.git \ - file://0001-version-libraries.patch \ - file://fix-libdir.patch \ -" - -SRCREV = "155bf39896f126b1ba121b816922a88dc34c31e3" -PV = "1.0.1+git${SRCPV}" - -S = "${WORKDIR}/git" - -inherit cmake - -DEPENDS = "json-c" - -EXTRA_OECMAKE = "-DBUILD_EXAMPLES=OFF -DBUILD_LUA=OFF"
Signature · 1 line
2.11.0
PATCH 2/2 relayd: Move to meta-openwrt repo
In reply to [email protected]From: "Daniel F. Dickinson" <[email protected]>
Because this package is primarily useful in the context of other opewnrt packages such as netifd, and not widely deployed outside openwrt, move to the meta-openwrt layer's repo.
--- .../0001-rtnl_flush-Error-on-failed-write.patch | 34 ---------------------- .../recipes-connectivity/relayd/relayd_git.bb | 17 ----------- 2 files changed, 51 deletions(-) delete mode 100644 meta-networking/recipes-connectivity/relayd/relayd/0001-rtnl_flush-Error-on-failed-write.patch delete mode 100644 meta-networking/recipes-connectivity/relayd/relayd_git.bb
meta-networking/recipes-connectivity/relayd/relayd/0001-rtnl_flush-Error-on-failed-write.patch deleted +0 -34
@@ -1,34 +0,0 @@ -From 2fa326b26dc479942367dc4283e2f87372403988 Mon Sep 17 00:00:00 2001 -From: Khem Raj <[email protected]> -Date: Sat, 17 Jun 2017 09:32:04 -0700 -Subject: [PATCH] rtnl_flush: Error on failed write() - -Fixes -route.c:45:2: error: ignoring return value of 'write', declared with attribute warn_unused_result [-Werror=unused-result] -| write(fd, "-1", 2); -| ^~~~~~~~~~~~~~~~~~ - -Signed-off-by: Khem Raj <[email protected]> ---- -Upstream-Status: Submitted - - route.c | 3 ++- - 1 file changed, 2 insertions(+), 1 deletion(-) - -diff --git a/route.c b/route.c -index c552d1f..fc5c31e 100644 ---- a/route.c -+++ b/route.c -@@ -42,7 +42,8 @@ static void rtnl_flush(void) - if (fd < 0) - return; - -- write(fd, "-1", 2); -+ if (write(fd, "-1", 2) < 0 ) -+ perror("write"); - close(fd); - } - --- -2.13.1 -
meta-networking/recipes-connectivity/relayd/relayd_git.bb deleted +0 -17
@@ -1,17 +0,0 @@ -DESCRIPTION = "Layer 3 relay daemon" -SECTION = "console/network" -LICENSE = "GPLv2" -LIC_FILES_CHKSUM = "file://main.c;endline=17;md5=86aad799085683e0a2e1c2684a20bab2" - -DEPENDS = "libubox" - -SRC_URI = "git://git.openwrt.org/project/relayd.git \ - file://0001-rtnl_flush-Error-on-failed-write.patch \ -" - -SRCREV = "ad0b25ad74345d367c62311e14b279f5ccb8ef13" -PV = "0.0.1+git${SRCPV}" - -S = "${WORKDIR}/git" - -inherit cmake
Signature · 1 line
2.11.0
Quoted 11 lines · On 1/30/18 3:37 AM, [email protected] wrote:
...01-rtnl_flush-Error-on-failed-write.patch | 34 --------------- .../relayd/relayd_git.bb | 17 -------- .../libubox/0001-version-libraries.patch | 28 ------------ .../libubox/libubox/fix-libdir.patch | 40 ------------------ .../recipes-devtools/libubox/libubox_git.bb | 30 ------------- 5 files changed, 149 deletions(-)libubox is probably uncontroversial and in fact was suggested by
Khem Raj here: http://lists.openembedded.org/pipermail/openembedded-devel/2018-January/116565.html
Quoted 9 lines
relayd I'm not as sure about as it's in meta-networking and there is the off chance it's actually in use. I'm open to opinions.
In any event I'm updating meta-openwrt with the good things done in meta-openembedded, as well as other work to meake meta-openwrt more generally useful (for use as a hybrid with regular OE, as a more openwrt-built-with-OE distro, and as a pick the bits that make sense to you repo).
it does. Thanks for sending the patches.
Quoted 4 lines
Regards,
Daniel