Bugzilla – Full Text Bug Listing |
Summary: | fwupd does not build reproducibly with LTO | ||
---|---|---|---|
Product: | [openSUSE] openSUSE Tumbleweed | Reporter: | Bernhard Wiedemann <bwiedemann> |
Component: | Development | Assignee: | Gary Ching-Pang Lin <glin> |
Status: | RESOLVED FIXED | QA Contact: | E-mail List <qa-bugs> |
Severity: | Normal | ||
Priority: | P5 - None | CC: | dleuenberger, martin.liska |
Version: | Current | ||
Target Milestone: | --- | ||
Hardware: | Other | ||
OS: | openSUSE Factory | ||
See Also: | https://github.com/hughsie/fwupd/issues/1298 | ||
Whiteboard: | |||
Found By: | Development | Services Priority: | |
Business Priority: | Blocker: | --- | |
Marketing QA Status: | --- | IT Deployment: | --- |
Bug Depends on: | |||
Bug Blocks: | 1081754 |
Description
Bernhard Wiedemann
2019-08-02 04:53:43 UTC
oops, link at the end was meant to be https://github.com/openSUSE/pesign-obs-integration/issues/9 fwupd uses FU_BUILD_HASH to determine if the plugin is built with the daemon or not. I'll check if there is any better target to generate the hash. It's hard to replace libfwupdprivate.a. A workaround would be to add a never used libfwupdprivate.so and hash the so file, but it's unlikely to be upstreamed... Maybe you could strip LTO stuff from the .a before hashing with a call like https://github.com/openSUSE/brp-check-suse/blob/master/brp-15-strip-debug#L40 Stripping .o files sounds a feasible solution. Will work on that. https://github.com/fwupd/fwupd/commit/5611fd0581b1c28de97321daefae798a78f475b8 Upstream tweaks the hash script to calculate the source files instead of the static library. (In reply to Gary Ching-Pang Lin from comment #6) > https://github.com/fwupd/fwupd/commit/ > 5611fd0581b1c28de97321daefae798a78f475b8 > Upstream tweaks the hash script to calculate the source files instead of the > static library. Great. Submitted the patch sr#726084 Closing this bug. |