Fix bug 1702 - hard classes were not saves in allclasses.txt after hardclass separation
(cherry picked from commit 1987ca2a01c668c45dd220763976381e3b52ff35)
Use portable PRIuMAX/PRIdMAX/PRIoMAX to print [u]intmax_t (Redmine #1677)

Not all standard C libraries support %jd/%ju/%jo (though C99 ones should). Hence
check for macros and use them for the functions which are not C99
compliant. snprintf and derivatives are C99-compliant in CFEngine (in case
standard library does not provide for C99-compliant implementation,
pub/snprintf.c is used instead). Note that blindly using PRIdMAX in all the
cases is not possible, as e.g. on Windows it expands into I64d, which is not
accepted by pub/snprintf.c implementation.
Update ChangeLog
Pre-release version bump
Post-release version bump
Merged changes from latest version of CFEngine::stdlib sketch: added "paths" bundle, removed useless commented-out code.
(cherry picked from commit 7cf0cf25c4f95c8c1cff7e83e38eaea4aa735e5e)
Fixed brace placement that caused texinfo problems

A couple of bundles had the opening brace at the end of the
bundle declaration line, instead of on the next line, which
was breaking the automatically generated texinfo file.
(cherry picked from commit e8687d8ced5a8435c579fc7647c021905fe73d86)
Added CfengineStdLibrary document generation

The CfengineStdLibrary document is now generated together with
the other guides.
(cherry picked from commit 3291d4ddc64fd9146da7afdca4f1752972010a18)
Added temp files for CfengineStdLibrary documents
(cherry picked from commit b944a6ba314923374588d84151745609931a0d5f)
Fixed bug in processing first bundle/body

The bug was preventing the first body/bundle in the input file
from being correctly written to its corresponding .tmp file, and
thus from being inserted into the output file.
(cherry picked from commit b905e1560f8c66c08e948ee40b743abb0b74941a)
Added CfengineStdLibrary.texinfo

This is a generated file, committed to prevent the corresponding
PDF and HTML files from always being regenerated, even if
cfengine_stdlib.cf had not changed.
(cherry picked from commit 9559394ce02ed9245be616fa6cab1db45460fdfd)
Rename hardcoded handle names for hardcoded failsafe.cf file generation and internal promise creation.
(cherry picked from commit 1749570d605b08ee54b037025d64014a7cb821f3)
Added package_verify_command to rpm_version body
(cherry picked from commit 0007237635269d77c926a5ab4a39d3ec05fcc571)
Fix spelling and include link to new bug tracker
(cherry picked from commit 21e90eba4e62a30b3d08a53c2ad916a37f95707a)
Fix cf-agent hanging in CfReadLine (issue #1384)

Using getline in place of fgets, as it is safer and because fgets cannot detect or handle corrupted
file data, such as NULL within a line. Implement checking for a NULL or corrupted file pointer. Also
adding unit tests that verify specific cases, such as an empty file or NULL file pointer are handled.
These tests can be customized to verify how CfReadLine will handle various forms of corrupted lines
within a file.

Squashed commit of the following:

commit da04acb1b376ac6893c2c7084cbc52c2fecff70d
Author: Shauna Thomas <shauna.thomas@cfengine.com>
Date:   Mon Nov 5 16:53:36 2012 +0100

    Removing test for return value of CfReadLine, passing in NULL file pointer.

commit 44a771377a7310004511f1f4acbe1267c0691da6
Author: Shauna Thomas <shauna.thomas@cfengine.com>
Date:   Mon Nov 5 16:41:01 2012 +0100

    Exit with FatalError when a NULL file pointer is passed into CfReadLine.

commit afa214a14d6d588da31963e2ca8600fc88777190
Author: Shauna Thomas <shauna.thomas@cfengine.com>
Date:   Mon Nov 5 15:33:23 2012 +0100

    revert change from fgets to getline, in response to recent comments: "getline is not portable enough"

commit 69f9fac30d357d5fde1b0dc7e09224c20259f697
Author: Shauna Thomas <shauna.thomas@cfengine.com>
Date:   Tue Oct 16 09:06:08 2012 +0200

    Issue 1384 - cf-agent hangs in call to fgets in function: CfReadLine.

    Using getline in place of fgets, as it is safer and because fgets cannot detect or handle corrupted
    file data, such as NULL within a line. Implement checking for a NULL or corrupted file pointer. Also
    adding unit tests that verify specific cases, such as an empty file or NULL file pointer are handled.
    These tests can be customized to verify how CfReadLine will handle various forms of corrupted lines
    within a file.
(cherry picked from commit 899b40ec209e656e24efa58f04112daa5775bc80)
Removing a unit test that causes CFEngine to exit.
(cherry picked from commit 5ec740c7affd03dbfdd9094b31303c7ea6ce04c4)
Merge remote-tracking branch 'GitHub_orig/3.4.x' into cfengine3
Revert "failsafe.cf: use encryption at the bootstrap phase"

This reverts commit c665549dd2bba5ac93695414596d84c4bb0cbf6c.

It was not a good idea, after all. During bootstrap phase it is too
early for the RSA keys to be usable.
mageia: fix typo in cf-servd init script
Acceptance tests for cf_null