aboutsummaryrefslogtreecommitdiff
path: root/contrib/libucl
Commit message (Collapse)AuthorAgeFilesLines
* contrib/libucl: Import libucl 0.9.3Muhammad Moinur Rahman5 days32-4597/+4749
| | | | | | | | Differential Revision: https://reviews.freebsd.org/D54583 Approved by: bapt MFC after: 3 days Changelog: https://github.com/vstakhov/libucl/releases/tag/0.9.3
* flua: support our flua modules in the bootstrap fluaKyle Evans2025-10-041-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This version builds every module into the flua binary itself, since all of the bootstrap tools are built -DNO_SHARED. As a result, we also cannot dlsym(), so we can't really discover the names of our newly builtin modules. Instead, just build out a linker set with all of our luaopen_*() functions to register everything up-front. Building in all of the modules isn't strictly necessary, but it means that we have an example of how to add a bootstrap module everywhere you go and one doesn't need to consider whether bootstrap flua can use a module when writing scripts. On my build machine, the consequence on our binary size is an increase from around 1.6M -> 1.9M, which isn't really that bad. .lua modules can install into their usual path below $WORLDTMP/legacy and we'll pick them up automagically by way of the ctor that sets up LUA_PATH early on. This re-lands bootstrap module support with a more sensible subset, and after having verified that it cross-builds fine on macOS and Linux -- we cannot do libfreebsd on !FreeBSD because it's more system header dependant. We also need to bootstrap libmd to bring in libhash, and libucl + libyaml. Reviewed by: bapt, emaste (both previous version) Differential Revision: https://reviews.freebsd.org/D51890
* Revert "flua: support our flua modules in the bootstrap flua"Kyle Evans2025-10-041-4/+0
| | | | | | | This reverts commit 1953a12ee2cde1afacb3e3f7612d89695c96e04f, because it cannot work at all on macOS without more work, at a minimum. We use linker sets for module discovery, but we don't have a version of this that works for mach-o at the moment.
* flua: support our flua modules in the bootstrap fluaKyle Evans2025-10-031-0/+4
| | | | | | | | | | | | | | | | | | | | | | This version builds every module into the flua binary itself, since all of the bootstrap tools are built -DNO_SHARED. As a result, we also cannot dlsym(), so we can't really discover the names of our newly builtin modules. Instead, just build out a linker set with all of our luaopen_*() functions to register everything up-front. Building in all of the modules isn't strictly necessary, but it means that we have an example of how to add a bootstrap module everywhere you go and one doesn't need to consider whether bootstrap flua can use a module when writing scripts. On my build machine, the consequence on our binary size is an increase from around 1.6M -> 1.9M, which isn't really that bad. .lua modules can install into their usual path below $WORLDTMP/legacy and we'll pick them up automagically by way of the ctor that sets up LUA_PATH early on. Reviewed by: bapt, emaste Differential Revision: https://reviews.freebsd.org/D51890
* libucl: Fix bugs in C-style comment parserDag-Erling Smørgrav2025-10-011-39/+38
| | | | | | | | | | | | | When an asterisk is encountered inside a C-style comment, we first check if there is at least one more character left in the buffer, and if that character is a slash, which would terminate the comment. If that is not the case, the next two characters are consumed without being inspected. If one of those is a double quote, or the initial asterisk of an asterisk-slash pair, we end up misparsing the comment. MFC after: 3 days Reviewed by: kevans, bofh Differential Revision: https://reviews.freebsd.org/D52808
* MFV: libucl: Update to 0.9.2Muhammad Moinur Rahman2025-08-2757-4880/+1072
| | | | | | | | | | | - Add FREEBSD-upgrade instructions - Add FREEBSD-Xlist file - Remove all unnecessary files which are not required for in-tree build Approved by: bapt Differential Revision: https://reviews.freebsd.org/D50472 Event: Oslo Hackathon 202508 Sponsored by: The FreeBSD Foundation
* libucl: Add a ucl::Ucl::forced_string_value methodJohn Baldwin2025-08-041-0/+5
| | | | | | | This is a wrapper around ucl_object_tostring_forced. Sponsored by: Chelsio Communications Pull Request: https://github.com/freebsd/freebsd-src/pull/1794
* libucl: import snapshot 2024-02-06Baptiste Daroussin2024-02-294-0/+134
|
* Fix build post a0409676120c1e558d0ade943019934e0f15118d.Cy Schubert2021-03-221-1/+1
|
* libucl: vendor import snapshort 20210314Baptiste Daroussin2021-03-2249-631/+2820
|
* Import libucl 20170219Baptiste Daroussin2017-02-199-56/+199
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=313953
* Import libucl 20160812Baptiste Daroussin2016-10-0122-274/+841
| | | | Notes: svn path=/head/; revision=306544
* Fix build with external gccBaptiste Daroussin2016-06-051-0/+2
| | | | | | | | Completly disable some extra optimisation for very recent gcc. They would require some updated in the runtime which we do not have yet Notes: svn path=/head/; revision=301442
* Ensure old gcc does not accidently get the attributes it does not know aboutBaptiste Daroussin2016-06-051-1/+1
| | | | Notes: svn path=/head/; revision=301439
* Import libucl snapshot 20160604Baptiste Daroussin2016-06-0410-1231/+533
| | | | | | | | It replaces xxhash with mumhash It fixes issues with msgpack on non x86 Notes: svn path=/head/; revision=301339
* Import libucl 0.8.0Baptiste Daroussin2016-04-1740-546/+2120
| | | | Notes: svn path=/head/; revision=298166
* Root out files that don't really belong here and could in fact screwMaxim Sobolev2016-02-021-8/+0
| | | | | | | | | | | you over if you happen to use git for FreeBSD development, as it is the case with the unbound/.gitignore, which lits files that are actually required for the buildworld. MFC after: 1 day Notes: svn path=/head/; revision=295159
* Update libucl to latest git snapshot (20151027)Baptiste Daroussin2015-10-2761-617/+7111
| | | | Notes: svn path=/head/; revision=290071
* Update libucl to git version 8d3b186Baptiste Daroussin2015-03-0230-841/+1566
| | | | Notes: svn path=/head/; revision=279549
* Update libucl to latest versionBaptiste Daroussin2014-11-2944-263/+3160
| | | | | | | | While here correctly link libucl to libm and register the dependency on libm for static building Notes: svn path=/head/; revision=275223
* Merge libucl 20140718 (fixes a bug in the parser)Baptiste Daroussin2014-07-193-0/+10
| | | | Notes: svn path=/head/; revision=268876
* Update libucl to the 2014-07-16 snapshotBaptiste Daroussin2014-07-1818-708/+1257
| | | | | | | This update brings streamlined ucl emitter support Notes: svn path=/head/; revision=268831
* merge libucl 20140514Baptiste Daroussin2014-05-246-22/+200
| | | | | | | this version brings xpath-like interface for ucl objects Notes: svn path=/head/; revision=266636
* Import libucl 0.4.0Baptiste Daroussin2014-04-2217-446/+574
| | | | | | | Adapt pkg(7) to the new libucl API Notes: svn path=/head/; revision=264789
* NO_MAN= has been deprecated in favor of MAN= for some time, go aheadWarner Losh2014-04-134-4/+4
| | | | | | | | | and finish the job. ncurses is now the only Makefile in the tree that uses it since it wasn't a simple mechanical change, and will be addressed in a future commit. Notes: svn path=/head/; revision=264400
* Update to 20140321Baptiste Daroussin2014-03-2284-488/+5497
| | | | | | | | | This brings schema validation MFC after: 1 week Notes: svn path=/head/; revision=263648
* Update libucl to 2014-03-03Baptiste Daroussin2014-03-1010-62/+371
| | | | Notes: svn path=/head/; revision=262975
* Import libucl into headBaptiste Daroussin2014-02-2345-0/+9948
UCL is heavily infused by nginx configuration as the example of a convenient configuration system. However, UCL is fully compatible with JSON format and is able to parse json files. UCL is used by pkg(8) for its configuration file as well for the manifest format in packages, it will be used in base for the pkg boostrap (signature checking and configuration file parsing.) libucl has been developped and is maintained by vsevolod@ Notes: svn path=/head/; revision=262398