Skip to contentSkip to conversation

layer.conf: Set elfutils version correctly

PATCH New Richard Purdie 1 participant 2 messages Aug 19, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 layer.conf: Set elfutils version correctly

We need to set PREFERRED_VERSION for elfutils or the wrong one will be used.

---
 conf/layer.conf | 1 +
 1 file changed, 1 insertion(+)
conf/layer.conf +1 -0
index 3abe6b5..b0915d4 100644
@@ -18,5 +18,6 @@ LAYERSERIES_COMPAT_gplv2 = "honister"
 
 LICENSE_PATH += "${LAYERDIR}/licenses"
 
+PREFERRED_VERSION_elfutils = "${@['', '0.148']['GPLV3' in (d.getVar('INCOMPATIBLE_LICENSE') or '').upper()]}"
 PREFERRED_VERSION_shared-mime-info = "${@['', '1.10']['GPLV3' in (d.getVar('INCOMPATIBLE_LICENSE') or '').upper()]}"
 PREFERRED_VERSION_shared-mime-info-native = "${@['', '1.10']['GPLV3' in (d.getVar('INCOMPATIBLE_LICENSE') or '').upper()]}"
Signature · 1 line
2.32.0
#1 lore raw

PATCH 2/2 elfutils: Work around reproducibility issue

The version in this layer doesn't reproduce, so disable the warnings/errors and allow it to build.

---
 recipes-devtools/elfutils/elfutils_0.148.bb | 3 +++
 1 file changed, 3 insertions(+)
recipes-devtools/elfutils/elfutils_0.148.bb +3 -0
index 848e2cf..97d88a2 100644
@@ -66,6 +66,9 @@ CFLAGS += "-Wno-error=format-truncation="
 # but 0.182 has different license, so to be safe don't backport the fix, just ignore the issue
 CFLAGS += "-Wno-error=stringop-overflow="
 
+# There are fixes in later versions for this but the old version won't be reproducible
+TARGET_CC_ARCH:remove:class-target = " -Wdate-time"
+
 EXTRA_OECONF = "--program-prefix=eu- --without-lzma"
 EXTRA_OECONF:append:class-native = " --without-bzlib"
 
Signature · 1 line
2.32.0