[oe] [meta-networking][PATCH 4/7] net-snmp: fix reproducibilty issues in net-snmp-config

Jeremy A. Puhlman jpuhlman at mvista.com
Sat Mar 7 02:56:51 UTC 2020



On 3/6/2020 5:36 PM, Khem Raj wrote:
> Hi Jeremy
>
> On 3/5/20 2:39 PM, Jeremy A. Puhlman wrote:
>> From: Jeremy Puhlman <jpuhlman at mvista.com>
>>
>> Both STAGING_HOST_DIR and -fmacro-prefix-map path to WORKDIR were
>> encoded in the config.
>>
>> Signed-off-by: Jeremy A. Puhlman <jpuhlman at mvista.com>
>> ---
>>   meta-networking/recipes-protocols/net-snmp/net-snmp_5.8.bb | 2 ++
>>   1 file changed, 2 insertions(+)
>>
>> diff --git 
>> a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.8.bb 
>> b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.8.bb
>> index 317350e94..91c50c4e3 100644
>> --- a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.8.bb
>> +++ b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.8.bb
>> @@ -124,11 +124,13 @@ do_install_append() {
>>           -i ${D}${bindir}/net-snmp-create-v3-user
>>       sed -e 's@^NSC_SRCDIR=.*@NSC_SRCDIR=. at g' \
>>           -e 's@[^ ]*-fdebug-prefix-map=[^ "]*@@g' \
>> +        -e 's@[^ ]*-fmacro-prefix-map=[^ "]*@@g' \
>>           -e 's@[^ ]*--sysroot=[^ "]*@@g' \
>>           -e 's@[^ ]*--with-libtool-sysroot=[^ "]*@@g' \
>>           -e 's@[^ ]*--with-install-prefix=[^ "]*@@g' \
>>           -e 's@[^ ]*PKG_CONFIG_PATH=[^ "]*@@g' \
>>           -e 's@[^ ]*PKG_CONFIG_LIBDIR=[^ "]*@@g' \
>> +        -e 's@${STAGING_DIR_HOST}@@g' \
>
> This is causing problems, indirectly like
>
> https://errors.yoctoproject.org/Errors/Details/393851/
> https://errors.yoctoproject.org/Errors/Details/393852/
> https://errors.yoctoproject.org/Errors/Details/393853/
>
> Since its editing out the paths, whats left is just /usr/lib
> and that gets added to compiler commandline as -L/usr/lib which
> thankfully gets caught by Build QA
>
> perhaps this regexp can be made less greedy
Okay, no problem, I have some builds running locally to check.


-- 
Jeremy A. Puhlman
jpuhlman at mvista.com



More information about the Openembedded-devel mailing list