From 40762747332fd0a9556915148ed9705ca9e3a9aa7726088c74e128e2c36c48d6 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Wed, 4 Sep 2019 07:12:32 +0000 Subject: [PATCH] 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 --- .gitattributes | 23 +++ .gitignore | 1 + _service | 15 ++ _servicedata | 6 + baselibs.conf | 1 + libeconf-0.0.0+git20190902.dd17c11.tar.xz | 3 + libeconf.changes | 184 ++++++++++++++++++++++ libeconf.spec | 81 ++++++++++ 8 files changed, 314 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 _servicedata create mode 100644 baselibs.conf create mode 100644 libeconf-0.0.0+git20190902.dd17c11.tar.xz create mode 100644 libeconf.changes create mode 100644 libeconf.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..c8c5d1a --- /dev/null +++ b/_service @@ -0,0 +1,15 @@ + + + 0.0.0 + 0.0.0+git%cd.%h + git://github.com/openSUSE/libeconf.git + git + enable + kukuk@suse.de + + + xz + *.tar + + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..fc6c3e2 --- /dev/null +++ b/_servicedata @@ -0,0 +1,6 @@ + + + git://github.com/openSUSE/libeconf.git + 51b65e3ce43682322a215097e45b6cd03b6c0abb + + \ No newline at end of file diff --git a/baselibs.conf b/baselibs.conf new file mode 100644 index 0000000..0f76614 --- /dev/null +++ b/baselibs.conf @@ -0,0 +1 @@ +libeconf0 diff --git a/libeconf-0.0.0+git20190902.dd17c11.tar.xz b/libeconf-0.0.0+git20190902.dd17c11.tar.xz new file mode 100644 index 0000000..a948cf5 --- /dev/null +++ b/libeconf-0.0.0+git20190902.dd17c11.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:30f15466b8ff6ebcc44c5ac6ad98dadedbb092bd7370bcb256016b1c490a9ab7 +size 24224 diff --git a/libeconf.changes b/libeconf.changes new file mode 100644 index 0000000..caa110a --- /dev/null +++ b/libeconf.changes @@ -0,0 +1,184 @@ +------------------------------------------------------------------- +Mon Sep 02 13:18:01 UTC 2019 - kukuk@suse.de + +- Update to version 0.0.0+git20190902.dd17c11: + * Fix int64 variables on 32bit architectures + +------------------------------------------------------------------- +Sat Aug 31 18:28:13 UTC 2019 - kukuk@suse.de + +- Update to version 0.0.0+git20190831.fb7c1bb: + * Rewrite econf_readDirs - don't assume suffix is ".conf" - Read files and directories in correct order + +------------------------------------------------------------------- +Fri Aug 30 09:43:08 UTC 2019 - kukuk@suse.de + +- Update to version 0.0.0+git20190830.04ba053: + * Make clear that the API and ABI of the three functions econf_newIniFile, econf_newKeyFile, econf_writeFile are not stable yet. + * Fix getGroups argument types and add several test cases for this. + * Fix cppcheck and compiler warnings + +------------------------------------------------------------------- +Thu Aug 29 14:05:38 UTC 2019 - kukuk@suse.de + +- Update to version 0.0.0+git20190829.a1479b1: + * Make comment argument an array, so that we can support more than one comment character in the future. + * Change the API + * Fix size_t as return value of getc() + +------------------------------------------------------------------- +Thu Aug 29 10:53:04 UTC 2019 - kukuk@suse.de + +- Update to version 0.0.0+git20190829.209219e: + * Convert all functions to new error API + * Convert econf_newKeyFile provide the error via return code + +------------------------------------------------------------------- +Wed Aug 28 13:42:50 UTC 2019 - kukuk@suse.de + +- Update to version 0.0.0+git20190828.74eeb32: + * Fix tst-arguments3 and tst-arguments4 and only use error return code. + * Bug fixes for new API + * Change API of econf_get* and econf_set* functions to return error code direct. + * Fix some compiler warnings + * Prevent possible crash when parsing 0xFF + * Add "--enable-compiler-warnings" option to enable much more GCC compiler warnings + * Fix more cppcheck warnings + * Fix github actions build + * Update bin/Makefile.am to work with Asan + * Add missing tst-getconfdirs4-data to EXTRA_DIST + * Fix some cppcheck warnings + * Don't ignore getline return value + * Add free for getStringValue in tst-group1 + * Remove XFAIL for tst-groups1 + * Update example.c to free after getStringValue + * Add addbrackets for getValue functions + * tst-getconfdirs4: make sure, only a file in /etc/ and not in /usr/etc works, too. + +------------------------------------------------------------------- +Tue Aug 27 12:19:45 UTC 2019 - kukuk@suse.de + +- Update to version 0.0.0+git20190827.5ed5492: + * Mark all input char pointer as const in the official API + +------------------------------------------------------------------- +Tue Aug 27 11:49:42 UTC 2019 - kukuk@suse.de + +- Update to version 0.0.0+git20190827.b243e6c: + * getStringValueNum returns a newly allocated string or NULL in error case. + +------------------------------------------------------------------- +Tue Aug 27 09:47:12 UTC 2019 - kukuk@suse.de + +- Update to version 0.0.0+git20190827.8374759: + * Fix missing return + * Remove XFAIL for tst-setgetvalues1 + * Fix representation of float and double values + * Add preliminary test case for group handling + * NULL terminate string returned by addbrackets + * Fix addbrackets function + +------------------------------------------------------------------- +Mon Aug 26 19:09:25 UTC 2019 - kukuk@suse.de + +- Update to version 0.0.0+git20190826.99b6bf3: + * Add more "const". + * Fix setString and setBoolean + * Add test suite which sets and gets all possible kind of types. Some are failing, so mark this test as XFAIL. + * Start marking some string arguments/results as const + * Optimize some strdup away + * Mark econf_write_key_file as ALPHA as the API is not stable + +------------------------------------------------------------------- +Mon Aug 26 11:43:16 UTC 2019 - kukuk@suse.de + +- Update to version 0.0.0+git20190826.9e69003: + * Update ccpp.yml + * Add --enable-compiler-checks option to configure, enables AddressSanitizer + * Fix printf format directive + * Rework set*Value functions for error checking and error handling + * Add tst-getconfdirs3: verify we can load original file without local changes + * Error handling for econf_getGroups and econf_getKeys + * More errorreporting changes + * Fix make distcheck/don't mess around with libtool install/uninstall, this breaks to much other stuff. + * Autotools cleanup and fixes + * Fix logindefs1 test case + +------------------------------------------------------------------- +Fri Aug 23 18:56:13 UTC 2019 - kukuk@suse.de + +- Update to version 0.0.0+git20190823.09a8f2e: + * Fix buffer overlow of realpath + +------------------------------------------------------------------- +Fri Aug 23 15:58:37 UTC 2019 - kukuk@suse.de + +- Update to version 0.0.0+git20190823.acd8cdf: + * Update ccpp.yml + * Fix crash in strcmp, if strchr returns NULL + * Add error reporting to econf_merge_key_files and adjust the depending code. + * setStringValue return NULL on error/key not found + * Add framework for correct error reporting + * Disable searching through XDG dirs for now + * Add test cases for econf_get_conf_from_dirs + * Update comment setValue -> econf_setValue + * Update test cases to use econf_destroy + * Replace econf_afree with econf_destroy in example + * Add _generic macro to free memory of econf_ functions + * Add tst-merge2 to .gitignore + * Fix pointer arithmetic + * Adjust Makefiles and code to make "make distcheck" working + +------------------------------------------------------------------- +Thu Aug 22 19:33:21 UTC 2019 - kukuk@suse.de + +- Update to version 0.0.0+git20190822.bb9702b: + * Ignore /usr file if /etc exists when merging + * Add NULL value handling + * Update merge example + * Rework merge_functionality + * Use deep copies instead of pointers for merged files + * Replace [] with KEY_FILE_NULL_VALUE + * Refactor getfilecontent functions + * Remove cmake files + * Fix test cases + * Update libeconf.c + * Change License from LGPL-2.1 to MIT + * libeconf.pc should only be deleted on distclean, not normal clean + * Fix delim argument + * Add more test cases for login.defs and wrong arguments + * Link libeconf against libm, so that it is enough to link an application against libeconf and developers don't need to bother with other dependencies + * Add autogen.sh, which calls autoconf/automake/libtool in the correct order to create the configure script + +------------------------------------------------------------------- +Tue Aug 20 13:04:55 UTC 2019 - kukuk@suse.de + +- Update to version 0.0.0+git20190820.742af8c: + * Remove accidental .swp file + * Update example with conf.d directory + * Remove regex, replace with strchr(delim, ch) + * Add symbol versioning Don't ignore complete lib directory + * Include all headers in tar archive + * Don't define our own errno + * Remove wrong commit + * Add some basic tests + +------------------------------------------------------------------- +Tue Aug 20 12:59:47 UTC 2019 - kukuk@suse.de + +- Update to version 0.0.0+git20190807.7aedb57: + * Refactor getfilecontent functions + * Update example file + * Add econf prefix to public API functions + * Add cmake targets for debugging + * Fix build with cmake + * Fix build with autotools + * Move Key_File allocation from the stack to the heap + * Move Key_File create functions to libeconf.c + * Move destroy functions from helpers.c to libeconf.c + * Add macro to set supported types generic. + +------------------------------------------------------------------- +Sat Aug 17 11:53:48 UTC 2019 - Thorsten Kukuk + +- Initial version diff --git a/libeconf.spec b/libeconf.spec new file mode 100644 index 0000000..186fdf8 --- /dev/null +++ b/libeconf.spec @@ -0,0 +1,81 @@ +# +# spec file for package libeconf +# +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define lname libeconf0 +Name: libeconf +Version: 0.0.0+git20190902.dd17c11 +Release: 0 +Summary: Enhanced config file parser ala systemd +License: LGPL-2.1-or-later +Url: https://github.com/openSUSE/libeconf +Group: Development/Libraries/C and C++ +Source: libeconf-%{version}.tar.xz +Source2: baselibs.conf +BuildRequires: autoconf +BuildRequires: libtool +BuildRequires: automake +BuildRequires: pkgconfig + +%description +Enhanced config file parser, which merges config files placed +in several locations into one. + +%package -n %{lname} +Summary: Enhanced config file parser ala systemd + +%description -n %{lname} +Enhanced config file parser, which merges config files placed +in several locations into one. + +%package devel +Summary: Development files for libeconf +Group: Development/Libraries/C and C++ +Requires: %{lname} = %{version} + +%description devel +This package contains all necessary include files and libraries needed +to develop applications that needs to read configuration files from +different locations. + +%prep +%setup -q + +%build +./autogen.sh +%configure --disable-static + +%install +%make_install +rm -fv %{buildroot}%{_libdir}/libeconf.la + +%check +make check + +%post -n %{lname} -p /sbin/ldconfig +%postun -n %{lname} -p /sbin/ldconfig + +%files -n %{lname} +%license LICENSE +%{_libdir}/libeconf.so.* + +%files devel +%{_includedir}/*.h +%{_libdir}/libeconf.so +%{_libdir}/pkgconfig/libeconf.pc + +%changelog