Subject: image-oci.bbclass creates faulty arm/variant entry in index.json To: meta-virtualization@lists.yoctoproject.org From: "Robert Berger" X-Originating-Location: Athens, Attica, GR (2.86.134.132) X-Originating-Platform: Linux Firefox 78 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Fri, 17 Jul 2020 10:56:32 -0700 Message-ID: <7Rna.1595008592154117129.JcM3@lists.yoctoproject.org> Content-Type: multipart/alternative; boundary="Ozvt1e9ADb7oOC9SVxrg" --Ozvt1e9ADb7oOC9SVxrg Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable index.json looks like this: { "schemaVersion": 2, "manifests": [ { "mediaType": "application/vnd.oci.image.manifest.v1+json", "size": 420, "digest": "sha256:63f34b526be88da860b1ae7969430bc7d20f233a58e13fc0f3770e61= e037ebba", "platform": { "architecture": "arm", \"variant\": "v7", "os": "linux" }, "annotations": { "org.opencontainers.image.ref.name": "latest" } } ] } \"variant\": "v7" should be "variant": "v7" I just hacked it like this in one of my custom scripts: sed -i 's/\\"variant\\"/"variant"/g' ${OCI}/index.json But this is not an appropriate fix. The problem seems to be a combination of image-oci.bbclass and sloci-image= . Regards, Robert --Ozvt1e9ADb7oOC9SVxrg Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable index.json looks like this:

{
  "schemaVersion": 2,  "manifests": [
    {
   = ;   "mediaType": "application/vnd.oci.image.manifest.v1+json",      "size": 420,
    = ;  "digest": "sha256:63f34b526be88da860b1ae7969430bc7d20f233a58e13fc0f= 3770e61e037ebba",
      "platform": {
&n= bsp;       "architecture": "arm",
 =        \"variant\": "v7",
  &n= bsp;     "os": "linux"
    &nb= sp; },
      "annotations": {
 &nbs= p;      "org.opencontainers.image.ref.name": "late= st"
      }
    }
&n= bsp; ]
}

\"variant\": "v7" should be "variant": "v7"
<= br />I just hacked it like this in one of my custom scripts:

sed= -i 's/\\"variant\\"/"variant"/g' ${OCI}/index.json

But this is = not an appropriate fix.

The problem seems to be a combination of= image-oci.bbclass and sloci-image.

Regards,

Robert --Ozvt1e9ADb7oOC9SVxrg--