{"id":19361,"url":"https://patchwork.libcamera.org/api/covers/19361/?format=json","web_url":"https://patchwork.libcamera.org/cover/19361/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20240104151548.2589-1-laurent.pinchart@ideasonboard.com>","date":"2024-01-04T15:15:40","name":"[libcamera-devel,0/8] libcamera: Update mojo and mojo updater","submitter":{"id":2,"url":"https://patchwork.libcamera.org/api/people/2/?format=json","name":"Laurent Pinchart","email":"laurent.pinchart@ideasonboard.com"},"mbox":"https://patchwork.libcamera.org/cover/19361/mbox/","series":[{"id":4132,"url":"https://patchwork.libcamera.org/api/series/4132/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=4132","date":"2024-01-04T15:15:40","name":"libcamera: Update mojo and mojo updater","version":1,"mbox":"https://patchwork.libcamera.org/series/4132/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/19361/comments/","headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id E602DC323E\n\tfor <parsemail@patchwork.libcamera.org>;\n\tThu,  4 Jan 2024 15:15:42 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 309E462B49;\n\tThu,  4 Jan 2024 16:15:42 +0100 (CET)","from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 5507261D82\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu,  4 Jan 2024 16:15:40 +0100 (CET)","from pendragon.ideasonboard.com (213-243-189-158.bb.dnainternet.fi\n\t[213.243.189.158])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 3BFEA2D8;\n\tThu,  4 Jan 2024 16:14:39 +0100 (CET)"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1704381342;\n\tbh=ZcSK8DWmeuMuuGk1ussBMX2p3H7e34Cg7bOyl7knu8A=;\n\th=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post:\n\tList-Help:List-Subscribe:From:Reply-To:Cc:From;\n\tb=nk+SM452FRlj+MNAeMGiynkiyd5PTVklemqLZe7+/0SORy7YoEpT/SnKCfX+PsyuD\n\tgF9MQgbCT1yPmuMbU1ac62Zpd5wnUQWbaJS/COGC20cF1IugN5jAlvb7ccJLTmxUrj\n\tP8cZaa5GPprvVn7qSqy0KYNo96DZS9Cfn/kIDsiSGe96rEVinVurDoeie66//O5n8a\n\t88bqnT1m/Bql+8crra7WpyHtvqe6vKlWYfmNFHE7Q/eehA6UhN778lFRWy3Xb2WO49\n\toEwGvcYyJu5Z7NPuo69WpiNoCtC9FF44ADKFTHZ5Gn6IxVARxfLVRIxkzEhwRI6nfh\n\tc6p9mNGEf6ajw==","v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1704381279;\n\tbh=ZcSK8DWmeuMuuGk1ussBMX2p3H7e34Cg7bOyl7knu8A=;\n\th=From:To:Cc:Subject:Date:From;\n\tb=lXuM+qnkD7JuQmaswgdx9Q41GZZhQsegDRPoHW1CGPdCTZHktFLX2QB0Wlt8h+PJk\n\tOSgWz1xVA9p5U9gxXFxmVVQywJRGCjdvLksN7K6ZZLZ/oFG7fMM+1Gj/NRw0LXRi31\n\td20c0CR4tfb0xMnn9wFy0Jbx/FRE/NehnQmT1PKM="],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=ideasonboard.com\n\theader.i=@ideasonboard.com\n\theader.b=\"lXuM+qnk\"; dkim-atps=neutral","To":"libcamera-devel@lists.libcamera.org","Date":"Thu,  4 Jan 2024 17:15:40 +0200","Message-ID":"<20240104151548.2589-1-laurent.pinchart@ideasonboard.com>","X-Mailer":"git-send-email 2.41.0","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH 0/8] libcamera: Update mojo and mojo\n\tupdater","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","From":"Laurent Pinchart via libcamera-devel\n\t<libcamera-devel@lists.libcamera.org>","Reply-To":"Laurent Pinchart <laurent.pinchart@ideasonboard.com>","Cc":"Khem Raj <raj.khem@gmail.com>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"Hello,\n\nThis patch series updates mojo to the most recent release of Chromium.\n\nThe main motivation is to fix bug #206 (\"Fails to build with Python\n3.12\"), handled in patch 8/8. I've taken this as an opportunity to\nimprove the update-mojo.sh script, in patches 1/8 to 5/8. Patches 6/8\nand 7/8 are updates to the generator script to take the mojo changes\ninto account.\n\nLaurent Pinchart (8):\n  utils: update-mojo.sh: Properly remove old sources\n  utils: update-mojo.sh: Exit immediately on error\n  utils: update-mojo.sh: Change to the libcamera source directory\n  utils: update-mojo.sh: Reject a dirty libcamera tree\n  utils: update-mojo.sh: Commit the mojo update\n  utils: ipc: generate.py: Add bindings directory to Python path\n  utils: ipc: generate.py: Disable attributes checker\n  utils: ipc: Update mojo\n\n utils/ipc/generate.py                         |  12 +-\n utils/ipc/mojo/README                         |   2 +-\n utils/ipc/mojo/public/LICENSE                 |   2 +-\n utils/ipc/mojo/public/tools/BUILD.gn          |   8 +-\n utils/ipc/mojo/public/tools/bindings/BUILD.gn |  36 +-\n .../ipc/mojo/public/tools/bindings/README.md  | 239 +++--\n .../public/tools/bindings/checks/__init__.py  |   0\n .../bindings/checks/mojom_attributes_check.py | 170 ++++\n .../checks/mojom_attributes_check_unittest.py | 194 ++++\n .../checks/mojom_definitions_check.py         |  34 +\n .../checks/mojom_interface_feature_check.py   |  62 ++\n .../mojom_interface_feature_check_unittest.py | 173 ++++\n .../checks/mojom_restrictions_check.py        | 102 +++\n .../mojom_restrictions_checks_unittest.py     | 254 ++++++\n .../chromium_bindings_configuration.gni       |  51 --\n .../tools/bindings/compile_typescript.py      |  27 -\n .../tools/bindings/concatenate-files.py       |   5 +-\n ...concatenate_and_replace_closure_exports.py |  10 +-\n .../bindings/format_typemap_generator_args.py |  36 -\n .../tools/bindings/gen_data_files_list.py     |   2 +-\n .../tools/bindings/generate_type_mappings.py  |   4 +-\n .../tools/bindings/minify_with_terser.py      |  47 +\n .../ipc/mojo/public/tools/bindings/mojom.gni  | 853 ++++++++++--------\n .../bindings/mojom_bindings_generator.py      |  62 +-\n .../mojom_bindings_generator_unittest.py      |   6 +-\n .../tools/bindings/mojom_types_downgrader.py  | 119 ---\n .../tools/bindings/validate_typemap_config.py |   5 +-\n utils/ipc/mojo/public/tools/mojom/BUILD.gn    |  18 +\n .../mojom/check_stable_mojom_compatibility.py |  69 +-\n ...eck_stable_mojom_compatibility_unittest.py |  87 +-\n .../mojo/public/tools/mojom/const_unittest.py |   2 +-\n .../mojo/public/tools/mojom/enum_unittest.py  |  30 +-\n .../public/tools/mojom/feature_unittest.py    |  84 ++\n .../mojo/public/tools/mojom/mojom/BUILD.gn    |   3 +-\n .../mojo/public/tools/mojom/mojom/error.py    |   2 +-\n .../mojo/public/tools/mojom/mojom/fileutil.py |   3 +-\n .../tools/mojom/mojom/fileutil_unittest.py    |   7 +-\n .../tools/mojom/mojom/generate/check.py       |  26 +\n .../mojom/mojom/generate/constant_resolver.py |  93 --\n .../tools/mojom/mojom/generate/generator.py   |  11 +-\n .../mojom/generate/generator_unittest.py      |   9 +-\n .../tools/mojom/mojom/generate/module.py      | 783 +++++++++++-----\n .../mojom/mojom/generate/module_unittest.py   |   2 +-\n .../public/tools/mojom/mojom/generate/pack.py | 151 +++-\n .../mojom/mojom/generate/pack_unittest.py     |  30 +-\n .../mojom/mojom/generate/template_expander.py |   2 +-\n .../tools/mojom/mojom/generate/translate.py   | 464 +++++++++-\n .../mojom/generate/translate_unittest.py      |  82 +-\n .../public/tools/mojom/mojom/parse/ast.py     | 145 +--\n .../tools/mojom/mojom/parse/ast_unittest.py   |  12 +-\n .../mojom/mojom/parse/conditional_features.py |  21 +-\n .../parse/conditional_features_unittest.py    | 155 +++-\n .../public/tools/mojom/mojom/parse/lexer.py   |   8 +-\n .../tools/mojom/mojom/parse/lexer_unittest.py |  10 +-\n .../public/tools/mojom/mojom/parse/parser.py  | 108 ++-\n .../mojom/mojom/parse/parser_unittest.py      |  39 +-\n .../mojo/public/tools/mojom/mojom_parser.py   | 119 ++-\n .../tools/mojom/mojom_parser_test_case.py     |   6 +-\n .../tools/mojom/mojom_parser_unittest.py      |  31 +-\n .../tools/mojom/stable_attribute_unittest.py  |   2 +-\n .../mojo/public/tools/mojom/union_unittest.py |  44 +\n .../mojom/version_compatibility_unittest.py   |  73 +-\n .../public/tools/run_all_python_unittests.py  |   8 +-\n utils/ipc/tools/README                        |   2 +-\n utils/ipc/tools/diagnosis/crbug_1001171.py    |   2 +-\n utils/update-mojo.sh                          |  50 +-\n 66 files changed, 3877 insertions(+), 1431 deletions(-)\n create mode 100644 utils/ipc/mojo/public/tools/bindings/checks/__init__.py\n create mode 100644 utils/ipc/mojo/public/tools/bindings/checks/mojom_attributes_check.py\n create mode 100644 utils/ipc/mojo/public/tools/bindings/checks/mojom_attributes_check_unittest.py\n create mode 100644 utils/ipc/mojo/public/tools/bindings/checks/mojom_definitions_check.py\n create mode 100644 utils/ipc/mojo/public/tools/bindings/checks/mojom_interface_feature_check.py\n create mode 100644 utils/ipc/mojo/public/tools/bindings/checks/mojom_interface_feature_check_unittest.py\n create mode 100644 utils/ipc/mojo/public/tools/bindings/checks/mojom_restrictions_check.py\n create mode 100644 utils/ipc/mojo/public/tools/bindings/checks/mojom_restrictions_checks_unittest.py\n delete mode 100644 utils/ipc/mojo/public/tools/bindings/chromium_bindings_configuration.gni\n delete mode 100644 utils/ipc/mojo/public/tools/bindings/compile_typescript.py\n delete mode 100755 utils/ipc/mojo/public/tools/bindings/format_typemap_generator_args.py\n create mode 100755 utils/ipc/mojo/public/tools/bindings/minify_with_terser.py\n delete mode 100755 utils/ipc/mojo/public/tools/bindings/mojom_types_downgrader.py\n create mode 100644 utils/ipc/mojo/public/tools/mojom/BUILD.gn\n create mode 100644 utils/ipc/mojo/public/tools/mojom/feature_unittest.py\n create mode 100644 utils/ipc/mojo/public/tools/mojom/mojom/generate/check.py\n delete mode 100644 utils/ipc/mojo/public/tools/mojom/mojom/generate/constant_resolver.py\n create mode 100644 utils/ipc/mojo/public/tools/mojom/union_unittest.py\n\n\nbase-commit: 577e0c6b7659f24c04476e675ea85cb666a87764"}