From patchwork Wed Apr 5 21:20:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 747527 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3vyzKz4KsSz9sDB for ; Thu, 6 Apr 2017 07:21:27 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="fzarr29/"; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 878832FB30; Wed, 5 Apr 2017 21:21:25 +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 X2kob9nPjebk; Wed, 5 Apr 2017 21:21:12 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 831992FE69; Wed, 5 Apr 2017 21:21:07 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 2CCFF1C0695 for ; Wed, 5 Apr 2017 21:21:03 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 27C2B86542 for ; Wed, 5 Apr 2017 21:21:03 +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 T2qMuGL4gSDv for ; Wed, 5 Apr 2017 21:21:02 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr0-f193.google.com (mail-wr0-f193.google.com [209.85.128.193]) by whitealder.osuosl.org (Postfix) with ESMTPS id 578ED86452 for ; Wed, 5 Apr 2017 21:21:02 +0000 (UTC) Received: by mail-wr0-f193.google.com with SMTP id g19so6122599wrb.0 for ; Wed, 05 Apr 2017 14:21:02 -0700 (PDT) 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=by7+NLgCkXthETh9wz6FvXAMAYa2bFoyhD3ZE1AKlpU=; b=fzarr29/vfzjcTl6syXyAr/wK45Ko6nfZlaEuR8uGDeImCOsHPAAP8/vXrGODtJOd+ AV6E1gWEvBR0kquZhs5bek4SXe9faxu67homNmXONR1/DPT+TaIaq12eEqSQzuJKknnF EtnZtaTNFeU7DfyDqTHngf9ne2yrhZi8c4sce3FhDn5dbI09xwHDgEazdbbn6Lk0Sk5o iQrTbbZX/UgpCbgeLNchN27n8DqTrZOUYxS3jwkn6zMv6PAnCREs++j4PGt48rob8kHI t0N6l0EddQR5nko/572k7k4Kwy4TL2pCA6dkklKbxQTPmyPiy4pL6/jeuGyELVnOiNS2 ctxQ== 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=by7+NLgCkXthETh9wz6FvXAMAYa2bFoyhD3ZE1AKlpU=; b=lXGg6QTYonjLx6q4NWBT1Fu24cSy9dL6Vs2DbtqJiUGae6hkH1x7wBq90U0ebjXP6n HKSiVhz74Adjev/rtzCQWYL0rU2XrdeqLUhRa/py8NGxWbn/f/uWz0zp79q/v2b6rSfn ng84+yWrRGXAylOXm0mlfdbZcPRZobgIDcS23el/ldRoKQtjoaFGNlzkxVoxJC8zpB5M g0nM9EyaJqzTNb94yYWHzF4M3CagbtClcS1diZKXEwvkYkT+xqJBJpqNQ45dyG219aGQ 96eXPfhTlGTT7mK8mC+xKOH2826jhc3EH1oxtVXHqqBydSf+gyLjlQHsE/7Zxutbd3BY 3J0Q== X-Gm-Message-State: AFeK/H1r2BZsLqTPYL93Z8YBM52nm6r6DjASCk8aN1GRxarte017nPREdOqkxhmEqCdSUA== X-Received: by 10.223.170.157 with SMTP id h29mr25613890wrc.140.1491427260924; Wed, 05 Apr 2017 14:21:00 -0700 (PDT) Received: from scaer.bzh.lan (ns304657.ip-46-105-103.eu. [46.105.103.66]) by smtp.gmail.com with ESMTPSA id k43sm27705057wrk.42.2017.04.05.14.20.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Apr 2017 14:21:00 -0700 (PDT) From: "Yann E. MORIN" To: buildroot@buildroot.org Date: Wed, 5 Apr 2017 23:20:57 +0200 Message-Id: X-Mailer: git-send-email 2.9.3 In-Reply-To: References: Cc: Thomas Petazzoni , "Yann E. MORIN" Subject: [Buildroot] [PATCH 1/3 v2] core/pkg-generic: rmove intermediate file-list files X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" To compute the list of files added by a package, we first store the list of files before the install, do the install, list the files after the install, and finally compare the two lists. The two lists are stored in dot-files, hidden in the package's build dir. We currently keep those two files, and only list the files installed in target/ In followup patches, we'll also list files installed in staging/ as well as files installed in host/. Rather than add even more internal, hidden files in the package build dir, we'll just re-use the same two temporary files to store the bfore and after lists. So, remove them after the comparison is done. Signed-off-by: "Yann E. MORIN" Cc: Thomas Petazzoni --- package/pkg-generic.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk index 31dbc54..6b3c69c 100644 --- a/package/pkg-generic.mk +++ b/package/pkg-generic.mk @@ -78,6 +78,7 @@ define step_pkg_size_end while read hash file ; do \ echo "$(1),$${file}" >> $(BUILD_DIR)/packages-file-list.txt ; \ done + rm -f $($(PKG)_DIR)/.br_filelist_before $($(PKG)_DIR)/.br_filelist_after endef define step_pkg_size