[rb-general] advice on stashing compiler options in a binary

Chris Lamb lamby at debian.org
Wed Mar 20 14:34:11 CET 2019


Dear Mike,

> I recently realized this leads to a paradox with the -fdebug-prefix-map
> option, since the original build directory is recorded in the stashed
> compiler options.

Indeed. I have so far failed to come up with any kind of cleaner
solution when fixing packages affected with this "meta"
reproducibility issue beyond stripping them out with a regular
expression.

Of course, this approach is not only aesthetically displeasing, it is
practically problematic too in that one is always potentially playing
catch-up with GCC with new/updated flags. For example, you don't also
mention the parallel -ffile-prefix-map flag which also needs stripping.


Best wishes,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org 🍥 chris-lamb.co.uk
       `-


More information about the rb-general mailing list