Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=0.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3D1A7C433B4 for ; Tue, 11 May 2021 21:30:58 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7306A6191A for ; Tue, 11 May 2021 21:30:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7306A6191A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4Ffrgz6DZcz2yy9 for ; Wed, 12 May 2021 07:30:55 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=jU3Ep4a/; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::d33; helo=mail-io1-xd33.google.com; envelope-from=proclivis@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=jU3Ep4a/; dkim-atps=neutral Received: from mail-io1-xd33.google.com (mail-io1-xd33.google.com [IPv6:2607:f8b0:4864:20::d33]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4FfrgV3xX9z2y6B for ; Wed, 12 May 2021 07:30:29 +1000 (AEST) Received: by mail-io1-xd33.google.com with SMTP id z24so19633509ioj.7 for ; Tue, 11 May 2021 14:30:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:subject:message-id:date:to; bh=pmDfAqkAgBdnuPH/9ry1oQoRkViUqjb5gsGIXPekroo=; b=jU3Ep4a/kmIKmqxtq28LUfxUB3QWpocEOxsFJjQLFxBeALM7fT/bjG3SFti1o8Ezcy 56D0goU7f35g2z/+oa1xRawks47wKfPs0PUpOWPmrCwa12FzURH9MhV8gCT/BoV8fE7+ ot6ug11clMcPd79/ZvST9IhC2yCyK3HxRfn+L+7Z/oUOp/gwx4igtvhDzDHOl9gRzxGs CL1fwXcHuoVClBcDUM759mNVVqrOPJvyaFIYbsV15r9maxfbgTtcSsJydDzDcBLPOch9 ag1hjRUC6+rKlU8yQk/hhAAn0BBp7lMgB0M4KipwIWerlwrpo/k0fEiexINmCRoD4sea PwjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:message-id:date:to; bh=pmDfAqkAgBdnuPH/9ry1oQoRkViUqjb5gsGIXPekroo=; b=hR+h2irTEIKryDn+EZzC5/QXTLeEUc4PuNYRcWXbKdFAg0bM5Cc3VuPVq7WIwPjx2p +1F55RwM9ZQkmC7+7O/SxjnOVVp2Q+j3gmk7zOZEVFx/fOFPtQH3j9M49Ne7APslEZqu H3TDyZPzxFJoMAsJLAHwI35wGQKvUB6ttFaHQJsIoZTdIyw4SRehkc/B4kHr0axiPLHg TuqXxD7wF/Ta2hCcmYWDEj8j/FvPXyeIF6z6DgNvsLQWBRdFyoCtStDsX83y7QVhbs3O gY84UcclgzmL9+EOoVYhX5gFwfkrA4mORSIHFJv3KuXpggLjLZnbC6QCj4SXX4GGHEvo dBiQ== X-Gm-Message-State: AOAM530eap23en3t8B6d+p34TxlfDzkuFYvy229OzrNDWjB1dzTpK21A b/cjRiaH2+x9oKAlK1qsnQVlhN7Iaew= X-Google-Smtp-Source: ABdhPJxAjucv4zgmP+uCoKfCNnGmyb4Hq8N9YwoKRqGuB4Xn9FTmPcLZJZoOsPbi8/iH/uHukoMvbA== X-Received: by 2002:a02:ca4e:: with SMTP id i14mr28261783jal.101.1620768625739; Tue, 11 May 2021 14:30:25 -0700 (PDT) Received: from smtpclient.apple ([2601:281:c001:2359:147a:5457:683a:10cf]) by smtp.gmail.com with ESMTPSA id f20sm911246iob.46.2021.05.11.14.30.25 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 May 2021 14:30:25 -0700 (PDT) From: Mike Jones Content-Type: multipart/alternative; boundary="Apple-Mail=_62CE48B7-CB9E-44D7-B050-B89E417E0154" Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.80.0.2.43\)) Subject: mtools bitbake failure Message-Id: Date: Tue, 11 May 2021 15:30:24 -0600 To: OpenBMC Maillist X-Mailer: Apple Mail (2.3654.80.0.2.43) X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Sender: "openbmc" --Apple-Mail=_62CE48B7-CB9E-44D7-B050-B89E417E0154 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 I want to document a problem with mtools to see if this can be fixed or = put on a bug list. The failure occurs when: - using meta-phosphor and meta-raspberrypi - using the default scripts/install-buildtools When "wic create=E2=80=9D is run mtools commands will fail with error = =E2=80=9CError converting to codepage 850" The cause is iconv does not support CP850. A solution is to use a newer version of the build tools, say 3.2.3, like = this: scripts/install-buildtools --without-extended-buildtools \ --base-url http://downloads.yoctoproject.org/releases/yocto = \ --release yocto-3.2.3 \ --installer-version 3.2.3 However, the install-buildtools script will fail for two reasons: - It looks for file extension sha256 instead of sha256sum - The regular expression looks for two spaces like this \s\s and the = file only has one space A quick look at poky 3.3 which is near in time to the iconv fixes, upon = inspection, fix both of these problems. So if openbmc moved to poky 3.3, it would solve this problem. I also noticed that the regex uses \s+, so it should not break using = older build tools based on md5sum. --Apple-Mail=_62CE48B7-CB9E-44D7-B050-B89E417E0154 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 I = want to document a problem with mtools to see if this can be fixed or = put on a bug list.

The= failure occurs when:

- using meta-phosphor and meta-raspberrypi
- using the default scripts/install-buildtools

When "wic create=E2=80=9D = is run mtools commands will fail with error =E2=80=9CError converting to codepage = 850"

The = cause is iconv does not support CP850.

A solution is to use a newer version of = the build tools, say 3.2.3, like this:

scripts/install-buildtools --without-extended-buildtools = \
          = --base-url http://downloads.yoctoproject.org/releases/yocto \
          = --release yocto-3.2.3 \
          = --installer-version 3.2.3

However, the install-buildtools script = will fail for two reasons:

- It looks for file extension sha256 instead of = sha256sum
- The regular expression looks for two = spaces like this \s\s and the file only has one space

A quick look at poky 3.3 = which is near in time to the iconv fixes, upon inspection, fix both of = these problems.

So if openbmc moved to poky 3.3, it would solve this = problem.

I = also noticed that the regex uses \s+, so it should not break using older = build tools based on md5sum.

= --Apple-Mail=_62CE48B7-CB9E-44D7-B050-B89E417E0154--