From owner-freebsd-pkgbase@freebsd.org Mon Apr 6 09:56:41 2020 Return-Path: Delivered-To: freebsd-pkgbase@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2F2902AAE56 for ; Mon, 6 Apr 2020 09:56:41 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from msa1.earth.yoonka.com (yoonka.com [88.98.225.149]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "msa1.earth.yoonka.com", Issuer "msa1.earth.yoonka.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 48wmCW5QZXz3KTG for ; Mon, 6 Apr 2020 09:56:39 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from crayon2.yoonka.com (crayon2.yoonka.com [10.70.7.20]) (authenticated bits=0) by msa1.earth.yoonka.com (8.15.2/8.15.2) with ESMTPSA id 0369ucMK056230 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Mon, 6 Apr 2020 09:56:38 GMT (envelope-from list1@gjunka.com) Subject: Re: FreeBSD-base and poudriere To: Guido Falsi , freebsd-pkgbase@freebsd.org References: <8c4f0ffe-6961-f119-0034-0becf860b616@gjunka.com> From: Grzegorz Junka Message-ID: <649a0a62-1ae4-6ec8-308a-4dadc234126a@gjunka.com> Date: Mon, 6 Apr 2020 09:56:38 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Rspamd-Queue-Id: 48wmCW5QZXz3KTG X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of list1@gjunka.com designates 88.98.225.149 as permitted sender) smtp.mailfrom=list1@gjunka.com X-Spamd-Result: default: False [-5.86 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:88.98.225.149:c]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[gjunka.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; IP_SCORE(-3.56)[ip: (-9.32), ipnet: 88.98.192.0/18(-4.66), asn: 56478(-3.73), country: GB(-0.07)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:56478, ipnet:88.98.192.0/18, country:GB]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-pkgbase@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Packaging the FreeBSD base system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Apr 2020 09:56:41 -0000 On 06/04/2020 09:42, Guido Falsi wrote: > On 06/04/20 11:24, Grzegorz Junka wrote: >> Is it possible to create a poudriere jail using FreeBSD-base packages? >> >> I am thinking about a scenario where I build kernel/world and base >> packages on the host, then create a poudriere jail to build packages on >> the exact same kernel/world that was build on the host. > I'm doing a similar thing on head. What I do is run normal svn up; make > buildworld; make buildkernel; make packages on the poudriere machine. I > the upgrade that machine with the new base packages. > > After that I perform: > > poudriere jail -j ${j} -u -t 359154 > > where 359154 is the subversion revision I have just compiled in /usr/src. > > So I get packages for that exact head revision. > > Hope this answers your question. > > BTW I have found no way to create a jail with a fixed svn revision from > the get go. When I need to do that, I resort to temporarily modifying > poudriere code at jail.sh:563, adding -r option. I then revert the > change. > Thanks, that's interesting. So, poudriere will build the jail from sources from that specific revision? But I think it still won't solve the problem where the base packages have been build with modified kernel configuration. Can you supply a custom kernel configuration in your method? If you have already build the kernel and world on the host, why not use poudriere jail -c -j 12-1 -v 12.1 -m src=/usr/src GrzegorzJ