Blame SPECS/libqb.spec

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