From 80226aa2c2814bc666c8577810b587a3f0fa37f241d1b2c5c234a536018a4f24 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 14 Apr 2020 08:57:38 +0000 Subject: [PATCH] Accepting request 793556 from home:alois:branches:Education - Update to version 1.4.7 * Fix incorrect work of set_* where hash function generates full ulong_t hash value * hsh_string_hash generates full 64bit hash value on platforms where sizeof(long) == 8 * Improve build and test system * tests/err: minor fix, target "test" should not remove _mkc_* and .o files * Avoid trailing \n in format argument for err_* functions, no need for it any longer * tests/err/errtest.c: fix another compilation failure due to __wur (warning used result) version 1.4.6 * Add missing fix (compilation failure) for tests/err/errtest.c version 1.4.5 * err_* functions: + Fix segfault caused by "ap" is used twice. Solution is to va_copy it and use copied "ap" for printing to stderr. + Improve formatting (no empty lines in log files) * err_set_program_name: handle correctly NULL argument * log_mkpath function: avoid use of alloca(3) * hsh_pointer_compare function now follows -1/0/1 logic * Add more tests for log_*, err_*, hsh_* and set_* function - Fix build with gcc 9.x - Drop Group tag - Spec cleanup OBS-URL: https://build.opensuse.org/request/show/793556 OBS-URL: https://build.opensuse.org/package/show/Education/libmaa?expand=0&rev=11 --- libmaa-1.4.4.tar.gz | 3 --- libmaa-1.4.7.tar.gz | 3 +++ libmaa.changes | 33 +++++++++++++++++++++++++++++++++ libmaa.spec | 19 +++++++++---------- 4 files changed, 45 insertions(+), 13 deletions(-) delete mode 100644 libmaa-1.4.4.tar.gz create mode 100644 libmaa-1.4.7.tar.gz diff --git a/libmaa-1.4.4.tar.gz b/libmaa-1.4.4.tar.gz deleted file mode 100644 index 600a046..0000000 --- a/libmaa-1.4.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fbd739e8467c4b7213594b172cfe3059443127313f8365224aa9c269498869e2 -size 172643 diff --git a/libmaa-1.4.7.tar.gz b/libmaa-1.4.7.tar.gz new file mode 100644 index 0000000..9f311b9 --- /dev/null +++ b/libmaa-1.4.7.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4e01a9ebc5d96bc9284b6706aa82bddc2a11047fa9bd02e94cf8753ec7dcb98e +size 173728 diff --git a/libmaa.changes b/libmaa.changes index 8ee2d08..1db3645 100644 --- a/libmaa.changes +++ b/libmaa.changes @@ -1,3 +1,36 @@ +------------------------------------------------------------------- +Mon Apr 13 08:56:32 UTC 2020 - Luigi Baldoni + +- Update to version 1.4.7 + * Fix incorrect work of set_* where hash function generates + full ulong_t hash value + * hsh_string_hash generates full 64bit hash value on platforms + where sizeof(long) == 8 + * Improve build and test system + * tests/err: minor fix, target "test" should not remove _mkc_* + and .o files + * Avoid trailing \n in format argument for err_* functions, no + need for it any longer + * tests/err/errtest.c: fix another compilation failure due to + __wur (warning used result) + version 1.4.6 + * Add missing fix (compilation failure) for tests/err/errtest.c + version 1.4.5 + * err_* functions: + + Fix segfault caused by "ap" is used twice. Solution is to + va_copy it and use copied "ap" for printing to stderr. + + Improve formatting (no empty lines in log files) + * err_set_program_name: handle correctly NULL argument + * log_mkpath function: avoid use of alloca(3) + * hsh_pointer_compare function now follows -1/0/1 logic + * Add more tests for log_*, err_*, hsh_* and set_* function + +- Fix build with gcc 9.x + +- Drop Group tag + +- Spec cleanup + ------------------------------------------------------------------- Tue Apr 23 22:06:51 MSK 2019 - vle@gmx.net diff --git a/libmaa.spec b/libmaa.spec index 5e98f3e..3b23001 100644 --- a/libmaa.spec +++ b/libmaa.spec @@ -1,7 +1,7 @@ # # spec file for package libmaa # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,20 +17,17 @@ %define soname 4 - Name: libmaa -Version: 1.4.4 +Version: 1.4.7 Release: 0 Summary: Library providing many low-level data structures License: MIT -Group: Development/Libraries/C and C++ -Url: http://www.dict.org +URL: http://www.dict.org Source0: https://downloads.sourceforge.net/dict/%{name}-%{version}.tar.gz BuildRequires: mk-configure -BuildRequires: zlib-devel -BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: pkgconfig(zlib) -%description +%description The libmaa library provides many low-level data structures which can be used for writing compilers, hash tables, sets, lists, debugging support, and memory management. libmaa was originally @@ -63,7 +60,7 @@ BuildArch: noarch This RPM contains the documentation files for libmaa. %prep -%setup -q +%autosetup %define env \ unset MAKEFLAGS \ @@ -71,6 +68,9 @@ This RPM contains the documentation files for libmaa. export NOSUBDIR=doc %build +%if 0%{?suse_version} > 1500 || 0%{?sle_version} >= 150200 +mkc_compiler_settings +%endif %{env} %{mkcmake} @@ -79,7 +79,6 @@ This RPM contains the documentation files for libmaa. %{mkcmake} install DESTDIR=%{?buildroot} %post -n %{name}%{soname} -p /sbin/ldconfig - %postun -n %{name}%{soname} -p /sbin/ldconfig %files -n %{name}%{soname}