Skip to contentSkip to conversation

Disable Reproducible Build - reg

DISCUSSION Daniel Selvan 4 participants 6 messages May 18, 2021 1 message not in the archive

lore
Share & tools
lore
#2 lore raw

You could either create a distro configuration of your own (one that doesn't inherit the poky.conf) or set BUILD_REPRODUCIBLE_BINARIES to 0 to reduce the impact of the inherited reproducible_build class

Quoted 25 lines · Daniel Selvan

Hi,

I wonder how to disable the Yocto reproducible builds, since it is enabled by default now (https://www.yoctoproject.org/docs/latest/ref-manual/ref-manual.html#migration-3.1-reproducible-builds <https://www.yoctoproject.org/docs/latest/ref-manual/ref-manual.html#migration-3.1-reproducible-builds>).

Thanks in advance.

Kind regards,

Daniel Selvan D.

Senior Systems Engineer*|* Jasmin Infotech <http://www.jasmin-infotech.com/the-company/contact-us/>

*+91 9445556596 <callto:9445556596>*

--

P Please consider the environment before printing this email.

Information in this email is proprietary and Confidential to Jasmin Infotech Pvt. Ltd. Any use, copying or dissemination of the information in any manner without prior approval, is strictly prohibited. If you are not the intended recipient, please destroy the message and please inform to us..

#3 lore raw

Hi,

I already added the line "BUILD_REPRODUCIBLE_BINARIES = '0'" in by local.conf yet if I try to add __DATE__ I get the following error: "error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]"

Can you comment on this?

Kind regards,

Daniel Selvan D.

Signature · 11 lines
P Please consider the environment before printing this email.

----- Original Message -----
From: "Konrad Weihmann" <[email protected]>
To: "Daniel D" <[email protected]>, "poky" <[email protected]>, "bitbake-devel" <[email protected]>
Sent: Tuesday, 18 May, 2021 13:26:19
Subject: Re: [bitbake-devel] Disable Reproducible Build - reg

You could either create a distro configuration of your own (one that 
doesn't inherit the poky.conf) or set `BUILD_REPRODUCIBLE_BINARIES` to 
`0` to reduce the impact of the inherited reproducible_build class
Quoted 33 lines · Daniel Selvan

Hi,

I wonder how to disable the Yocto reproducible builds, since it is enabled by default now
(https://www.yoctoproject.org/docs/latest/ref-manual/ref-manual.html#migration-3.1-reproducible-builds
<https://www.yoctoproject.org/docs/latest/ref-manual/ref-manual.html#migration-3.1-reproducible-builds>).

Thanks in advance.

Kind regards,

Daniel Selvan D.

Senior Systems Engineer*|* Jasmin Infotech
<http://www.jasmin-infotech.com/the-company/contact-us/>

*+91 9445556596 <callto:9445556596>*

--

P Please consider the environment before printing this email.

Information in this email is proprietary and Confidential to Jasmin Infotech Pvt. Ltd. Any use, copying or dissemination of the information in any manner without prior approval, is strictly prohibited. If you are not the intended recipient, please destroy the message and please inform to us..

#4 lore raw
Quoted 5 lines · Daniel D

Hi,

I already added the line "BUILD_REPRODUCIBLE_BINARIES = '0'" in by local.conf yet if I try to add __DATE__ I get the following error: "error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]"

Can you comment on this?

That should be handled in the recipe scope I think, by adding something like CFLAGS += "-Wno-error=date-time" (assuming this is C code we are talking about)

Quoted 7 lines

Kind regards,

Daniel Selvan D.

#5 lore raw
In reply to Daniel Selvan

That error isn't caused by Yocto, so you'll have to work on the source of the recipe that is failing.

Ross

Quoted 67 lines · Daniel Selvan

Hi,

I already added the line "BUILD_REPRODUCIBLE_BINARIES = '0'" in by local.conf yet if I try to add __DATE__ I get the following error: "error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]"

Can you comment on this?

Kind regards,

Daniel Selvan D.

--

P Please consider the environment before printing this email.

----- Original Message -----
From: "Konrad Weihmann" <[email protected]>
To: "Daniel D" <[email protected]>, "poky" <[email protected]>, "bitbake-devel" <[email protected]>
Sent: Tuesday, 18 May, 2021 13:26:19
Subject: Re: [bitbake-devel] Disable Reproducible Build - reg

You could either create a distro configuration of your own (one that doesn't inherit the poky.conf) or set BUILD_REPRODUCIBLE_BINARIES to 0 to reduce the impact of the inherited reproducible_build class

Quoted 33 lines · Daniel Selvan

Hi,

I wonder how to disable the Yocto reproducible builds, since it is enabled by default now
(https://www.yoctoproject.org/docs/latest/ref-manual/ref-manual.html#migration-3.1-reproducible-builds
<https://www.yoctoproject.org/docs/latest/ref-manual/ref-manual.html#migration-3.1-reproducible-builds>).

Thanks in advance.

Kind regards,

Daniel Selvan D.

Senior Systems Engineer*|* Jasmin Infotech
<http://www.jasmin-infotech.com/the-company/contact-us/>

*+91 9445556596 <callto:9445556596>*

--

P Please consider the environment before printing this email.

Information in this email is proprietary and Confidential to Jasmin Infotech Pvt. Ltd. Any use, copying or dissemination of the information in any manner without prior approval, is strictly prohibited. If you are not the intended recipient, please destroy the message and please inform to us..

#6 lore raw
In reply to Daniel Selvan
Quoted 5 lines · Daniel Selvan

Hi,

I already added the line "BUILD_REPRODUCIBLE_BINARIES = '0'" in by local.conf yet if I try to add __DATE__ I get the following error: "error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]"

Can you comment on this?

we internally enabled this option via adding it to TARGET_CC_ARCH in meta/classes/reproducible_build.bbclass

TARGET_CC_ARCH_append_class-target = " -Wdate-time"

perhaps change it to

TARGET_CC_ARCH_append_class-target = "${@oe.utils.ifelse(d.getVar('BUILD_REPRODUCIBLE_BINARIES') == '1', ' -Wdate-time', '')} "

would you mind testing it out ? and if it works for you then send a patch to oe-core

Quoted 11 lines

Kind regards,

Daniel Selvan D.