fonts: Bump HASHEQUIV_HASH_VERSION after rpmdeps change
PATCH 1/13 fonts: Bump HASHEQUIV_HASH_VERSION after rpmdeps change
After the rpmdeps change, the output didn't change in the correct case and hence hashes were cross-linked. We bump the hashequiv version to avoid problems from this.
Also bump PR to force a rebuild.
--- .../cantarell-fonts/cantarell-fonts_0.301.bb | 4 ++++ meta/recipes-graphics/ttf-fonts/liberation-fonts_2.00.1.bb | 4 ++++ meta/recipes-graphics/ttf-fonts/ttf-bitstream-vera_1.10.bb | 5 ++++- meta/recipes-graphics/xorg-font/xorg-minimal-fonts.bb | 4 +++- 4 files changed, 15 insertions(+), 2 deletions(-)
meta/recipes-graphics/cantarell-fonts/cantarell-fonts_0.301.bb +4 -0
@@ -13,6 +13,10 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=fb1ef92b6909969a472a6ea3c4e99cb7" inherit gnomebase meson allarch fontcache pkgconfig SRC_URI[archive.sha256sum] = "3d35db0ac03f9e6b0d5a53577591b714238985f4cfc31a0aa17f26cd74675e83" +# remove at next version upgrade or when output changes +PR = "r1" +HASHEQUIV_HASH_VERSION .= ".2" + EXTRA_OEMESON += "-Duseprebuilt=true -Dbuildappstream=false" FILES_${PN} = "${datadir}/fonts ${datadir}/fontconfig"
meta/recipes-graphics/ttf-fonts/liberation-fonts_2.00.1.bb +4 -0
@@ -10,6 +10,10 @@ LICENSE = "OFL-1.1" LIC_FILES_CHKSUM = "file://LICENSE;md5=f96db970a9a46c5369142b99f530366b" PE = "1" +# remove at next version upgrade or when output changes +PR = "r1" +HASHEQUIV_HASH_VERSION .= ".2" + inherit allarch fontcache FONT_PACKAGES = "${PN}"
meta/recipes-graphics/ttf-fonts/ttf-bitstream-vera_1.10.bb +4 -1
@@ -7,10 +7,13 @@ but is visibly different than normal and bold, and reasonably pleasing." SECTION = "x11/fonts" LICENSE = "BitstreamVera" LIC_FILES_CHKSUM = "file://COPYRIGHT.TXT;md5=27d7484b1e18d0ee4ce538644a3f04be" -PR = "r7" +PR = "r8" inherit allarch fontcache +# remove at next version upgrade or when output changes +HASHEQUIV_HASH_VERSION .= ".1" + FONT_PACKAGES = "${PN}" SRC_URI = "${GNOME_MIRROR}/ttf-bitstream-vera/1.10/ttf-bitstream-vera-${PV}.tar.bz2"
meta/recipes-graphics/xorg-font/xorg-minimal-fonts.bb +3 -1
@@ -13,7 +13,9 @@ SRC_URI = "file://misc" SOURCE_DATE_EPOCH = "1613559011" PE = "1" -PR = "r3" +PR = "r4" +# remove at next version upgrade or when output changes +HASHEQUIV_HASH_VERSION .= ".1" inherit allarch features_check
Signature · 1 line
2.27.0
PATCH 2/13 rsync: Update patch status
Mark the path as submitted and effectively a backport as a different fix was added upstream addressing the issue.
--- meta/recipes-devtools/rsync/files/determism.patch | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
meta/recipes-devtools/rsync/files/determism.patch +7 -1
@@ -8,7 +8,13 @@ SHELL (/bin/sh) is dash or bash. Specify a C locale setting to be deterministic. Signed-off-by: Richard Purdie <[email protected]> -Upstream-Status: Pending +Submitted: https://github.com/WayneD/rsync/pull/155 + +Upstream-Status: Backport [ish, see below] + +After discussion upstream renamed util.c to util1.c which avoids the problem +in a different way. This patch can be dropped when we upgrade to include: +https://github.com/WayneD/rsync/commit/d3085f7add38a5cf833a0b31cb0637ff46c80f8d Index: rsync-3.2.3/Makefile.in ===================================================================
Signature · 1 line
2.27.0
PATCH 3/13 gtk-doc: Fix reproducibility issue
In reply to Richard Purdieconfig_data was including a build system path to pkg-config, fix this.
--- meta/lib/oeqa/selftest/cases/reproducible.py | 1 - meta/recipes-gnome/gtk-doc/gtk-doc_1.33.2.bb | 1 + 2 files changed, 1 insertion(+), 1 deletion(-)
meta/lib/oeqa/selftest/cases/reproducible.py +0 -1
@@ -39,7 +39,6 @@ exclude_packages = [ 'go-', 'gst-devtools', 'gstreamer1.0-python', - 'gtk-doc', 'igt-gpu-tools', 'libaprutil', 'libhandy-1-src',
meta/recipes-gnome/gtk-doc/gtk-doc_1.33.2.bb +1 -0
@@ -39,6 +39,7 @@ do_install_append () { # configure values for python3 and pkg-config encoded in scripts for fn in ${bindir}/gtkdoc-depscan \ ${bindir}/gtkdoc-mkhtml2 \ + ${datadir}/gtk-doc/python/gtkdoc/config_data.py \ ${datadir}/gtk-doc/python/gtkdoc/config.py; do sed -e 's,${RECIPE_SYSROOT_NATIVE}/usr/bin/pkg-config,${bindir}/pkg-config,' \ -e 's,${HOSTTOOLS_DIR}/python3,${bindir}/python3,' \
Signature · 1 line
2.27.0
PATCH 4/13 epiphany: Fix reproducibility issue
In reply to Richard PurdieWe don't want to encide BUILD_ROOT into target packages. This is used for build time tests but in our case those would be on target anyway do use the target paths.
--- meta/lib/oeqa/selftest/cases/reproducible.py | 1 - .../recipes-gnome/epiphany/epiphany_3.38.2.bb | 1 + .../epiphany/files/migrator.patch | 24 +++++++++++++++++++ 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 meta/recipes-gnome/epiphany/files/migrator.patch
meta/lib/oeqa/selftest/cases/reproducible.py +0 -1
@@ -30,7 +30,6 @@ import datetime exclude_packages = [ 'bootchart2-doc', 'efivar', - 'epiphany', 'glide', 'go-dep', 'go-helloworld',
meta/recipes-gnome/epiphany/epiphany_3.38.2.bb +1 -0
@@ -13,6 +13,7 @@ REQUIRED_DISTRO_FEATURES = "x11 opengl" SRC_URI = "${GNOME_MIRROR}/${GNOMEBN}/${@gnome_verdir("${PV}")}/${GNOMEBN}-${PV}.tar.${GNOME_COMPRESS_TYPE};name=archive \ file://0002-help-meson.build-disable-the-use-of-yelp.patch \ + file://migrator.patch \ " SRC_URI[archive.sha256sum] = "8b05f2bcc1e80ecf4a10f6f01b3285087eb4cbdf5741dffb8c0355715ef5116d"
meta/recipes-gnome/epiphany/files/migrator.patch new file +24 -0
@@ -0,0 +1,24 @@ +We don't want to encide BUILD_ROOT into target packages. This is used +for build time tests but in our case those would be on target anyway +do use the target paths. + +Upstream-Status: Pending +RP 2021/2/25 + +Index: epiphany-3.38.2/lib/ephy-profile-utils.c +=================================================================== +--- epiphany-3.38.2.orig/lib/ephy-profile-utils.c ++++ epiphany-3.38.2/lib/ephy-profile-utils.c +@@ -130,10 +130,10 @@ ephy_profile_utils_do_migration (const c + argv[i++] = NULL; + + #if DEVELOPER_MODE +- argv[0] = BUILD_ROOT "/src/" EPHY_PROFILE_MIGRATOR; ++ argv[0] = PKGLIBEXECDIR "/" EPHY_PROFILE_MIGRATOR; + #else + if (debug) +- argv[0] = BUILD_ROOT "/src/" EPHY_PROFILE_MIGRATOR; ++ argv[0] = PKGLIBEXECDIR "/" EPHY_PROFILE_MIGRATOR; + #endif + + g_spawn_sync (NULL, (char **)argv, envp, G_SPAWN_SEARCH_PATH,
Signature · 1 line
2.27.0
PATCH 5/13 epiphany: Fix distributor contamination from /etc/os-release
In reply to Richard PurdieSet our own distro string rather than using the value from /etc/os-release.
--- meta/recipes-gnome/epiphany/epiphany_3.38.2.bb | 1 + .../epiphany/files/distributor.patch | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 meta/recipes-gnome/epiphany/files/distributor.patch
meta/recipes-gnome/epiphany/epiphany_3.38.2.bb +1 -0
@@ -14,6 +14,7 @@ REQUIRED_DISTRO_FEATURES = "x11 opengl" SRC_URI = "${GNOME_MIRROR}/${GNOMEBN}/${@gnome_verdir("${PV}")}/${GNOMEBN}-${PV}.tar.${GNOME_COMPRESS_TYPE};name=archive \ file://0002-help-meson.build-disable-the-use-of-yelp.patch \ file://migrator.patch \ + file://distributor.patch \ " SRC_URI[archive.sha256sum] = "8b05f2bcc1e80ecf4a10f6f01b3285087eb4cbdf5741dffb8c0355715ef5116d"
meta/recipes-gnome/epiphany/files/distributor.patch new file +17 -0
@@ -0,0 +1,17 @@ +Don't encode the distro from /etc/os-release into the binaries. + +Upstream-Status: Pending +RP 2021/2/26 + +Index: epiphany-3.38.2/meson.build +=================================================================== +--- epiphany-3.38.2.orig/meson.build ++++ epiphany-3.38.2/meson.build +@@ -15,6 +15,7 @@ if r.returncode() == 0 + else + distributor_name = 'GNOME Web' + endif ++distributor_name = 'OpenEmbedded' + + prefix = get_option('prefix') + datadir = join_paths(prefix, get_option('datadir'))
Signature · 1 line
2.27.0
PATCH 6/13 gst-devtools: Fix reproducibility issue
In reply to Richard Purdie--- meta/lib/oeqa/selftest/cases/reproducible.py | 1 - meta/recipes-multimedia/gstreamer/gst-devtools_1.18.3.bb | 7 +++++++ 2 files changed, 7 insertions(+), 1 deletion(-)
meta/lib/oeqa/selftest/cases/reproducible.py +0 -1
@@ -36,7 +36,6 @@ exclude_packages = [ 'go-runtime', 'go_', 'go-', - 'gst-devtools', 'gstreamer1.0-python', 'igt-gpu-tools', 'libaprutil',
meta/recipes-multimedia/gstreamer/gst-devtools_1.18.3.bb +7 -0
@@ -38,5 +38,12 @@ EXTRA_OEMESON += " \ ${@gettext_oemeson(d)} \ " +do_install_append () { + for fn in ${bindir}/gst-validate-launcher \ + ${libdir}/gst-validate-launcher/python/launcher/config.py; do + sed -i -e 's,${B},/usr/src/debug/${PN},g' -e 's,${S},/usr/src/debug/${PN},g' ${D}$fn + done +} + GIR_MESON_ENABLE_FLAG = "enabled" GIR_MESON_DISABLE_FLAG = "disabled"
Signature · 1 line
2.27.0
PATCH 7/13 parted: Fix reproducibility issue
In reply to Richard PurdieWe don't use tbe BUILDINFO line of host information in the Makefile so remove it for reproducibility.
--- meta/lib/oeqa/selftest/cases/reproducible.py | 1 - meta/recipes-extended/parted/parted_3.4.bb | 1 + 2 files changed, 1 insertion(+), 1 deletion(-)
meta/lib/oeqa/selftest/cases/reproducible.py +0 -1
@@ -48,7 +48,6 @@ exclude_packages = [ 'ltp', 'meson', 'ovmf-shell-efi', - 'parted-ptest', 'perf', 'python3-cython', 'qemu',
meta/recipes-extended/parted/parted_3.4.bb +1 -0
@@ -39,6 +39,7 @@ do_install_ptest() { sed -i "s|^abs_srcdir =.*|abs_srcdir = \.|g" $t/tests/Makefile sed -i "s|^abs_top_srcdir =.*|abs_top_srcdir = \.\.|g" $t/tests/Makefile sed -i "s|^Makefile:.*|Makefile:|g" $t/tests/Makefile + sed -i "/^BUILDINFO.*$/d" $t/tests/Makefile for i in print-align print-max print-flags dup-clobber duplicate fs-resize; \ do cp ${B}/tests/.libs/$i $t/tests/; \ done
Signature · 1 line
2.27.0
PATCH 8/13 libsecret: Improve determimism
In reply to Richard Purdie--- meta/lib/oeqa/selftest/cases/reproducible.py | 2 - .../libsecret/libsecret/determinism.patch | 37 +++++++++++++++++++ .../libsecret/libsecret_0.20.4.bb | 2 + 3 files changed, 39 insertions(+), 2 deletions(-) create mode 100644 meta/recipes-gnome/libsecret/libsecret/determinism.patch
meta/lib/oeqa/selftest/cases/reproducible.py +0 -2
@@ -41,8 +41,6 @@ exclude_packages = [ 'libaprutil', 'libhandy-1-src', 'libid3tag', - 'libsecret-dev', - 'libsecret-src', 'lttng-tools-dbg', 'lttng-tools-ptest', 'ltp',
meta/recipes-gnome/libsecret/libsecret/determinism.patch new file +37 -0
@@ -0,0 +1,37 @@ +secret-enum-types.c/h.template: Fix reproducibility issue + +When full filenames are used in generated sources it makes the resulting +debug packages non-reproducible. Best practise is to use basename in +comments instead. + +Signed-off-by: Richard Purdie [email protected] +Upstream-Status: Submitted [https://gitlab.gnome.org/GNOME/libsecret/-/merge_requests/68] + +Index: libsecret-0.20.4/libsecret/secret-enum-types.c.template +=================================================================== +--- libsecret-0.20.4.orig/libsecret/secret-enum-types.c.template ++++ libsecret-0.20.4/libsecret/secret-enum-types.c.template +@@ -23,8 +23,8 @@ + /*** END file-header ***/ + + /*** BEGIN file-production ***/ +-#include "@filename@" +-/* enumerations from "@filename@" */ ++#include "@basename@" ++/* enumerations from "@basename@" */ + /*** END file-production ***/ + + /*** BEGIN value-header ***/ +Index: libsecret-0.20.4/libsecret/secret-enum-types.h.template +=================================================================== +--- libsecret-0.20.4.orig/libsecret/secret-enum-types.h.template ++++ libsecret-0.20.4/libsecret/secret-enum-types.h.template +@@ -27,7 +27,7 @@ G_BEGIN_DECLS + + /*** BEGIN file-production ***/ + +-/* enumerations from "@filename@" */ ++/* enumerations from "@basename@" */ + /*** END file-production ***/ + + /*** BEGIN value-header ***/
meta/recipes-gnome/libsecret/libsecret_0.20.4.bb +2 -0
@@ -13,6 +13,8 @@ inherit gnomebase gtk-doc vala gobject-introspection manpages DEPENDS += "glib-2.0 libgcrypt gettext-native" +SRC_URI += " file://determinism.patch" + SRC_URI[archive.sha256sum] = "325a4c54db320c406711bf2b55e5cb5b6c29823426aa82596a907595abb39d28" GTKDOC_MESON_OPTION = 'gtk_doc'
Signature · 1 line
2.27.0
PATCH 9/13 libhandy: Fix reproducibility issue
In reply to Richard Purdie--- meta/lib/oeqa/selftest/cases/reproducible.py | 1 - .../libhandy/libhandy/determinism.patch | 35 +++++++++++++++++++ meta/recipes-gnome/libhandy/libhandy_1.0.3.bb | 3 +- 3 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 meta/recipes-gnome/libhandy/libhandy/determinism.patch
meta/lib/oeqa/selftest/cases/reproducible.py +0 -1
@@ -39,7 +39,6 @@ exclude_packages = [ 'gstreamer1.0-python', 'igt-gpu-tools', 'libaprutil', - 'libhandy-1-src', 'libid3tag', 'lttng-tools-dbg', 'lttng-tools-ptest',
meta/recipes-gnome/libhandy/libhandy/determinism.patch new file +35 -0
@@ -0,0 +1,35 @@ +hdy-enums*.c.in: Fix reproducibility issue + +When full filenames are used in generated sources it makes the resulting +debug packages non-reproducible. Best practise is to use basename in +comments instead. + +Signed-off-by: Richard Purdie [email protected] +Upstream-Status: Submitted [https://gitlab.gnome.org/GNOME/libhandy/-/merge_requests/734] + +Index: a/src/hdy-enums-private.c.in +=================================================================== +--- a/src/hdy-enums-private.c.in ++++ b/src/hdy-enums-private.c.in +@@ -7,7 +7,7 @@ + /*** END file-header ***/ + + /*** BEGIN file-production ***/ +-/* enumerations from "@filename@" */ ++/* enumerations from "@basename@" */ + /*** END file-production ***/ + + /*** BEGIN value-header ***/ +Index: a/src/hdy-enums.c.in +=================================================================== +--- a/src/hdy-enums.c.in ++++ b/src/hdy-enums.c.in +@@ -13,7 +13,7 @@ + /*** END file-header ***/ + + /*** BEGIN file-production ***/ +-/* enumerations from "@filename@" */ ++/* enumerations from "@basename@" */ + /*** END file-production ***/ + + /*** BEGIN value-header ***/
meta/recipes-gnome/libhandy/libhandy_1.0.3.bb +2 -1
@@ -2,7 +2,8 @@ SUMMARY = "A library full of GTK+ widgets for mobile phones" LICENSE = "LGPLv2.1" LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" -SRC_URI = "git://gitlab.gnome.org/GNOME/libhandy.git;protocol=https;branch=libhandy-1-0" +SRC_URI = "git://gitlab.gnome.org/GNOME/libhandy.git;protocol=https;branch=libhandy-1-0 \ + file://determinism.patch" SRCREV = "7126d2e8da9dcdeb5751e60ff6a74930804f9637" S = "${WORKDIR}/git"
Signature · 1 line
2.27.0
PATCH 10/13 image: Add directories to PSEUDO_IGNORE_PATHS
In reply to Richard PurdieSome paths used in image construction shouldn't be tracked under pseudo so list these.
--- meta/classes/image.bbclass | 2 ++ 1 file changed, 2 insertions(+)
meta/classes/image.bbclass +2 -0
@@ -180,6 +180,8 @@ IMAGE_LOCALES_ARCHIVE ?= '1' # aren't yet available. PSEUDO_PASSWD = "${IMAGE_ROOTFS}:${STAGING_DIR_NATIVE}" +PSEUDO_IGNORE_PATHS .= ",${WORKDIR}/intercept-scripts,${WORKDIR}/oe-rootfs-repo" + PACKAGE_EXCLUDE ??= "" PACKAGE_EXCLUDE[type] = "list"
Signature · 1 line
2.27.0
PATCH 11/13 populate_sdk: Add directories to PSEUDO_IGNORE_PATHS
In reply to Richard PurdieSome paths used in sdk construction shouldn't be tracked under pseudo so list these.
--- meta/classes/populate_sdk_base.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/populate_sdk_base.bbclass +1 -1
@@ -178,7 +178,7 @@ do_populate_sdk[sstate-inputdirs] = "${SDKDEPLOYDIR}" do_populate_sdk[sstate-outputdirs] = "${SDK_DEPLOY}" do_populate_sdk[stamp-extra-info] = "${MACHINE_ARCH}${SDKMACHINE}" -PSEUDO_IGNORE_PATHS .= ",${SDKDEPLOYDIR}" +PSEUDO_IGNORE_PATHS .= ",${SDKDEPLOYDIR},${WORKDIR}/oe-sdk-repo,${WORKDIR}/sstate-build-populate_sdk" fakeroot create_sdk_files() { cp ${COREBASE}/scripts/relocate_sdk.py ${SDK_OUTPUT}/${SDKPATH}/
Signature · 1 line
2.27.0
PATCH 12/13 bitbake.conf/image: Move image specific PSEUDO_IGNORE_PATHS to image class
In reply to Richard PurdieThis path is image specific so we can move to the image class definition of PSEUDO_IGNORE_PATHS.
--- meta/classes/image.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/image.bbclass +1 -1
@@ -180,7 +180,7 @@ IMAGE_LOCALES_ARCHIVE ?= '1' # aren't yet available. PSEUDO_PASSWD = "${IMAGE_ROOTFS}:${STAGING_DIR_NATIVE}" -PSEUDO_IGNORE_PATHS .= ",${WORKDIR}/intercept-scripts,${WORKDIR}/oe-rootfs-repo" +PSEUDO_IGNORE_PATHS .= ",${WORKDIR}/intercept-scripts,${WORKDIR}/oe-rootfs-repo,${WORKDIR}/sstate-build-image_complete" PACKAGE_EXCLUDE ??= "" PACKAGE_EXCLUDE[type] = "list"
Signature · 1 line
2.27.0
PATCH 13/13 bitbake.conf: Split PSEUDO_IGNORE_PATHS to be more readable
In reply to Richard PurdieWe've had a lot of concern about the readability of diffs of this path setting, refactor to avoid long line length.
--- meta/conf/bitbake.conf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
meta/conf/bitbake.conf +4 -1
@@ -683,7 +683,10 @@ SRC_URI = "" PSEUDO_LOCALSTATEDIR ?= "${WORKDIR}/pseudo/" PSEUDO_PASSWD ?= "${STAGING_DIR_TARGET}:${PSEUDO_SYSROOT}" PSEUDO_SYSROOT = "${COMPONENTS_DIR}/${BUILD_ARCH}/pseudo-native" -PSEUDO_IGNORE_PATHS = "/usr/,/etc/,/lib,/dev/,/run/,${T},${WORKDIR}/recipe-sysroot,${SSTATE_DIR},${STAMPS_DIR},${WORKDIR}/pkgdata-sysroot,${TMPDIR}/sstate-control,${DEPLOY_DIR},${WORKDIR}/deploy-,${TMPDIR}/buildstats,${WORKDIR}/sstate-build-package_,${WORKDIR}/sstate-install-package_,${WORKDIR}/sstate-build-image_complete,${TMPDIR}/sysroots-components,${BUILDHISTORY_DIR},${TMPDIR}/pkgdata,${TOPDIR}/cache,${COREBASE}/scripts,${CCACHE_DIR}" +PSEUDO_IGNORE_PATHS = "/usr/,/etc/,/lib,/dev/,/run/,${T},${WORKDIR}/recipe-sysroot,${SSTATE_DIR},${STAMPS_DIR}" +PSEUDO_IGNORE_PATHS .= ",${TMPDIR}/sstate-control,${TMPDIR}/buildstats,${TMPDIR}/sysroots-components,${TMPDIR}/pkgdata" +PSEUDO_IGNORE_PATHS .= ",${WORKDIR}/deploy-,${WORKDIR}/sstate-build-package_,${WORKDIR}/sstate-install-package_,${WORKDIR}/pkgdata-sysroot" +PSEUDO_IGNORE_PATHS .= ",${DEPLOY_DIR},${BUILDHISTORY_DIR},${TOPDIR}/cache,${COREBASE}/scripts,${CCACHE_DIR}" export PSEUDO_DISABLED = "1" #export PSEUDO_PREFIX = "${STAGING_DIR_NATIVE}${prefix_native}"
Signature · 1 line
2.27.0