]> code.ossystems Code Review - openembedded-core.git/commitdiff
package/package_rpm: Disable font_provides configuration for reproducibilty
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 24 Feb 2021 21:51:08 +0000 (21:51 +0000)
committerSteve Sakoman <steve@sakoman.com>
Fri, 5 Mar 2021 14:40:01 +0000 (04:40 -1000)
The host may or may not have fc-cache which is used for find provides
information by rpmdeps. This lead to non-deterministic build output.
Disable the font provides code so we have deterministic builds,
we have nothing using/relying on it at this point.

Need to disable this in both the rpmdeps code and in package_rpm
itself although the latter shouldn't be being used.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 1c0cd8012a96fd4d9caf33c6de5fd39cea6db55d)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes/package.bbclass
meta/classes/package_rpm.bbclass

index 15bff9c778aec8205ae56ed6bcfc9f614e11ad8d..3ff74c9f31cd1bbb3da69ec81f07ba8af071c0fe 100644 (file)
@@ -1620,7 +1620,7 @@ if [ x"$D" = "x" ]; then
 fi
 }
 
-RPMDEPS = "${STAGING_LIBDIR_NATIVE}/rpm/rpmdeps --alldeps"
+RPMDEPS = "${STAGING_LIBDIR_NATIVE}/rpm/rpmdeps --alldeps --define '__font_provides %{nil}'"
 
 # Collect perfile run-time dependency metadata
 # Output:
index 95731c7d8d584dd2bd97420844043e221a232131..7de409197ee3a28e993126d1cc2cdbc47c66f342 100644 (file)
@@ -683,6 +683,7 @@ python do_package_rpm () {
     cmd = cmd + " --define 'clamp_mtime_to_source_date_epoch 1'"
     cmd = cmd + " --define 'use_source_date_epoch_as_buildtime 1'"
     cmd = cmd + " --define '_buildhost reproducible'"
+    cmd = cmd + " --define '__font_provides %{nil}'"
     if perfiledeps:
         cmd = cmd + " --define '__find_requires " + outdepends + "'"
         cmd = cmd + " --define '__find_provides " + outprovides + "'"