From patchwork Fri Oct 21 13:17:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Willy Tu X-Patchwork-Id: 14060 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 C3B05C4332F for ; Fri, 21 Oct 2022 13:17:07 +0000 (UTC) Subject: [PATCH] openssh: Install internal header/lib files To: openembedded-core@lists.openembedded.org From: "Willy Tu" X-Originating-Location: San Jose, California, US (75.52.94.15) X-Originating-Platform: Mac Chrome 106 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Fri, 21 Oct 2022 06:17:06 -0700 Message-ID: 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 ; Fri, 21 Oct 2022 13:17:07 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/172016 Install API only if opensshinternals is in DISTRO_FEATURES. Install the OpenSSH header + lib files for other repo to build using it. For example, https://github.com/google/hiba is dependent on those files to build and this change is needed to meet that requirement. https://github.com/openembedded/meta-openembedded/pull/597 Signed-off-by: Willy Tu --- meta/recipes-connectivity/openssh/openssh_9.0p1.bb | 11 +++++++++++ 1 file changed, 11 insertions(+) -- 2.38.0.135.g90850a2211-goog diff --git a/meta/recipes-connectivity/openssh/openssh_9.0p1.bb b/meta/recipes-connectivity/openssh/openssh_9.0p1.bb index b63ea2b137..84da118ca6 100644 --- a/meta/recipes-connectivity/openssh/openssh_9.0p1.bb +++ b/meta/recipes-connectivity/openssh/openssh_9.0p1.bb @@ -137,6 +137,17 @@ do_install:append () { ${D}${sysconfdir}/init.d/sshd install -D -m 0755 ${WORKDIR}/sshd_check_keys ${D}${libexecdir}/${BPN}/sshd_check_keys + + if ${@bb.utils.contains('DISTRO_FEATURES', 'opensshinternals', 'true', 'false', d)}; then + install -d ${D}${includedir}/ssh + install -d ${D}${includedir}/ssh/openbsd-compat + install -m0644 ${S}/*.h ${D}${includedir}/ssh + install -m0644 ${S}/openbsd-compat/*.h ${D}${includedir}/ssh/openbsd-compat + + install -d ${D}${libdir} + install -m0644 ${S}/libssh.a ${D}${libdir} + install -m0644 ${S}/openbsd-compat/libopenbsd-compat.a ${D}${libdir} + fi } do_install_ptest () {