Path to this page:
./
devel/confuse,
Configuration file parser library
Branch: CURRENT,
Version: 3.4,
Package name: confuse-3.4,
Maintainer: pkgsrc-userslibConfuse is a configuration file parser library, licensed under the
terms of the LGPL, and written in C. It supports sections and (lists
of) values (strings, integers, floats, booleans or other sections), as
well as some other features (such as single/double-quoted strings,
environment variable expansion, functions and nested include
statements). It makes it very easy to add configuration file
capability to a program using a simple API.
The goal of libConfuse is not to be the configuration file parser
library with a gazillion of features. Instead, it aims to be easy to
use and quick to integrate with your code. libConfuse was called
libcfg before, but was changed to not confuse with other similar
libraries.
Required to build:[
devel/gettext-m4] [
devel/gettext-tools] [
pkgtools/cwrappers]
Master sites:
Filesize: 1004.593 KB
Version history: (Expand)
- (2026-08-23) Updated to version: confuse-3.4
- (2025-10-24) Package has been reborn
- (2025-10-24) Package deleted from pkgsrc
- (2025-07-15) Package has been reborn
- (2025-07-15) Package deleted from pkgsrc
- (2025-05-05) Updated to version: confuse-3.3nb1
CVS history: (Expand)
2026-08-23 09:40:58 by Thomas Klausner | Files touched by this commit (4) |  |
Log message:
confuse: update to 3.4.
[v3.4][] - 2026-08-16
---------------------
### Changes
* Support for `CFGT_RAWSEC`, capture a section body verbatim, by
Alexey Volokitin
* Support for an `include()` function within a section, enabled with
the `CFGF_USE_INCLUDE_FUNCTION` flag, by Alexey Volokitin
* Support binary radix (`0b...`) for `CFG_INT`, issue #145
* Add support for fixed-width and unsigned integer types,
`CFG_INT8/16/32/64` and `CFG_UINT8/16/32/64`, alongside the
platform-width `CFG_INT`, issue #11
* Update doxygen documentation and sync with modern doxygen
* Automatic large file support (LFS), by Mike Frysinger
* `cfg_parse_buf()` now keeps a caller-set `cfg->filename` for
`file:line` diagnostics, defaulting to `[buf]` only when unset, the
same way `cfg_parse_fp()` handles `FILE`
* Optional JSON-style `[ ]` list syntax, enable with `CFGF_JSON_LISTS`
flag to `cfg_init()`; `cfg_print()` then emits `[ ]` as well. The
default `{ }` syntax is unchanged
* Georgian translation, by Temuri Doghonadze
* Updated Swedish, French, and German translations, Joachim Wiberg
### Fixes
* Issue #147: fix the bundled `fmemopen()` replacement for systems
without a native one (e.g. older macOS/BSD), so the write-then-read
round-trip works; diagnosed by sevan
* Issue #150: comments are now accepted anywhere between tokens, e.g.
inside lists and inline C-style, not only before an option name
* Issue #152: fail to build with gettext 0.20, by heitbaum
* Issue #153: German translation update
* Issue #158: `cfg_addtsec()` returns the existing section when the
title already exists, matching the documented behavior
* Issue #163: heap overflow in `cfg_tilde_expand()`, found by Han Zheng
* Issue #172: document the working MSYS2/MINGW64 Windows build; the old
windows/mingw instructions were obsolete and failed to link
* Issue #179: `cfg_addlist()` now preserves default list values when
appending, by Yi Chen
* Issue #180: `isspace()` argument fix, could crash the lexer, by
Thomas Klausner
* Issue #182: guard against stack exhaustion from deeply nested
sections, by Yi Chen
* Issue #187: null dereference on an empty comment (e.g. `#`) with
`CFGF_COMMENTS` enabled, found and fixed by Benjamin Ali
* Fix null termination when expanding environment variables, by
Igor Ponomarenko
* Only apply search path logic to relative pathnames, absolute paths
are no longer altered, by Rasmus Villemoes
* Remove spurious 'no such option' errors for `KEYSTRVAL` sections
* Fix `configure` failure with autoconf 2.73, backslash continuations
in the `AC_CONFIG_FILES` list are no longer accepted
|
| 2025-05-05 16:52:01 by Thomas Klausner | Files touched by this commit (3) |
Log message:
confuse: fix ctype(3) problem
Bump PKGREVISION.
|
| 2023-06-06 14:42:56 by Taylor R Campbell | Files touched by this commit (1319) |
Log message:
Mass-change BUILD_DEPENDS to TOOL_DEPENDS outside mk/.
Almost all uses, if not all of them, are wrong, according to the
semantics of BUILD_DEPENDS (packages built for target available for
use _by_ tools at build-time) and TOOL_DEPEPNDS (packages built for
host available for use _as_ tools at build-time).
No change to BUILD_DEPENDS as used correctly inside buildlink3.
As proposed on tech-pkg:
https://mail-index.netbsd.org/tech-pkg/2023/06/03/msg027632.html
|
| 2021-10-26 12:20:11 by Nia Alarie | Files touched by this commit (3016) |
Log message:
archivers: Replace RMD160 checksums with BLAKE2s checksums
All checksums have been double-checked against existing RMD160 and
SHA512 hashes
Could not be committed due to merge conflict:
devel/py-traitlets/distinfo
The following distfiles were unfetchable (note: some may be only fetched
conditionally):
./devel/pvs/distinfo pvs-3.2-solaris.tgz
./devel/eclipse/distinfo eclipse-sourceBuild-srcIncluded-3.0.1.zip
|
| 2021-10-07 15:44:44 by Nia Alarie | Files touched by this commit (3017) |
Log message:
devel: Remove SHA1 hashes for distfiles
|
| 2020-12-05 13:35:25 by Nia Alarie | Files touched by this commit (1) |
Log message:
confuse: Fix HOMEPAGE
|
2020-08-24 10:18:12 by Thomas Klausner | Files touched by this commit (2) |  |
Log message:
confuse: update to 3.3.
[v3.3][] - 2020-06-25
---------------------
### Changes
* Support building static library on Windows
* Support for `fmemopen()` in Windows UWP applications
* Support for `cfg_getopt(cfg, "sub=name|option")`, i.e., get an option
from a sub-section, by Peter Rosin
* Support for `CFGF_MODIFIED` flag, to detect changes to settings
in memory after parsing, by Peter Rosin
* Support for filtering out settings when printing, by Peter Rosin
* Support for dynamic key=value sections with no pre-runtime knowledge
of setting names, useful for environment variables and similar
* Updated German translation, by Chris Leick
### Fixes
* Fix loop-forever bug found by Christian Reitter; a .conf file
containing only "=", will cause even the simplest parser to loop
forever in internal function `cfg_getopt_secidx()`
* Issue #113: Fail to build `strdup()` replacement
* Issue #118: Fix build on Windows, missing `fmemopen()` replacement
* Issue #120: Handle shell and C++ comments with no space separator
* Issue #125: Drop developer debug msg `QSTR: ...`
* Issue #131: Fix `CFG_PTR_CB()` regression, segfaults when, e.g.,
`cfg_free()` is called. Found and fixed by Peter Rosin
* Issue #135: Revert `CFGF_RESET` flag if `cfg_setmulti()` family fail
* Issue #137: Memory leak in `cfg_setopt()` for PTR options
|
2019-05-01 09:15:18 by Thomas Klausner | Files touched by this commit (2) |  |
Log message:
confuse: update to 3.2.2.
[v3.2.2][] - 2018-08-19
-----------------------
This is a security patch release for CVE-2018-14447. The vulnerability
affects all releases since v3.1 when the `CFGF_COMMENTS` functionality
was first introduced.
### Fixes
* Issue #109: Out of bounds read in `lexer.l:trim_whitespace()`.
|