[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Questions about buildinfo



On 22/09/2020 16:05, Mattia Rizzolo wrote:
> Hi Alec,
> 
> On Tue, Sep 22, 2020 at 10:48:39AM +0200, Alec Leamas wrote:
>>> I have problems with the debugging info containing the local build path
>>> and the buildinfo. Status:

[snip]

> You misread the dpkg-genbuildinfo(1) manpage, the correct env var would
> be
> 
>     DEB_BUILD_OPTIONS=buildinfo=+path
> 
> (in general, the format of DEB_BUILD_OPTIONS is a space separated list
> of options followed by their value after the = sign)
> 
> However, what you are seeing is likely a byproduct of how your are doing
> your builds.  If you run your build in pbuilder or sbuild, the build
> would happen in a path starting with /build/, and dpkg would include
> that path.  That's done as to not leak the personal local paths which
> might include details you might not want to disclose.
> However, as you likely noticed, that path is also embedded in some
> compiled files; if you would like to remove them you might try to build
> specifying (see dpkg-buildflags(1)):
>     DEB_BUILD_MAINT_OPTIONS=reproducible=+fixfilepath
> We are in the process of making this flag a default of the debian
> toolchain.


Thanks for sorting this out! Had a hard time trying to wrap my head
around it until your explanation...

Cheers!
--alec


Reply to: