Bug 11656

Summary: libtool contains build host references
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Juro Bystricky <juro.bystricky>
Component: devtools / tool chainAssignee: Cinly Ooi <cinly.ooi>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: juro.bystricky, meta.mr.watcher, meta.watcher, sgw
Version: 2.4   
Target Milestone: 2.4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
diffoscope output to corrobate the bug entry none

Description Juro Bystricky 2017-06-13 15:56:35 UTC
Created attachment 3811 [details]
diffoscope output to corrobate the bug entry

libtool contains two instances of host build references:

1. LTCFLAGS:

LTCFLAGS="·​-​O2·​-​pipe·​-​g·​-​feliminate-​unused-​debug-​types·​-​fdebug-​prefix-​map=/​tmp/​ramdisk/​build-​repro-​no-​dpkg-​2017-​06-​12/​work/​i586-​poky-​linux/​libtool/​2.​4.​6-​r0=/​usr/​src/​debug/​libtool/​2.​4.​6-​r0·​-​fdebug-​prefix-​map=-​native=·​-​fdebug-​prefix-​map==·​-​ffile-​prefix-​map=/​tmp/​ramdisk/​build-​repro-​no-​dpkg-​2017-​06-​12/​work/​i586-​poky-​linux/​libtool/​2.​4.​6-​r0/​libtool-​2.​4.​6=/​libtool-​2.​4.​6/​·​·​-​ffile-​prefix-​map=/​tmp/​ramdisk/​build-​repro-​no-​dpkg-​2017-​06-​12/​work/​i586-​poky-​linux/​libtool/​2.​4.​6-​r0/​libtool-​2.​4.​6=/​libtool-​2.​4.​6/​

2:
lt_truncate_bin="/​tmp/​ramdisk/​build-​repro-​no-​dpkg-​2017-​06-​12/​hosttools/​dd·​bs=4096·​count=1" 

These not only prevent binary reproducibility, but I would assume prevent proper functionality as well.
I believe the remedy would be to set them as:

LTCFLAGS="·​-​O2·​-​pipe·​-​g·​-​feliminate-​unused-​debug-​types
lt_truncate_bin="dd·​bs=4096·​count=1"
Comment 1 Cinly Ooi 2017-08-24 12:04:20 UTC
Merged in oe-core 04db02138e363898e040e33557f1296e8a43c3fd
Comment 2 Cinly Ooi 2017-08-25 00:24:14 UTC
Merged in oe-core 04db02138e363898e040e33557f1296e8a43c3fd