mirror of
https://git.yoctoproject.org/poky
synced 2026-06-03 01:40:07 +00:00
package/package_rpm: Disable font_provides configuration for reproducibilty
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. (From OE-Core rev: ed1fbc5a33ea6e6cdcfd4749153b51338b132619) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 1c0cd8012a96fd4d9caf33c6de5fd39cea6db55d) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -1620,7 +1620,7 @@ if [ x"$D" = "x" ]; then
|
|||||||
fi
|
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
|
# Collect perfile run-time dependency metadata
|
||||||
# Output:
|
# Output:
|
||||||
|
|||||||
@@ -683,6 +683,7 @@ python do_package_rpm () {
|
|||||||
cmd = cmd + " --define 'clamp_mtime_to_source_date_epoch 1'"
|
cmd = cmd + " --define 'clamp_mtime_to_source_date_epoch 1'"
|
||||||
cmd = cmd + " --define 'use_source_date_epoch_as_buildtime 1'"
|
cmd = cmd + " --define 'use_source_date_epoch_as_buildtime 1'"
|
||||||
cmd = cmd + " --define '_buildhost reproducible'"
|
cmd = cmd + " --define '_buildhost reproducible'"
|
||||||
|
cmd = cmd + " --define '__font_provides %{nil}'"
|
||||||
if perfiledeps:
|
if perfiledeps:
|
||||||
cmd = cmd + " --define '__find_requires " + outdepends + "'"
|
cmd = cmd + " --define '__find_requires " + outdepends + "'"
|
||||||
cmd = cmd + " --define '__find_provides " + outprovides + "'"
|
cmd = cmd + " --define '__find_provides " + outprovides + "'"
|
||||||
|
|||||||
Reference in New Issue
Block a user