mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 15:45:15 -04:00
dev-embedded/esp-idf: add 5.1
Signed-off-by: David Roman <davidroman96@gmail.com>
This commit is contained in:
37
dev-embedded/esp-idf/files/pyparsing-esp-idf-5.1.patch
Normal file
37
dev-embedded/esp-idf/files/pyparsing-esp-idf-5.1.patch
Normal file
@@ -0,0 +1,37 @@
|
||||
commit 4020b0deb036ffa3fd01d2dac2297670f65fb7c3
|
||||
Author: radim.karnis <radim.karnis@espressif.com>
|
||||
Date: Tue Jun 20 13:16:22 2023 +0200
|
||||
|
||||
fix: Compatibility with pyparsing>=3.1.0
|
||||
|
||||
diff --git a/tools/ldgen/ldgen/entity.py b/tools/ldgen/ldgen/entity.py
|
||||
index 35021a51b5..aecdcab91b 100644
|
||||
--- a/tools/ldgen/ldgen/entity.py
|
||||
+++ b/tools/ldgen/ldgen/entity.py
|
||||
@@ -1,5 +1,5 @@
|
||||
#
|
||||
-# SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
|
||||
+# SPDX-FileCopyrightText: 2021-2023 Espressif Systems (Shanghai) CO LTD
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
@@ -9,8 +9,8 @@ import os
|
||||
from enum import Enum
|
||||
from functools import total_ordering
|
||||
|
||||
-from pyparsing import (Group, Literal, OneOrMore, ParseException, SkipTo, Suppress, White, Word, ZeroOrMore, alphas,
|
||||
- nums, rest_of_line)
|
||||
+from pyparsing import (Group, Literal, OneOrMore, ParseException, Regex, SkipTo, Suppress, White, Word, ZeroOrMore,
|
||||
+ alphas, nums, rest_of_line)
|
||||
|
||||
|
||||
@total_ordering
|
||||
@@ -139,7 +139,7 @@ class EntityDB:
|
||||
|
||||
# 00 {section} 0000000 ...
|
||||
# CONTENTS, ALLOC, ....
|
||||
- section_entry = (Suppress(Word(nums)) + SkipTo(' ') + Suppress(rest_of_line)
|
||||
+ section_entry = (Suppress(Word(nums)) + Regex(r'\.\S+') + Suppress(rest_of_line)
|
||||
+ Suppress(ZeroOrMore(Word(alphas) + Literal(',')) + Word(alphas)))
|
||||
|
||||
content = Group(object_line
|
||||
Reference in New Issue
Block a user