All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] buildhistory.bbclass: Create a files-in-<pkg>.txt containg recipe's pkg files
@ 2015-06-25 13:46 leonardo.sandoval.gonzalez
  2015-06-30  1:57 ` Andre McCurdy
  0 siblings, 1 reply; 4+ messages in thread
From: leonardo.sandoval.gonzalez @ 2015-06-25 13:46 UTC (permalink / raw)
  To: openembedded-core; +Cc: swg

From: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>

A file similar (in format) to files-in-image.txt is created for each
recipe's build package. This would allow to easily see what the
recipe's package may install when including it into an image.

These files reside on the specific buildhistory recipe package (i.e.
buildhistory/packages/i586-poky-linux/busybox/busybox-dev/files-in-busybox-dev.txt
for busybox-dev package)

[YOCTO #5870]

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
---
 meta/classes/buildhistory.bbclass | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
index 777aabc..8fc8a3a 100644
--- a/meta/classes/buildhistory.bbclass
+++ b/meta/classes/buildhistory.bbclass
@@ -242,6 +242,9 @@ python buildhistory_emit_pkghistory() {
         pkginfo.size = int(pkgdata['PKGSIZE'])
 
         write_pkghistory(pkginfo, d)
+
+    # Create files-in-<package-name>.txt files containing a list of files of each recipe's package
+    bb.build.exec_func("buildhistory_list_pkg_files", d)
 }
 
 
@@ -435,6 +438,16 @@ buildhistory_list_files() {
 	( cd $1 && find . -printf "%M %-10u %-10g %10s %p -> %l\n" | sort -k5 | sed 's/ * -> $//' > $2 )
 }
 
+buildhistory_list_pkg_files() {
+        file_prefix="files-in-"
+
+        # Create individual files-in-package for each recipe's package
+        for pkgdir in $(find ${PKGDEST}/* -maxdepth 0 -type d); do
+                pkgname=$(basename ${pkgdir})
+                outfile="${BUILDHISTORY_DIR_PACKAGE}/${pkgname}/${file_prefix}${pkgname}.txt"
+                buildhistory_list_files ${pkgdir} ${outfile}
+        done
+}
 
 buildhistory_get_imageinfo() {
 	if [ "${@bb.utils.contains('BUILDHISTORY_FEATURES', 'image', '1', '0', d)}" = "0" ] ; then
-- 
1.8.4.5



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-06-30 19:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-25 13:46 [PATCH] buildhistory.bbclass: Create a files-in-<pkg>.txt containg recipe's pkg files leonardo.sandoval.gonzalez
2015-06-30  1:57 ` Andre McCurdy
2015-06-30 17:45   ` Leonardo Sandoval
2015-06-30 19:05     ` Burton, Ross

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.