* [PATCH 1/2] icu-dbg: improve reproducibility
@ 2018-01-07 16:59 Juro Bystricky
2018-01-07 16:59 ` [PATCH 2/2] icu-dev: " Juro Bystricky
0 siblings, 1 reply; 4+ messages in thread
From: Juro Bystricky @ 2018-01-07 16:59 UTC (permalink / raw)
To: openembedded-core; +Cc: jurobystricky
Make sure build host references do not end up being compiled in the image.
This only affects libicutu and icu-dbg.
Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
---
meta/recipes-support/icu/icu.inc | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/meta/recipes-support/icu/icu.inc b/meta/recipes-support/icu/icu.inc
index 3fb16b0..5cf7b11 100644
--- a/meta/recipes-support/icu/icu.inc
+++ b/meta/recipes-support/icu/icu.inc
@@ -38,6 +38,15 @@ do_configure_prepend_libc-musl () {
sed -i -e 's,DU_HAVE_STRTOD_L=1,DU_HAVE_STRTOD_L=0,' ${S}/configure.ac
}
+do_compile_prepend_class-target () {
+ # Make sure certain build host references do not end up being compiled
+ # in the image. This only affects libicutu and icu-dbg
+ sed \
+ -e 's,DU_BUILD=,DU_BUILD_unused=,g' \
+ -e '/^CPPFLAGS.*/ s,--sysroot=${STAGING_DIR_TARGET},,g' \
+ -i ${B}/tools/toolutil/Makefile
+}
+
PREPROCESS_RELOCATE_DIRS = "${datadir}/${BPN}/${PV}"
do_install_append_class-native() {
mkdir -p ${D}/${STAGING_ICU_DIR_NATIVE}/config
--
2.7.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] icu-dev: improve reproducibility
2018-01-07 16:59 [PATCH 1/2] icu-dbg: improve reproducibility Juro Bystricky
@ 2018-01-07 16:59 ` Juro Bystricky
2018-01-08 8:44 ` Richard Purdie
0 siblings, 1 reply; 4+ messages in thread
From: Juro Bystricky @ 2018-01-07 16:59 UTC (permalink / raw)
To: openembedded-core; +Cc: jurobystricky
Remove all build host references from several distributed files:
Makefile.inc, icu-config, pkgdata.inc
Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
---
meta/recipes-support/icu/icu.inc | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/meta/recipes-support/icu/icu.inc b/meta/recipes-support/icu/icu.inc
index 5cf7b11..c41ea8a 100644
--- a/meta/recipes-support/icu/icu.inc
+++ b/meta/recipes-support/icu/icu.inc
@@ -64,6 +64,14 @@ do_install_append_class-target() {
rm -f ${D}/${datadir}/${BPN}/${PV}/icudt${ICU_MAJOR_VER}b.dat
icupkg -tb ${S}/data/in/icudt${ICU_MAJOR_VER}l.dat ${D}/${datadir}/${BPN}/${PV}/icudt${ICU_MAJOR_VER}b.dat
fi
+
+ # Remove build host references...
+ sed -i \
+ -e 's,--sysroot=${STAGING_DIR_TARGET},,g' \
+ -e 's|${DEBUG_PREFIX_MAP}||g' \
+ -e 's:${HOSTTOOLS_DIR}/::g' \
+ ${D}/usr/bin/icu-config ${D}/usr/lib/icu/${PV}/Makefile.inc \
+ ${D}/usr/lib/icu/${PV}/pkgdata.inc
}
PACKAGES =+ "libicudata libicuuc libicui18n libicutu libicuio"
--
2.7.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 2/2] icu-dev: improve reproducibility
2018-01-07 16:59 ` [PATCH 2/2] icu-dev: " Juro Bystricky
@ 2018-01-08 8:44 ` Richard Purdie
2018-01-08 16:56 ` Bystricky, Juro
0 siblings, 1 reply; 4+ messages in thread
From: Richard Purdie @ 2018-01-08 8:44 UTC (permalink / raw)
To: Juro Bystricky, openembedded-core; +Cc: jurobystricky
On Sun, 2018-01-07 at 08:59 -0800, Juro Bystricky wrote:
> Remove all build host references from several distributed files:
> Makefile.inc, icu-config, pkgdata.inc
>
> Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
> ---
> meta/recipes-support/icu/icu.inc | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/meta/recipes-support/icu/icu.inc b/meta/recipes-
> support/icu/icu.inc
> index 5cf7b11..c41ea8a 100644
> --- a/meta/recipes-support/icu/icu.inc
> +++ b/meta/recipes-support/icu/icu.inc
> @@ -64,6 +64,14 @@ do_install_append_class-target() {
> rm -f
> ${D}/${datadir}/${BPN}/${PV}/icudt${ICU_MAJOR_VER}b.dat
> icupkg -tb ${S}/data/in/icudt${ICU_MAJOR_VER}l.dat
> ${D}/${datadir}/${BPN}/${PV}/icudt${ICU_MAJOR_VER}b.dat
> fi
> +
> + # Remove build host references...
> + sed -i \
> + -e 's,--sysroot=${STAGING_DIR_TARGET},,g' \
> + -e 's|${DEBUG_PREFIX_MAP}||g' \
> + -e 's:${HOSTTOOLS_DIR}/::g' \
> + ${D}/usr/bin/icu-config
> ${D}/usr/lib/icu/${PV}/Makefile.inc \
> + ${D}/usr/lib/icu/${PV}/pkgdata.inc
> }
>
> PACKAGES =+ "libicudata libicuuc libicui18n libicutu libicuio"
Hardcoded /usr/lib?
https://autobuilder.yocto.io/builders/nightly-multilib/builds/703/steps/BuildImages_2/logs/stdio
Cheers,
Richard
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 2/2] icu-dev: improve reproducibility
2018-01-08 8:44 ` Richard Purdie
@ 2018-01-08 16:56 ` Bystricky, Juro
0 siblings, 0 replies; 4+ messages in thread
From: Bystricky, Juro @ 2018-01-08 16:56 UTC (permalink / raw)
To: Richard Purdie, openembedded-core@lists.openembedded.org
Cc: jurobystricky@hotmail.com
> Hardcoded /usr/lib?
> https://autobuilder.yocto.io/builders/nightly-multilib/builds/703/steps/BuildImages_2/logs/stdio
yes, exactly. Will replace /usr/lib -> ${libdir} and retest with a MULTILIB build .
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-01-08 16:58 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-07 16:59 [PATCH 1/2] icu-dbg: improve reproducibility Juro Bystricky
2018-01-07 16:59 ` [PATCH 2/2] icu-dev: " Juro Bystricky
2018-01-08 8:44 ` Richard Purdie
2018-01-08 16:56 ` Bystricky, Juro
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox