]> code.ossystems Code Review - openembedded-core.git/commitdiff
fs-perms: Ensure /usr/src/debug/ file modes are correct
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 21 Nov 2020 14:39:47 +0000 (14:39 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 24 Nov 2020 10:27:39 +0000 (10:27 +0000)
If files are copied into /usr/src/debug directly from WORKDIR (e.g. makedevs)
we'd get the permissions from the checkout which would depend on the host umask.

Avoid this and be deterministic by setting the file modes consistently. Core
code copies the files in so we're responsible for the permissions.

Unfortunately to force this change to apply we need to invalidate both
the package tasks and the hash equivalance mappings since file mode
'corruption' already made it into the output hashes (both input options
were mapped to the output hashes).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/package.bbclass
meta/conf/abi_version.conf
meta/files/fs-perms-persistent-log.txt
meta/files/fs-perms.txt

index e6236c0bb23ff9b8b4ea74e0c7245d4365917f3f..247bdc7bbfe3beb31026977fc470d0d815b11659 100644 (file)
@@ -2340,7 +2340,7 @@ python do_package () {
     # cache.  This is useful if an item this class depends on changes in a
     # way that the output of this class changes.  rpmdeps is a good example
     # as any change to rpmdeps requires this to be rerun.
-    # PACKAGE_BBCLASS_VERSION = "2"
+    # PACKAGE_BBCLASS_VERSION = "4"
 
     # Init cachedpath
     global cpath
index 5318a101902e3ebd94c15abdb663c6fe2d01c177..251d43bb218d5e8557ac17e03dd2c11c10747513 100644 (file)
@@ -12,4 +12,4 @@ OELAYOUT_ABI = "14"
 # a reset of the equivalence, for example when reproducibility issues break the
 # existing match data. Distros can also append to this value for the same effect.
 #
-HASHEQUIV_HASH_VERSION  = "3"
+HASHEQUIV_HASH_VERSION  = "4"
index 3a7cf3ab94539ff6e02dedcdf99dc197903e58d0..518c1be3c93b7f6ba78ca0aab0f462466c4bd61d 100644 (file)
@@ -41,7 +41,7 @@ ${includedir}         0755    root    root    true    0644    root    root
 ${oldincludedir}       0755    root    root    true    0644    root    root
 
 # Cleanup debug src
-/usr/src/debug         0755    root    root    true    -       root    root
+/usr/src/debug         0755    root    root    true    0644    root    root
 
 # Items from base-files
 # Links
index c8c3ac5dbed419804885f62a0f88eee4a1df428a..daa4aed840fe7929bba31e0f55605c71dc7b1ff4 100644 (file)
@@ -41,7 +41,7 @@ ${includedir}         0755    root    root    true    0644    root    root
 ${oldincludedir}       0755    root    root    true    0644    root    root
 
 # Cleanup debug src
-/usr/src/debug         0755    root    root    true    -       root    root
+/usr/src/debug         0755    root    root    true    0644    root    root
 
 # Items from base-files
 # Links