From nobody Wed Sep 29 08:40:02 2021 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 5447A17EF5DB for ; Wed, 29 Sep 2021 08:40:11 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mx.blih.net (mail.blih.net [212.83.155.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mx.blih.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HK8vb072Pz4lRK for ; Wed, 29 Sep 2021 08:40:10 +0000 (UTC) (envelope-from manu@bidouilliste.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bidouilliste.com; s=mx; t=1632904802; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=X9eM/fQ4U14m4YNt1UhJ72itSrVUJXoM1F2AZfeUqmo=; b=LP6pv9DEeZx6wsmzygKErv5ie0ETqS8OY75R2hZEWswmq4IT+mzyHtFcWSzbu0ctFfVKB+ gaqDJjkblmFBHyEMSzt+c4+N7bcboHGlPeOdcKz+82LaNB2HcHLHGX5VqIhNHjfxpN+tl0 FcM61GCQCdFNfOyAwqaHzFqkVBuriSc= Received: from amy (lfbn-idf2-1-644-191.w86-247.abo.wanadoo.fr [86.247.100.191]) by mx.blih.net (OpenSMTPD) with ESMTPSA id 19059686 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Wed, 29 Sep 2021 08:40:02 +0000 (UTC) Date: Wed, 29 Sep 2021 10:40:02 +0200 From: Emmanuel Vadot To: FreeBSD User Cc: freebsd-current@freebsd.org Subject: Re: FreeBSD base pkg (packaging) and critical ports build alongside Message-Id: <20210929104002.5a3221882165fba1c90713ad@bidouilliste.com> In-Reply-To: <20210929102805.1ac3a59d@freyja> References: <20210929102805.1ac3a59d@freyja> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd14.0) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4HK8vb072Pz4lRK X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N Hello, On Wed, 29 Sep 2021 10:28:05 +0200 FreeBSD User wrote: > Hello, > > I use FreeBSD-base packages built on self hosted systems to update 13-STABLE > and CURRENT hosts. I run into the problem, that the packages of the FreeBSD > base, built via the FreeBSD framework and from most recent 13-STABLE sources, > are often oit of synchronisation with our poudriere packaging builders, that is > especially true for critical ports with kernel modules, like i915 drm, > virtualbox and so on. The problem is, obviously, barehanded: 13-STABLE sources > and probably the API changes more rapidly than those of the appropriate builder > hosts for poudriere and since it takes a bunch of days to build a whole > poudriere packages repository, there is often a gap between the revision of the > kernel and the port containing kernel modules. > > So, the question is: how can I add ports to the building process of the FreeBSD > sources tree in the way they get build every time I build the FreeBSD-base > packages alongside the OS? > > Thanks in advance, > > oh > What I do to have packages (from ports) and pkgbase in sync is that I use poudriere to also build pkgbase. It's available in poudriere-devel using -B when creating the jail. Then I simply cpdup the packages and pkgbase at the same time at the end of the package build. poudriere knows how to do make update-package for pkgbase so your machine will just update the modified packages (provided that you are on a RELEASE/STABLE branch or have WITH_REPRODUCIBLE_BUILD=yes in your jail src.conf for CURRENT). There is still one problem with that approch for kernel modules, they will be recompiled but as the version isn't bumped it will not be upgraded, so I just pkg install -f drm-devel-kmod from time to time. Cheers, -- Emmanuel Vadot