[Reproducible-builds] Recording build path in .buildinfo

Jérémy Bobbio lunar at debian.org
Wed Nov 19 12:42:40 UTC 2014


Hi!

During the discussions at DebConf14, there was an agreement on two
things:

1. A new control file with the .buildinfo extension will be defined to
record the environment, the source of the package and the products of
the build.

2. Given the complexity of making build reproducible when builds happen in
different paths, we define a canonical build path for Debian. This will
make it easier to install sources ready to use by gdb. The idea for the
latter was to use paths like `/usr/src/debian/hello-2.8-1`.


For the time being, no one came up with a patch for pbuilder or sbuild
to switch to the proposed location. It was also proven that proot was
too unreliable to make it as pervasive as fakeroot as a way to “fake”
the current directory.

While I still think it would be a good idea to write these patches and
push for a canonical build location, I am now thinking that there's a
way to be a bit more flexible. If we would record the build path as part
of the environment in the .buildinfo, the (yet-to-be-written) `srebuild`
script could unpack the source in that location and simply build it from
there.

What do you think?

-- 
Lunar                                .''`. 
lunar at debian.org                    : :Ⓐ  :  # apt-get install anarchism
                                    `. `'` 
                                      `-   
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/reproducible-builds/attachments/20141119/83b550f1/attachment.sig>


More information about the Reproducible-builds mailing list