Re: [OE-core] [PATCH 08/11] serf: do not install the static library

Khem Raj
2020-12-03T19:30:22Z

On Thu, Dec 3, 2020 at 5:37 AM Alexander Kanavin <alex.kanavin@gmail.com> wrote:
>
> scons is using host ar to create it, which may or may not
> be built with reproducible option by default. Rather than
> patch scons for the benefit of a single recipe, let's
> just not install the .a, which is unused anyway.
>

honestly, scons should be fixed here. Since it will be used in more
than one places
using host ar is never a good option for cross builds.
if you dare reluctant to fix scons properly that's fine but at least
create a tracker bug for it.

> Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
> ---
> meta/recipes-support/serf/serf_1.3.9.bb | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/meta/recipes-support/serf/serf_1.3.9.bb b/meta/recipes-support/serf/serf_1.3.9.bb
> index 6a27f12102..2fbf96f997 100644
> --- a/meta/recipes-support/serf/serf_1.3.9.bb
> +++ b/meta/recipes-support/serf/serf_1.3.9.bb
> @@ -30,4 +30,9 @@ EXTRA_OESCONS = " \
> OPENSSL="${STAGING_EXECPREFIXDIR}" \
> "
>
> +# scons creates non-reproducible archives
> +do_install_append() {
> + rm ${D}/${libdir}/*.a
> +}
> +
> BBCLASSEXTEND = "native nativesdk"
> --
> 2.29.2
>
>
>
>