Re: [Reproducible-builds] Patches for sbuild reproducible builds

2015-02-23 Thread Holger Levsen
Hi,

On Dienstag, 17. Februar 2015, Johannes Schauer wrote:
 What you are saying is, that you wish the srebuild wrapper to be merged
 into the sbuild executable so that it does the right thing when a
 buildinfo file is present?

yes, I think that would be desirable. I also would like to see other tools, 
like pbuilder and cowbuilder, having such an option...


cheers,
Holger




signature.asc
Description: This is a digitally signed message part.
___
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Re: [Reproducible-builds] Patches for sbuild reproducible builds

2015-02-17 Thread Johannes Schauer
Hi,

Quoting Holger Levsen (2015-02-17 09:27:22)
 On Dienstag, 17. Februar 2015, Johannes Schauer wrote:
   Also, pbuilder and sbuild would need to ensure the same exact package set
   from build dependencies; [...]
  this has been taken care of by the srebuild wrapper which will take a
  buildinfo file and reproduces exactly that environment. You can find it in
  the reproducible sbuild git.
 
 still, both sbuilder and pbuilder (and other implementations) should be able 
 to reproduce any build using a .buildinfo file... without the srebuild
 wrapper.

What you are saying is, that you wish the srebuild wrapper to be merged into
the sbuild executable so that it does the right thing when a buildinfo file is
present?

cheers, josch


signature.asc
Description: signature
___
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Re: [Reproducible-builds] Patches for sbuild reproducible builds

2015-02-16 Thread Vagrant Cascadian
On 2015-02-16, Holger Levsen wrote:
 On Samstag, 14. Februar 2015, Vagrant Cascadian wrote:

 One patch sets the build dir to a static location based on the package
 version, rather than a tempdir with a random string.
 
 The other patch ignores .buildinfo files in the .changes when displaying
 package contents. Without it, the build status gets set to attempted
 and is treated as a failed build:

 cool! I think it would be good if you could file a wishlist bug against 
 sbuild 
 (please add support for reproducible building of packages with sbuild) and 
 attach the patches there, so they do get lost.

Ok, I'll submit bugs about it so that they do *not* get lost. :)


 the current setup on jenkins.d.n just uses pbuilder twice. Maybe we should 
 use 
 sbuild once and pbuilder once? Could you help us with patches for that too? I 
 at least have no clue about sbuild whatsoever ;-) We'd need to use our custom 
 repo anyway, so using an sbuild rebuild plus your two patches is rather 
 trivial...

The patch that configures the build dir would have to be rewritten for
that to work; sbuild seems to hard-code /build/ in a number of places ,
rather than the proposed /usr/src/debian/PACKAGE-VERSION; I'm not sure
what directory pbuilder is configured to use.

Also, pbuilder and sbuild would need to ensure the same exact package
set from build dependencies; there are various different dependency
resolvers which might result in differences that could cause
unreproducibility...

Could also add a third (and/or fourth) build with sbuild, to catch
issues where a package is rebuildable with pbuilder or sbuilder, but
doesn't produce consistant results when built once with pbuilder and
once with sbuild...


 git clone ssh://git.debian.org/git/qa/jenkins.debian.net.git and then check 
 bin/reproducible_build.sh line 193 and 207 to see how pbuilder is used.

 Using sbuild once instead should be trivial, no? ;-)

With the above two issues (and perhaps other undiscovered issues) fixed,
it should be as simple as replacing:

  pbuild --build ... --distribution sid ${SRCPACKAGE}_*.dsc

with:

  sbuild --chroot sid ${SRCPACKAGE}_*.dsc

With appropriately configured sbuild/schroot chroots.


live well,
  vagrant

p.s. not (yet) subscribed to list, so if you need me to respond, please
CC me.


signature.asc
Description: PGP signature
___
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Re: [Reproducible-builds] Patches for sbuild reproducible builds

2015-02-16 Thread Johannes Schauer
Hi,

Quoting Vagrant Cascadian (2015-02-16 21:01:18)
 Also, pbuilder and sbuild would need to ensure the same exact package set
 from build dependencies; there are various different dependency resolvers
 which might result in differences that could cause unreproducibility...

this has been taken care of by the srebuild wrapper which will take a buildinfo
file and reproduces exactly that environment. You can find it in the
reproducible sbuild git.

cheers, josch


signature.asc
Description: signature
___
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds