39 Commits

Author SHA256 Message Date
Stefan Schubert
f52122288e Accepting request 1322994 from home:schubi2
- Update to version 0.8.3:
  * improved Documentation  (#246)

OBS-URL: https://build.opensuse.org/request/show/1322994
OBS-URL: https://build.opensuse.org/package/show/devel:microos/libeconf?expand=0&rev=56
2025-12-15 17:02:36 +00:00
Stefan Schubert
aae860e11b Accepting request 1321615 from home:schubi2
- Update to version 0.8.2:
  * Cleanup man pages
  * Using ECONF_ARGUMENT_IS_NULL_VALUE instead of general error 
 ECONF_ERROR

OBS-URL: https://build.opensuse.org/request/show/1321615
OBS-URL: https://build.opensuse.org/package/show/devel:microos/libeconf?expand=0&rev=54
2025-12-08 15:57:34 +00:00
Stefan Schubert
ab17f4d1e2 Accepting request 1320040 from home:schubi2
- Update to version 0.8.1:
  * Set default parameter in econf_get<type>ValueDef to "const"

OBS-URL: https://build.opensuse.org/request/show/1320040
OBS-URL: https://build.opensuse.org/package/show/devel:microos/libeconf?expand=0&rev=52
2025-11-25 15:41:03 +00:00
Stefan Schubert
874d861c9b Accepting request 1312425 from home:schubi2
- Update to version 0.8.0:
  * new call: econf_setExtValue (#239)
- Update to version 0.8.0:
  * new call: econf_setExtValue (#239)

OBS-URL: https://build.opensuse.org/request/show/1312425
OBS-URL: https://build.opensuse.org/package/show/devel:microos/libeconf?expand=0&rev=50
2025-10-20 13:57:42 +00:00
Stefan Schubert
b7d450b245 Accepting request 1296748 from home:schubi2
- Update to version 0.7.10:
  * cmake: Fix .pc file with absolute CMAKE_INSTALL_<dir> (#237)
  * Add build options for the CMake build (#230)
  * check NULL for default string (bnc#1247107)
- Update to version 0.7.10:
  * cmake: Fix .pc file with absolute CMAKE_INSTALL_<dir> (#237)
  * Add build options for the CMake build (#230)
  * check NULL for default string (bnc#1247107)

OBS-URL: https://build.opensuse.org/request/show/1296748
OBS-URL: https://build.opensuse.org/package/show/devel:microos/libeconf?expand=0&rev=48
2025-07-31 09:58:21 +00:00
Stefan Schubert
92cd1b62e2 Accepting request 1276094 from home:schubi2
- Update to version 0.7.9:
  * Comments can include comment character tag multiple time.
  * Fixed static library declaration in meason
  * Fixed versioning in cmake
- Update to version 0.7.9:
  * Comments can include comment character tag multiple time.
  * Fixed static library declaration in meason
  * Fixed versioning in cmake

OBS-URL: https://build.opensuse.org/request/show/1276094
OBS-URL: https://build.opensuse.org/package/show/devel:microos/libeconf?expand=0&rev=46
2025-05-09 07:42:35 +00:00
Stefan Schubert
e82cc0bc7a Accepting request 1272612 from home:schubi2
- Update to version 0.7.8:
  * Fix memory access if there are a comment character inside a comment.

OBS-URL: https://build.opensuse.org/request/show/1272612
OBS-URL: https://build.opensuse.org/package/show/devel:microos/libeconf?expand=0&rev=44
2025-04-25 08:45:28 +00:00
Stefan Schubert
f28a265851 Accepting request 1237364 from home:schubi2
- Update to version 0.7.7:
  * Additional fix for parsing empty config files (bsc#1234405).

OBS-URL: https://build.opensuse.org/request/show/1237364
OBS-URL: https://build.opensuse.org/package/show/devel:microos/libeconf?expand=0&rev=42
2025-01-13 09:53:19 +00:00
Stefan Schubert
b3a4bcecb3 Accepting request 1230799 from home:schubi2
- Update to version 0.7.6:
  * Do not try to parse files with name like ".." and "." (#227)
  * using econf_readConfig in econftool
- Update to version 0.7.6:
  * Do not try to parse files with name like ".." and "." (#227)
  * using econf_readConfig in econftool

OBS-URL: https://build.opensuse.org/request/show/1230799
OBS-URL: https://build.opensuse.org/package/show/devel:microos/libeconf?expand=0&rev=40
2024-12-13 13:39:14 +00:00
Stefan Schubert
64f17217b1 Accepting request 1229447 from home:schubi2
- Update to version 0.7.5:
  * Removed PATH_MAX (Issue #220)
  * Add ROOT_PREFIX as option to replace TESTSDIR hack
  * CI: valgrind doesn't work together with sanitizers
  * econf_readConfig: don't allocate econf_file in error case
  * tests: use cleanup to free key_file for some tests
  * libeconf: don't allocate array from size 0
  * libeconf: fix use of uninitialized stat result if file does not exist
  * econftool: dynamically allocate xdg_config_dir
  * Disable clang <= 17, enable valgrind
  * Disable whitespace check
  * Disable deprecation warning for econftool and example
  * Add new CI with different compilers and valgrind
  * Test econf_readConfig()
  * Disable deprecation warning for tests
  * Implement econf_*freep functions for automatic cleanup
  * Cleanup *free functions
- Update to version 0.7.5:
  * Removed PATH_MAX (Issue #220)
  * Add ROOT_PREFIX as option to replace TESTSDIR hack
  * CI: valgrind doesn't work together with sanitizers
  * econf_readConfig: don't allocate econf_file in error case
  * tests: use cleanup to free key_file for some tests
  * libeconf: don't allocate array from size 0
  * libeconf: fix use of uninitialized stat result if file does not exist
  * econftool: dynamically allocate xdg_config_dir
  * Disable clang <= 17, enable valgrind
  * Disable whitespace check
  * Disable deprecation warning for econftool and example
  * Add new CI with different compilers and valgrind
  * Test econf_readConfig()
  * Disable deprecation warning for tests
  * Implement econf_*freep functions for automatic cleanup
  * Cleanup *free functions

OBS-URL: https://build.opensuse.org/request/show/1229447
OBS-URL: https://build.opensuse.org/package/show/devel:microos/libeconf?expand=0&rev=38
2024-12-09 16:55:18 +00:00
Stefan Schubert
cdb4871857 Accepting request 1203863 from home:schubi2
- Update to version 0.7.4:
  * Fixed memory leaks (#219)
  * Fixed: econf_readDirs crashes if one of the paths is NULL (#211)
  * Added links to man page. E.g. "man econf_readConfig" is working now.
  * Handle groups correctly which do not have any key entry.
- Update to version 0.7.4:
  * fixed memory leaks (#219)

OBS-URL: https://build.opensuse.org/request/show/1203863
OBS-URL: https://build.opensuse.org/package/show/devel:microos/libeconf?expand=0&rev=34
2024-09-26 11:23:33 +00:00
Stefan Schubert
9570cd9faa Accepting request 1201809 from home:schubi2
- Update to version 0.7.3:
  * Groups handled in an own list (#218)
  * Add econftool as dependency of its tests
  * Simplify snprintf call
  * Remove unused functions and reduce variable visibility (#213)
  * Fix typos (#212)

OBS-URL: https://build.opensuse.org/request/show/1201809
OBS-URL: https://build.opensuse.org/package/show/devel:microos/libeconf?expand=0&rev=32
2024-09-18 14:29:44 +00:00
Stefan Schubert
a9459b9c07 Accepting request 1180831 from home:schubi2
- Update to version 0.7.2:
  * Do not check errno while float conversion. This is a false
    alarm for S390 and PPC (#210)
- Update to version 0.7.2:
  * Do not check errno while float conversion. This is a false
    alarm for S390 and PPC (#210).

OBS-URL: https://build.opensuse.org/request/show/1180831
OBS-URL: https://build.opensuse.org/package/show/devel:microos/libeconf?expand=0&rev=30
2024-06-14 07:36:36 +00:00
Stefan Schubert
81e214906d Accepting request 1179642 from home:schubi2:branches:devel:microos
- Update to version 0.7.1:
* Improved error handling while parsing values with the wrong format.
  Added new return value ECONF_VALUE_CONVERSION_ERROR.
* Setting parsing options via econf_file struct.
  see econf_newKeyFile_with_options. These options will be used by
  econf_readConfig and econf_readConfigWithCallback.
  Following options are supported:
   JOIN_SAME_ENTRIES  (default 0)
     Parsed entries with the same name will not be replaces but
     will be joined to one entry.
   PYTHON_STYLE  (default 0)
     E.G. Identations will be handled like multiline entries.
   PARSING_DIRS (default /usr/etc/:/run:/etc)
     List of directories from which the configuration files have to be parsed.
     The list is a string, divides by ":". The last entry has the highest
     priority. E.g.: "PARSING_DIRS=/usr/etc/:/run:/etc"
   CONFIG_DIRS (default <empty>)
     List of directory structures (with order) which describes the directories
     in which the files have to be parsed.
     The list is a string, divides by ":". The last entry has the highest
     priority. E.g. with the given list: "CONFIG_DIRS=.conf.d:.d" files in
     following directories will be parsed:
            "<default_dirs>/<config_name>.conf.d/"
            "<default_dirs>/<config_name>.d/"
            "<default_dirs>/<config_name>/"
* CAUTION: From now on every econf_file element MUST be intialized if
           econf_readConfig and econf_readConfigWithCallback is used.
  Either with NULL or:
   econf_file *key_file = NULL;
   if (error = econf_newKeyFile_with_options(&key_file, "PYTHON_STYLE=1"))
   {
      fprintf (stderr, "ERROR: couldn't create new key file: %s\n",
               econf_errString(error));
      return 1;
   }
   error = econf_readConfig (&key_file,
                             "foo",
                             "/usr/lib",
                             "example",
                             "conf",
                             "=", "#");
- Update to version 0.7.1:
* Improved error handling while parsing values with the wrong format.
  Added new return value ECONF_VALUE_CONVERSION_ERROR.
* Setting parsing options via econf_file struct.
  see econf_newKeyFile_with_options. These options will be used by
  econf_readConfig and econf_readConfigWithCallback.
  Following options are supported:
   JOIN_SAME_ENTRIES  (default 0)
     Parsed entries with the same name will not be replaces but
     will be joined to one entry.
   PYTHON_STYLE  (default 0)
     E.G. Identations will be handled like multiline entries.
   PARSING_DIRS (default /usr/etc/:/run:/etc)
     List of directories from which the configuration files have to be parsed.
     The list is a string, divides by ":". The last entry has the highest
     priority. E.g.: "PARSING_DIRS=/usr/etc/:/run:/etc"
   CONFIG_DIRS (default <empty>)
     List of directory structures (with order) which describes the directories
     in which the files have to be parsed.
     The list is a string, divides by ":". The last entry has the highest
     priority. E.g. with the given list: "CONFIG_DIRS=.conf.d:.d" files in
     following directories will be parsed:
            "<default_dirs>/<config_name>.conf.d/"
            "<default_dirs>/<config_name>.d/"
            "<default_dirs>/<config_name>/"
* CAUTION: From now on every econf_file element MUST be intialized if
           econf_readConfig and econf_readConfigWithCallback is used.
  Either with NULL or:
   econf_file *key_file = NULL;
   if (error = econf_newKeyFile_with_options(&key_file, "PYTHON_STYLE=1"))
   {
      fprintf (stderr, "ERROR: couldn't create new key file: %s\n",
               econf_errString(error));
      return 1;
   }
   error = econf_readConfig (&key_file,
                             "foo",
                             "/usr/lib",
                             "example",
                             "conf",
                             "=", "#");

OBS-URL: https://build.opensuse.org/request/show/1179642
OBS-URL: https://build.opensuse.org/package/show/devel:microos/libeconf?expand=0&rev=28
2024-06-10 08:10:26 +00:00
Stefan Schubert
6c10b8e366 Accepting request 1178500 from home:schubi2
- Update to version 0.7.0:
  * Defining manual parsing directories (#209)
  * parsing config files in python style
  * econf_readConfig: set usr_subdir to empty string if it is NULL
  * Fix static analyzer detected issues (#202)
  * comment string can be in the parsed value which is defined with quotes (#207)
  * tst-comments2: comment sign in quoted string (#205)
  * Setting options via new econf_newKeyFile_with_options. (#206)
- Update to version 0.7.0:
  * Defining manual parsing directories (#209)
  * parsing config files in python style
  * econf_readConfig: set usr_subdir to empty string if it is NULL
  * Fix static analyzer detected issues (#202)
  * comment string can be in the parsed value which is defined with quotes (#207)
  * tst-comments2: comment sign in quoted string (#205)
  * Setting options via new econf_newKeyFile_with_options. (#206)

OBS-URL: https://build.opensuse.org/request/show/1178500
OBS-URL: https://build.opensuse.org/package/show/devel:microos/libeconf?expand=0&rev=27
2024-06-04 14:07:43 +00:00
Stefan Schubert
1c4b78d7b4 Accepting request 1167040 from home:schubi2
- Update to version 0.6.3:
  * Fix build with musl libc on ppc64le (#198)
  * creating static library
- Update to version 0.6.3:
  * Fix build with musl libc on ppc64le (#198)
  * creating static library

OBS-URL: https://build.opensuse.org/request/show/1167040
OBS-URL: https://build.opensuse.org/package/show/devel:microos/libeconf?expand=0&rev=23
2024-04-12 11:11:44 +00:00
Stefan Schubert
8b4e3586ee Accepting request 1155520 from home:schubi2
- Update to version 0.6.2:
  * Fix static analyzer detected issues (#196)
- Update to version 0.6.2:
  * Fix static analyzer detected issues (#196)

OBS-URL: https://build.opensuse.org/request/show/1155520
OBS-URL: https://build.opensuse.org/package/show/devel:microos/libeconf?expand=0&rev=21
2024-03-06 11:25:22 +00:00
Stefan Schubert
bcdb9e24b7 Accepting request 1140688 from home:schubi2
- Update to version 0.6.1:
  * reading lines which have a length greater than BUFSIZE (#195)
  * Improved data quote check in read_file (#193)
- Update to version 0.6.1:
  * reading lines which have a length greater than BUFSIZE (#195)
  * Improved data quote check in read_file (#193)

OBS-URL: https://build.opensuse.org/request/show/1140688
OBS-URL: https://build.opensuse.org/package/show/devel:microos/libeconf?expand=0&rev=19
2024-01-22 16:19:47 +00:00
Richard Brown
ccd2521adc Accepting request 1124264 from home:schubi2
- Update to version 0.6.0:
  * Supporting Linux Userspace API (UAPI) Group
    chapter "Configuration Files Specification".
    See: https://uapi-group.org/specifications/specs/
                 configuration_files_specification/
- Update to version 0.5.3:
  * Added bindings for python3 and C#
------------------------------------------------------------------
- Fix version comparison operator
- Remove explicit python3-base requirement
- Update to version 1.1.1:
  * Supporting Linux Userspace API (UAPI) Group
    chapter "Configuration Files Specification".
    See: https://uapi-group.org/specifications/specs/
                 configuration_files_specification/

OBS-URL: https://build.opensuse.org/request/show/1124264
OBS-URL: https://build.opensuse.org/package/show/devel:microos/libeconf?expand=0&rev=16
2023-11-10 12:48:19 +00:00
Richard Brown
5e970e1ecb Accepting request 1120759 from home:nkrapp:branches:devel:microos
- Version 0.5.2:
  * Add python bindings (#188)
  * docu version 0.5.2
  * Fix test (#185)
  * Plug memory leak (#186)
- Python-libeconf Version 1.1.0
  * Added tests
  * Support all functions form libeconf 0.5.2
  * Bug fixes

OBS-URL: https://build.opensuse.org/request/show/1120759
OBS-URL: https://build.opensuse.org/package/show/devel:microos/libeconf?expand=0&rev=14
2023-10-30 09:58:24 +00:00
Stefan Schubert
b00d60a668 Accepting request 1074225 from home:schubi2
- Update to version 0.5.2:
  * Fixed build for aarch64 and gcc13.
  * Making the output verbose when a test fails.
  * Fixed a stack-buffer-overflow vulnerability in "econf_writeFile"
    function.
  * Fixed a stack-buffer-overflow vulnerability in "read_file"
    function.
  * Added new feature: econf_set_conf_dirs (const char **dir_postfix_list)
    Sets a list of directory structures (with order) which describes
    the directories in which the files have to be parsed.
    E.G. with the given list: {"/conf.d/", ".d/", "/", NULL} files in following
       directories will be parsed:
          "<default_dirs>/<project_name>.<suffix>.d/"
          "<default_dirs>/<project_name>/conf.d/"
          "<default_dirs>/<project_name>.d/"
          "<default_dirs>/<project_name>/"
       The entry "<default_dirs>/<project_name>.<suffix>.d/" will be added
       automatically.
  * General code cleanup.

OBS-URL: https://build.opensuse.org/request/show/1074225
OBS-URL: https://build.opensuse.org/package/show/devel:microos/libeconf?expand=0&rev=10
2023-03-24 16:12:42 +00:00
Richard Brown
4f13b79322 Accepting request 1059835 from home:schubi2
- Update to version 0.5.1:
  * Reading files in /usr/_vendor_/_example_._suffix_.d/* regardless
    there is a /etc/_example_._suffix_ file. (#175)

OBS-URL: https://build.opensuse.org/request/show/1059835
OBS-URL: https://build.opensuse.org/package/show/devel:microos/libeconf?expand=0&rev=8
2023-01-20 09:02:21 +00:00
Richard Brown
792615b3cd Accepting request 1039621 from home:schubi2
- Update to version 0.5.0:
  * API calls econf_read*WithCallback supporting a general (void *)
    argument for user defined data with which the callback function is
    called.
  * Tagged following functions deprecated:
    econf_requireOwner, econf_requireGroup, econf_requirePermissions,
    econf_followSymlinks, econf_reset_security_settings
    Use one of the econf_read*WithCallback functions instead.

OBS-URL: https://build.opensuse.org/request/show/1039621
OBS-URL: https://build.opensuse.org/package/show/devel:microos/libeconf?expand=0&rev=6
2022-12-05 09:01:03 +00:00
Richard Brown
9a1ccaa8e3 Accepting request 1037644 from home:schubi2
- Update to version 0.4.9:
  * libeconf.h: added missing sys/types.h header (#171)
  * new API calls: econf_readFileWithCallback,
    econf_readDirsWithCallback, econf_readDirsHistoryWithCallback (#172)
  * Checking NULL comment parameter in the parsing functions.

OBS-URL: https://build.opensuse.org/request/show/1037644
OBS-URL: https://build.opensuse.org/package/show/devel:microos/libeconf?expand=0&rev=4
2022-11-25 12:09:48 +00:00
21b86d76b1 Accepting request 1036466 from devel:microos
OBS-URL: https://build.opensuse.org/request/show/1036466
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libeconf?expand=0&rev=16
2022-11-18 14:42:32 +00:00
73cfebb9b6 Accepting request 973278 from devel:kubic
OBS-URL: https://build.opensuse.org/request/show/973278
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libeconf?expand=0&rev=15
2022-05-01 16:53:18 +00:00
8a264a4f4d Accepting request 967378 from devel:kubic
OBS-URL: https://build.opensuse.org/request/show/967378
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libeconf?expand=0&rev=14
2022-04-08 20:45:20 +00:00
705ebc1d7d Accepting request 943749 from devel:kubic
OBS-URL: https://build.opensuse.org/request/show/943749
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libeconf?expand=0&rev=13
2022-01-05 12:39:28 +00:00
03d0e064e2 Accepting request 930885 from devel:kubic
OBS-URL: https://build.opensuse.org/request/show/930885
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libeconf?expand=0&rev=12
2021-11-15 14:25:58 +00:00
239082a024 Accepting request 905185 from devel:kubic
OBS-URL: https://build.opensuse.org/request/show/905185
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libeconf?expand=0&rev=11
2021-07-11 23:24:32 +00:00
4d6e275c1f Accepting request 885618 from devel:kubic
OBS-URL: https://build.opensuse.org/request/show/885618
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libeconf?expand=0&rev=10
2021-04-19 19:05:38 +00:00
5a7886940d Accepting request 820744 from devel:kubic
OBS-URL: https://build.opensuse.org/request/show/820744
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libeconf?expand=0&rev=8
2020-08-02 10:27:18 +00:00
0044aa7c3c Accepting request 811882 from devel:kubic
- Update to version 0.3.7+git20200605.c67ef9a:
  * Fix build on i586

- Update to version 0.3.6+git20200529.276359f:
  * add support for meson
  * Add C++ compatibility

OBS-URL: https://build.opensuse.org/request/show/811882
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libeconf?expand=0&rev=7
2020-06-07 19:34:02 +00:00
8b9e407b54 Accepting request 769722 from devel:kubic
- Update to version 0.3.5+git20200203.3144b69:
  * Release version 0.3.5
  * Use float.h instead of obsolete gnuism values.h
  * Remove gnuism (strdupa)
  * Check for empty value (NULL pointer) before calling strdup.
- Update to version 0.3.4+git20200121.febebf2:
  * Release version 0.3.4
  * Fix buffer overflow in econf_readDirs
  * Fix parsing of quoted strings, and values starting with delimiters
  * tests: add test for quoted strings
  * tests: tst-configdirs5: fix config dir paths

OBS-URL: https://build.opensuse.org/request/show/769722
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libeconf?expand=0&rev=6
2020-02-15 21:21:33 +00:00
fc03c2906b Accepting request 743486 from devel:kubic
OBS-URL: https://build.opensuse.org/request/show/743486
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libeconf?expand=0&rev=5
2019-11-01 14:12:49 +00:00
e1245c0f41 Accepting request 733498 from devel:kubic
- Update to version 0.3.2+git20190926.fea4a03:
  * Release version 0.3.2
  * Fix merging an empty file (#105)
  * Add test cases for merge function

- Update to version 0.3.1+git20190924.822cf5b:
  * release version 0.3.1
  * Set delimiter in readFile
  * Change parser interface to store file name and line numbers per key
  * Update ccpp.yml

OBS-URL: https://build.opensuse.org/request/show/733498
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libeconf?expand=0&rev=4
2019-09-27 12:43:59 +00:00
55e36dc678 Accepting request 730681 from devel:kubic
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/730681
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libeconf?expand=0&rev=3
2019-09-17 11:36:40 +00:00
8153a1e0ce Accepting request 728808 from devel:kubic
OBS-URL: https://build.opensuse.org/request/show/728808
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libeconf?expand=0&rev=2
2019-09-07 09:53:52 +00:00
97dbd63ba6 Accepting request 727773 from devel:kubic
Fix Int64 handling on 32bit architectures

OBS-URL: https://build.opensuse.org/request/show/727773
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libeconf?expand=0&rev=1
2019-09-04 07:12:32 +00:00