From patchwork Mon Nov 30 08:46:25 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 106438 Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.28564.1796028461439616750 for ; Mon, 30 Nov 2026 00:47:41 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20260707 header.b=Awwysfho; spf=pass (domain: gmail.com, ip: 209.85.210.170, mailfrom: raj.khem@gmail.com) Received: by mail-pf1-f170.google.com with SMTP id d2e1a72fcca58-8a052aff9e9so7217618b3a.0 for ; Mon, 30 Nov 2026 00:47:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796028461; x=1796633261; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=VidS3A7pQswN4FBZ96EFf0b0pB3PiIB7nUiy41GpqYw=; b=AwwysfhoJHzhHpn7E06jDAq0VQd40OTiQs4jiEnoEFnqcSeo4Vqpsba+ZrzgUrCtE4 fJzcOm1mUhJZMBRenw3NZK509LCrbgvBbsz/BqKPL/Hw0U3k0jpBzVy7EZqxKPQwBM33 0gxVUyWnc/mN36WIG8NVlEM89ueZIyyPcKhIyIHBMGn8VnC4KrjaS9C7/+/R7PxnvWxv R4znWbc8zMSpCMQ35NmVWAxKsPQiofVn53z8e7Utw60AWA6tGHiRcX3xVMBScD7vd64P DP1WfXq1vBA88EYi+9hU4CElaMpMolPBiU/A0zqRS2TTNP+KI5+h8PoVD8D2dSD0J66s ptyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796028461; x=1796633261; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=VidS3A7pQswN4FBZ96EFf0b0pB3PiIB7nUiy41GpqYw=; b=1moLE7Pp42mUzxbxp90Vrf/5vCbKRSSOLdkzukeNtqk2t9heNl47Qh0rZNZrlPjVVY 4K3GnoxxSx7bJFNJYt3hlVOKFepQZJmtduSG41UCeBT6oM21WYvGWmcQ2YMXgjfBAvL4 btaSpVTAx4FSvdAXwDD1chRUsEWoXJ8szMysnbPqn7EStVU0Up8kgwO/YOh0o9WwfTqF QHVkAZ/hCzb+J6YAIZozAhxHUN97hMoAZcmqab3OvIhjgrS2nHiMaZK7TAI6i5vI6L5+ XkO3tkanXoJFdzpG3fAktgj9+U4dluV4BH1aKCkoQUDaG6qdk4Z/bJKy76A/z1JvdfWO uhdg== X-Gm-Message-State: APuU4Z+8dWOH0LHSwt5CjHbevNtqlU8oneHA5q+3uvQZNWf//ilGxxLX tAmCNY/QurtcOhRPiX/9VJyX3Ew1odqk9uNCrUiwv6bfbJIWShSJUYCqJSVIHGVk X-Gm-Gg: AZFdTZe5Bqcf7S6wTtghwY0YFb87j7IcQwwSzEj8S7rHiykpduquyeOIpPTuJJ4U/n6 x3rDQJ2Z1xiclD/MMUDnb7qzuGcwipU+XSGBQZvb3RapxSdqf7J3U1xy6piU6tyV+diDZmuQryk /9KTAYP8Vof6h6VuSpIVMlQLmboH1HbjecGVFf8ADQOqoXs+JKbT91KnGtTDQwuxig3NrM9bzES dY6oQCO6Q0eqPvSDekMjU6cit7EvF5PT52OLsdgH8hr7l8JFfGQVFwZmMVUkZqH2bEYSJjGhsvq R80Ht5E95t/T/qyxutf8liB1ZU1NrtvMaD7qH9NPKeS4a0aPZh8HvdMIUyX8c62tvr9R74nsw3W d0I+OcSccE4cGDYmoRwhGVHtJszWA3IHcfx64A90EM5a6BSK2cD88OD+28drP3cUVcUCQmoHNMs xrkxMfHzKlpSqQxHkgE0/HfqVWlDpqBzHNtKBpODJNyX8flDSRbeTkLGEn8WP0LbAF8cIefF5WB wLbJIl3NIZRTSLITrBFboUm88tqaIsNPK/Va5GQS2RIKBZHw9FsrS/TG2bbG8kGg+ur75Yv+9G1 AwHhVcz4swhWQ95O918cFajn97voFQNKhnls7vA3SbumL5NrvJ3cvNytQGIJmjOQN/x+ppHjZ1g j8ffGm8hbf4tQ6rIh54cdHBjUwbrg+1TbcP7e0DDwaX01QBJiAo3XSwRDr3jn5EaJfdCcOSj6Eh SAN/oe8b91dm0tmweSAPFUhUDci6+Qf1QATtyW3PqWzAwcJIk1srdCKWRHwtL3dIBQt5MIfPKLQ gMpSCPrf3VyJYT7i1byIiPs2uGPxSD88bTSkeKduaiwNoBBnnM7nXoZmvmlrs9HKP6XlUesEVCW N+UT X-Received: by 2002:a05:6a00:1994:b0:89f:454d:8e6a with SMTP id d2e1a72fcca58-8c87bdb4398mr33018816b3a.10.1796028460723; Mon, 30 Nov 2026 00:47:40 -0800 (PST) Return-Path: Received: from apollo.tail3ccdd3.ts.net ([147.160.63.35]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-8c872e45eccsm17553649b3a.31.2026.11.30.00.47.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2026 00:47:40 -0800 (PST) From: Khem Raj X-Google-Original-From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-oe][PATCH 54/72] libubox: Update to latest tip on master Date: Mon, 30 Nov 2026 00:46:25 -0800 Message-ID: <20261130084643.1500716-55-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261130084643.1500716-1-khem.raj@oss.qualcomm.com> References: <20261130084643.1500716-1-khem.raj@oss.qualcomm.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Mon, 30 Nov 2026 08:47:51 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/133491 Move SRCREV from b7acc8e6fd5e (2025-06-04) to 184418767364 (2026-11-27), 90 commits. - Generates and installs a pkg-config file. - Fixes use-after-free bugs in uloop (process and signal callbacks, interval timers) and kvlist, and an out-of-bounds read in blobmsg_json. - udebug validates shared-memory size and ring metadata from peers. - kqueue fixes in uloop and size_t lengths treewide. The new pkg-config support fails out of tree: libubox.pc is generated in the build directory but installed from the source directory, and it hard-codes /usr/lib. Add 0004-cmake-Install-the-generated-pkg-config-file-from-the.patch to install it from the build directory into CMAKE_INSTALL_LIBDIR with the CMake install paths. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj --- ...e-generated-pkg-config-file-from-the.patch | 59 +++++++++++++++++++ .../recipes-devtools/libubox/libubox_git.bb | 3 +- 2 files changed, 61 insertions(+), 1 deletion(-) create mode 100644 meta-oe/recipes-devtools/libubox/libubox/0004-cmake-Install-the-generated-pkg-config-file-from-the.patch diff --git a/meta-oe/recipes-devtools/libubox/libubox/0004-cmake-Install-the-generated-pkg-config-file-from-the.patch b/meta-oe/recipes-devtools/libubox/libubox/0004-cmake-Install-the-generated-pkg-config-file-from-the.patch new file mode 100644 index 0000000000..986990f9e9 --- /dev/null +++ b/meta-oe/recipes-devtools/libubox/libubox/0004-cmake-Install-the-generated-pkg-config-file-from-the.patch @@ -0,0 +1,59 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sat, 28 Nov 2026 17:13:40 -0800 +Subject: [PATCH] cmake: Install the generated pkg-config file from the build + directory + +CONFIGURE_FILE() writes libubox.pc relative to the build directory, but +INSTALL(FILES libubox.pc) looks for it in the source directory, so an +out-of-tree build fails in the install step. Use the binary directory +path for both, install it to CMAKE_INSTALL_LIBDIR, and take prefix, +libdir and includedir from the CMake install paths instead of +hard-coding /usr/lib. + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- + CMakeLists.txt | 8 +++++--- + libubox.pc.in | 6 +++--- + 2 files changed, 8 insertions(+), 6 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 8bfc723..61163e8 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -36,14 +36,16 @@ IF(NOT HAVE_GETTIME OR NOT HAVE_SHM) + ENDIF() + ENDIF() + ++INCLUDE(GNUInstallDirs) ++ + CONFIGURE_FILE( + libubox.pc.in +- libubox.pc ++ ${CMAKE_CURRENT_BINARY_DIR}/libubox.pc + @ONLY + ) + +-INSTALL(FILES libubox.pc +- DESTINATION lib/pkgconfig ++INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/libubox.pc ++ DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig + ) + FILE(GLOB headers *.h) + LIST(FILTER headers EXCLUDE REGEX "-priv.h$" ) +diff --git a/libubox.pc.in b/libubox.pc.in +index 43c3ebc..29e69be 100644 +--- a/libubox.pc.in ++++ b/libubox.pc.in +@@ -1,7 +1,7 @@ +-prefix=/usr ++prefix=@CMAKE_INSTALL_PREFIX@ + exec_prefix=${prefix} +-libdir=${exec_prefix}/lib +-includedir=${prefix}/include ++libdir=@CMAKE_INSTALL_FULL_LIBDIR@ ++includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@ + + Name: libubox + Description: OpenWrt basic utility library diff --git a/meta-oe/recipes-devtools/libubox/libubox_git.bb b/meta-oe/recipes-devtools/libubox/libubox_git.bb index 5b24cdc31d..c59878f2b4 100644 --- a/meta-oe/recipes-devtools/libubox/libubox_git.bb +++ b/meta-oe/recipes-devtools/libubox/libubox_git.bb @@ -17,9 +17,10 @@ SRC_URI = "\ file://0001-cmake-Set-library-version.patch \ file://0002-cmake-fix-the-CMAKE_INSTALL_LIBDIR.patch \ file://0003-cmake-Don-t-include-lua-and-examples-directories-if-.patch \ + file://0004-cmake-Install-the-generated-pkg-config-file-from-the.patch \ " -SRCREV = "b7acc8e6fd5e13611ad90a593e98f9589af4009a" +SRCREV = "184418767364cacbab01525b533a8717d5e117e1" PV = "1.0.1+git" # Upstream repo does not tag