diff options
| -rw-r--r-- | meta-oe/recipes-support/libsmi/libsmi/0001-Define-createIdentifierRef-prototype-in-yang-complex.patch | 53 | ||||
| -rw-r--r-- | meta-oe/recipes-support/libsmi/libsmi_0.5.0.bb | 5 |
2 files changed, 57 insertions, 1 deletions
diff --git a/meta-oe/recipes-support/libsmi/libsmi/0001-Define-createIdentifierRef-prototype-in-yang-complex.patch b/meta-oe/recipes-support/libsmi/libsmi/0001-Define-createIdentifierRef-prototype-in-yang-complex.patch new file mode 100644 index 0000000000..3374f8484e --- /dev/null +++ b/meta-oe/recipes-support/libsmi/libsmi/0001-Define-createIdentifierRef-prototype-in-yang-complex.patch | |||
| @@ -0,0 +1,53 @@ | |||
| 1 | From 77b520a8ee193b6d9f12e049f505d8d98204c11c Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Wed, 31 Aug 2022 17:13:32 -0700 | ||
| 4 | Subject: [PATCH] Define createIdentifierRef prototype in yang-complex-types.c | ||
| 5 | |||
| 6 | Provide needed prototype to make compiler happy | ||
| 7 | |||
| 8 | Upstream-Status: Pending | ||
| 9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 10 | --- | ||
| 11 | lib/parser-yang.y | 3 ++- | ||
| 12 | lib/yang-complex-types.c | 3 ++- | ||
| 13 | 2 files changed, 4 insertions(+), 2 deletions(-) | ||
| 14 | |||
| 15 | --- a/lib/parser-yang.y | ||
| 16 | +++ b/lib/parser-yang.y | ||
| 17 | @@ -41,7 +41,8 @@ | ||
| 18 | #include "yang-complex-types.h" | ||
| 19 | #include "util.h" | ||
| 20 | #include "error.h" | ||
| 21 | - | ||
| 22 | +#include "yang-check.h" | ||
| 23 | + | ||
| 24 | #ifdef HAVE_DMALLOC_H | ||
| 25 | #include <dmalloc.h> | ||
| 26 | #endif | ||
| 27 | @@ -61,7 +62,8 @@ | ||
| 28 | #define debug | ||
| 29 | #endif | ||
| 30 | |||
| 31 | - | ||
| 32 | +extern void createIdentifierRef(struct _YangNode *node, char* prefix, char* ident); | ||
| 33 | +extern void smiyyerror(char *msg, Parser *parserPtr); | ||
| 34 | /* | ||
| 35 | * NOTE: The argument lvalp ist not really a void pointer. Unfortunately, | ||
| 36 | * we don't know it better at this point. bison generated C code declares | ||
| 37 | --- a/lib/yang-complex-types.c | ||
| 38 | +++ b/lib/yang-complex-types.c | ||
| 39 | @@ -35,12 +35,13 @@ | ||
| 40 | #include "yang-data.h" | ||
| 41 | #include "yang-check.h" | ||
| 42 | #include "yang-complex-types.h" | ||
| 43 | - | ||
| 44 | /* | ||
| 45 | * Current parser defined in parser-yang. Workaround - can't include data.h | ||
| 46 | */ | ||
| 47 | extern Parser *currentParser; | ||
| 48 | |||
| 49 | +extern void createIdentifierRef(struct _YangNode *node, char* prefix, char* ident); | ||
| 50 | + | ||
| 51 | static const int parents_complex_type[] = { | ||
| 52 | YANG_DECL_MODULE, YANG_DECL_SUBMODULE, YANG_DECL_CONTAINER, | ||
| 53 | YANG_DECL_LIST, YANG_DECL_RPC, YANG_DECL_INPUT, | ||
diff --git a/meta-oe/recipes-support/libsmi/libsmi_0.5.0.bb b/meta-oe/recipes-support/libsmi/libsmi_0.5.0.bb index b238671893..53c59de78a 100644 --- a/meta-oe/recipes-support/libsmi/libsmi_0.5.0.bb +++ b/meta-oe/recipes-support/libsmi/libsmi_0.5.0.bb | |||
| @@ -7,14 +7,17 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=3ad3076f9332343a21636cfd351f05b7" | |||
| 7 | SRC_URI = "https://www.ibr.cs.tu-bs.de/projects/${BPN}/download/${BP}.tar.gz \ | 7 | SRC_URI = "https://www.ibr.cs.tu-bs.de/projects/${BPN}/download/${BP}.tar.gz \ |
| 8 | file://smi.conf \ | 8 | file://smi.conf \ |
| 9 | file://libsmi-fix-the-test-dump-files.patch \ | 9 | file://libsmi-fix-the-test-dump-files.patch \ |
| 10 | file://0001-Define-createIdentifierRef-prototype-in-yang-complex.patch \ | ||
| 10 | " | 11 | " |
| 11 | 12 | ||
| 12 | SRC_URI[md5sum] = "4bf47483c06c9f07d1b10fbc74eddf11" | 13 | SRC_URI[md5sum] = "4bf47483c06c9f07d1b10fbc74eddf11" |
| 13 | SRC_URI[sha256sum] = "f21accdadb1bb328ea3f8a13fc34d715baac6e2db66065898346322c725754d3" | 14 | SRC_URI[sha256sum] = "f21accdadb1bb328ea3f8a13fc34d715baac6e2db66065898346322c725754d3" |
| 14 | 15 | ||
| 16 | DEPENDS += "bison-native flex-native" | ||
| 17 | |||
| 15 | RDEPENDS:${PN} += "wget" | 18 | RDEPENDS:${PN} += "wget" |
| 16 | 19 | ||
| 17 | inherit autotools | 20 | inherit autotools-brokensep |
| 18 | 21 | ||
| 19 | EXTRA_OECONF = "ac_cv_path_SH=/bin/sh ac_cv_path_WGET=${bindir}/wget ac_cv_path_AWK=${bindir}/awk" | 22 | EXTRA_OECONF = "ac_cv_path_SH=/bin/sh ac_cv_path_WGET=${bindir}/wget ac_cv_path_AWK=${bindir}/awk" |
| 20 | 23 | ||
