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 smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DB462E7070C for ; Thu, 21 Sep 2023 10:29:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 17A4A83C49; Thu, 21 Sep 2023 10:29:07 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 17A4A83C49 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xDkidQXChEw0; Thu, 21 Sep 2023 10:29:06 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id 54EF483C4A; Thu, 21 Sep 2023 10:29:05 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 54EF483C4A Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 695AF1BF3C2 for ; Thu, 21 Sep 2023 10:29:03 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 4747A60BA9 for ; Thu, 21 Sep 2023 10:29:03 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 4747A60BA9 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id po8yTIc2woE9 for ; Thu, 21 Sep 2023 10:29:02 +0000 (UTC) Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) by smtp3.osuosl.org (Postfix) with ESMTPS id 388CC60BA7 for ; Thu, 21 Sep 2023 10:29:01 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 388CC60BA7 Received: by mail.gandi.net (Postfix) with ESMTPA id 1E80C1BF209; Thu, 21 Sep 2023 10:28:58 +0000 (UTC) To: buildroot@buildroot.org Date: Thu, 21 Sep 2023 12:28:56 +0200 Message-ID: <20230921102857.375294-1-thomas.petazzoni@bootlin.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-GND-Sasl: thomas.petazzoni@bootlin.com X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1695292139; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=77zpxYWxXqDCSWyYe5B1+bpNKGxOs41vVZdKQ4yO4ls=; b=iWi8Ouiz3TB1NXbEeZRlB22T0Rjs4oWAA+QH14ERRsKcd7BJ24Pyo/axbCk8dLKkSEOnrK 7rhjcQqdR3pJyiE2gD0BIPJ75o3lOQw94mPmyf9VaY+SvdWcX7qPxjvqkwKEvlhyY8sTxo Bkxcsh45lHjuFV5cIN4YoAzlFVn2kzNXPyYDpfdIWetOwOFObxlsZaH36LkDWzV2cQ2Tqs m2TisZaUMGcIKlpf44m4h8+fnPJyKk3B5pnnXNRFsQPaxfIH7nsZcKDoRt9UYR2JM9E7ZP 58GcoHa17pI6Qv9GkGT9bLdklsJn8J5kk9aWFd9bWUpnaUd1mKh4rTt/27yTKw== X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dkim=pass (2048-bit key, unprotected) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=gm1 header.b=iWi8Ouiz Subject: [Buildroot] [PATCH] package/ne10: install shared libraries only when built X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Thomas Petazzoni via buildroot Reply-To: Thomas Petazzoni Cc: Thomas Petazzoni Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" The install to staging commands of the ne10 package are careful to install the shared libraries only if they are built, but we forgot to use the same care for the install to target commands, causing a build failure on BR2_STATIC_LIBS=y configurations as no shared library was built: cp: cannot stat '/home/autobuild/autobuild/instance-15/output-1/build/ne10-1.2.1/modules/libNE10*.so*': No such file or directory This commit fixes this by guarding the target installation commands to BR2_STATIC_LIBS being empty. The problem exists since the package was introduced in commit 318f3db0dcc052aa770ca57c143b5f7bc40cdaf3 ("ne10: new package"), a good 10 years ago. Most likely it was not seen for many years as this package is only available for ARM with NEON and AArch64, and we were not testing fully static builds, except for ARMv5 that don't have NEON. Now that we are doing more random testing, the problem started being visible. Fixes: http://autobuild.buildroot.net/results/45b2c1af052271bc2f1bb96544f138d29e4f7dfd/ Signed-off-by: Thomas Petazzoni --- package/ne10/ne10.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package/ne10/ne10.mk b/package/ne10/ne10.mk index 3946605556..ce0f7e7b77 100644 --- a/package/ne10/ne10.mk +++ b/package/ne10/ne10.mk @@ -42,8 +42,10 @@ define NE10_INSTALL_STAGING_CMDS $(NE10_INSTALL_STAGING_SHARED_LIB) endef +ifeq ($(BR2_STATIC_LIBS),) define NE10_INSTALL_TARGET_CMDS cp -dpf $(@D)/modules/libNE10*.so* $(TARGET_DIR)/usr/lib/ endef +endif $(eval $(cmake-package)) -- 2.41.0 _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot