summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2020-11-21 14:39:47 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-12-09 23:49:01 +0000
commit433c03024126b79e796c9b823ab85eadc7499cb6 (patch)
tree1a98bdd94f4bb727632fd7229a5bcff69f6a53d5
parentfc4409192954e03536f1e07696464aa148cf9549 (diff)
downloadpoky-433c03024126b79e796c9b823ab85eadc7499cb6.tar.gz
fs-perms: Ensure /usr/src/debug/ file modes are correct
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). (From OE-Core rev: 20b8ffcbeadb6eb9e87356ee173ead43016d458b) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 1f958bcd6c9cd12ec76d80586cba15f4d6ed17a7) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/package.bbclass2
-rw-r--r--meta/conf/abi_version.conf2
-rw-r--r--meta/files/fs-perms-persistent-log.txt2
-rw-r--r--meta/files/fs-perms.txt2
4 files changed, 4 insertions, 4 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index cc64ddffc3..7c252dd46b 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -2225,7 +2225,7 @@ python do_package () {
2225 # cache. This is useful if an item this class depends on changes in a 2225 # cache. This is useful if an item this class depends on changes in a
2226 # way that the output of this class changes. rpmdeps is a good example 2226 # way that the output of this class changes. rpmdeps is a good example
2227 # as any change to rpmdeps requires this to be rerun. 2227 # as any change to rpmdeps requires this to be rerun.
2228 # PACKAGE_BBCLASS_VERSION = "2" 2228 # PACKAGE_BBCLASS_VERSION = "4"
2229 2229
2230 # Init cachedpath 2230 # Init cachedpath
2231 global cpath 2231 global cpath
diff --git a/meta/conf/abi_version.conf b/meta/conf/abi_version.conf
index 2bdc55695b..0a3fb307c8 100644
--- a/meta/conf/abi_version.conf
+++ b/meta/conf/abi_version.conf
@@ -12,4 +12,4 @@ OELAYOUT_ABI = "12"
12# a reset of the equivalence, for example when reproducibility issues break the 12# a reset of the equivalence, for example when reproducibility issues break the
13# existing match data. Distros can also append to this value for the same effect. 13# existing match data. Distros can also append to this value for the same effect.
14# 14#
15HASHEQUIV_HASH_VERSION = "1" 15HASHEQUIV_HASH_VERSION = "4"
diff --git a/meta/files/fs-perms-persistent-log.txt b/meta/files/fs-perms-persistent-log.txt
index 3a7cf3ab94..518c1be3c9 100644
--- a/meta/files/fs-perms-persistent-log.txt
+++ b/meta/files/fs-perms-persistent-log.txt
@@ -41,7 +41,7 @@ ${includedir} 0755 root root true 0644 root root
41${oldincludedir} 0755 root root true 0644 root root 41${oldincludedir} 0755 root root true 0644 root root
42 42
43# Cleanup debug src 43# Cleanup debug src
44/usr/src/debug 0755 root root true - root root 44/usr/src/debug 0755 root root true 0644 root root
45 45
46# Items from base-files 46# Items from base-files
47# Links 47# Links
diff --git a/meta/files/fs-perms.txt b/meta/files/fs-perms.txt
index c8c3ac5dbe..daa4aed840 100644
--- a/meta/files/fs-perms.txt
+++ b/meta/files/fs-perms.txt
@@ -41,7 +41,7 @@ ${includedir} 0755 root root true 0644 root root
41${oldincludedir} 0755 root root true 0644 root root 41${oldincludedir} 0755 root root true 0644 root root
42 42
43# Cleanup debug src 43# Cleanup debug src
44/usr/src/debug 0755 root root true - root root 44/usr/src/debug 0755 root root true 0644 root root
45 45
46# Items from base-files 46# Items from base-files
47# Links 47# Links