Blame SPECS/libqb.spec

184225
%bcond_with check
184225
%bcond_without testsrpm
184225
184225
Name:           libqb
184225
Version:        1.0.3
184225
Release:        12%{?dist}
184225
Summary:        An IPC library for high performance servers
184225
184225
Group:          System Environment/Libraries
184225
License:        LGPLv2+
184225
URL:            https://github.com/ClusterLabs/libqb
184225
Source0:        https://github.com/ClusterLabs/libqb/releases/download/v%{version}/%{name}-%{version}.tar.xz
184225
184225
Patch0: bz1615945-remove-linker-callsites.patch
184225
Patch1: bz1682119-install-tests.patch
184225
Patch2: bz1714854-improve-shm-security.patch
184225
Patch3: bz1718773-avoid-ipc-deadlock.patch
184225
Patch4: bz1836146-ipc_set_ownership.patch
184225
Patch5: bz1836146-covscan-fixes.patch
184225
184225
BuildRequires:  autoconf automake libtool doxygen procps check-devel
184225
# https://fedoraproject.org/wiki/Packaging:C_and_C%2B%2B#BuildRequires_and_Requires
184225
BuildRequires:  gcc
184225
# git-style patch application
184225
#BuildRequires: git  # for when patches around
184225
184225
%description
184225
libqb provides high-performance, reusable features for client-server
184225
architecture, such as logging, tracing, inter-process communication (IPC),
184225
and polling.
184225
184225
%prep
184225
%setup
184225
#autosetup -p1 -S git_am  # for when patches around
184225
%patch0 -p1 -b .bz1615945-remove-linker-callsites
184225
%patch1 -p1 -b .bz1682119-install-tests
184225
%patch2 -p1 -b .bz1714854-improve-shm-security.patch
184225
%patch3 -p1 -b .bz1718773-avoid-ipc-deadlock.patch
184225
%patch4 -p1 -b .bz1836146-ipc_set_ownership.patch
184225
%patch5 -p1 -b .bz1836146-covscan-fixes.patch
184225
184225
%build
184225
./autogen.sh
184225
%configure \
184225
%if %{with testsrpm}
184225
 --enable-install-tests \
184225
%endif
184225
 --disable-static
184225
make %{?_smp_mflags} V=1
184225
184225
%if 0%{?with_check}
184225
%check
184225
make VERBOSE=1 check \
184225
  && make -C tests/functional/log_internal VERBOSE=1 check
184225
%endif
184225
184225
%install
184225
make install DESTDIR=$RPM_BUILD_ROOT
184225
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
184225
rm -rf $RPM_BUILD_ROOT/%{_docdir}/*
184225
184225
%post -p /sbin/ldconfig
184225
184225
%postun -p /sbin/ldconfig
184225
184225
%files
184225
%license COPYING
184225
%{_sbindir}/qb-blackbox
184225
%{_libdir}/libqb.so.*
184225
%{_mandir}/man8/qb-blackbox.8*
184225
184225
%package        devel
184225
Summary:        Development files for %{name}
184225
Group:          Development/Libraries
184225
Requires:       %{name}%{?_isa} = %{version}-%{release}
184225
Requires:       pkgconfig
184225
184225
%description    devel
184225
The %{name}-devel package contains libraries and header files for
184225
developing applications that use %{name}.
184225
184225
%files          devel
184225
%doc README.markdown
184225
%license COPYING
184225
%{_includedir}/qb/
184225
%{_libdir}/libqb.so
184225
%{_libdir}/pkgconfig/libqb.pc
184225
%{_mandir}/man3/qb*3*
184225
184225
%if %{with testsrpm}
184225
%package        tests
184225
Summary:        Test suite for %{name}
184225
Group:          Development/Libraries
184225
Requires:       %{name}%{?_isa} = %{version}-%{release}
184225
184225
%files          tests
184225
%doc COPYING
184225
%{_libdir}/libqb/tests/*
184225
184225
%description    tests
184225
The %{name}-tests package contains the %{name} test suite.
184225
%endif
184225
184225
184225
%changelog
184225
* Wed May 20 2020  Christine Caulfield <ccaulfie@redhat.com> - 1.0.3-11
184225
  Correctly set socket directory permissions when
184225
  qb_ipcs_connection_auth_set() is called
184225
  Resolves: rhbz#1836146
184225
184225
* Mon Jun 10 2019  Christine Caulfield <ccaulfie@redhat.com> - 1.0.3-10
184225
  Avoid deadlock in IPC connections
184225
  Resolves: rhbz#1718773
184225
184225
* Thu Jun 6 2019  Christine Caulfield <ccaulfie@redhat.com> - 1.0.3-9
184225
  Improve security of SHM files used for IPCs
184225
  Resolves: rhbz#1714854
184225
184225
* Thu Mar 28 2019  Christine Caulfield <ccaulfie@redhat.com> - 1.0.3-8
184225
- Add RHEL-8.1 gating tests
184225
  Resolves: rhbz#1682119
184225
184225
* Mon Sep 17 2018  Christine Caulfield <ccaulfie@redhat.com> - 1.0.3-7
184225
- Remove linker magic in the logging code.
184225
  Resolves: rhbz#1615945
184225
184225
* Mon Jul 30 2018 Florian Weimer <fweimer@redhat.com> - 1.0.3-6
184225
- Rebuild with fixed binutils
184225
184225
* Tue Jun 05 2018 Christine Caulfield <ccaulfie@redhat.com> - 1.0.3-5
184225
- Rebuild with newer binutils (hopefully to fix pacemaker/corosync linkage issue)
184225
184225
* Wed Mar 07 2018 Adam Williamson <awilliam@redhat.com> - 1.0.3-4
184225
- Rebuild to fix GCC 8 mis-compilation
184225
  See https://da.gd/YJVwk ("GCC 8 ABI change on x86_64")
184225
184225
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.0.3-3
184225
- Escape macros in %%changelog
184225
184225
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-2
184225
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
184225
184225
* Thu Dec 21 2017 Jan Pokorný <jpokorny+rpm-libqb@redhat.com> - 1.0.3-1
184225
- Update to libqb-1.0.3, for list of changes see:
184225
  https://github.com/ClusterLabs/libqb/releases/tag/v1.0.3
184225
184225
* Tue Dec 12 2017 Jan Pokorný <jpokorny+rpm-libqb@redhat.com> - 1.0.2-15
184225
- Evolution of the previous (rhbz#1478089)
184225
184225
* Wed Nov 15 2017 Jan Pokorný <jpokorny+rpm-libqb@redhat.com> - 1.0.2-14
184225
- Evolution of the previous (rhbz#1478089)
184225
- Make -devel package dependency on the main package arch-qualified
184225
184225
* Tue Oct 31 2017 Jan Pokorný <jpokorny+rpm-libqb@redhat.com> - 1.0.2-13
184225
- Evolution of the previous (rhbz#1478089)
184225
184225
* Wed Oct 25 2017 Jan Pokorný <jpokorny+rpm-libqb@redhat.com> - 1.0.2-12
184225
- Evolution of the previous (rhbz#1478089)
184225
184225
* Wed Oct 18 2017 Jan Pokorný <jpokorny+rpm-libqb@redhat.com> - 1.0.2-11
184225
- Evolution of the previous (rhbz#1478089)
184225
184225
* Fri Oct 13 2017 Jan Pokorný <jpokorny+rpm-libqb@redhat.com> - 1.0.2-10
184225
- Evolution of the previous (rhbz#1478089)
184225
184225
* Mon Oct 09 2017 Jan Pokorný <jpokorny+rpm-libqb@redhat.com> - 1.0.2-9
184225
- Evolution of the previous (rhbz#1478089)
184225
184225
* Fri Oct 06 2017 Jan Pokorný <jpokorny+rpm-libqb@redhat.com> - 1.0.2-8
184225
- Evolution of the previous (rhbz#1478089)
184225
- New test included in check phase (as per upsteam)
184225
184225
* Mon Sep 04 2017 Jan Pokorný <jpokorny+rpm-libqb@redhat.com> - 1.0.2-7
184225
- Evolution of the previous (rhbz#1478089)
184225
184225
* Fri Sep 01 2017 Jan Pokorný <jpokorny+rpm-libqb@redhat.com> - 1.0.2-6
184225
- Better approach so as to mitigate changed treatment of orphaned sections
184225
  in ld.bfd/binutils-2.29, resulting in logging facility silently out of order
184225
  (rhbz#1478089)
184225
- Related to that, build commands now shown in full to ease the sanity checking
184225
- Adapt spec file per the upstream version (conditionalizing build through
184225
  --enable-syslog-tests no longer relevant since v1.0.2)
184225
184225
* Fri Aug 11 2017 Kalev Lember <klember@redhat.com> - 1.0.2-5
184225
- Bump and rebuild for an rpm signing issue
184225
184225
* Thu Aug 10 2017 Jan Pokorný <jpokorny+rpm-libqb@redhat.com> - 1.0.2-4
184225
- Mitigate changed treatment of orphaned sections in ld.bfd/binutils-2.29,
184225
  resulting in logging facility silently out of order (rhbz#1478089)
184225
184225
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-3
184225
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
184225
184225
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-2
184225
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
184225
184225
* Fri May 19 2017 Jan Pokorný <jpokorny+rpm-libqb@redhat.com> - 1.0.2-1
184225
- Update to libqb-1.0.2, for list of changes see:
184225
  https://github.com/ClusterLabs/libqb/releases/tag/v1.0.2
184225
184225
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-2
184225
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
184225
184225
* Fri Nov 25 2016 Jan Pokorný <jpokorny+rpm-libqb@redhat.com> - 1.0.1-1
184225
- Update to libqb-1.0.1, for list of changes see:
184225
  https://github.com/ClusterLabs/libqb/releases/tag/v1.0.1
184225
- Move qb-blackbox manual page from libqb-devel to libqb
184225
  (where the utility itself resides)
184225
184225
* Mon Apr 4 2016 Jan Pokorný <jpokorny+rpm-libqb@redhat.com> - 1.0-1
184225
- Update to libqb-1.0, for list of changes see, in order:
184225
  https://github.com/ClusterLabs/libqb/releases/tag/v1.0rc1
184225
  https://github.com/ClusterLabs/libqb/releases/tag/v1.0rc2
184225
  https://github.com/ClusterLabs/libqb/releases/tag/v1.0rc3
184225
  https://github.com/ClusterLabs/libqb/releases/tag/v1.0rc4
184225
  https://github.com/ClusterLabs/libqb/releases/tag/v1.0
184225
- Adapt spec file per the upstream version (drop defattr statements,
184225
  autogen.sh call with %%build, conditionalize build process)
184225
- Add gcc as an explicit BuildRequires (required per the new guidelines)
184225
- Do not depend on the rpmbuild-imposed man page archiving method
184225
184225
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.17.2-2
184225
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
184225
184225
* Thu Oct 15 2015 Jan Pokorný <jpokorny+rpm-libqb@redhat.com> - 0.17.2-1
184225
- Update to libqb-0.17.2 + fix check_ipc tests, for list of changes see:
184225
  https://github.com/ClusterLabs/libqb/releases/tag/v0.17.2
184225
184225
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17.1-2
184225
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
184225
184225
* Tue Aug 26 2014 David Vossel <dvossel@redhat.com> - 0.17.1-1
184225
Fix: ipcs: Correctly allocate receive buffer size
184225
Fix: ipc_socket: Signalhandler must be resetted to Default, use only cleanup_sigpipe to return from qb_ipc_dgram_sock_setup.
184225
Fix: trie: allow modifying the trie map during the notify callback
184225
Fix: fix invalid option when run 'ipcclient -h'
184225
Fix: epoll: don't miss poll events under high load
184225
Fix: ipc_shm: fix error handling in qb_ipcs_shm_connect()
184225
Fix: ringbuffer: fix size in qb_rb_create_from_file()
184225
Fix: ringbuffer: fix qb_rb_open_2() debug format string
184225
Fix: trie: fixes regression caused by ref count refactoring
184225
Fix: ipcc: Properly timeout during recv when timeout value is provided
184225
184225
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17.0-4
184225
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
184225
184225
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17.0-3
184225
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
184225
184225
184225
* Thu Feb 20 2014 David Vossel <dvossel@redhat.com> - 0.17.0-2
184225
Fix testsuite timing values
184225
184225
* Wed Feb 19 2014 David Vossel <dvossel@redhat.com> - 0.17.0-1
184225
Fix: build: Allow 'make rpm' to work with lightweight tags for release candidates
184225
Fix: spec: reference correct url in spec file
184225
Doc: update broken doxygen link to something that exists
184225
Bump version to 0.17.0
184225
Low: ipc_socket: further optimize max msg size calculations for fbsd portability tests
184225
Low: ipc_socket: Allow socket max msg size to be calculated more accurately
184225
Fix: fixes travis compile time error
184225
Low: tests: Fixes compile time issue with make check
184225
High: ipcs: Prevent ipc server use after free.
184225
Low: ipc: Remove ipc connection reference given to dispatch functions
184225
High: ipc: Fixes memory leak in server connection accept when client partially connects
184225
IPC: Increase the listen backlog of IPC server
184225
Low: ipcs: Clarifications to the ipcs server callback documentation.
184225
Fix rb.test to avoid overwriting memory during reading.
184225
Low: example: Update client/server example to use server enforced buffer size
184225
Low: Client side buffer retrieval regression test
184225
Feature: New api function to retrieve client buffer size
184225
Low: check_ipc.c: Verify server enforced buffer sizes work
184225
Feature: Enforce buffer size limits on the server side
184225
Low: regession tests for regex log filters
184225
Feature: Filter logs using regex patter on function, format, or filename
184225
ipc_setup: Set SO_PASSCRED on listener socket
184225
Fix: log: Filtering by function and file must match exactly, no substring matches
184225
Low: blackbox: Abort blackbox logging on ringbuffer overwrite reclaim error
184225
High: ipcs: Api function allowing server to retrieve client connection's ipc buffer size
184225
Low: ringbuffer: Abort during chunk reclaim if OVERWRITE flag is set and reclaim fails.
184225
High: blackbox: unique blackbox ringbuffer files per pid
184225
Low: ipc_socket: Fixes fd leak in socket ipc client disconnection
184225
Use sizeof to get the correct size of the sockaddr_un sun_path member in a portable way. Fixes corosync on Mac OS X.
184225
Detect the max signal value that can be used using NSIG macro
184225
Avoid double-decrement of level->todo
184225
184225
* Thu Aug 1 2013 David Vossel <dvossel@redhat.com> - 0.16.0-1
184225
Bump version to 0.16.0 ... do not use version 0.15.0
184225
Update release gpg sign key
184225
Bump the version to 0.15.0
184225
Merge pull request #83 from davidvossel/master
184225
Low: ipc_socket: Output send event failure as debug instead of error
184225
Low: ipcserver.c: Fix example server's glib mainloop implementation
184225
High: ipc_socket.c: Detect EOF connection on connection STREAM socket
184225
Merge pull request #81 from davidvossel/dgram_max_msg
184225
Low: tests: Add dgram max size detection test
184225
Low: ipc_socket.c: Handle the unlikely event of an EAGAIN or EINTR during dgram max size detection
184225
Merge pull request #82 from davidvossel/master
184225
Fixes detect disconnect on send for tcp example
184225
Fixes sem leak
184225
Fixes less-than-zero comparision of unsigned int
184225
fixes double close
184225
Fixes double close
184225
Fixes double fd close
184225
Fixes fd leak
184225
Prevent use after free in benchmark util
184225
Fixes use ater free in shm disconnect
184225
Fixes use after free during ipcs client disconnect
184225
Remove dead code
184225
Low: check_ipc.c: Verify dgram max size during tests
184225
High: ipcc: Add abilty to verify dgram kernel buffer size meets max msg value
184225
Fixes travis build error
184225
Merge pull request #80 from davidvossel/master
184225
Low: check_ipc.c: fix debug message to only display once.
184225
High: ringbuffer: Make max_size of ringbuffer accurate so shm ipc max msg size value is honored
184225
Low: ipcs: For shm ipc, always retry outstanding notifications when next event is sent
184225
Low: tests: Added test to verify sending ipc msg equal to max size succeeds
184225
Merge pull request #79 from davidvossel/master
184225
Merge pull request #78 from davidvossel/master
184225
Fix: ipcs: Fixes compile time issue reported by travis
184225
Merge pull request #77 from davidvossel/stress_tests_fixes
184225
Low: loop_pool_kqueue: remove potentially noisy dbug statement
184225
Low: tests: rework bulk event msg ipc test
184225
Account for fbsd ENOBUFS during stress test
184225
Low: tests: Adds ipc event stress test to testsuite
184225
Low: ipc_socket: In fbsd send() returns ENOBUFS when dgram queue is full, this should be treated similar to EAGAIN
184225
High: kqueue: Properly enable kqueue filter in poll loop
184225
Low: ipcs: Attempt to resend outstanding event notifications during event send
184225
Merge pull request #75 from davidvossel/ref_count_cleanup
184225
Low: qbipcs.h: update ipcs connection iterator documentation
184225
Merge pull request #74 from davidvossel/ref_count_cleanup
184225
Fix: ipcs: Disconnect shm ipc connection when poll socket returns error on msg receive
184225
Fix: ipcs: Properly disconnect client connection on POLLNVAL or any other error causing connection removal from mainloop.
184225
Simplify internal ipcs ref counting, add comments and document api behavior
184225
Simplifies connection ref counting without changing behavior
184225
Low remove ref-count error in example ipcserver.
184225
Merge pull request #73 from davidvossel/ref_count_cleanup
184225
Merge pull request #72 from davidvossel/master
184225
Low: tests: Verify reading valid blackbox file works
184225
Fix: refcount leak
184225
Fix: ringbuffer: Add file header version field and detect reading corrupted blackbox files using hash value
184225
Fix: tests: On some platforms -ECONNRESET is returned rather than -ENOTCONN after server failure
184225
Fix: tests: Make blackbox_segfault.sh not depend on bash
184225
Hopefully this is the last travis link fix
184225
Fix travis icon (travis is case sensitive)
184225
Fix the github links
184225
Merge pull request #70 from yuusuke/fix_logging
184225
fix a problem when the character string beyond the number of the maximum characters is passed
184225
Merge pull request #68 from r1mikey/upstream
184225
Add a IPC service context pointer and accessors from both the connection and service level.
184225
Enable distcheck on the travis tests
184225
Add atomic_int.h to noinst_HEADERS
184225
Use the new atomic ops in the ringbuffer
184225
Add internal support for the new __atomic gcc builtins
184225
Rename the configure macros from atomic to sync
184225
ringbuffer: use atomic ops on ringbuffer chunk magic
184225
Remove some test code mistakenly committed to the example program.
184225
IPC: make each connection ref the owning service
184225
Indicate when/why qb_rb_force_close() fails to remove share memory files
184225
Typo fixed in configure
184225
Fix "make srpm"
184225
Remove doxygen from travis deps to try and get the job working.
184225
Fix make distcheck
184225
Merge pull request #60 from t-matsuo/fix-makefile-of-tests
184225
add file_change_bytes into check_PROGRAMS and fix a typo
184225
Deal better with corrupt blackbox files.
184225
Merge pull request #58 from inouekazu/fix_connection_state_checking
184225
IPC: fix the connection state checking
184225
LOG: copy the function/filename for dynamic callsites
184225
Deal with /dev/shm issue on Travis builders
184225
Properly discover SO_NOSIGPIPE and MSG_SIGNAL
184225
IPC: fix call to QB_SUN_LEN
184225
list: don't splice empty lists onto the head.
184225
rpl_sem: make destroy more compliant
184225
test: fix unused-but-set-variable warning
184225
test: fix missing-format-attribute warning
184225
RB: make the "sem" abstraction into a notifier
184225
IPC: clean up the connection state checking
184225
Use dgram sockets for message oriented communications
184225
IPC: don't interpret EMSGSIZE and ENOMSG as a disconnect
184225
POLL: prevent a spin if the fd is not removed from the mainloop
184225
add TAGS and ~ files to .gitignore
184225
docs: install qb-blackbox.8 if doxygen is not available.
184225
IPC: seperate ipc_us.c into 2 files
184225
IPC: move utility functions to unix.c
184225
IPC: make sure we return a consistent error when the message is too big.
184225
184225
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14.4-2
184225
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
184225
184225
* Thu Jan 17 2013 Angus Salkeld <asalkeld@redhat.com> - 0.14.4-1
184225
LOG: prevent the last char of the blackbox message from getting lost.
184225
Example: make the blackbox example more practical.
184225
Add the processing which remove notifier at skiplist_destroy function
184225
Add the processing which remove hash node and notifier at hashtable_destroy function
184225
Unify to QB_TRUE/QB_FALSE a boolean value
184225
Document the default prefix in INSTALL
184225
Unify the list processing with qb_list function
184225
Add travis link to the readme.
184225
Fix return code which is an error occurred at pthread function
184225
TEST: add a progam to compare the speed of vsnprintf and qb_vsnprintf_serialize
184225
LOG: add a test for a padded hex int.
184225
Fedora's splint has a strange syntax error, don't fail on it.
184225
LOG: fix truncation in some messages that get padded.
184225
Fix the blackbox formatter when specifing the string len/precision
184225
Fix strlcpy and strlcat functions
184225
IPC: don't over log on disconnect
184225
Make sure we don't use the format string whilst it is getting changed.
184225
ptrie: deref the current node in trie_iter_free()
184225
LOG: fix the format comparison to avoid generating multiple entries.
184225
LOG: set the return code when calloc fails
184225
IPC: call poll if we are mid message and get EAGAIN
184225
Remove extra ";"
184225
IPC: set the error more correctly when qb_sys_mmap_file_open() fails.
184225
Make sure that mmap'ed files smaller than a page size are written to.
184225
example/test: check for error in qb_ipc_run()
184225
example: check for error in qb_ipc_run()
184225
TEST: fix typo s/,/; in check_ipc.c
184225
184225
* Mon Oct 29 2012 Angus Salkeld <asalkeld@redhat.com> - 0.14.3-2
184225
Fix test code highlighted by new check version
184225
Remove the call to autogen.sh - not needed anymore.
184225
184225
* Mon Oct 29 2012 Angus Salkeld <asalkeld@redhat.com> - 0.14.3-1
184225
IPC: Pass the timeout to poll() if the recv function returns EAGAIN
184225
LOG: make the format comparison safe and sane
184225
LOG: don't break on empty callsites, just ignore them
184225
LOG: use the array callback to register new callsites
184225
array: add a mechanism to get a callback when a bin is allocated
184225
Solaris based operating systems don't define MSG_NOSIGNAL and SO_NOSIGPIPE.
184225
Make sure atomic's are initialized (for non-gcc atomic).
184225
184225
* Wed Sep 12 2012 Angus Salkeld <asalkeld@redhat.com> - 0.14.2-2
184225
Fix a crash in ptrie if you iterate over the map in the deleted notifier.
184225
184225
* Mon Sep 10 2012 Angus Salkeld <asalkeld@redhat.com> - 0.14.2-1
184225
Get libqb building on cygwin.
184225
ipc_us: slightly more robust cmsg handling
184225
ipc_us: on Linux, set SO_PASSCRED on the sending socket too
184225
ipc_us: clear request unused fields
184225
TEST: Include writing and reading the blackbox in the log_long_msg test
184225
LOG: fix qb_vsnprintf_deserialize()
184225
blackbox: fix 64-bit big-endian issues
184225
Remove IPC_NEEDS_RESPONSE_ACK and turn off shm ipc on solaris
184225
Define unix path max for openbsd
184225
Only turn on ipc_needs_response_ack=yes for solaris
184225
Some improvements to kqueue usage.
184225
kqueue: drop log message to trace.
184225
Fix splint warning
184225
openbsd requires netinet/in.h before arpa/inet.h
184225
Avoid strcpy() use strlcpy() instead.
184225
Fix kqueue complile warnings
184225
openbsd doesn't have EBADMSG
184225
openbsd has a different UNIX_PATH_MAX
184225
LOG: change qb_vsprintf_serialize() into qb_vsnprintf_serialize()
184225
TEST: increase timeout to 6 secs as the recv timeout is 5 secs
184225
TEST: get the logic right - grrr.
184225
Turn off attribute_section on netbsd
184225
Some missing pshared semaphore checks
184225
Cleanup the checks for pshared semaphores
184225
Add a config check for pthread_mutexattr_setpshared
184225
Remove uses of timersub and use qb_util_stopwatch
184225
RB: change the #error to ENOTSUP if no usable shared process sem
184225
LOOP-KQUEUE: fix reference before assignment.
184225
build: fix libqb.pc creation and make maintainer-clean
184225
LOG: Make sure the semaphores are initialized.
184225
build: remove bashism in cc support check
184225
Catch disconnected sockets on Solaris
184225
Don't free rb->shared_hdr in qb_rb_create_from_file()
184225
Check error return of qb_ipcs_uc_recv_and_auth()
184225
Fix removal of automatically installed doc files when building rpms
184225
Add the mailing list to the travis email notifications.
184225
Work around debian not setting the arch path in splint.
184225
Remove color-tests and parallel-tests automake options.
184225
Add travis continuous integration config
184225
LOG: Invoke custom log filter function if tag changes
184225
tests/rbwriter: don't ignore write failure
184225
ipcs: avoid use-after-free for size-0 || disconnect-request
184225
184225
* Wed Jul 18 2012 Angus Salkeld <asalkeld@redhat.com> - 0.14.1-1
184225
RB: set the new read pointer after clearing the header (#839605).
184225
RB: improve the debug print outs
184225
RB: be more explicit about the word alignment
184225
RB: cleanup the macros for wrapping the index
184225
RB: use sem_getvalue as a tie breaker when read_pt == write_pt
184225
RB: if read or peek don't get the message then re-post to the semaphore
184225
RB: convert the rb_peek() status into a recv like status.
184225
RB: use internal reclaim function
184225
IPC: use calloc instead of malloc to fix valgrind warnings
184225
Upgrade the doxygen config.
184225
Fix a valgrind error.
184225
184225
* Sun Jun 24 2012 Angus Salkeld <asalkeld@redhat.com> - 0.14.0-1
184225
LOG: fix threaded logging.
184225
Add user control of the permissions that are set on the shared mem files
184225
LOG: Restrict string trucation during serialization to when a precision is specified
184225
LOG: Gracefully fail when the caller exceeds QB_LOG_MAX_LEN
184225
LOG: Observe field widths when serializing string arguments
184225
RB: use the same mechanism in reclaim as read/peek to detect end-of-ring
184225
Add needs_response_ack option to ./check
184225
RB: fix wrong sem_flg IPC_NOWAIT option
184225
TESTS: fix warning about unused functions
184225
Remove D_FORTIFY_SOURCE from check.
184225
Open shared mem file in /dev/shm only for linux
184225
Don't use msg_flags on solaris (recvmsg).
184225
Turn off attribute_section on solaris
184225
ipc example: add -e (events) option
184225
IPC: if the server returns EAGAIN or ETIMEOUT the check the connection
184225
LOG: make it possible to fsync() on each file log.
184225
IPC: make sure that the created callback happens before dispatches
184225
LOG: fix the printing of %%p in the blackbox
184225
IPC: On bsd's use the notifier for responses
184225
IPC: interpret ECONNRESET and EPIPE as ENOTCONN
184225
cleanup some warnings
184225
config: use newer AC_COMPILE_IFELSE()
184225
blackbox: fix %%p formatting
184225
LOG: put all fields in the blackbox (added priority and tags)
184225
example: make the priority uint8_t
184225
Remove strerror out of check_funcs
184225
RB: fix compiler warning.
184225
Add replacement function stpcpy
184225
Add missing AC_TYPE_UINT16_T to configure.ac
184225
Use AC_FUNC_STRERROR_R and STRERROR_R_CHAR_P
184225
Add stpcpy strcasecmp to the check_funcs
184225
Move some conditional defines into code (from the configure script)
184225
Remove some unused configure checks
184225
Remove message queues
184225
Check for union semun properly
184225
Blackbox: provide more space for log messages when reading from the blackbox.
184225
Add the blackbox reader manpage to the spec file
184225
Enable error logging for the blackbox reader
184225
RB: Read the file size into an initialized variable of the correct size
184225
Add a tool to dump the blackbox.
184225
RB: to be safer save the read and write pointers at the top of the blackbox
184225
avoid unwarranted use of strncpy: use memcpy instead
184225
blackbox: fix the print_from_file()
184225
RB: add an option to not use any semaphores
184225
LOG: tweak the blackbox format string
184225
LOG: accept NULL strings into the blackbox
184225
LOG: protect close and reload from calling log
184225
Add benchmark option (-b) to examples/ipcclient
184225
TEST: make rbreader/writer more like the other benchmarking apps
184225
IPC: log the connection description in all logs
184225
TEST: re-organise the ipc test suites
184225
IPC: only modify the dispatch if we get EAGAIN
184225
Correctly display timestamp in blackbox
184225
184225
* Thu May 10 2012 Angus Salkeld <asalkeld@redhat.com> - 0.13.0-1
184225
- Remove unneccessary __attribute__ ((aligned(8))) from internal headers
184225
- IPC: add a new function to get (and alloc) the extended stats.
184225
- Revert "Add the event queue length to the connection stats."
184225
- IPC: cleanup better on a failed client connect.
184225
- IPC(soc): be more consistent with control struct size
184225
- IPC: kill a compiler warning
184225
- IPC(soc): pass in the correct size into munmap()
184225
- TEST: Use /bin/sh not /bin/bash
184225
- TEST: check for lost shared mem on bsd too
184225
- rb: cleanup the semaphores
184225
- Fix some small issues in ./check
184225
- Cleanup the .gitignore files
184225
- configure.ac tweaks
184225
- Remove HZ and use sysconf instead.
184225
- SUN_LEN() macro is present if __EXTENSIONS__ is defined on Illumos
184225
- PF_UNIX is a POSIX standard name
184225
- Test for log facility names
184225
- IPC: drop log message to debug.
184225
- IPC: fix retrying of partial recv's and sends.
184225
- IPC: initialize enough shared mem for all 3 one way connections.
184225
- IPC: keep retrying to recv the socket message if partially recv'ed (part 2)
184225
- IPC: keep retrying to recv the socket message if partially recv'ed
184225
- IPC: handle the server shutdown better
184225
- IPC: handle a connection disconnect from the server better
184225
- IPC: make it possible to send events in the connected callback.
184225
- Add the event queue length to the connection stats.
184225
- IPC: add a is_connected client side function.
184225
- Fix typo in ./check
184225
- docs: clarify the need to use request/response headers
184225
- Remove unused local variable
184225
- IPC: change the socket recv function to read the response header.
184225
- Add some special commands into the ipc example
184225
- TEST: improve the tracing in the ipc tests.
184225
- Make "make (s)rpm" work more reliably
184225
- TEST: add a test to confirm we get the events we send.
184225
- TEST: reuse send_and_check for events.
184225
- IPC: make it possible for a root client to talk to a non-root server.
184225
- Run ./Lindent in the examples directory
184225
- Add some debug code to the ipcclient example
184225
- IPC: make sure ipc (socket) clients can connect to a server running as root.
184225
- IPC: allow qb to bump the max_message_size
184225
- IPC: check for a sane minimum max_message_size
184225
- add rpl_sem.h loop_poll_int.h to noinst_headers
184225
- Handle errors more consistently
184225
- call recv_ready on socket types
184225
- Handle a recv of size 0
184225
- make bsd shm path better by default.
184225
- Fix kqueue on freebsd.
184225
- Get the example socket includes right.
184225
- Fix kqueue compiling.
184225
- POLL: seperate out the poll/epoll and add kqueue
184225
- Test existence of getpeer* functions
184225
- Add inet header to tcpclient example
184225
- Don't link with setpshared if unavailable
184225
- NetBSD doesn't have semun defined
184225
- Use MADV_NOSYNC only on systems where available
184225
- Use SCHED_BATCH only on platforms where available
184225
- Fix a bug introduced by the bsd patch.
184225
- Cleanup the selection of semaphores to use
184225
- Fix some leaks in the logging.
184225
- Try and improve the portability on bsd variants.
184225
184225
* Sun Mar 11 2012  Angus Salkeld <asalkeld@redhat.com> - 0.11.1-1
184225
- configue libqb to not use epoll as it seems broken (#800865)
184225
- LOOP: remove some old timerfd code.
184225
- TEST: add a test to check the order of the jobs
184225
- LOOP: when new jobs are added they are added to the head instead of the tail.
184225
- LOG: Now the array is self locking we can make the lookup array dynamic
184225
- Add locking to the array when growing.
184225
- IPC: make the _request_q_len_get() function more obvious.
184225
- IPC: fix multiple receives from qb_ipc_us_recv()
184225
- IPC: make sure that the wrong union member is not written to.
184225
- TIMER: check for null timer handle
184225
184225
Wed Mar 7 2012  Angus Salkeld <asalkeld@redhat.com> - 0.11.0-1
184225
- ARRAY: cleanup the pointer sizeof()
184225
- LOG: turn off __attribute__(section) for powerpc (not working)
184225
- TESTS: move the util tests into "slow-tests" (i.e. optional)
184225
- TEST: make the test_priority the same type as in the callsite
184225
- LOG: make the log arrays manually grow-able since we need to lock the calls.
184225
- RB: fix test failure on ppc
184225
- RB: change the name of the size to word_size to be more clear
184225
- TEST: add some more signal tests.
184225
- LOOP: fix deletion of signal handlers when they are pending
184225
- LOOP: signal handlers were always added as high priority.
184225
- TEST: deal with mac's limited sed
184225
- check: add debugging to the configure options and remove unused options
184225
- TEST: properly clear the filters
184225
- LOG: expose the mechanism to get a dynamic callsite.
184225
- Revert part of my COARSE grained timer commit
184225
- Remove timerfd usage and go back to timelist.
184225
- UTIL: if possible use COARSE resolution clocks - they are much faster.
184225
- ARRAY: save memory (in the bins array) and allow holes in the array
184225
- LOOP: add qb_loop_timer_is_running()
184225
- LOOP: allow stop() and run() to be called with NULL loop instance.
184225
- LOOP: fix doxygen parameter comment
184225
- LOG: add stdout target
184225
- LOOP: add a function to delete jobs
184225
- LOG: remove debug printf's
184225
- LOG: remove an old/incorrect doxygen comment.
184225
- LOG: add a hostname %%H format specifier.
184225
- LOG: Add qb_log_filter_fn_set()
184225
184225
* Tue Feb 14 2012 Angus Salkeld <asalkeld@redhat.com> - 0.10.1-1
184225
- Fix "make distcheck" add include path to AM_CPPFLAGS
184225
- Bump the version to 0.10.1
184225
- clang: Remove unused code
184225
- TEST: make the ipc failure test closer to corosync's case.
184225
- RB: add a debug message if trying to read a message of the wrong size
184225
- IPC: split up the recv into chuncks of 2 seconds. (#788742)
184225
- Be more consistent with the internal logs.
184225
- LOOP: make it possible to pass in NULL as the default loop instance
184225
- RB: use the proper struct not the typedef in the implementation.
184225
- RB: Fix potential mem leak
184225
- Don't mix enums (QB_TRUE/TRUE)
184225
- use random() not rand()
184225
- Remove dead code
184225
- set umask before calling mkstemp()
184225
- Use safer versions of string functions (strcpy -> strlcpy)
184225
- Increase the coverity aggressiveness
184225
- TEST: make the loop ratelimit test more forgiving.
184225
184225
* Tue Feb 07 2012 Angus Salkeld <asalkeld@redhat.com> - 0.10.0-1
184225
- LOOP: handle errors from the poll function
184225
- LOOP: make the item type applicable to jobs too.
184225
- LOOP: fix the todo calculations.
184225
- TEST: check for a single job causing a cpu spin
184225
- LOOP: prevent jobs from consuming too much cpu.
184225
- Get coverity to ignore this warning.
184225
- Change example code to use fgets instead of gets
184225
- LOG: pass the result of qb_log_thread_start() back to the user
184225
- Fix some issues found by clang
184225
- Add clang-analyzer check
184225
- Add a split timer to the stopwatch.
184225
- IPC: merge common code into new function
184225
- IPC: better handle a disconnect been called from within connection_created()
184225
- IPC: fix scary typo
184225
- IPC: fix server error handling
184225
184225
* Mon Feb 06 2012 Angus Salkeld <asalkeld@redhat.com> - 0.9.0-2
184225
- Fix a spin in the mainloop when a timer or poll gets removed
184225
  When in the job queue (#787196).
184225
184225
* Fri Jan 27 2012  Angus Salkeld <asalkeld@redhat.com> - 0.9.0-1
184225
- Rebased to 0.9.0
184225
184225
* Tue Jan 10 2012  Angus Salkeld <asalkeld@redhat.com> - 0.8.1-2
184225
- fix qb_timespec_add_ms()
184225
184225
* Thu Jan 5 2012  Angus Salkeld <asalkeld@redhat.com> - 0.8.1-1
184225
- Rebased to 0.8.1 (#771914)
184225
184225
* Thu Nov 17 2011 Angus Salkeld <asalkeld@redhat.com> - 0.7.0-1
184225
- Rebased to 0.7.0 (#754610)
184225
184225
* Thu Sep 1 2011 Angus Salkeld <asalkeld@redhat.com> - 0.6.0-2
184225
- LOG: fix the default syslog filter
184225
184225
* Tue Aug 30 2011 Angus Salkeld <asalkeld@redhat.com> - 0.6.0-1
184225
- Rebased to 0.6.0 which includes (#734457):
184225
- Add a stop watch
184225
- LOG: serialize the va_list, don't snprintf
184225
- LOG: change active list into array access
184225
- atomic: fix qb_atomic_pointer macros
184225
- LOG: allow the thread priority to be set.
184225
- Fix splint warning on ubuntu 11.04
184225
184225
* Mon Jul 18 2011 Angus Salkeld <asalkeld@redhat.com> - 0.5.1-1
184225
- Rebased to 0.5.1 which includes:
184225
- LOOP: make the return more consistent in qb_loop_timer_expire_time_get()
184225
- LOG: add string.h to qblog.h
184225
- Add a qb_strerror_r wrapper.
184225
- don't let an invalid time stamp provoke a NULL dereference
184225
- LOG: move priority check up to prevent unnecessary format.
184225
- rename README to README.markdown
184225
184225
* Wed Jun 8 2011 Angus Salkeld <asalkeld@redhat.com> - 0.5.0-1
184225
- Rebased to 0.5.0 which includes:
184225
- new logging API
184225
- support for sparc
184225
- coverity fixes
184225
184225
* Tue Feb 8 2011 Angus Salkeld <asalkeld@redhat.com> - 0.4.1-2
184225
- SPEC: improve devel files section
184225
- SPEC: remove global variables
184225
184225
* Mon Jan 31 2011 Angus Salkeld <asalkeld@redhat.com> - 0.4.1-1
184225
- SPEC: add procps to BuildRequire
184225
- SPEC: remove automake and autoconf from BuildRequire
184225
- SPEC: remove call to ./autogen.sh
184225
- SPEC: update to new upstream version 0.4.1
184225
- LOOP: check read() return value
184225
- DOCS: add missing @param on new timeout argument
184225
- BUILD: only set -g and -O options if explicitly requested.
184225
- BUILD: Remove unneccessary check for library "dl"
184225
- BUILD: improve the release build system
184225
184225
* Fri Jan 14 2011 Angus Salkeld <asalkeld@redhat.com> - 0.4.0-2
184225
- remove "." from Summary
184225
- Add "check-devel to BuildRequires
184225
- Add "make check" to check section
184225
- Changed a buildroot to RPM_BUILD_ROOT
184225
- Document alphatag, numcomm and dirty variables.
184225
184225
* Sun Jan 09 2011 Angus Salkeld <asalkeld@redhat.com> - 0.4.0-1
184225
- Initial release