From patchwork Mon Jan 7 22:05:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 1021619 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=free.fr Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="GAzNQDD9"; dkim-atps=neutral Received: from whitealder.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 ozlabs.org (Postfix) with ESMTPS id 43YTx45Hhnz9sD9 for ; Tue, 8 Jan 2019 09:06:00 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 1602A8588B; Mon, 7 Jan 2019 22:05:57 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VGPgGmpCS0uM; Mon, 7 Jan 2019 22:05:55 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 0D7E585CA8; Mon, 7 Jan 2019 22:05:55 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 8B69A1C296D for ; Mon, 7 Jan 2019 22:05:52 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 89B9B21544 for ; Mon, 7 Jan 2019 22:05:52 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oxTMFf3IT1XI for ; Mon, 7 Jan 2019 22:05:51 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ed1-f50.google.com (mail-ed1-f50.google.com [209.85.208.50]) by silver.osuosl.org (Postfix) with ESMTPS id 3D6F720762 for ; Mon, 7 Jan 2019 22:05:51 +0000 (UTC) Received: by mail-ed1-f50.google.com with SMTP id y56so2334107edd.11 for ; Mon, 07 Jan 2019 14:05:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=OvH90DXAWJCNRWQ4a7hnPufG2SF6m8kaqpVPL867VTA=; b=GAzNQDD9gpe6hYjfjoPGIoYMoQv2XBaQOakLA6AUJjsSwjpAc8mn3mqIRTVWlzR4RP Mlqe5OROS1Cthxdf/F18l2y+KfttZvtAxysD8mVdjK/t6VpnYipxLYDt3LWe1yUHDX2R P+EEmbS3Fq7i/DvfyRrbkUsTALBNqRfPLVpAjuSButFTSFqEj3qIlIFA8bRF/gtRb+nH z03PVrKmiEqo0xTMVTiHjlpz/m5hd1nufdJ+t1kFH6ieWebdSMOvnaJqql6xW5RDH45B JqV3Ko0aXbgmRtwJgNLgNJyg4Qd96hulUFJId6r/2g96XJXAtXwJhI4qdXg0rSirS3od pa/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=OvH90DXAWJCNRWQ4a7hnPufG2SF6m8kaqpVPL867VTA=; b=dtFajihyg16wa4oaDxKocziV6YsfK0j58YiEBSOMlVgsJFuwEOxcSUd1DgMmwepRpS y014bO8blE5pDHxhAgIfRJ8Rdw8G2H1+tu/1xUNro2XmAHHkW+ZvUy5FPmXJm9jW8kJc Y10cMS4QW9A3o6bqWNeXJ8cD+selzo6+eNHx9eU7bGfCMbeZRnY1iYmdPnb8Z1Tdp+DL Bydgci62zP3dKvjlddOkeBngaSiCsKIUlhLlFo64haCohwq8prJtJ/i76pMxp97y2ym/ QnUbzpIONZhmq9oaNXWr7tYrMFEX+leXiHy9QezxgIgj7LhDKq4DMMvme3Ah+gVjbykb Yq0w== X-Gm-Message-State: AA+aEWb4TC4ITDLNdMoTf9IVn9BizxaJfofNHO+lQJjni6CGzlOJJ5D1 ZR36X7+mwl1i9luR6/wj3WqLDFTw X-Google-Smtp-Source: AFSGD/V6Cz7zdTF53dUcxD0eokMDB8iST2dtLAq863qRVUEojcVwwcuwlRQlMNd3ss0XRUE019Yewg== X-Received: by 2002:a17:906:81cc:: with SMTP id e12-v6mr49192613ejx.138.1546898749544; Mon, 07 Jan 2019 14:05:49 -0800 (PST) Received: from scaer.home ([2a01:cb19:829a:2800:68e8:7a61:9bb9:12a]) by smtp.gmail.com with ESMTPSA id d56sm31799589ede.76.2019.01.07.14.05.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Jan 2019 14:05:49 -0800 (PST) From: "Yann E. MORIN" To: buildroot@buildroot.org Date: Mon, 7 Jan 2019 23:05:27 +0100 Message-Id: <0c6a57955cae7f2233bd2cfc60ab404b09224a31.1546898693.git.yann.morin.1998@free.fr> X-Mailer: git-send-email 2.14.1 In-Reply-To: References: Subject: [Buildroot] [PATCH 05/19] infra/pkg-generic: tweak only .la files installed by the current package X-BeenThere: buildroot@busybox.net 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: , Cc: Thomas Petazzoni , "Yann E. MORIN" MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Currently, when we tweak the .la files, we do so unconditionally on all .la files, even those we already fixed in a previous run. This has the nasty side effect that each .la file will be reported as being touched by all packages that are installed after the package that actually installed said .la file. We fix that by limiting the search for .la files to those that have been actually touched during the install step, now that we have the proper timestamp for it. Reported-by: Nicolas Cavallari Signed-off-by: "Yann E. MORIN" Cc: Nicolas Cavallari Cc: Thomas Petazzoni --- package/pkg-generic.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk index eb41f97241..3de8a99675 100644 --- a/package/pkg-generic.mk +++ b/package/pkg-generic.mk @@ -294,7 +294,7 @@ $(BUILD_DIR)/%/.stamp_staging_installed: $(addprefix $(STAGING_DIR)/usr/bin/,$($(PKG)_CONFIG_SCRIPTS)) ;\ fi @$(call MESSAGE,"Fixing libtool files") - $(Q)find $(STAGING_DIR)/usr/lib* -name "*.la" -print0 \ + $(Q)find $(STAGING_DIR)/usr/lib* -name "*.la" -print0 -newer $@_before \ | xargs -0 --no-run-if-empty \ $(SED) "s:$(BASE_DIR):@BASE_DIR@:g" \ -e "s:$(STAGING_DIR):@STAGING_DIR@:g" \