From mboxrd@z Thu Jan 1 00:00:00 1970 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 smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (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 C2C82C32771 for ; Sat, 24 Sep 2022 08:35:55 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 777BC60ABA; Sat, 24 Sep 2022 08:35:55 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 777BC60ABA 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 OKrlICa-NU1m; Sat, 24 Sep 2022 08:35:53 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id 5CBBA60A4F; Sat, 24 Sep 2022 08:35:52 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 5CBBA60A4F Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 96E9D1BF861 for ; Sat, 24 Sep 2022 08:35:50 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 630E041871 for ; Sat, 24 Sep 2022 08:35:50 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 630E041871 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Q3p9r_gRcpz5 for ; Sat, 24 Sep 2022 08:35:49 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 212F941860 Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::224]) by smtp4.osuosl.org (Postfix) with ESMTPS id 212F941860 for ; Sat, 24 Sep 2022 08:35:48 +0000 (UTC) Received: (Authenticated sender: thomas.petazzoni@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id D7B8BE0006; Sat, 24 Sep 2022 08:35:46 +0000 (UTC) Date: Sat, 24 Sep 2022 10:35:46 +0200 From: Thomas Petazzoni To: Michael Klein via buildroot Message-ID: <20220924103546.00681d4f@windsurf> In-Reply-To: References: Organization: Bootlin X-Mailer: Claws Mail 4.1.0 (GTK 3.24.34; x86_64-redhat-linux-gnu) MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1664008547; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Svw/hQTtnxWjGWEopiBIvOsLV7KMar93VcdKkgHkozs=; b=AgP6iyOzqky0C7w3h6Rvj9QWSDB0yVOdRPoAAYkuXdiiVR87kzaxvVcDCEC4C4cuidMURk RofuHNy5pNSMVE6v+XtBoPQpXxvs/5KUxC+ivQpVnip7HTkNE+PmMacwEedsRlAsygwhzk 8GzfdDHBTYqPrpJ8NfPa8qiwEjfNfiB0Gag8Gv5VXUNrROxTnPQLrt1n8AEKj1b8kM1Vl9 V2KqTvgAYYB6EWUKZdEIIFrWmqAxMrOSLvGNN3QngXfJ8GmXGqs2iuXETnhLmbuGPAcve6 yziuxxFi5Z1NUwSNFDMhHxYfNGBZZslnOKhwvVf8JTjZsTkFuhM676OPgtDvLQ== X-Mailman-Original-Authentication-Results: smtp4.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=AgP6iyOz Subject: Re: [Buildroot] [PATCH 1/1] size-stats: count compiled python (.pyc) files 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: , Cc: Michael Klein , Thomas De Schampheleire Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" On Thu, 1 Sep 2022 13:40:07 +0200 Michael Klein via buildroot wrote: > Any .pyc files generated by the pycompile script during target > finalization are currently counted in the "Unknown" package, > because packages-file-list.txt only contains the source .py file. > > If a .py file is added to filesdict, add the corresponding .pyc > file as well. > > Signed-off-by: Michael Klein > --- > support/scripts/size-stats | 3 +++ > 1 file changed, 3 insertions(+) We indeed don't have a very good mechanism to "connect" files generated during the target-finalize step with their original package in a generic way, so for now what you did is I believe good enough to solve this very common case of .pyc files, and therefore I've applied to master. Thanks! Thomas -- Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot