From owner-freebsd-pkgbase@freebsd.org Mon Mar 14 22:00:57 2016 Return-Path: Delivered-To: freebsd-pkgbase@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 22C07AD0985 for ; Mon, 14 Mar 2016 22:00:57 +0000 (UTC) (envelope-from r.c.ladan@gmail.com) Received: from mail-wm0-x235.google.com (mail-wm0-x235.google.com [IPv6:2a00:1450:400c:c09::235]) (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 AEFFD8A5 for ; Mon, 14 Mar 2016 22:00:56 +0000 (UTC) (envelope-from r.c.ladan@gmail.com) Received: by mail-wm0-x235.google.com with SMTP id l68so120434366wml.0 for ; Mon, 14 Mar 2016 15:00:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=mhLDTABb9qgIfk+hJPbk0ipkw4FSDbn5u7elxmWtU5Y=; b=AKgGNk2b1bD/lZEWUVujPyg8zrttnHB3E5qmHKwHA8nNfBbMmJa1IQqM6ndRgoDwdq F62wnP4Z/DqCK5Pmw3VgSDY1RmBEPX9N2OxHtQRbG4T+kUTUdoRmhirOkQi4Rj1+6OCd zjSWFSoBO+7wUrxxIurN5HHvUc30INjXE9T5OCSqS6wH/DWsZKCu15IzUKMfSTm9Qwz9 wQbUFTHsGhp7TfkvXruvAtNmtGv4bDqjK/BjvDOTnocYB0QWdi7NfQxy9K9x7jJXWXbE FxYnFLo865YT4keupW3oRWbW2kf4Y8dMcK2J3GNjhLiNu31CL4LpgNz9DX9hnvkvu8I2 rPKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=mhLDTABb9qgIfk+hJPbk0ipkw4FSDbn5u7elxmWtU5Y=; b=h1qstwAXjZPx/1we36KbM+dj66Iut8HUXqAzZ++75Zbz5f1O2dLC3/qUGHLSmJ8a1F C3f5VzRmeG7z34HoSabWr3XOg7/Y7wwEmi1WMCz5NNRCt6jQTRvWFfZCP3UeiXqC4RDA JUpRjjih94R9mktePhllShMxmSVPRcZ4EjWgk3/yxiaMvujcdwyQ+7bmg/teYGZ5lCda y+drsWhcXqKSJWK3lnv8P9wsfsT+Nj1Yo3D5l/BUmppC8uKiBEcoWBaEEIQJ/fvqCgzi lQRWn1lWMfwCy9AOXjxnxuPGBmrvUlyFKCQ9hNt/EtRtH7NJWfwnog8zy/Mn/8AWdneN vMww== X-Gm-Message-State: AD7BkJKZ9eHcmcqwLoMfcjsGlOWt+Sw59ZgYpwxStAhPE7uW/fmSKYM7LMdU3dXBMnCvRA== X-Received: by 10.194.112.34 with SMTP id in2mr28972491wjb.160.1457992855124; Mon, 14 Mar 2016 15:00:55 -0700 (PDT) Received: from [192.168.178.21] (a82-161-212-209.adsl.xs4all.nl. [82.161.212.209]) by smtp.googlemail.com with ESMTPSA id gt7sm24083742wjc.1.2016.03.14.15.00.54 for (version=TLSv1/SSLv3 cipher=OTHER); Mon, 14 Mar 2016 15:00:54 -0700 (PDT) Sender: =?UTF-8?Q?Ren=C3=A9_Ladan?= Subject: Re: [CFT] packaging the base system with pkg(8) To: freebsd-pkgbase@freebsd.org References: <20160302235429.GD75641@FreeBSD.org> From: =?UTF-8?Q?Ren=c3=a9_Ladan?= X-Enigmail-Draft-Status: N1110 Message-ID: <56E73495.2020600@freebsd.org> Date: Mon, 14 Mar 2016 23:00:53 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <20160302235429.GD75641@FreeBSD.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-pkgbase@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Packaging the FreeBSD base system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Mar 2016 22:00:57 -0000 On 03/ 3/16 12:54 AM, Glen Barber wrote: > For those who have missed the initial email surrounding this topic, we > are planning on packaging the base system with pkg(8) for 11.0-RELEASE. > > https://lists.freebsd.org/pipermail/freebsd-pkgbase/2016-January/000000.html > [...] > After checking out the project branch, build the userland and kernel as > normal with the 'buildworld' and 'buildkernel' targets. Afterward, > packages can be created with the 'packages' target. > > # cd /usr/src > # make [make flags] buildworld > # make [make flags] buildkernel > # make packages > This also works nicely for my Raspberry Pi B (cross built on a amd64 box) with "ARCH=arm TARGET_ARCH=armv6 TARGET_CPUTYPE=armv6" and KERNCONF=RPI-B added to the commands. > At present, the base system consists of 755 packages with the default > build (empty src.conf(5) and make.conf(5)) for amd64. The number of > packages depends on several factors, but for most cases a runtime binary > is split into several components. In particular, most shared libraries > are individually packaged, in addition to debugging symbols, profiling > libraries, and 32-bit packaged separately. > For RPI-B the total number was around 410, after some pruning my RPI-B is now down to 95 base packages. [...] > To initially bootstrap the 'FreeBSD-*' packages, they must be forcibly > installed. Package registration is not performed during 'installworld' > or 'installkernel', and there are no immediate plans to do this. > > This can be done by running: > > # pkg update -r FreeBSD-base > # pkg install -g 'FreeBSD-*' > [...] That worked, as does upgrading packages. Upgrading is already much easier with just: # pkg upgrade # reboot and not having to eject the SD card. This works fine with both the full and a reduced package set. While pruning packages, I figured that ports-mgmt/pkg depends on FreeBSD-jail. After accidentally deleting that package ("jails on an RPI?"), pkg would no longer run but pkg-static luckily did so I quickly re-added the FreeBSD-jail package. This leads to the more general question if/how packages from the Ports Tree should indicate a dependency on base packages. Something like "LIB_DEPENDS=libjail.so:base/libjail" ? (and yes, currently all base packages have "base" as a single common origin...) Some other ideas: - split off OpenSSL into its own package to ease security updates or an import of LibreSSL - split the kernel package into a kernel and a whole lot of module packages (and perhaps minimize the kernel configuration itself). Keep up the good work! Regards, René