26 Commits

Author SHA1 Message Date
Khem Raj 8f3df8b447 recipes: Convert licenses to SPDX expressions
- Automatically convert all licenses to valid SPDX license expressions
  using convert-spdx-licenses.py

Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-07-20 22:35:47 -07:00
Khem Raj e1f95af4ba meta-oe/recipes: disable C23 support to fix configure check
Set ac_cv_prog_cc_c23=no to prevent autoconf from detecting C23
compiler support, avoiding potential build failures as the package
is not yet fully ported to support C23 standard.

Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-04-16 12:21:07 -07:00
mark.yang 8ef6332dcf libsmi: fix build failure with gcc-15.0.1
* see more details: http://errors.yoctoproject.org/Errors/Details/851179/

yang-data.c:594:9: error: too many arguments to function 'yangparse'; expected 0, have 1
  594 |         yangparse(parser);
      |         ^~~~~~~~~ ~~~~~~
In file included from scanner-yang.h:19,
                 from yang-data.c:47:
parser-yang.h:16:12: note: declared here
   16 | extern int yangparse();
      |            ^~~~~~~~~
In file included from parser-yang.c:346:
parser-yang.tab.h:170:5: error: conflicting types for 'yangparse'; have 'int(struct Parser *)'
  170 | int yangparse (struct Parser *parserPtr);
      |     ^~~~~~~~~
In file included from parser-yang.y:40:
parser-yang.h:16:12: note: previous declaration of 'yangparse' with type 'int(void)'
   16 | extern int yangparse();
      |            ^~~~~~~~~
make[2]: *** [Makefile:573: yang-data.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
smi-data.c: In function 'loadModule':
smi-data.c:4658:9: error: too many arguments to function 'smiparse'; expected 0, have 1
 4658 |         smiparse((void *)&parser);
      |         ^~~~~~~~ ~~~~~~~~~~~~~~~
smi-data.c:42:12: note: declared here
   42 | extern int smiparse();
      |            ^~~~~~~~
parser-smi.c:1515:5: error: conflicting types for 'smiparse'; have 'int(struct Parser *)'
 1515 | int smiparse (struct Parser *parserPtr);
      |     ^~~~~~~~
In file included from parser-smi.y:37:
parser-smi.h:27:12: note: previous declaration of 'smiparse' with type 'int(void)'
   27 | extern int smiparse();
      |            ^~~~~~~~
parser-smi.c:63:25: error: conflicting types for 'smiparse'; have 'int(struct Parser *)'
   63 | #define yyparse         smiparse
      |                         ^~~~~~~~
parser-smi.c:3207:1: note: in expansion of macro 'yyparse'
 3207 | yyparse (struct Parser *parserPtr)
      | ^~~~~~~
parser-smi.h:27:12: note: previous declaration of 'smiparse' with type 'int(void)'
   27 | extern int smiparse();
      |            ^~~~~~~~
parser-yang.c:68:25: error: conflicting types for 'yangparse'; have 'int(struct Parser *)'
   68 | #define yyparse         yangparse
      |                         ^~~~~~~~~
parser-yang.c:2312:1: note: in expansion of macro 'yyparse'
 2312 | yyparse (struct Parser *parserPtr)
      | ^~~~~~~
parser-yang.h:16:12: note: previous declaration of 'yangparse' with type 'int(void)'
   16 | extern int yangparse();
      |            ^~~~~~~~~
In file included from scanner-yang.l:31:
parser-yang.tab.h:170:5: error: conflicting types for 'yangparse'; have 'int(struct Parser *)'
  170 | int yangparse (struct Parser *parserPtr);
      |     ^~~~~~~~~
In file included from scanner-yang.l:30:
parser-yang.h:16:12: note: previous declaration of 'yangparse' with type 'int(void)'
   16 | extern int yangparse();
      |            ^~~~~~~~~
scanner-yang.l: In function 'yangEnterLexRecursion':
scanner-yang.l:79:1: warning: old-style function definition [-Wold-style-definition]
   79 |
      | ^
make[2]: *** [Makefile:573: smi-data.lo] Error 1
In file included from parser-smi.y:36:
parser-smi.c: In function 'smiparse':
parser-smi.c:10265:29: warning: passing argument 1 of 'smiyyerror' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
10265 |         yyerror (parserPtr, yymsgp);
      |                             ^~~~~~
error.h:25:44: note: in definition of macro 'yyerror'
   25 | #define yyerror(parserPtr, msg) smiyyerror(msg, parserPtr)
      |                                            ^~~
In file included from parser-smi.y:40:
smi-check.h:71:30: note: expected 'char *' but argument is of type 'const char *'
   71 | extern void smiyyerror(char *msg, Parser *parserPtr);
      |                        ~~~~~~^~~
make[2]: *** [Makefile:573: parser-yang.lo] Error 1
make[2]: *** [Makefile:573: parser-smi.lo] Error 1
make[2]: *** [Makefile:573: scanner-yang.lo] Error 1
In file included from scanner-smi.l:34:
parser-smi.tab.h:192:5: error: conflicting types for 'smiparse'; have 'int(struct Parser *)'
  192 | int smiparse (struct Parser *parserPtr);
      |     ^~~~~~~~
In file included from util.h:22,
                 from scanner-smi.l:32:
parser-smi.h:27:12: note: previous declaration of 'smiparse' with type 'int(void)'
   27 | extern int smiparse();
      |            ^~~~~~~~
scanner-smi.l: In function 'smiEnterLexRecursion':
scanner-smi.l:76:1: warning: old-style function definition [-Wold-style-definition]
   76 | smiEnterLexRecursion(file)
      | ^~~~~~~~~~~~~~~~~~~~

Signed-off-by: mark.yang <mark.yang@lge.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-04-07 12:21:22 -07:00
J. S. d2f631c763 Drop unnecessary SRC_URI md5sum from the recipes in meta-oe.
Signed-off-by: Jason Schonberg <schonm@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-11-05 19:19:22 -08:00
Alexandre Truong 8dfb10d636 libsmi: include UPSTREAM_CHECK_* to fix UNKNOWN_BROKEN status
Adding UPSTREAM_CHECK_URI and UPSTREAM_CHECK_REGEX fix
UNKNOWN_BROKEN status from running devtool check-upgrade-status.

The next version of the package can be found from upstream
sources.

Signed-off-by: Alexandre Truong <alexandre.truong@smile.fr>
Reviewed-by: Yoann Congal <yoann.congal@smile.fr>
2024-07-24 08:56:40 -07:00
Wang Mingyu 33d4d55b60 libsmi: use update-alternatives to solve conflicts with frr
Error: Transaction test error:
  file /usr/share/yang/ietf-netconf-acm.yang conflicts between attempted installs of libsmi-yang-0.5.0-r0.aarch64 and frr-10.0-r0.aarch64
  file /usr/share/yang/ietf-netconf-with-defaults.yang conflicts between attempted installs of libsmi-yang-0.5.0-r0.aarch64 and frr-10.0-r0.aarch64
  file /usr/share/yang/ietf-netconf.yang conflicts between attempted installs of libsmi-yang-0.5.0-r0.aarch64 and frr-10.0-r0.aarch64

frr also uses the doc 'ietf-netconf-acm.yang ietf-netconf-with-defaults.yang ietf-netconf.yang'.
frr has a priority of 100.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-06-12 21:08:07 -07:00
Khem Raj ffc64e9c6f recipes: Start WORKDIR -> UNPACKDIR transition
Replace references of WORKDIR with UNPACKDIR where it makes sense to do
so in preparation for changing the default value of UNPACKDIR.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-05-23 08:44:44 -07:00
Wang Mingyu 2366c4bc2d libsmi: Fix buildpaths warning.
WARNING: libsmi-0.5.0-r0 do_package_qa: QA Issue: File /usr/bin/smistrip in package libsmi contains reference to TMPDIR
         File /usr/bin/smicache in package libsmi contains reference to TMPDIR [buildpaths]

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-01-27 09:48:30 -08:00
Wang Mingyu 8fce02300e libsmi: use update-alternatives for ietf-interfaces.yang
Error: Transaction test error:
  file /usr/share/yang/ietf-interfaces.yang conflicts between attempted installs of libsmi-yang-0.5.0-r0.cortexa57 and frr-9.1-r1.cortexa57

frr also uses the doc 'ietf-interfaces.yang'.
frr has a priority of 100.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-01-11 19:50:44 -08:00
Benjamin Bouvier 4f38b524ac libsmi: enable native build
Move wget and awk EXTRA_OECONF parameters into native dependencies to
not lock native build.
Add missing BBCLASSEXTENDS to build libsmi in native.

Signed-off-by: Benjamin Bouvier <benjamin.bouvier@ekinops.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-11-07 23:11:24 -08:00
Khem Raj b7cef6a1bc libsmi: Define _DEFAULT_SOURCE for timegm API
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-09-07 16:44:54 -07:00
Khem Raj dcf06b291d libsmi: Fix build with clang 15
Add flex and bison dependencies to make deterministic builds

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-09-05 22:49:34 -07:00
Khem Raj 14c7d8a0d7 recipes: Update LICENSE variable to use SPDX license identifiers
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-03-04 17:41:45 -08:00
Martin Jansa c61dc077bb Convert to new override syntax
This is the result of automated script (0.9.1) conversion:

oe-core/scripts/contrib/convert-overrides.py .

converting the metadata to use ":" as the override character instead of "_".

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2021-08-03 10:21:25 -07:00
Martin Jansa 08fad9f3a6 libsmi: use /bin/sh instead of ${base_bindir}/sh to silence QA error with usrmerge
* with usrmerge ${base_bindir} is /usr/bin/sh and libsmi fails with:
  ERROR: libsmi-0.5.0-r0 do_package_qa: QA Issue: /usr/bin/smistrip contained in package libsmi requires /usr/bin/sh, but no providers found in RDEPENDS_libsmi? [file-rdeps]
  ERROR: libsmi-0.5.0-r0 do_package_qa: QA run found fatal errors. Please consider fixing them.

* this is a bit strange as busybox does install /usr/bin/sh file:
  ./1.33.0-r0.usrmerge/image/usr/bin/sh
  ./1.33.0-r0.default/image/bin/sh

  but also adds /bin/sh to RPROVIDES_${PN} for usrmerge in DISTRO_FEATURES:
  RPROVIDES_${PN} += "${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge', '/bin/sh', '', d)}"
  added in:
  https://git.openembedded.org/openembedded-core/commit/?id=1f6c14939c8daa5e09103789c3ff5031cc888d16

  and 1.33.0-r0.usrmerge/pkgdata/runtime/busybox:FILERPROVIDES_/usr/bin/busybox.nosuid_busybox
  correctly contains /usr/bin/sh

* adding runtime dependency on busybox as /usr/bin/sh provider would silence the QA warning
  but people might not like adding busybox to their image

* using /bin/sh silences the QA warning as well, because /bin/sh is explicitly ignored in file-rdeps insane.bbclass:
  https://git.openembedded.org/openembedded-core/tree/meta/classes/insane.bbclass?id=1f6c14939c8daa5e09103789c3ff5031cc888d16#n907

  if "file-rdeps" not in skip:
    ignored_file_rdeps = set(['/bin/sh', '/usr/bin/env', 'rtld(GNU_HASH)'])

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-04-06 09:17:51 -07:00
Oleksiy Obitotskyy c7a154b01e libsmi: set awk as target path
smistrip contains absolute path and prevent to
create reproducible builds. smistrip should use
target awk not host one, so override path.

Signed-off-by: Oleksiy Obitotskyy <oobitots@cisco.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-01-12 09:14:22 -08:00
Khem Raj 90e33e509c libsmi: Use right name for tcl license
Fixes
WARNING: libsmi-0.5.0-r0 do_populate_lic: libsmi: No generic license file exists for: TCL in any provider

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-12-10 16:21:08 -08:00
Khem Raj 64224b92e5 libsmi: Fix and operator per SPDX
This was a fallout from last commit

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-10-21 04:41:24 -07:00
Christophe PRIOUZEAU b0ab152cd5 libsmi: Clarify BSD license variant
The License of libsmi is BSD-3-Clause and TCL.

Signed-off-by: Christophe Priouzeau <christophe.priouzeau@st.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-10-17 08:35:32 -07:00
Wenzong Fan 39b03b0ee7 libsmi: rdepends on wget and set WGET as target path
* /usr/bin/smicache requires wget:
  + WGET=/usr/bin/wget

* Set the WGET as target path to avoid host contamination.

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-10-05 18:21:12 +02:00
Jackie Huang 916da56c12 libsmi: set the SH to the target path
Set the SH to the target path to avoid host contamination,
which causes the following issue on some hosts:
| WARNING: QA Issue: /usr/bin/smicache_libsmi contained in
  package libsmi requires /usr/bin/sh, but no providers
  found in its RDEPENDS [file-rdeps]
| Computing transaction...error: Can't install
  libsmi-0.4.8-r0.0@corei7_64: no package provides /usr/bin/sh

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-03-25 11:26:58 +01:00
Jackie Huang a7f658e38c libsmi: fix the test dump files
These test dump files were generated by smidump 0.4.5
which would not match with the ones generated by 0.4.8,
so update them with the ones for 0.4.8.

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-02-25 17:47:29 +01:00
Dai Caiyun 25856244fa libsmi: 0.4.8 -> 0.5.0
Upgrade libsmi from 0.4.8 to 0.5.0.

Fix error: QA Issue: libsmi: Files/directories were installed but not shipped in any package:
    /usr/share/yang/*

Signed-off-by: Dai Caiyun <daicy.fnst@cn.fujitsu.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-01-14 11:24:01 +01:00
Kai Kang 79df19db58 libsmi: add configure file
Add configure file duplicated from file smi.conf-example in source code
and replace paths with mibs files directories.

Then set libsmi-mibs as runtime recommend package to provide mibs files.

Add homepage and update SRC_URI as well.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-11-06 17:53:55 +01:00
Robert Yang 05de0ca43d meta-oe: use BPN in SRC_URI
Fixed SRC_URI:
* ${PN} -> ${BPN}, use ${BP} if it was ${PN}-${PV}
* ${P} -> ${BP}

Otherwise we would meet do_fetch errors when we do the multilib, native
or nativesdk build.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-07-15 14:56:55 +02:00
Jack Mitchell 8a56dc88fa libsmi: initial add 0.4.8
Signed-off-by: Jack Mitchell <jmitchell@cbnl.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2013-11-18 23:12:19 +01:00