Bug 8457

Summary: package.bbclass: strip archive files
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Robert Yang <liezhi.yang>
Component: coreAssignee: Hongxu Jia <hongxu.jia>
Status: RESOLVED FIXED QA Contact: Daniel Istrate <daniel.alexandrux.istrate>
Severity: enhancement    
Priority: Medium CC: alexandru.c.georgescu, hongxu.jia, meta.mr.watcher, meta.watcher, richard.purdie, ross.burton
Version: 2.1   
Target Milestone: 2.2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Robert Yang 2015-10-08 02:52:30 UTC
For saving space and removing build path in .a files.
Comment 1 Richard Purdie 2016-02-18 16:00:16 UTC
Less of a problem now we have disabled static libraries entirely in most cases.
Comment 2 Hongxu Jia 2016-02-26 03:04:28 UTC
Currently in oe-core, only tcl, dtc and valgrind have buildpath issue in its .a files.
...
tcl-8.6.4: File work/core2-64-poky-linux/tcl/8.6.4-r0/packages-split/tcl-staticdev/usr/lib64/libtclstub8.6.a in package contained reference to tmpdir [buildpaths]
dtc-1.4.1+gitAUTOINC+302fca9f4c: File work/core2-64-poky-linux/dtc/1.4.1+gitAUTOINC+302fca9f4c-r0/packages-split/dtc-staticdev/usr/lib64/libfdt.a in package contained reference to tmpdir [buildpaths]
lib32-tcl-8.6.4: File work/core2-32-pokymllib32-linux/lib32-tcl/8.6.4-r0/packages-split/lib32-tcl-staticdev/usr/lib/libtclstub8.6.a in package contained reference to tmpdir [buildpaths]
File work/core2-64-poky-linux/valgrind/3.11.0-r0/packages-split/valgrind-staticdev/usr/lib64/valgrind/libreplacemalloc_toolpreload-amd64-linux.a in package contained reference to tmpdir [buildpaths]
lib32-dtc-1.4.1+gitAUTOINC+302fca9f4c: File work/core2-32-pokymllib32-linux/lib32-dtc/1.4.1+gitAUTOINC+302fca9f4c-r0/packages-split/lib32-dtc-staticdev/usr/lib/libfdt.a in package contained reference to tmpdir [buildpaths]
File work/core2-32-pokymllib32-linux/lib32-valgrind/3.11.0-r0/packages-split/lib32-valgrind-staticdev/usr/lib/valgrind/libreplacemalloc_toolpreload-x86-linux.a in package contained reference to tmpdir [buildpaths]
...

I will fix them and then close this bug

//Hongxu
Comment 3 Ross Burton 2016-04-14 20:00:49 UTC
Fixed in oe-core 7b75303e6df5d685c1b50c53c53af3962d6b3722.  Robert, if you know of more instances, please re-open.