All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vijay Khemka <vijaykhemka@fb.com>
To: Patrick Williams <patrick@stwcx.xyz>, Nancy Yuen <yuenn@google.com>
Cc: OpenBMC Maillist <openbmc@lists.ozlabs.org>
Subject: Re: What do you want in a package manager?
Date: Wed, 22 Jul 2020 13:19:10 +0000	[thread overview]
Message-ID: <644A20F0-3AA5-4C74-BA7D-28942DC46B4A@fb.com> (raw)
In-Reply-To: <20200721151711.GK3922@heinlein>



On 7/21/20, 8:23 AM, "openbmc on behalf of Patrick Williams" <openbmc-bounces+vijaykhemka=fb.com@lists.ozlabs.org on behalf of patrick@stwcx.xyz> wrote:

    On Tue, Jul 21, 2020 at 12:57:00AM -0700, Nancy Yuen wrote:
    > I'm looking into package management for BMCs in our fleet.  I'm wondering
    > who else is interested in this, does it make sense for OpenBMC.  What kind
    > of features are important?  What kind of package format (rpm, deb,
    > something else)?

    We've similarly started playing with package management at Facebook.
    One of the reasons for us doing it is that we still have Python
    installed in the image and are running out of space, so we're moving
    some of the debug tools into packages that can be side-loaded as needed.
    We've also implemented 'ptest', which allows you to create packages
    containing your unit tests and run them on a real machine.

    We found that we had to switch to ipkg instead of rpm because the extra
    things rpm needed were too big to fit.  I recall it was on the order of
    5MB of content needed to make rpm work and ipkg was almost free. [1]

    One issue you'll want to be aware of, that many of our recipes have, is
    that they often are missing:

        PACKAGE_ARCH = "${MACHINE_ARCH}"

    This causes the package to be specified as relevant for a generic ARM
    system, matching the architecture revision of your underlying AST2xxx
    chip, rather than your particular machine.  Any package which can be
    customized for a particular machine (such as by machine-specific compile
    flags, or YAML/JSON files) should have the above variable set so that a
    package compiled for Witherspoon cannot be installed onto a Zaius.

    If you look under your Yocto build tree under `tmp/work` you'll see
    `arm1176jzs-openbmc-linux-gnueabi` and
    `witherspoon-openbmc-linux-gnueabi`.  I suspect at least most of the
    phosphor-* packages under the arm1176jzs subdirectory are likely candidates
    for having this PACKAGE_ARCH fixed.  We might want to simply add it to
    any '.bbappend' we do in a machine layer.
Yes this is true, almost every package goes in this except kernel. We should
have a fix for this.

    1. https://github.com/facebook/openbmc/commit/43430d38dfd0e5557f96940547594e01373f863e

    -- 
    Patrick Williams


  parent reply	other threads:[~2020-07-22 13:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-21  7:57 What do you want in a package manager? Nancy Yuen
2020-07-21 15:17 ` Patrick Williams
2020-07-21 21:10   ` Nancy Yuen
2020-07-22 13:19   ` Vijay Khemka [this message]
2020-07-23 19:57 ` Adriana Kobylak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=644A20F0-3AA5-4C74-BA7D-28942DC46B4A@fb.com \
    --to=vijaykhemka@fb.com \
    --cc=openbmc@lists.ozlabs.org \
    --cc=patrick@stwcx.xyz \
    --cc=yuenn@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.