Commit Graph

45 Commits

Author SHA256 Message Date
Yan Gao
e6bf71d2bd Accepting request 669840 from home:jengelh:branches:network:ha-clustering:Factory
- Trim filler wording from descriptions. Remove unnecesary
  pkgconfig Requires (automatically discovered).
- Split non-library parts of libqb20 into libqb-tools.

OBS-URL: https://build.opensuse.org/request/show/669840
OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/libqb?expand=0&rev=87
2019-01-29 14:31:45 +00:00
Yan Gao
d7116240a7 Accepting request 669470 from home:yan_gao:branches:network:ha-clustering:Factory:Test
- Update to version 1.0.3+20190115.c880fcf:
- Add Pthreads (and possibly other) flags to the pkg-config file (#332)
- skiplist: Fix previous skiplist fix

- Update to version 1.0.3+20181112.926e851:
- log: Remove more dead code from linker callsites (#331) (bsc#1074327, bsc#1098449)
- Add the option of hi-res (millisecond) timestamps (#329)
- log: Add configure-time option to use systemd journal instead of syslog (#327)
- log: Add option to re-open a log file (#326)
- skiplist: fix use-after-free in the skiplist traversal

- Update to version 1.0.3+20180927.633f262:
- logging: Remove linker 'magic' and just use statics for logging callsites (#322) (bsc#1074327, bsc#1098449)
- log: Use RTLD_NOOPEN when checking symbols (#310)
- low customisable log line length (#292)
- ipc_shm: Don't truncate SHM files of an active server (#307)

OBS-URL: https://build.opensuse.org/request/show/669470
OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/libqb?expand=0&rev=86
2019-01-29 08:49:50 +00:00
Yan Gao
76bb28e562 Accepting request 561126 from home:yan_gao:branches:network:ha-clustering:Factory:Test
- Update to version 1.0.3+20171226.6d62b64:
- build: fix configure script neglecting, re-enable out-of-tree builds

- Update to version 1.0.3
- warnings cleanup: fix initialiser warning
- warnings cleanup: Wformat: sign-correct PRIu32 specifiers as appropriate
- warnings cleanup: Wsign-compare: log_format: int32_t -> size_t
- warnings cleanup: Wsign-compare: hdb: uint32_t <-> int32_t
- warnings cleanup: Wsign-compare: array: int32_t -> size_t
- warnings cleanup: hdb+loop_timerlist: Wsign-compare: (canary?) variables
- warnings cleanup: Wshift-overflow: trigger arithmetic conv. to unsigned
- Upstream version cs: 28dff090c74b6ba8609c4797294a5afe3fe73987 (v1.0.3)

- fix internal object symbol's leak & expose run-time lib version (bsc#1074327)
- bare fix for libqb logging not working with ld.bfd/binutils 2.29+ (bsc#1074327)
- add extra run-time (client, libqb) checks that logging will work (bsc#1074327)
- tests: add a script to generate callsite-heavy logging client... (bsc#1074327)
- tests: new sort of tests dubbed "functional", cover linker vs. logging (bsc#1074327)
- configure: check section boundary symbols present in the test (bsc#1074327)
- qblog.h: better explanation + behaviour of QB_LOG_INIT_DATA (bsc#1074327)
- log: use fdatasync instead of fsync where possible (#263)
- Upstream version cs: c011b12fcaf093f0463901154c475905f51d783a

OBS-URL: https://build.opensuse.org/request/show/561126
OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/libqb?expand=0&rev=84
2018-01-02 13:43:35 +00:00
Yan Gao
d9d3f8d3fb Accepting request 511812 from home:yan_gao:branches:network:ha-clustering:Factory:Test
- loop: don't bring runtime down for a trivial API misuse
- Upstream version cs: ef4c3a15ea3d3c5d5f9364269cd02d78a308957b

- Update to version 1.0.2
- Memleak fixes (#194)
- Allow Linux to use filesystem sockets (#248) (fate#323415)
- Upstream version cs: 608de6d59a3de0eef0fbcbd8f284acbc018daa9a (v1.0.2)

OBS-URL: https://build.opensuse.org/request/show/511812
OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/libqb?expand=0&rev=82
2017-07-21 10:31:18 +00:00
Yan Gao
c90efbe256 Accepting request 479644 from home:yan_gao:branches:network:ha-clustering:Factory:Test
Source0:        %{name}-%{commit}.tar.xz

OBS-URL: https://build.opensuse.org/request/show/479644
OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/libqb?expand=0&rev=81
2017-03-15 13:34:00 +00:00
Yan Gao
5a1cb21b49 Accepting request 479467 from home:yan_gao:branches:network:ha-clustering:Factory:Test
%{name}-%{version}.tar.bz2 -> %{name}.tar.bz2

OBS-URL: https://build.opensuse.org/request/show/479467
OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/libqb?expand=0&rev=80
2017-03-15 10:14:02 +00:00
Yan Gao
62d8fc9456 Accepting request 477311 from home:yan_gao:branches:network:ha-clustering:Factory:Test
- loop: Fix splint error
- Upstream version cs: 59eacf07dd92af6917ed351c0c5e51ec5237965c

OBS-URL: https://build.opensuse.org/request/show/477311
OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/libqb?expand=0&rev=78
2017-03-06 16:04:26 +00:00
Yan Gao
b333c1957f Accepting request 477133 from home:yan_gao:branches:network:ha-clustering:Factory:Test
- loop: Also set signals changed in qb_loop_signal_mod() back to SIG_DFL (bsc#1026176)
- loop: don't override external signal handlers (bsc#1026176)
- Upstream version cs: e336b716cce83b3af414a1dcc4c2ef22c591d73f

OBS-URL: https://build.opensuse.org/request/show/477133
OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/libqb?expand=0&rev=77
2017-03-06 10:27:04 +00:00
Yan Gao
cf00651369 Accepting request 459696 from home:jengelh:branches:network:ha-clustering:Factory
- RPM group fix; use find -delete over rm.

OBS-URL: https://build.opensuse.org/request/show/459696
OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/libqb?expand=0&rev=75
2017-02-28 14:43:26 +00:00
Yan Gao
3684a612fe Accepting request 459494 from home:yan_gao:branches:network:ha-clustering:Factory:Test
- [ringbuffer] Return error from peek if RB is corrupted. (bsc#1026176)
- build: drop allegedly no longer intrusive syslog-tests opt-in switch
- Upstream version cs: afdff97f1af8e1be916816ad8b6d5530fa7c6637

- version: Update version for 1.0.1 release
- rb: use new qb_rb_close_helper able to resort to file truncating (bsc#1026176)
- rb: make it more robust against trivial IPC API misuses (bsc#1026176)
- log_thread: logt_wthread_lock is vital for logging thread (bsc#1026176)
- log: Don't overwrite valid tags (bsc#1026176)
- ipc_shm: fix superfluous NULL check
- log: Add missing z,j, & t types to the logger (bsc#1026176)
- log: check for appropriate space when serializing a char (bsc#1026176)
- Upstream version cs: 0a329683a76bc6aeb36f20f2bf6b43ba0440c4dc (v1.0.1)

OBS-URL: https://build.opensuse.org/request/show/459494
OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/libqb?expand=0&rev=73
2017-02-21 12:49:06 +00:00
Yan Gao
b0d292f8cb Accepting request 390203 from home:yan_gao:branches:network:ha-clustering:Factory:Test
- further avoid magic in qblog.h by using named constants
- defs: add wrappers over preprocessor operators
- Upstream version cs: 6f2b3e85d0315288ee76869b99369e2b1f2f1b71

- Update to version 1.0.0
- build: update library soname to 0.18.0
- build: enable syslog tests when configuring in spec
- log: allow changing the identifier for syslog (+tests)
- ipc: return -errno when getsockopt/setsockopt fail
- ipc: set socket buffer size used by ipcs service
- ipc: set socket receive buffer
- includes: format __attribute__ func. annotations in qblog.h
- spec cleanup: get rid of redundant %clean section
- ipc: set gid on unix sockets
- lib: store server peer credentials in qb_ipcc_connection
- lib: create mmap files in socket directory
- includes: Fix format string
- ipc: Prevent fd and memory leaks in handle_new_connection() (bsc#947341)
  * Drop bug-947341_libqb-ipc-fd-memory-leaks.patch which has been merged upstream
- Upstream version cs: 6fc24f855bfc8dadb4c84bf823b225680670b1c3 (v1.0)

OBS-URL: https://build.opensuse.org/request/show/390203
OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/libqb?expand=0&rev=71
2016-04-15 14:10:29 +00:00
Yan Gao
581ca04095 Accepting request 337267 from home:yan_gao:branches:network:ha-clustering:Factory:Test
- ipc: Prevent fd and memory leaks in handle_new_connection() (bsc#947341)
 * bug-947341_libqb-ipc-fd-memory-leaks.patch

- log: don't call dlopen inside dl_iterate_phdr()
- ipc: Don't send the dispatch_del() function a closed fd
- Upstream version cs: 1a7ea3b8d8bf9d5ffbbfdc785ace2b81e9f2356d

OBS-URL: https://build.opensuse.org/request/show/337267
OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/libqb?expand=0&rev=69
2015-10-09 11:34:33 +00:00
Yan Gao
f09d48bc14 Accepting request 327756 from home:yan_gao:branches:network:ha-clustering:Factory:Test
- Update to version 0.17.2 (bsc#943486)
- ipcc: valgrind "invalid file descriptor" warning
- ipc: Increase the length of description field.
- Upstream version cs: 4d817cc7e0b620acda8cc45266dc085c5bf48c59

OBS-URL: https://build.opensuse.org/request/show/327756
OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/libqb?expand=0&rev=67
2015-08-28 14:18:12 +00:00
Yan Gao
6acf00e8aa Accepting request 311415 from home:yan_gao:branches:network:ha-clustering:Factory:Test
- log: Implement "extended" logging using a marker character
- Upstream version cs: 35faa45558b0ae44e3a244fbd3e8f9405d535526

- loop: fixes resource starvation in mainloop code (bsc#929835)

OBS-URL: https://build.opensuse.org/request/show/311415
OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/libqb?expand=0&rev=65
2015-06-10 09:24:10 +00:00
Yan Gao
4331914d33 - Upstream version cs: c3bcf25b72bf451c2ef79ec3946a1c48077a50a0
OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/libqb?expand=0&rev=63
2015-04-30 12:32:08 +00:00
Yan Gao
14a68be76a - loop: fixes resource starvation in mainloop code
- Upstream version cs: 3a9cc7898017fdc6f1ff580a6ac4cf8f4b28e5fd

OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/libqb?expand=0&rev=62
2015-04-21 14:41:11 +00:00
Yan Gao
13e848992f - ipc_setup: yield to scheduler during new connection auth processing
- kqueue: The udata member of the kevent struct is a void *
- Upstream version cs: 83552692aa5425e50049b130eb2e17ea7b31217d

OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/libqb?expand=0&rev=60
2015-03-09 16:13:04 +00:00
Yan Gao
a3c6d158a6 - Bump release version to 0.17.1
- check_ipc.c: improve error checking during ipc stress tests
- ipcs: Correctly allocate receive buffer size
- ipc_socket: Signalhandler must be resetted to Default, use only cleanup_sigpipe to return from qb_ipc_dgram_sock_setup.
- trie: allow modifying the trie map during the notify callback
- Upstream version cs: 3f7de657855bb9fb4e58777851735bf663fa7f3f

OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/libqb?expand=0&rev=57
2014-10-21 10:20:09 +00:00
Yan Gao
bf1676d891 Add baselibs.conf as a source in libqb.spec
OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/libqb?expand=0&rev=55
2014-08-08 05:02:56 +00:00
Yan Gao
006613ec71 - log: return filter type enum to preserve abi compatibilty with corosync
- Upstream version cs: e5b8950863b92b314675ba0cbba13f00b8b77c52

OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/libqb?expand=0&rev=54
2014-07-28 06:30:50 +00:00
Yan Gao
81ff663055 - epoll: don't miss poll events under high load
- ipc_shm: fix error handling in qb_ipcs_shm_connect()
- ringbuffer: fix size in qb_rb_create_from_file()
- trie: cleanup ref count logic in trie_notify_del
- ipcs: Cleanup unnecessary reference counting
- Upstream version cs: b103e1ae61f6fc288cfb228344f24508adaaba9a

OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/libqb?expand=0&rev=53
2014-07-01 09:11:14 +00:00
Yan Gao
036d2317bc - ipcc: Properly timeout during recv when timeout value is provided
- Upstream version cs: c6f4fcd778248c41e5b108159d00cf1798a296d4

OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/libqb?expand=0&rev=51
2014-03-21 06:39:03 +00:00
Yan Gao
fe4f0698c2 - Bump version to 0.17.0
- ipc_socket: further optimize max msg size calculations for fbsd portability tests
- ipc_socket: Allow socket max msg size to be calculated more accurately
- Upstream version cs: 78978d07ac2f19a801ebde61379ac55359cc17f3

OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/libqb?expand=0&rev=49
2014-02-20 11:45:10 +00:00
Yan Gao
c998d1a12a - ipcs: Prevent ipc server use after free.
- Upstream version cs: 29bbe615b5fe6da17db3d6774df557960ae78bbb

OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/libqb?expand=0&rev=47
2014-02-08 15:28:13 +00:00
Yan Gao
f441a35d27 - ipc: Remove ipc connection reference given to dispatch functions (bnc#857779)
- ipc: Fixes memory leak in server connection accept when client partially connects (bnc#857779)
- Upstream version cs: d9706f75619976e334a109d0dbfdeac3b1074fe4

OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/libqb?expand=0&rev=45
2014-01-17 13:41:13 +00:00
Yan Gao
af46782bef - IPC: Increase the listen backlog of IPC server (bnc#857779)
- Upstream version cs: b579f7af151f453a870bbaac037084df13b45ef9

OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/libqb?expand=0&rev=43
2014-01-09 15:50:46 +00:00
Yan Gao
59139f7879 - New api function to retrieve client buffer size
- Enforce buffer size limits on the server side
- Filter logs using regex patter on function, format, or filename
- Upstream version cs: b09473fd4a03b4434efd44408f7ae631a855f9cd

OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/libqb?expand=0&rev=41
2013-11-25 14:34:35 +00:00
Yan Gao
d88711667b - Add libqb-configure-package-version.patch
* Build: Generate PACKAGE_VERSION according to the basename of the top directory

OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/libqb?expand=0&rev=40
2013-11-16 13:20:10 +00:00
Yan Gao
29e2884d1c Accepting request 207059 from home:yan_gao:branches:network:ha-clustering:Factory
Enable source service

OBS-URL: https://build.opensuse.org/request/show/207059
OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/libqb?expand=0&rev=37
2013-11-15 15:39:14 +00:00
Yan Gao
41dc6384d1 uildRequires: xz
OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/libqb?expand=0&rev=33
2013-11-14 15:55:40 +00:00
Yan Gao
9608d0688f Accepting request 206900 from home:yan_gao:branches:network:ha-clustering:Factory
Use the tarball_version for rpm version: 0.16.0.21 -> 0.16.0.21.b4c3

OBS-URL: https://build.opensuse.org/request/show/206900
OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/libqb?expand=0&rev=32
2013-11-14 15:05:25 +00:00
Yan Gao
b37e036a23 Change the version from 0.16.0 to 0.16.0.21
OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/libqb?expand=0&rev=30
2013-11-12 03:56:11 +00:00
Yan Gao
570d5b039c - Bump version to 0.16.0
- ipc_socket.c: Detect EOF connection on connection STREAM socket
- ipc_socket.c: Handle the unlikely event of an EAGAIN or EINTR during dgram max size detection
- Fixes sem leak
- Fixes less-than-zero comparision of unsigned int
- Fixes double fd close
- Fixes fd leak
- Fixes use ater free in shm disconnect
- Fixes use after free during ipcs client disconnect
- ipcc: Add abilty to verify dgram kernel buffer size meets max msg value
- Upstream version cs: 75f7ed373758b3cb9087e89e4fae17379dd7b483 (v0.16.0)

OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/libqb?expand=0&rev=25
2013-07-26 01:59:17 +00:00
Yan Gao
4fce676b4f - ringbuffer: Make max_size of ringbuffer accurate so shm ipc max msg size value is honored
- ipcs: For shm ipc, always retry outstanding notifications when next event is sent
- ipc_socket: In fbsd send() returns ENOBUFS when dgram queue is full, this should be treated similar to EAGAIN
- kqueue: Properly enable kqueue filter in poll loop
- ipcs: Attempt to resend outstanding event notifications during event send
- ipcs: Disconnect shm ipc connection when poll socket returns error on msg receive
- ipcs: Properly disconnect client connection on POLLNVAL or any other error causing connection removal from mainloop.
- Upstream version cs: 39e9ef542dc89893c7c5af4fbd539338266e8031

OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/libqb?expand=0&rev=24
2013-07-22 08:19:09 +00:00
Yan Gao
a6daabc3ab Accepting request 181752 from home:coolo:branches:openSUSE:Factory
- disable _service services to be acceptable for factory. To
  update tar, run osc service dr

OBS-URL: https://build.opensuse.org/request/show/181752
OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/libqb?expand=0&rev=22
2013-07-02 14:41:55 +00:00
Yan Gao
fae77086c1 - Simplify internal ipcs ref counting, add comments and document api behavior
- Simplifies connection ref counting without changing behavior
- Fix: refcount leak
- Fix: ringbuffer: Add file header version field and detect reading corrupted blackbox files using hash value
- fix a problem when the character string beyond the number of the maximum characters is passed
- Add a IPC service context pointer and accessors from both the connection and service level.
- ringbuffer: use atomic ops on ringbuffer chunk magic
- IPC: make each connection ref the owning service
- Indicate when/why qb_rb_force_close() fails to remove share memory files
- Deal better with corrupt blackbox files.
- Upstream version cs: 7c6e109046ec772a97a7fe2cdf61f84fc2155b7e

OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/libqb?expand=0&rev=21
2013-07-02 10:51:11 +00:00
Yan Gao
5af9533c47 - Bump the version to 0.14.4
- LOG: prevent the last char of the blackbox message from getting lost.
- Add the processing which remove notifier at skiplist_destroy function
- Add the processing which remove hash node and notifier at hashtable_destroy function
- Upstream version cs: 848242a7860c5a7e19240c2ded053fa9908af9e0

OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/libqb?expand=0&rev=17
2013-01-18 05:16:53 +00:00
Yan Gao
0181d312de Bump version number to 0.14.3
Update description

OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/libqb?expand=0&rev=15
2012-11-20 04:54:44 +00:00
Tim Serong
c6257944a2 Rejig spec so the main package doesn't have the SONAME
OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/libqb?expand=0&rev=10
2012-06-08 13:22:31 +00:00
Tim Serong
1f0c3d61da Rename spec to match package name
OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/libqb?expand=0&rev=8
2012-06-08 13:07:29 +00:00
Tim Serong
89eedddb57 Conditional make check, use %{buildroot} not $RPM_BUILD_ROOT
OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/libqb?expand=0&rev=7
2012-06-08 12:30:33 +00:00
Tim Serong
eccb5a73c5 Include git metadata in tarball, use git to extract version
OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/libqb?expand=0&rev=6
2012-06-08 12:05:31 +00:00
Tim Serong
35c14797d6 Fix specfile format
OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/libqb?expand=0&rev=5
2012-06-08 10:59:30 +00:00
Tim Serong
25d70694a0 Fix BuildRoot and Summary
OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/libqb?expand=0&rev=2
2012-06-08 10:25:24 +00:00
Tim Serong
f835fe356b - Initial SUSE packaging of libqb from upstream changeset
e70e7908f01ee17e9e8454602a5cfabe19ccc439

OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/libqb?expand=0&rev=1
2012-06-08 09:16:14 +00:00