From owner-freebsd-hackers@freebsd.org Mon Apr 29 13:57:03 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EDDA1158EA6C for ; Mon, 29 Apr 2019 13:57:02 +0000 (UTC) (envelope-from kris@ixsystems.com) Received: from mail-io1-xd2a.google.com (mail-io1-xd2a.google.com [IPv6:2607:f8b0:4864:20::d2a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C245481B98 for ; Mon, 29 Apr 2019 13:57:01 +0000 (UTC) (envelope-from kris@ixsystems.com) Received: by mail-io1-xd2a.google.com with SMTP id m9so2629683iok.7 for ; Mon, 29 Apr 2019 06:57:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ixsystems-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=IV5xp4d96teQp5ZZ9jz72xKeDmX+4moMz1uuHQxq1Zk=; b=SxGfvcEW0EyL/5PMBSXeYjR16eOlUeyOfaJDlUTeccI5fbP1ALR7M6t7Ngkp82yeKg fnKMZeCUWD0v1IXoVY0yNV/FrcxIC/lUfWw7vDXfWnhMKxDJ3vtYdiVNuMdTC2kXf3cj 8o7zdzDg7kbtg8p9qY1uMUTzQJa6Ylz47uh2r4i7lcJRGwEFYmfJnkilX7wIwQPj2eHd u3nGbWCEq91jWmdI+g9CY9TMievTFQ2jpwIDvvnSyS4IlOgdzJmXW+QuvLc6TLrLI4kb u5pBQ5U5STBp+C3CdCLUmnPJ31S6NvD/ECE58NRCc7Rpp0g+FlPZXwBZXk7qQs5+Yy49 Zseg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=IV5xp4d96teQp5ZZ9jz72xKeDmX+4moMz1uuHQxq1Zk=; b=Q2RTbx5acEGo2RXAqAU29FnN32XXSi2ky2Q3LFn0xC/mB/nnukQ7KDDvbhteWWB2KN IlnPdxVS6M0cAIs2uI9LcT1B3n5wDgHC7sQOjtETHcvTWoJksZaZWFDmv9RMQ6Qu1aDP XqEtaRAzl4ZBGNPfJS4rTMamthFBBedZNJMNjpxSBI460SxMf4GJMUGcTNQiZO64jfaQ /3kV/ifetjOh9tl92Mz8ccvpzioDoXk/84N3SwR33tZkgAfMzOJUpB4538QF13wc19cK fBobgGGsOwmFLZPwdC+G6U2Wi3S9I5TgHll/4Ofz0cQOwMboF7mqFtxV1b1XwxWE2umL Q0Ow== X-Gm-Message-State: APjAAAVbgNBBbH+XNK5P4d5vIgxkfpZhkiW49WFbw0vHPXxSEEoDFvR0 54hmFY/eleYIF7n4IR/n4VIeNygLqMBP36QxxvQCRoIel6sRpQ== X-Google-Smtp-Source: APXvYqzX7NZ4ND7LC+dEx5A7FdK+Wyn6TVer/IkyQqNbB2HuU4W91Mu2UFWE4CxaQk+HjtELBbdu3C354Lbobpz1BnE= X-Received: by 2002:a6b:f809:: with SMTP id o9mr461395ioh.232.1556546219662; Mon, 29 Apr 2019 06:56:59 -0700 (PDT) MIME-Version: 1.0 References: <002901d4fdfb$e52eb890$af8c29b0$@ixsystems.com> <1393169f-7988-7ce6-e030-8c61727f78b8@FreeBSD.org> <02f301d4fe90$f5270d70$df752850$@ixsystems.com> <021ff3c4-c325-61e1-21d0-2ee0a89e3642@FreeBSD.org> In-Reply-To: From: Kris Moore Date: Mon, 29 Apr 2019 09:56:48 -0400 Message-ID: Subject: Re: CFT: FreeBSD Package Base To: Warner Losh Cc: Lev Serebryakov , FreeBSD Current , freebsd-pkgbase@freebsd.org, "freebsd-hackers@freebsd.org" X-Rspamd-Queue-Id: C245481B98 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=ixsystems-com.20150623.gappssmtp.com header.s=20150623 header.b=SxGfvcEW; dmarc=pass (policy=none) header.from=ixsystems.com; spf=pass (mx1.freebsd.org: domain of kris@ixsystems.com designates 2607:f8b0:4864:20::d2a as permitted sender) smtp.mailfrom=kris@ixsystems.com X-Spamd-Result: default: False [-6.93 / 15.00]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; R_DKIM_ALLOW(-0.20)[ixsystems-com.20150623.gappssmtp.com:s=20150623]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; RCPT_COUNT_FIVE(0.00)[5]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[ixsystems-com.20150623.gappssmtp.com:+]; MX_GOOD(-0.01)[cached: ALT3.ASPMX.L.GOOGLE.com]; DMARC_POLICY_ALLOW(-0.50)[ixsystems.com,none]; RCVD_IN_DNSWL_NONE(0.00)[a.2.d.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(-2.96)[ip: (-9.35), ipnet: 2607:f8b0::/32(-3.17), asn: 15169(-2.24), country: US(-0.06)]; NEURAL_HAM_SHORT(-0.96)[-0.960,0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Apr 2019 13:57:03 -0000 On Mon, Apr 29, 2019 at 9:53 AM Warner Losh wrote: > > > On Mon, Apr 29, 2019 at 7:50 AM Lev Serebryakov wrote: > >> On 29.04.2019 16:39, kris@ixsystems.com wrote: >> >> > >> > This should be very doable with this package base. We use it for >> FreeNAS in a similar manner, where we disable a couple dozen things from >> base, resulting in a much more stripped down userland-base package. By >> default we also break out the doc/tests/debug bits into their own >> userland-* packages, for same reasons, to keep image nice and small. >> > >> Ok, after >> >> >> # tar tf FreeBSD-HEAD-pkgbase-x64-20190426.iso | grep All >> dist/FreeBSD:13:amd64/latest/All >> dist/FreeBSD:13:amd64/latest/All/ca_root_nss-3.43_1.txz >> dist/FreeBSD:13:amd64/latest/All/jq-1.6.txz >> dist/FreeBSD:13:amd64/latest/All/kernel-20190420203550_1.txz >> dist/FreeBSD:13:amd64/latest/All/oniguruma-6.9.1.txz >> dist/FreeBSD:13:amd64/latest/All/pkg-1.10.5_5.txz >> dist/FreeBSD:13:amd64/latest/All/userland-20190420203550.txz >> dist/FreeBSD:13:amd64/latest/All/userland-base-20190420203550_7.txz >> dist/FreeBSD:13:amd64/latest/All/userland-docs-20190420203550.txz >> dist/FreeBSD:13:amd64/latest/All/userland-lib32-20190420203550.txz >> # >> >> I was under impression, that there is only 3 userland packages, not >> 100+ :-) >> > > It's a tradeoff... 100+ packages is super granular, but also a PITA to > manage. 3 package installs quite a bit faster than the 100+ packages due to > a large fixed cost in pkg per package, but isn't granular enough to tailor > for NanoBSD systems. > > Warner > > Correct. Its all in the FAQ, there are about a dozen available packages: https://trueos.github.io/pkgbase-docs/#which-base-packages-are-available Really you only need a few of them on typical system, userland(meta-pkg)/userland-base/userland-docs/kernel > -- >> // Lev Serebryakov >> >>