Commit Graph

1744 Commits

Author SHA1 Message Date
Ferenc Wágner
4c1f14209c Don't build and ship the static library 2016-06-19 20:18:13 +02:00
Ferenc Wágner
2f706883ca Move API documentation into /usr/share/doc/libqb-dev
Policy 12.3 prefers this slightly over /usr/share/doc/libqb-doc.
2016-06-19 20:18:13 +02:00
Ferenc Wágner
2b912a6b11 Don't build the software if only the documentation is needed 2016-06-19 20:18:13 +02:00
Ferenc Wágner
c4fb5d5490 Graphviz is needed for the HTML documentation only 2016-06-19 20:18:13 +02:00
Ferenc Wágner
2ee657ac9a With plain dh_autoreconf the autotools_dev addon is not needed
Libqb uses Automake, so it will get fresh config.{sub,guess} files
if we force autoreconf, which the upstream autogen.sh does not do,
but dh_autoreconf does by default.
2016-06-19 20:15:37 +02:00
Ferenc Wágner
b65ba93025 New symbol: qb_log_ctl2 introduced by 642f74d 2016-06-18 23:19:42 +02:00
Ferenc Wágner
31a0802531 New patch low-fixed-Spelling-error-of-failure-in-qbhdb.h.patch
low:fixed:Spelling error of failure in qbhdb.h
Thanks: "bin.liu"
2016-06-18 23:19:42 +02:00
Ferenc Wágner
81e8617c56 New patch docs-qbdefs.h-description-must-directly-follow-file.patch
docs: qbdefs.h: description must directly follow @file
2016-06-18 23:19:42 +02:00
Ferenc Wágner
5018dd5ca2 Use HTTPS for Vcs-Browser 2016-06-18 23:19:42 +02:00
Ferenc Wágner
fddab53302 Update symbols files for powerpcspe
Closes: #824923
2016-06-18 15:21:14 +02:00
Ferenc Wágner
7f823ce132 Migrate to automatic debug packages 2016-06-18 14:58:31 +02:00
Ferenc Wágner
8c1f8c61db Promote to Priority: optional
Libqb does not conflict with any other package, but is a dependency
of optional packages like corosync and pacemaker, so it must (and can)
be optional itself.
2016-06-18 14:47:29 +02:00
Ferenc Wágner
70f033c397 Delete upstreamed patches, refresh the rest 2016-06-18 14:46:21 +02:00
Ferenc Wágner
780dd4e968 Merge tag 'upstream/1.0'
Upstream version 1.0
2016-06-18 14:33:30 +02:00
Ferenc Wágner
c222171511 Imported Upstream version 1.0 2016-06-18 14:33:26 +02:00
Ferenc Wágner
fe35562ce2 Configure git-buildpackage via debian/gbp.conf 2016-06-18 14:33:11 +02:00
Ferenc Wágner
8560795fb4 debian/watch: latest releases are present on GitHub only 2016-06-18 13:41:45 +02:00
Jan Pokorný
17e5a36b18
Low: log: check for appropriate space when serializing a char
... where appropriate space is measured for, surprisingly, a char,
not for an int.  Note that's also the actual type used for both
de-/serializing, so there's no conflict.

Also bother to explain why, now surprisingly for real, an unsigned int
is scraped out from va_list (akin to to STDARG(3)).
2016-06-17 16:42:36 +02:00
Chrissie Caulfield
907e49b999 Merge pull request #213 from liu4480/master
low:fixed:Spelling error of failure in qbhdb.h
2016-06-06 09:49:38 +01:00
bin.liu
afcdcba16c low:fixed:Spelling error of failure in qbhdb.h
There are spelling error in include/qb/qbhdb.h, "failure" is
wroten as "faliure"
2016-06-06 09:49:29 +08:00
Arturo Borrero Gonzalez
c0a26fd36d d/: wrap-and-sort
Let's wrap-and-sort the debian/ dir.

Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
2016-05-23 11:23:38 +02:00
Arturo Borrero Gonzalez
95caa7358a d/control: bump standar version to 3.9.8
No changes required per checklist:
 https://www.debian.org/doc/packaging-manuals/upgrading-checklist.txt

Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
2016-05-23 11:22:42 +02:00
Arturo Borrero Gonzalez
40f4bebe28 d/control: get rid of XS-Testsuite
No longer needed.

Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
2016-05-23 11:21:49 +02:00
Arturo Borrero Gonzalez
7388fdeafa d/tests/control: add build-essential to ipc test
According to debci tests [0], gcc is missing when running the 'ipc' test.
Let's add it.

[0] https://ci.debian.net/data/packages/unstable/amd64/libq/libqb/20160520_030707.autopkgtest.log.gz

Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
2016-05-23 11:20:34 +02:00
Chrissie Caulfield
70340f72f6 Merge pull request #211 from jnpkrn/CI-travis-clang
CI: make travis use also clang compiler (for good measure)
2016-05-06 12:36:55 +01:00
Jan Pokorný
43efb5197c
CI: make travis use also clang compiler (for good measure)
Also, unify the indentation.
2016-05-05 16:20:13 +02:00
Jan Pokorný
c61ee802d9
tests: make clang-friendly (avoid using run-time VLAs)
This is to also get libqb from the Debian's shame list:
http://clang.debian.net/status.php?version=3.4.2&key=VARIABLE_LENGTH_ARRAY
2016-05-05 16:19:28 +02:00
Chrissie Caulfield
0f1523ff09 Merge pull request #210 from jnpkrn/tests-ensure-failure-output
tests: ensure verbose output on failure w/ more recent automake
2016-04-29 10:08:04 +01:00
Jan Pokorný
8ab2799599
tests: ensure verbose output on failure w/ more recent automake
...so as to obtain a first glance diagnostics in all cases with possibly
remote build system preventing other means of investigation.
2016-04-28 21:56:05 +02:00
Chrissie Caulfield
267c2492e6 Merge pull request #209 from jnpkrn/header-based-versioning-PATCH-to-MICRO
API: header-based versioning: s/PATCH/MICRO
2016-04-19 10:56:28 +01:00
Jan Pokorný
5accb7ae8c
API: header-based versioning: s/PATCH/MICRO
Under the influence of libxml2 and considering that actual "patch"
information in fact, if significant, ends up encoded in QB_VER_REST,
shift away from convention codified, e.g., by semver.org (not adored
by libqb, anyway) and rename designated PATCH component of the version
to MICRO accordingly.

Note that at this point, after a release without any header-based
versioning present and just a few commits after it was tentatively
introduced, it's a painless change.  Once this PATCH nomenclature
is leaked into a full release, there's no way to get rid of it
reasonably...
2016-04-18 19:08:28 +02:00
Chrissie Caulfield
6f2b3e85d0 Merge pull request #208 from jnpkrn/update-git-version-gen
build: use latest git-version-gen from gnulib (rev. 6118065)
2016-04-07 14:04:39 +01:00
Chrissie Caulfield
15176fc360 Merge pull request #207 from jnpkrn/alternative-header-based-versioning
API: introduce alternative, header-based versioning
2016-04-07 14:04:17 +01:00
Jan Pokorný
bd31052e7d
build: persuade git-version-gen vMAJOR.MINOR tags just miss .0
Recent "v1.0" discovered this discrepancy propagated all around
and also this is not very compatible with the logic of commit 26d3911.

Treat missing "patch" component of the version as an implicit zero
to make such oddity go away.

Adjust spec file generation accordingly.
2016-04-04 16:08:18 +02:00
Jan Pokorný
5e1aef1ba4
build: use latest git-version-gen from gnulib (rev. 6118065)
Preserve, however, the modification by David Vossel to keep the script
working as expected also with lightweight tags (e.g., v1.0rc3).
2016-04-04 15:32:01 +02:00
Jan Pokorný
137b3dea5b
API: introduce alternative, header-based versioning
Mainly as a light-weight alternative to full-blown autoconf/pkg-config
machineries, whereby one can:

* workaround functionality not present in libqb up to 1.0 (inclusive)
  - note that this versioning schema is being introduced *after*
    1.0.0 release so one cannot tell that version from any older,
    but will be able to safely identify any later one (1.0.1+)
    and act accordingly
  - example:
  #if !defined(QB_VER_MAJOR) || ((QB_VER_MAJOR == 1) && (QB_VER_MINOR < 1))
  #warning "Feature X not supported"
  int do_foo(int arg) { };
  #else
  int
  do_foo(int arg)
  {
      /* use feature X of libqb */
  }
  #endif

* make its program report libqb API version it was built with by
  emitting QB_VER_STR symbolic string (see tests/print_ver.c for example)

Also added is a print_ver test program to:

* emit how original unparsed version is parsed to particular components
  defined in qbconfig.h (QB_VER_{MAJOR,MINOR,PATCH} symbolic integer
  constants and QB_VER_REST symbolic string) when being compiled

* emit mentioned QB_VER_STR symbolic string joining the components
  back to a single string, plus the components themselves

Resolves: https://github.com/ClusterLabs/libqb/issues/186
2016-04-01 23:19:40 +02:00
Chrissie Caulfield
67af307953 Merge pull request #196 from jnpkrn/demystify-qblog.h
Low: explain mysterious lines in a public header (qblog.h)
2016-04-01 16:01:14 +01:00
Chrissie Caulfield
6677fe6971 Merge pull request #191 from jnpkrn/refactor-test-case-defs
tests: refactor test case defs using versatile add_tcase macro
2016-04-01 15:44:36 +01:00
Chrissie Caulfield
6fc24f855b Merge pull request #205 from jnpkrn/docs-fix-make-doxygen
docs: fix "make doxygen" target not generating anything
2016-03-18 08:24:37 +00:00
Jan Pokorný
3ed7c63aef
docs: fix "make doxygen" target not generating anything 2016-03-17 20:33:30 +01:00
Chrissie Caulfield
b2d159f7ba Merge pull request #201 from jnpkrn/splint-better-support
build: better support for splint checker
2016-03-17 14:29:03 +00:00
Jan Pokorný
c12f729452
build: make splint check tolerant of existing defects 2016-03-17 15:16:19 +01:00
Jan Pokorný
28341438f4
build: make the code splint-friendly where not already 2016-03-17 15:13:58 +01:00
Jan Pokorný
8e9a296154
build: add flags for splint: +showscan +showsummary 2016-03-17 15:13:44 +01:00
Chrissie Caulfield
3d5dda3166 Merge pull request #204 from jnpkrn/docs-CURRENT-link
docs: make README.markdown always point to "CURRENT" docs
2016-03-17 14:13:38 +00:00
Jan Pokorný
82db489ee0
build: reorder LINT_FLAGS in a more logical way 2016-03-17 15:13:20 +01:00
Jan Pokorný
1d2fdbe61a
docs: make README.markdown always point to "CURRENT" docs 2016-03-17 15:08:56 +01:00
Chrissie Caulfield
1dae09fa95 Merge pull request #203 from jnpkrn/docs-refactor-doxygen
Docs: refactor doxygen configuration files
2016-03-17 13:14:29 +00:00
Svante Signell
6bd3f0865a Add Hurd support
* configure.ac: Define QB_GNU.
  Add a check for a working clock_getres for the CLOCK_MONOTONIC
  option defining HAVE_CLOCK_GETRES_MONOTONIC.

  * lib/log_thread.c: Replace second argument of
  qb_log_thread_priority_set(): logt_sched_param.sched_priority by 0
  when not supported by the OS.

  * lib/util.c: Use the CLOCK_REALTIME option in clock_getres() if
  HAVE_CLOCK_GETRES_MONOTONIC os not defined.
2016-03-17 13:47:16 +01:00
Jan Pokorný
4c4ac25cc9
docs: *.dox.in: comment out the defaults/empty values
This should also silent most of the warning when using older doxygen
to compile the docs.
2016-03-17 13:30:23 +01:00