Commit Graph

1744 Commits

Author SHA1 Message Date
Ferenc Wágner
bd3c7387ed Update changelog for 2.0.8-2 release 2024-05-18 16:26:26 +02:00
Ferenc Wágner
ac0649b8b6 strlcpy and strlcat were added to the GNU C Library version 2.38
Closes: #1071327
2024-05-18 16:20:15 +02:00
Ferenc Wágner
e1048660db Update Standards-Version to 4.7.0 (no changes required) 2024-05-18 16:01:47 +02:00
Ferenc Wágner
c2366091fd Drop libqb-tools Breaks+Replaces libqb-dev<<2, even oldstable has 2.0.3-1 2024-05-18 16:00:03 +02:00
Ferenc Wágner
caff268c4c pkgconf superseded pkg-config 2024-05-18 15:57:22 +02:00
Ferenc Wágner
ca9bf88549 Add procps build dependency for resources.test 2023-07-22 16:27:16 +02:00
Ferenc Wágner
f3b91fe8c8 Update changelog for 2.0.8-1 release 2023-07-21 21:29:02 +02:00
Ferenc Wágner
d20a3038b8 Let doxygen2man build on Hurd 2023-07-21 21:28:41 +02:00
Ferenc Wágner
6811dc025b Update upstream source from tag 'upstream/2.0.8'
Update to upstream version '2.0.8'
with Debian dir 3adb302a9f
2023-07-21 21:23:35 +02:00
Ferenc Wágner
b2e026cc71 New upstream version 2.0.8 2023-07-21 21:23:34 +02:00
Christine Caulfield
002171bbcf Update library version for 2.0.8 2023-07-21 12:30:39 +01:00
Chrissie Caulfield
1bbaa929b7
log: fix potential overflow with long log messages (#490)
qb_vsnprintf_serialize was called with 'max_size' as the
limiting number for the length of the formatted log
message. But the buffer also needs to contain the
log header (given by 'actual_size'), so we now pass
't->max_line_length' as the maximum length of the
formatted log message to limit space to the actual 
bytes left

Also added error checks to the blackbox calls at
the end of the test, as these now provide a proper
test that the BB is functioning. Before they were
masking failures.
2023-07-20 07:19:01 +01:00
Ferenc Wágner
fb8969b185 Update changelog for 2.0.7-1 release 2023-07-16 11:55:38 +02:00
Ferenc Wágner
833146ce38 Refresh our patches 2023-07-16 11:52:19 +02:00
Ferenc Wágner
3fd176dea5 Update upstream source from tag 'upstream/2.0.7'
Update to upstream version '2.0.7'
with Debian dir 7361177562
2023-06-23 22:27:00 +02:00
Ferenc Wágner
8502569c38 New upstream version 2.0.7 2023-06-23 22:26:58 +02:00
Chrissie Caulfield
92ddd7c929
test - fix test dependancies (#489)
Fix a ridiculous thinko in the test deps for -j
2023-06-10 05:21:55 +02:00
Christine Caulfield
06c8641de2 Update -version info for 2.0.7 2023-06-07 07:50:17 +01:00
Jan Friesse
066508666e
spec: Migrate to SPDX license (#487)
Both Fedora and openSUSE now recommends to use SPDX shortname format
for License.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
2023-06-07 07:18:46 +01:00
Chrissie Caulfield
5862acbaef
blackbox: fix potential overlow/memory corruption (#486)
if the message was too long, then msg_len was added to the
buffer size twice, thus causing potential data corruption
(seen VERY rarely in the CI test - or, at least, I think it was
this).

Also fix a double close() spotted by gcc13's -fanalyzer
2023-06-05 09:51:38 +01:00
Chrissie Caulfield
a3aedbc419
tests: allow -j to work (#485)
build: fix several issues with building tests

- MAINTAINERCLEANFILES should not rely on conditionals
  that could or could not clean files.

- EXTRA_DIST should not rely on conditonals that could
  or could not add files to the final tarball.
  sources should always ship.

- CLEANFILES should not rely on conditionals as
  ./configure can be done in between builds leaving
  stray files around.

- (cosmetic) move distclean-local: target with clean-local.

- drop old ipc_sock.test, start.test and resources.test
  shell files.

- fix make distcheck -j:
  - stop shipping or not shipping libstat_wrapper.so.
    libtool will only generate the .so when installing
    a shared library (--enable-install-tests).
  - make libstat_wrapper a module in a similar fashion
    of _failure_injection.
  - build ipc_sock.test in a similar fashion as ipc.test
    and link as module _libstat_wrapper.la.
    this solves multiple issues of having the binary
    in the final test builddir, no need to detect if
    libstat_wrapper.so is installed or not and workaround
    libtool different linking methods for inst vs noinst
    libraries.

- fix ipc.test linking with GLIB that should not be
  dependent on HAVE_FAILURE_INJECTION.

Run tests in parallel with dependancies
Make sure the two IPC tests use different socket names
Shortedn some names so they fit with the new ipc-names
remove ipc-test-name-sock
Fix resources.test now that ipc_sock is being run properly

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>
2023-05-26 20:21:43 +02:00
Chrissie Caulfield
335dbb6e34
test: Remove gnu/lib-names.h from libstat_wrapper.c (#482)
It doesn't appear to be needed!
2023-03-23 14:49:35 +00:00
wferi
4dcdfe9856
strlcpy: avoid compiler warning from strncpy (#473)
Otherwise GCC complains about ‘__builtin_strncpy’ specified bound
depends on the length of the source argument.

Signed-off-by: Ferenc Wágner <wferi@debian.org>
2023-03-23 12:56:19 +00:00
Fabrice Fontaine
1a32a6062c
Add --disable-tests option (#475)
Add --disable-tests to allow the user to disable tests. As a
side-effect, this will avoid the following build failure when check is
found:

libstat_wrapper.c:11:10: fatal error: gnu/lib-names.h: No such file or directory
   11 | #include <gnu/lib-names.h>
      |          ^~~~~~~~~~~~~~~~~

This build failure is raised since version 2.0.5 and
78df90b180

Fixes:
 - http://autobuild.buildroot.org/results/450cfc36d4fd6dc71c138bec45f05b5a2d92a08d

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2023-03-23 10:32:27 +00:00
wferi
10b0623533
m4/ax_pthread.m4: update to latest upstream version (serial 31) (#472)
To avoid the warning: $as_echo is obsolete message.
2023-03-23 10:20:30 +00:00
Chrissie Caulfield
e038f59c52
tests: Close race condition in check_loop (#480)
Start the "check_time_left" timer before the "stop_job" timer so
that we can be sure that it exists when "check_time_left" is run.
2023-01-06 13:30:51 +00:00
Chrissie Caulfield
fde729e137
timer: Move state check to before time check (#479)
A timer in QB_POLL_ENTRY_JOBLIST doesn't necessarily
have a t->timerlist_handle so that deref can segv. Also
the comment assumes the timers are threaded - which as we have
decided is definitely not true. So it's safe to move the check
earlier.

In the tests, I've adjusted the timeouts so that they definitely
happen at different times. On some architectures they can fire
concurrently and in the wrong order.
2023-01-05 14:45:22 +00:00
Ferenc Wágner
e7790f0d24 Update changelog for 2.0.6-2 release 2023-01-02 15:33:43 +01:00
Ferenc Wágner
c8ac54c6c1 Update Standards-Version to 4.6.2 (no changes required) 2023-01-02 15:33:28 +01:00
Ferenc Wágner
ccb689c97f Work around lazy loading of GitHub release pages 2023-01-02 15:32:21 +01:00
Chrissie Caulfield
5594d377ac
ipc: Retry receiving credentials if the the message is short (#476)
ipc: Retry receiving credentials if the the message is short

rhbz#2111711 refers
2022-11-25 07:38:20 +00:00
growdu
e8129a34cc
add simplified chinese readme (#474) 2022-10-31 14:44:53 +00:00
Chrissie Caulfield
eaa95ecf03
lib: Fix some small bugs spotted by newest covscan (#471)
* lib: Fix some small bugs spotted by newest covscan
2022-08-17 13:17:33 +01:00
Jan Friesse
14507d538d
configure: Modernize configure.ac a bit (#470)
... to make 2.71 happy. Also increase minimum version to 2.69 (10 years
old version so should be compatible enough).

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
2022-07-27 08:00:19 +01:00
Chrissie Caulfield
8325d84047
tests: Fix tests on FreeBSD-devel (#469)
FreeBSD-devel can allocate more space than requested which causes
the check to fail. So check for >= allocated rather than ==
2022-07-07 08:30:38 +01:00
Chrissie Caulfield
e407874c9c
doxygen2man: Fix function parameter alignment (#468)
Also, prevent truncation of parameter descriptions in the
body of the man page due to strtok() usage.
2022-06-16 12:38:22 +01:00
Chrissie Caulfield
0eb0991ad6
tests: cleanup the last of the empty directories (#467)
This should, FINALLY, allow the libqb tests to run
and properly cleanup up after themselves.
2022-06-16 07:17:59 +01:00
Chrissie Caulfield
44a4cb2989
tests: Make ipc test more portable (#466)
fix a couple of errors reported by covscan

1. /usr/lib64/libqb/tests/resources.test:8:34: warning[SC2039]: In POSIX sh, UID is undefined.
1. /usr/lib64/libqb/tests/resources.test:8:30: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
1. /usr/lib64/libqb/tests/ipc_sock.test:10:34: warning[SC2039]: In POSIX sh, UID is undefined.
1. /usr/lib64/libqb/tests/ipc_sock.test:10:30: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
2022-06-08 09:51:49 +01:00
Ferenc Wágner
ad7a40883b Update changelog for 2.0.6-1 release 2022-05-26 19:05:24 +02:00
Ferenc Wágner
a36f83e149 Switch to Debhelper compatibility level 13 2022-05-26 19:04:59 +02:00
Ferenc Wágner
9fba41504b Update Standards-Version to 4.6.1 (no changes required) 2022-05-26 19:04:59 +02:00
Ferenc Wágner
e8281a09f0 Acknowledge new symbols (introduced in 2.0.5) 2022-05-26 19:04:59 +02:00
Ferenc Wágner
999c286fc8 Refresh our patches 2022-05-26 18:40:23 +02:00
Ferenc Wágner
a89d06e6a5 Update upstream source from tag 'upstream/2.0.6'
Update to upstream version '2.0.6'
with Debian dir 8d284d2157
2022-05-25 22:29:40 +02:00
Ferenc Wágner
10d461833f New upstream version 2.0.6 2022-05-25 22:29:35 +02:00
Ferenc Wágner
c547ac9f2d Enable systemd journal support on Linux only
Closes: #1001473
2022-05-25 22:27:51 +02:00
Chrissie Caulfield
758044bed5
test: Include ipc_sock.test in the libqb-tests rpm (#463)
...but don't run it unless we are root
2022-03-23 09:54:07 +00:00
Christine Caulfield
ccdaadabe6 Bump version for 2.0.5 release 2022-03-21 09:14:52 +00:00
Chrissie Caulfield
78df90b180
tests: Run IPC with use-filesystem-sockets active (#455)
* tests: Run IPC with use-filesystem-sockets active

Provide an LD_PRELOAD library that simulates the presence
of /etc/libqb/use-filesystem-sockets so that we can test
that functionality without actually having the file on
the system and affecting everything else running on the
box.

* use $() rather than ``

* Cope with spaces in directory names

* Docs: quote DOXYGEN2MAN in Makefile.am rather than configure.ac
2022-03-21 09:10:35 +00:00
Chrissie Caulfield
06e318fdc0
blackbox: Sanitize items read from the blackbox header (#438)
covscan complained we don't check the blackbox header when
reading it in. (quite reasonably)

Note that we still get a covscan error for ->shared_data, but that's
really impossible to verify in the read routine, so I'll leave the
covscan waiver to handle that.
2022-03-18 10:04:58 +00:00