Commit Graph

26 Commits

Author SHA256 Message Date
Stefan Schubert
a395cec6a2 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
17d8e7e3e2 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
24b4396efd 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
0e0ce80407 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
ae3baf20b1 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
12e719a8de 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
5adc8ee640 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
333e1ec683 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
b8d4e57876 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
93b7f936b6 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
bd9a9d511d 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
Dominique Leuenberger
6b8ff7806a 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
Dominique Leuenberger
25c450197a 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
Dominique Leuenberger
e27a4056f9 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
Dominique Leuenberger
f99e01022e 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
Dominique Leuenberger
11cf18497d 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
Dominique Leuenberger
b49c40bcba 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
Dominique Leuenberger
5adae25c13 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
Dominique Leuenberger
c6efa3e2d6 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
Dominique Leuenberger
6ba0a611fe 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
Dominique Leuenberger
d10f4de529 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
Dominique Leuenberger
e8c68b89d0 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
Dominique Leuenberger
d4c10581a4 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
Yuchen Lin
10ca8c4b61 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
Dominique Leuenberger
ea55b904ef 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
Dominique Leuenberger
4076274733 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