Skip to content

handle renamed files in bbtracer_patch_postfunc

eg. in recipe bluez5 (kirkstone), file org.bluez.obex.service has been renamed to org.bluez.obex.service.in, we need to decide how to handle such cases (think of the graph database, in perspective)

oe.recipeutils.get_recipe_patched_files(d):

{
  "/build/poky/kirkstone-4.0.14-63-geadd5efcb3/poky/meta/recipes-connectivity/bluez5/bluez5/0001-Allow-using-obexd-without-systemd-in-the-user-sessio.patch": [
    ["/build/poky/kirkstone-4.0.14-63-geadd5efcb3/build/tmp/work/core2-64-poky-linux/bluez5/5.65-r0/bluez-5.65/Makefile.obexd", "M"],
    ["/build/poky/kirkstone-4.0.14-63-geadd5efcb3/build/tmp/work/core2-64-poky-linux/bluez5/5.65-r0/bluez-5.65/obexd/src/org.bluez.obex.service.in", "M"]
  ],
  "/build/poky/kirkstone-4.0.14-63-geadd5efcb3/poky/meta/recipes-connectivity/bluez5/bluez5/0001-tests-add-a-target-for-building-tests-without-runnin.patch": [
    ["/build/poky/kirkstone-4.0.14-63-geadd5efcb3/build/tmp/work/core2-64-poky-linux/bluez5/5.65-r0/bluez-5.65/Makefile.am", "M"]
  ],
  "/build/poky/kirkstone-4.0.14-63-geadd5efcb3/poky/meta/recipes-connectivity/bluez5/bluez5/0001-test-gatt-Fix-hung-issue.patch": [
    ["/build/poky/kirkstone-4.0.14-63-geadd5efcb3/build/tmp/work/core2-64-poky-linux/bluez5/5.65-r0/bluez-5.65/unit/test-gatt.c", "M"]
  ]
}

do_patch.json:

{
  "0001-Allow-using-obexd-without-systemd-in-the-user-sessio.patch": {
    "sha1": "15286639ac15743a8704ffdcb8c444625179aedc",
    "link": None,
    "files": {
      "added": {},
      "modified": {
        "bluez-5.65/Makefile.obexd": "08c1b4bbcaec6e49613984f27e3dd87a770f6b94",
        "bluez-5.65/obexd/src/org.bluez.obex.service.in": "7e40715febacfe969faf295f5c44d91216de808f"
      },
      "removed": {}
    }
  },
  "0001-tests-add-a-target-for-building-tests-without-runnin.patch": {
    "sha1": "5f3c1cfd33688d379ab315a35f61f23a83d6c564",
    "link": None,
    "files": {
      "added": {},
      "modified": {
        "bluez-5.65/Makefile.am": "d4c9dc7ce66c6011fe785e23ab7157c52ff4ee51"
      },
      "removed": {}
    }
  },
  "0001-test-gatt-Fix-hung-issue.patch": {
    "sha1": "84b67668873c802674f6404e98e4da09e85c88c8",
    "link": None,
    "files": {
      "added": {},
      "modified": {
        "bluez-5.65/unit/test-gatt.c": "df935419f32ca50fcb445a97f175818b49436dca"
      },
      "removed": {}
    }
  },
  "<unknown-do_patch>": {
    "sha1": None,
    "link": None,
    "files": {
      "added": {},
      "modified": {},
      "removed": {
        "bluez-5.65/obexd/src/org.bluez.obex.service": "92be3b2d642ac536a130d82d5a27a877c013d430"
      }
    }
  }
}

Other examples: gtk+3 (kirkstone)

Edited by Alberto Pianon