From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Petazzoni Date: Tue, 22 Jun 2021 11:30:03 +0200 Subject: [Buildroot] [PATCH 01/15] package/pkg-generic.mk: detect files overwritten in TARGET_DIR and HOST_DIR In-Reply-To: <20210622094052.01c0a074@bootlin.com> References: <20210621141130.48654-1-herve.codina@bootlin.com> <20210621141130.48654-2-herve.codina@bootlin.com> <20210621213140.GA44262@scaer> <20210622094052.01c0a074@bootlin.com> Message-ID: <20210622113003.7cbf0136@windsurf> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net On Tue, 22 Jun 2021 09:40:52 +0200 Herve Codina wrote: > Compared to the first version, this patch has an improved commit message and > generates the md5sum snapshot using > 'find -L $(1) -type f -print0 | xargs -0 -r md5sum > $($(PKG)_DIR)/.files$(2).md5;' But is this better ? Due to not cd-ing into the directory, you will have full absolute paths in the .md5 file, and adding LC_ALL=C is quite customary too. Ditto for using | xargs instead of -exec. > instead of > 'cd $(1); LC_ALL=C find . -type f -exec md5sum {} \; > $($(PKG)_DIR)/.files$(2).md5' All in all this version, looked better. Any reason for the change ? Thomas -- Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com