Commit Graph

34 Commits

Author SHA1 Message Date
Chrissie Caulfield
6d35611524
doxygen2man: Add option to read copyright line from the header file (#415)
* doxygen2man: Add option to read copyright line from the header file

This should help make builds reproducible.

I tried various methods of getting the date, using 'git' is no use as
it could be run from a tarball, using the file date doesn't work either
so this seems a reasonable compromise.

* man: Use SOURCE_EPOCH to make manpage dates reproducible

Also add build-aux/update-copyright.sh to keep header file
copyright lines up-to-date.

All code taken from knet
2020-09-09 15:06:55 +01:00
Chrissie Caulfield
b19f706144
Make manpages (#405)
* man: Use doxygen2man to make the API manpages

* [build] drop unused target

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>

* [build] update gitignore

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>

* [docs] make build -j safe and drop unnecessary dox config files

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>

* man: Use doxygen2man to generate *.h.3 man pages

so we don't need to use the awful doxygen ones

Co-authored-by: Fabio M. Di Nitto <fdinitto@redhat.com>
2020-06-26 13:03:48 +01:00
Fabio M. Di Nitto
93f9975617
Doxygen2man (#388)
* doxygen2man: Add utility to generate man pages from doxygen

This is in here from kronosnet so it cna be used by other parts
of the cluster stack.

* [man] drop trailing white spaces

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>

* [build] cleanup variable names

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>

* [build] add conditionals to use internal or external doxygen2man

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>

* Update .gitignore

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>

Co-authored-by: Christine Caulfield <ccaulfie@redhat.com>
2020-03-18 10:29:38 +01:00
Fabio M. Di Nitto
c1bca92c89
[build] chown the right file
Closes: #377
Also, for original issue, closes: #375

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Jan Pokorný <jpokorny@redhat.com>
2020-01-07 16:23:14 +01:00
Fabio M. Di Nitto
0f67f84813 [build] fix configure.ac in release tarball
only mingle with configure.ac if configure.ac-t exists

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
2020-01-06 15:15:45 +00:00
Fabio M. Di Nitto
d3d32bc281 [tests] export SOCKETDIR from tests/Makefile.am
allows make check to be executed correctly from tests/ dir.

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
2019-03-26 11:31:05 +00:00
Jan Pokorný
d6875f29d6
build: allow for being consumed in a (non-endorsed) form of snapshots
This is meant as a lean, customized policy driven alternative
to the original proposal by Jan Friesse <jfriesse@redhat.com> that
balances the inherent trade-off in the opposite direction, so that the
configure.ac script is practically untouched and more weight and policy
is hardcoded in git-version-gen.  Problem with that approach stems from
(avoidable) effective fork of the respective gnulib's module and imposed
maintenance burden.

Speaking for libqb in particular, we should nonetheless make it
absolutely clear such in-development snapshots are nothing more,
nothing binding (not to think of viral injection of these bits
into circle of dependent packages upon their rebuilds), since the
changes accumulated since the last official release should only be
assumed firmly committed at the point the new release is cut (may
happen 99% of time with snapshots but no accountability from our
side for the complementary inter-release twists...), which is exactly
when many possibly unanticipated variables like correct SONAME
versions get to reflect what's appropriate.
Also, OpenPGP signature constitutes something more eligible for
one's trust than (provably) bit/content unstable archives without
the possibility of an independent authenticity/integrity verification.

  Therefore, the only thinkable and upstream-endorsed use cases
  for such snapshots are development-only purposes (CI et al.)!

V2 of the patch:
Thanks to feedback from Jan Friesse, a glitch in "make rpm" et al.
not working with the snapshots was pointed out.

V3:
Only normalize configure.ac back when known to be previously affected
with "git archive" substitution logic, and do not use an exclamation
mark as short commit - decoration separator since that could be
ambiguous (it is a valid branch name character), stick with double
question marks instead (not allowed, doubled for good measure).

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
2018-09-13 10:54:16 +02:00
Chrissie Caulfield
3730644c35
test: Fix 'make distcheck' (#303)
Miscellaneous fixes and cleanups to get 'make distcheck' to work on most
platforms.

Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>
2018-03-27 13:11:20 +01:00
Jan Pokorný
e7e6961a66
build: follow-up on introducing custom m4 macros
Various "configure" commits by wferi recently introduced new
compat/custom m4 macro files in m4 directory, which itself was,
so far, assumed ephemeral (not strictly needed for reproducing
the build successfully, i.e., bits that can be completely purged
when cutting down the project files to the bone).  Apparently,
this assumption no longer holds so several places need to be
adapted.

Amonst others, m4 directory no longer needs to be reinsured in
autogen.sh, and special care must be taken with .gitignore
and maintainer-clean-local target of the main Makafile.

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
2017-05-19 15:32:55 +02: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ý
20c35217ab
build: fix preposterous usage of $(AM_V_GEN) 2016-03-11 08:04:47 +01:00
Jan Pokorný
2468e46a56
build: extra clean-local rule instead of overriding clean-generic
Previously, stuffing CLEANFILES with anything would not work in the
affected files.
2016-03-10 21:06:29 +01:00
Jan Pokorný
df5e8d6295
build: switch to XZ tarball format for {,s}rpm packaging
References:
http://rpm.org/gitweb?p=rpm.git;a=commit;h=8078d0b (~2009)
http://rpm.org/gitweb?p=rpm.git;a=commit;h=3d63df6 (ditto)
2016-03-08 21:38:37 +01:00
Jan Pokorný
134fa07b0d
build: do not try to second-guess "distdir" Automake variable
Also make {,s}rpm targets generate only the tarball format that is
consumed in the packaging process.
2016-03-08 21:38:03 +01:00
Christine Caulfield
2dd75dee24 build: Correctly generate spec file's date
LC_ALL=C was outside of the shell environment so the date
was incorrect in the spec file if the system default language was not
C or English.

Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>
2016-01-19 13:46:07 +00:00
Fabio M. Di Nitto
7c7cd04390 Low: build: update .gitignore and make maintainer-clean target
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
2014-07-23 11:43:42 -05:00
David Vossel
78978d07ac Fix: build: Allow 'make rpm' to work with lightweight tags for release candidates 2014-02-19 12:39:58 -05:00
Angus Salkeld
c41f2c93a0 Add a tool to dump the blackbox.
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-05-28 11:16:00 +10:00
Andrew Beekhof
edcf559044 Make "make (s)rpm" work more reliably
Make sure the version number is re-calculated on each run.

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-04-30 15:09:55 +10:00
Angus Salkeld
4f1fa501f5 clean .version .tarball-version
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2011-12-16 23:34:18 +11:00
Angus Salkeld
e1e83aa746 Move simple-log.c to examples/
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2011-10-23 22:40:26 +11:00
Angus Salkeld
5b8e00ba06 Remove TODO from dist_doc_DATA
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2011-07-14 10:40:43 +10:00
Angus Salkeld
93a0506d69 Fix references to README
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2011-06-23 14:46:36 +10:00
Angus Salkeld
5b5a6c65d4 Make building a bit quieter by default.
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2011-06-02 11:40:50 +10:00
Angus Salkeld
487f611cb9 BUILD: improve the rpm building
copy corosync's rpm build system.

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2011-01-09 17:22:24 +11:00
Angus Salkeld
9d8d6bfdce LINT: get the lint target working.
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2010-10-19 22:36:08 +11:00
Angus Salkeld
7cfb5e472f Roll all little libs into libqb.
This really makes things simpler (to produce and use).

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2010-05-27 11:34:58 +10:00
Angus Salkeld
5abc366c33 Make docs rules more maintainable
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2010-05-26 14:11:23 +10:00
Angus Salkeld
092da9a03f Add pkg-config files.
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2010-05-26 13:49:48 +10:00
Angus Salkeld
2e2e6761bf Fix make doxygen (for html output)
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2010-05-25 20:30:37 +10:00
Angus Salkeld
caecbe6542 Re-license to LGPL 2.1
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2010-05-25 06:11:59 +10:00
Angus Salkeld
40f235a889 libtool and code re-structure
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2010-04-15 23:25:29 +10:00
Angus Salkeld
c6134b367c add a unit test for hash & cleanup.
Fix make distcheck
    Add qbhash.h to the makefiles
    Fix make rpm.
    Make sure the makefiles are generatd for hash

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2010-04-15 12:19:08 +10:00
Angus Salkeld
69d77500df Initial Commit.
-autotools build system
-tsafe

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2010-03-11 14:19:39 +11:00