All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
To: Xiangyu Chen <xiangyu.chen@windriver.com>,
	"openembedded-devel@lists.openembedded.org"
	<openembedded-devel@lists.openembedded.org>
Subject: RE: [oe] [meta-oe][PATCH] ipmitool: add default iana enterprise numbers database
Date: Mon, 24 Oct 2022 16:30:59 +0000	[thread overview]
Message-ID: <91f4d7befff848f9a308e5ed77b9c510@axis.com> (raw)
In-Reply-To: <20221024095656.292305-1-xiangyu.chen@windriver.com>

> -----Original Message-----
> From: openembedded-devel@lists.openembedded.org <openembedded-devel@lists.openembedded.org> On Behalf Of Xiangyu Chen
> Sent: den 24 oktober 2022 11:57
> To: openembedded-devel@lists.openembedded.org
> Subject: [oe] [meta-oe][PATCH] ipmitool: add default iana enterprise numbers database
> 
> When using default configuration without add IANA_ENTERPRISE_NUMBERS and
> SRC_URI in a bbappend, the ipmitool would report an error as below:
> 
> "
> root@intel-x86-64:~# ipmitool -I open bmc getenables
> IANA PEN registry open failed: No such file or directory
> "
> 
> Add a default iana enterprise numbers database to avoid the error
> happen if using ipmitool default bb configuration.
> 
> Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
> ---
>  .../ipmitool/ipmitool/iana-enterprise-numbers | 237682 +++++++++++++++
>  .../ipmitool/ipmitool_1.8.19.bb               |      6 +-
>  2 files changed, 237686 insertions(+), 2 deletions(-)
>  create mode 100644 meta-oe/recipes-kernel/ipmitool/ipmitool/iana-enterprise-numbers
> 
> diff --git a/meta-oe/recipes-kernel/ipmitool/ipmitool/iana-enterprise-numbers b/meta-oe/recipes-kernel/ipmitool/ipmitool/iana-enterprise-numbers
> new file mode 100644
> index 000000000..f8c328796
> --- /dev/null

[cut 237k+ lines... ]

For the benefit of all members of this list, do not send a 237k+ 
lines patch as a mail! The resulting mail was 20 MB. It took my 
Outlook client over two hours to create this response (where I 
then had to remove most of those 237k+ lines again)...

Instead push the change to some public repository. For 
OpenEmbedded you should be able to use the github repository and 
create a merge request that way (and let us hope that Khem does 
not have automatic tooling that sends all merge requests as 
patches to the mailing list...)

> +++ b/meta-oe/recipes-kernel/ipmitool/ipmitool/iana-enterprise-numbers
> diff --git a/meta-oe/recipes-kernel/ipmitool/ipmitool_1.8.19.bb b/meta-oe/recipes-kernel/ipmitool/ipmitool_1.8.19.bb
> index 0a600e23b..e166ea213 100644
> --- a/meta-oe/recipes-kernel/ipmitool/ipmitool_1.8.19.bb
> +++ b/meta-oe/recipes-kernel/ipmitool/ipmitool_1.8.19.bb
> @@ -27,9 +27,11 @@ SRC_URI = "git://github.com/ipmitool/ipmitool;protocol=https;branch=master \
>             file://0001-ipmi_fru.c-Provide-missing-function-declarations.patch \
>             file://0001-configure-Remove-the-logic-to-download-IANA-PEN-data.patch \
>             "
> -IANA_ENTERPRISE_NUMBERS ?= ""
> 
> -# Add these via bbappend if this database is needed by the system
> +# Default IANA enterprise database version is 2022-10-24
> +IANA_ENTERPRISE_NUMBERS ?= "file://iana-enterprise-numbers"

If you compress the file with xz, the size is reduced to a third.	
Bitbake will then uncompress it automatically during do_unpack(). 

> +
> +# Add these via bbappend if the latest version database is needed by the system
>  #IANA_ENTERPRISE_NUMBERS ?= "http://www.iana.org/assignments/enterprise-numbers;name=iana-enterprise-numbers;downloadfilename=iana-enterprise-numbers"

Change "?=" to "=", or the suggestion to add it as a bbappend will 
not work.

>  #SRC_URI[iana-enterprise-numbers.sha256sum] = "cdd97fc08325667434b805eb589104ae63f7a9eb720ecea73cb55110b383934c"
> 
> --
> 2.34.1

//Peter


  reply	other threads:[~2022-10-24 16:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-24  9:56 [meta-oe][PATCH] ipmitool: add default iana enterprise numbers database Xiangyu Chen
2022-10-24 16:30 ` Peter Kjellerstedt [this message]
2022-10-25  2:46   ` [oe] " Xiangyu Chen
2022-10-25  4:00     ` Khem Raj
2022-10-26  3:44       ` Xiangyu Chen

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=91f4d7befff848f9a308e5ed77b9c510@axis.com \
    --to=peter.kjellerstedt@axis.com \
    --cc=openembedded-devel@lists.openembedded.org \
    --cc=xiangyu.chen@windriver.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.