Bug 11656 - libtool contains build host references
Summary: libtool contains build host references
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 2.4
Hardware: x86 Multiple
: Medium normal
Target Milestone: 2.4
Assignee: Cinly Ooi
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-06-13 15:56 UTC by Juro Bystricky
Modified: 2017-08-25 00:24 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
diffoscope output to corrobate the bug entry (59.66 KB, text/html)
2017-06-13 15:56 UTC, Juro Bystricky
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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