From patchwork Thu Feb 13 21:03:13 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gyorgy Sarvari X-Patchwork-Id: 57292 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7320AC021A0 for ; Thu, 13 Feb 2025 21:03:24 +0000 (UTC) Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) by mx.groups.io with SMTP id smtpd.web11.4871.1739480597184863627 for ; Thu, 13 Feb 2025 13:03:17 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Wd1VaWZL; spf=pass (domain: gmail.com, ip: 209.85.221.44, mailfrom: skandigraun@gmail.com) Received: by mail-wr1-f44.google.com with SMTP id ffacd0b85a97d-38dc962f1b9so772491f8f.3 for ; Thu, 13 Feb 2025 13:03:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1739480595; x=1740085395; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=RXmtjiC2gvTPa8U5hpffk0+uTV9HxDAkrkdnFotGxDQ=; b=Wd1VaWZL2Ud2R+dbm0JBLO0weuau2adVHJF4ZjjxpwwGOLyNCNv7ZSjXb88ywglkBQ irNrNkJYvMeQcR+cRbYRYnCVg7HwRQ9UsqBexi6mWPSUEFkmD9ZH/2EDd6UgIDMiCZj7 hPzd6iGonS2LKNBMsN8CS4h/395grvPZzACcbRDAF1TAzmeI8dChqrbD5kcQ0mWtlDEv x3RZ2lH7m70/v/e0XfZTsX2wABOh+4Sg/WX5zg/0211tYXmHinh8g8ClavGWmRQ8abD7 aFBl1yjzpfMJBianEPvm4lnfwg4PokY0aY/tM4L8fQSM2PSEwOvBCMd2dOAX2AQ4Y3xG jWlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739480595; x=1740085395; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=RXmtjiC2gvTPa8U5hpffk0+uTV9HxDAkrkdnFotGxDQ=; b=wJx8BWcMsrVgFzzanEMBYgugrAc637DOSLWaynxdusO++nDR5cgpX4SkLgOgJG7NBi CiZLaIDa9NJ1OxcuRQuv1eCnrtHD87Y0xZwTx2I+jgMeAJ25g+/rMExavt1Akwg3bmUb 88PRhUGOKKv92LEpZIX2vfH1tJHnKTz/ZFnu9+uicY2Yi3d6hEz+Me1cTNH90Nfxm8a5 TcsSQAQtw5KyCmPkz4GAnuutaAxUr0FZBeylhbPUpBlyj0pNNclgLB70Oqo9nttI9sYS FiVDYMCn90MkthaTPDPpmCTXLTRz5Y/q7WPMSPClBLjD40Rzq9Gsyh6QMgYtvpIxB4uZ HYoA== X-Gm-Message-State: AOJu0Yw092VmJeJu8Z7I40OClmsBSXXG9DDvCgAHNBG7UI7LX5wpL08r +r+jvloKTuCpKoTrk0iggg5rdGEOMQRMP9hnFOSzeucTBy6+1/wqA5jlVA== X-Gm-Gg: ASbGncvfjIKQUCyE1OGlOkRvfAJ/DDILbFmutlqdxievVT9b+CpvmArlvneigWzSk/s vJycN037s1YtfYhcXSdKOL4QerL1bfuxaAoodHoAqTLECZBktRFjiOLtlEKowS6x2FIz4j9KbTF r05DeUGWbPCbAiveFOuWkRBDsLnqW+YQIviVYPD8w/G9rPjVqw4fu/TMdUDyWsMlrat40+MpST4 o2KLx4WDXAJLFxJR6iETPTFgsev7HT33vgxzbU6Fpz5T8nyLoLhM+sxg4O8b0dLfx+v5ChZc2Nm 0GLfbU3mX0F8u+3NoZFVYzZDxgm93r0= X-Google-Smtp-Source: AGHT+IGtksaZRZfqQUcLi6J2NLP7X7jxarAuz/Z4sRpJGID9MQnow9+Dzpe8rHzOPHNCs9yuCKncmw== X-Received: by 2002:a05:6000:4010:b0:38c:1270:f966 with SMTP id ffacd0b85a97d-38dea256b5dmr8837191f8f.7.1739480595220; Thu, 13 Feb 2025 13:03:15 -0800 (PST) Received: from localhost.localdomain ([51.154.145.205]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38f258ccda0sm2822841f8f.27.2025.02.13.13.03.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Feb 2025 13:03:14 -0800 (PST) From: Gyorgy Sarvari To: openembedded-devel@lists.openembedded.org Subject: [meta-oe][PATCH] jsonrpc: fix interface library paths in cmake files Date: Thu, 13 Feb 2025 22:03:13 +0100 Message-ID: <20250213210313.1126796-1-skandigraun@gmail.com> X-Mailer: git-send-email 2.48.1 MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 13 Feb 2025 21:03:24 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/115470 The cmake files generated by this recipe contain a number of interfacing libraries, with absolute paths, which also contain the TMPDIR. The TMPDIR part of these paths were just truncated by the recipe, to avoid the corresponding QA check error. However this made it impossible to to link against this library from other recipes. When one tried, the find_package command failed with the following error: | Run Build Command(s): ninja -v -j 12 all | ninja: error: '/usr/lib/libjsoncpp.so', needed by 'jsonrpctest', missing and no known rule to make it To avoid this, instead of just truncating this path, set it to ${CMAKE_SYSROOT} placeholder (which is resolved by CMake to the correct value at build-time, using the variable set by cmake.bbclass) Signed-off-by: Gyorgy Sarvari --- meta-oe/recipes-devtools/jsonrpc/jsonrpc_1.4.1.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta-oe/recipes-devtools/jsonrpc/jsonrpc_1.4.1.bb b/meta-oe/recipes-devtools/jsonrpc/jsonrpc_1.4.1.bb index f0c60e5a86..75f2a53b10 100644 --- a/meta-oe/recipes-devtools/jsonrpc/jsonrpc_1.4.1.bb +++ b/meta-oe/recipes-devtools/jsonrpc/jsonrpc_1.4.1.bb @@ -26,7 +26,7 @@ EXTRA_OECMAKE += "-DCOMPILE_TESTS=NO -DCOMPILE_STUBGEN=NO -DCOMPILE_EXAMPLES=NO " do_install:append() { - sed -i -e 's#${RECIPE_SYSROOT}##g' ${D}${libdir}/libjson-rpc-cpp/cmake/libjson-rpc-cppTargets.cmake + sed -i -e 's#${RECIPE_SYSROOT}#\${CMAKE_SYSROOT}#g' ${D}${libdir}/libjson-rpc-cpp/cmake/libjson-rpc-cppTargets.cmake } FILES:${PN}-dev += "${libdir}/libjson-rpc-cpp/cmake"