From owner-freebsd-hackers@FreeBSD.ORG Thu May 7 18:18:54 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7233C825 for ; Thu, 7 May 2015 18:18:54 +0000 (UTC) Received: from mail-pd0-x229.google.com (mail-pd0-x229.google.com [IPv6:2607:f8b0:400e:c02::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 41EC91A87 for ; Thu, 7 May 2015 18:18:54 +0000 (UTC) Received: by pdbqd1 with SMTP id qd1so48104201pdb.2 for ; Thu, 07 May 2015 11:18:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:mime-version:in-reply-to:content-type :content-transfer-encoding:message-id:cc:from:subject:date:to; bh=8cmaENVUzxTvWj2Me6S79cYcgY7PAUVQ23BsA/jzWW8=; b=BihESyZayBqEzaqFYZPicIT+1ueLnpRENvdAoSQpaSguUEB2LVlZf30Hl0ok3Q9NTd FOVtkcCFsSvoX1Pq9MV35DgDIcfRMq/bIuTGvFM5b/HWL/ogmPmBl3cQEhPKRqYZ/lSV dDY3uWbP6MDP0ixvwdndnaKP6dgrELmuYH/4UPKstKvWKSm25hcIYUy3HhS2Aghc/TCx wbTov5qWETLH4weIxZKA4Wo0Z/VyenWScAS8U2Lzhy4eWnSSNu/wsPd46fgarqST2XvW OEixN9d9qGX5xtADjZ5w53VkoZHW7mFFjHlINXxrKHA7cEMtd274eiXOLJsuaqcJtDCH L2dA== X-Received: by 10.68.57.226 with SMTP id l2mr9197194pbq.104.1431022733599; Thu, 07 May 2015 11:18:53 -0700 (PDT) Received: from ?IPv6:2601:8:ab80:7d6:c55c:39ee:17bf:9b21? ([2601:8:ab80:7d6:c55c:39ee:17bf:9b21]) by mx.google.com with ESMTPSA id x2sm2833451pdm.40.2015.05.07.11.18.52 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 07 May 2015 11:18:52 -0700 (PDT) References: <201505071122.36037.holger@layer-acht.org> Mime-Version: 1.0 (1.0) In-Reply-To: <201505071122.36037.holger@layer-acht.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-Id: <778FDC61-AE00-4A0C-A867-66B425B63C41@gmail.com> Cc: "freebsd-hackers@freebsd.org" X-Mailer: iPhone Mail (12F70) From: Garrett Cooper Subject: Re: reproducible builds of FreeBSD in a chroot on Linux Date: Thu, 7 May 2015 11:18:51 -0700 To: Holger Levsen X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 May 2015 18:18:54 -0000 > On May 7, 2015, at 02:22, Holger Levsen wrote: >=20 > Hi, >=20 > I'm one of the people involved in https://wiki.debian.org/ReproducibleBuil= ds > and have set up https://reproducible.debian.net which continously tests al= l > packages in the Debian archive for build reproducibility (so far on amd64 > only). >=20 > For those who don't know, reproducible builds enable everyone to independe= ntly > verify that a given binary comes from specific source. This also allows to= > indirectly verify that one's build system has not been tempered with - and= > more. Please check the first URL of this mail for "the rest of the story".= >=20 > And then someone pointed me to https://wiki.freebsd.org/ReproducibleBuilds= > - kudos for how far you already!(!!) >=20 > So now I would like to build freebsd myself, twice, and compare the result= s > and show these results as in > https://reproducible.debian.net/rb-pkg/unstable/amd64/gcc-4.9.html - and t= hen > quite probably set up a jenkins job on jenkins.debian.net and do this ever= y > week.=20 >=20 > Here's the catch: I have basically no clue about freebsd - and I want to > build on Debian linux (on amd64) in a chroot. (And, it will need you peopl= e to > look at the results and eventually fix them!) ;-)=20 >=20 > So maybe can you help me with my next step. I've found the github freebsd > repo and cloned it, how to proceed further now? >=20 > $ make buildworld > Makefile:137: *** missing separator. Stop. >=20 > in the master branch of git://github.com/freebsd/freebsd wasn't right.. :/= ;) >=20 >=20 > Thanks for any help and pointers! I've tried to find documentation on this= but > had no luck so I figured I could just ask... >=20 >=20 > cheers, > Holger >=20 > (please cc: me I'm not subscribed.) Using bmake instead of make like others suggested should get you further, bu= t IIRC you'll have to do some more magic with BOOTSTRAPPING and other things= to make the compile work (I think some of the GNU user land tools don't wor= k in other areas of the build). There was some interest in fixing this a whi= le ago, but I didn't have a commit bit at the time so I couldn't do it. This is something my employer would kind of like to work. If I get bored and am up at BSDCan, I'll see if I can get this to work on Fe= dora 20... Cheers! -NGie=