Skip to content

Commit e1292c5

Browse files
committed
Pull main branch into 3.0 ahead of 3.0.1-rc1 release
2 parents 950a45a + 2b21794 commit e1292c5

363 files changed

Lines changed: 14716 additions & 9931 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.clang-format

Lines changed: 184 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,184 @@
1+
# These options seem to change all the time. I've removed things that are C++,
2+
# Objective-C, or JSON specific. For reference:
3+
# https://clang.llvm.org/docs/ClangFormatStyleOptions.html
4+
5+
---
6+
Language: Cpp
7+
BasedOnStyle: GNU
8+
AccessModifierOffset: -2
9+
AlignAfterOpenBracket: Align
10+
AlignArrayOfStructures: None
11+
AlignConsecutiveAssignments:
12+
Enabled: false
13+
AcrossEmptyLines: false
14+
AcrossComments: false
15+
AlignCompound: false
16+
AlignFunctionPointers: false
17+
PadOperators: false
18+
AlignConsecutiveBitFields:
19+
Enabled: false
20+
AcrossEmptyLines: false
21+
AcrossComments: false
22+
AlignCompound: false
23+
AlignFunctionPointers: false
24+
PadOperators: false
25+
AlignConsecutiveDeclarations:
26+
Enabled: false
27+
AcrossEmptyLines: false
28+
AcrossComments: false
29+
AlignCompound: false
30+
AlignFunctionPointers: false
31+
PadOperators: false
32+
AlignConsecutiveMacros:
33+
Enabled: false
34+
AcrossEmptyLines: false
35+
AcrossComments: false
36+
AlignCompound: false
37+
AlignFunctionPointers: false
38+
PadOperators: false
39+
AlignConsecutiveShortCaseStatements:
40+
Enabled: false
41+
AcrossEmptyLines: false
42+
AcrossComments: false
43+
AlignCaseColons: false
44+
AlignEscapedNewlines: Left
45+
AlignOperands: Align
46+
AlignTrailingComments:
47+
Kind: Always
48+
OverEmptyLines: 0
49+
AllowAllArgumentsOnNextLine: false
50+
AllowAllParametersOfDeclarationOnNextLine: false
51+
AllowShortBlocksOnASingleLine: Never
52+
AllowShortCaseLabelsOnASingleLine: false
53+
AllowShortCompoundRequirementOnASingleLine: true
54+
AllowShortEnumsOnASingleLine: false
55+
AllowShortFunctionsOnASingleLine: None
56+
AllowShortIfStatementsOnASingleLine: Never
57+
AllowShortLoopsOnASingleLine: false
58+
AlwaysBreakAfterDefinitionReturnType: All
59+
AlwaysBreakAfterReturnType: AllDefinitions
60+
AlwaysBreakBeforeMultilineStrings: false
61+
AlwaysBreakTemplateDeclarations: MultiLine
62+
AttributeMacros:
63+
BinPackArguments: true
64+
BinPackParameters: true
65+
BitFieldColonSpacing: Both
66+
BraceWrapping:
67+
AfterCaseLabel: false
68+
AfterControlStatement: Never
69+
AfterEnum: false
70+
AfterExternBlock: true
71+
AfterFunction: true
72+
AfterStruct: false
73+
AfterUnion: false
74+
BeforeElse: false
75+
BeforeWhile: false
76+
IndentBraces: false
77+
SplitEmptyFunction: true
78+
SplitEmptyRecord: true
79+
SplitEmptyNamespace: true
80+
BreakAdjacentStringLiterals: false
81+
BreakAfterAttributes: Leave
82+
BreakBeforeBinaryOperators: NonAssignment
83+
BreakBeforeBraces: Custom
84+
BreakBeforeInlineASMColon: OnlyMultiline
85+
BreakBeforeTernaryOperators: true
86+
BreakStringLiterals: false
87+
ColumnLimit: 80
88+
CommentPragmas: '^\\.+'
89+
ContinuationIndentWidth: 4
90+
DerivePointerAlignment: false
91+
DisableFormat: false
92+
ExperimentalAutoDetectBinPacking: false
93+
ForEachMacros:
94+
IfMacros:
95+
IncludeBlocks: Preserve
96+
IncludeCategories:
97+
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
98+
Priority: 2
99+
SortPriority: 0
100+
CaseSensitive: false
101+
- Regex: '.*'
102+
Priority: 1
103+
SortPriority: 0
104+
CaseSensitive: false
105+
IncludeIsMainRegex: '(Test)?$'
106+
IncludeIsMainSourceRegex: ''
107+
IndentCaseBlocks: true
108+
IndentCaseLabels: true
109+
IndentGotoLabels: false
110+
IndentPPDirectives: AfterHash
111+
IndentWidth: 4
112+
IndentWrappedFunctionNames: false
113+
InsertBraces: true
114+
InsertNewlineAtEOF: false
115+
InsertTrailingCommas: None
116+
IntegerLiteralSeparator:
117+
Binary: 0
118+
BinaryMinDigits: 0
119+
Decimal: 0
120+
DecimalMinDigits: 0
121+
Hex: 0
122+
HexMinDigits: 0
123+
KeepEmptyLinesAtTheStartOfBlocks: true
124+
KeepEmptyLinesAtEOF: false
125+
LineEnding: DeriveLF
126+
MacroBlockBegin: ''
127+
MacroBlockEnd: ''
128+
MaxEmptyLinesToKeep: 1
129+
PenaltyBreakAssignment: 2
130+
PenaltyBreakBeforeFirstCallParameter: 19
131+
PenaltyBreakComment: 300
132+
PenaltyBreakFirstLessLess: 120
133+
PenaltyBreakOpenParenthesis: 0
134+
PenaltyBreakScopeResolution: 500
135+
PenaltyBreakString: 1000
136+
PenaltyBreakTemplateDeclaration: 10
137+
PenaltyExcessCharacter: 1000000
138+
PenaltyIndentedWhitespace: 0
139+
PenaltyReturnTypeOnItsOwnLine: 60
140+
PointerAlignment: Right
141+
PPIndentWidth: -1
142+
QualifierAlignment: Leave
143+
ReferenceAlignment: Pointer
144+
ReflowComments: true
145+
RemoveBracesLLVM: false
146+
RemoveParentheses: MultipleParentheses
147+
RemoveSemicolon: true
148+
SeparateDefinitionBlocks: Always
149+
SkipMacroDefinitionBody: false
150+
SortIncludes: CaseSensitive
151+
SpaceAfterCStyleCast: true
152+
SpaceAfterLogicalNot: false
153+
SpaceAroundPointerQualifiers: Default
154+
SpaceBeforeAssignmentOperators: true
155+
SpaceBeforeCaseColon: false
156+
SpaceBeforeParens: Custom
157+
SpaceBeforeParensOptions:
158+
AfterControlStatements: true
159+
AfterForeachMacros: false
160+
AfterFunctionDefinitionName: false
161+
AfterFunctionDeclarationName: false
162+
AfterIfMacros: false
163+
BeforeNonEmptyParentheses: false
164+
SpaceBeforeSquareBrackets: false
165+
SpaceInEmptyBlock: false
166+
SpacesBeforeTrailingComments: 1
167+
SpacesInContainerLiterals: false
168+
SpacesInLineCommentPrefix:
169+
Minimum: 1
170+
Maximum: -1
171+
SpacesInParens: Custom
172+
SpacesInParensOptions:
173+
InCStyleCasts: false
174+
InConditionalStatements: false
175+
InEmptyParentheses: false
176+
Other: false
177+
SpacesInSquareBrackets: false
178+
Standard: c++03
179+
StatementAttributeLikeMacros:
180+
StatementMacros:
181+
TabWidth: 4
182+
UseTab: Never
183+
WhitespaceSensitiveMacros:
184+
...

.copr/Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,11 @@
1313
# These should be provided by COPR, so these are just fallbacks
1414
MAKE ?= make
1515
outdir ?= .
16-
spec ?= ..
1716

1817
LAST_RELEASE =
1918

2019
srpm:
21-
dnf -y install git
22-
cd "$(spec)"/rpm \
20+
cd rpm \
2321
&& echo "$$(git rev-list --count $$(git describe --tags --abbrev=0)..HEAD)" \
2422
> build.counter \
2523
&& $(MAKE) -f Makefile.am srpm \

.gitignore

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,12 +212,10 @@ GTAGS
212212
TAGS
213213
/daemons/fenced/pacemaker-fenced.xml
214214
/daemons/schedulerd/pacemaker-schedulerd.xml
215-
/doc/.ABI-build
216215
/doc/HTML
217-
/doc/abi_dumps
216+
/doc/abi/
218217
/doc/abi-check
219218
/doc/api/
220-
/doc/compat_reports
221219
/doc/crm_fencing.html
222220
/doc/sphinx/*/_build
223221
/doc/sphinx/*/conf.py
@@ -307,9 +305,12 @@ pacemaker_*.info
307305
/doc/*/publican.cfg
308306
/doc/*/publish
309307
/doc/*/tmp/**
308+
/doc/.ABI-build
310309
/doc/Clusters_from_Scratch.txt
311310
/doc/Pacemaker_Explained.txt
311+
/doc/abi_dumps
312312
/doc/acls.html
313+
/doc/compat_reports
313314
/doc/publican-catalog*
314315
/doc/shared/en-US/*.xml
315316
/doc/shared/en-US/images/pcmk-*.png

ChangeLog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@
405405
* **libcrmservice:** drop header `services_compat.h`
406406
* **libcrmservice:** deprecate function `services_ocf_exitcode_str()`
407407
* **libcrmservice:** drop enums (including all their values) `nagios_exitcode`
408-
and `op_status`
408+
and `op_status`
409409
* **libcrmservice:** drop defined constants `F_LRMD_ALERT`, `F_LRMD_ALERT_ID`,
410410
`F_LRMD_ALERT_PATH`, `F_LRMD_CALLBACK_TOKEN`, `F_LRMD_CALLDATA`,
411411
`F_LRMD_CALLID`, `F_LRMD_CALLOPTS`, `F_LRMD_CLASS`, `F_LRMD_CLIENTID`,

INSTALL.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ Also:
4747
| systemd support | | systemd-devel | systemd-devel | libsystemd-dev |
4848
| systemd resource support | 1.5.12 or later| dbus-devel | dbus-devel | libdbus-1-dev |
4949
| Linux-HA style fencing agents | | cluster-glue-libs-devel | libglue-devel | cluster-glue-dev |
50-
| documentation | | asciidoc or asciidoctor | asciidoc or asciidoctor | asciidoc or asciidoctor |
5150
| documentation | | help2man | help2man | help2man |
5251
| documentation | | docbook-style-xsl | docbook-xsl-stylesheets | docbook-xsl |
5352
| documentation | | python3-sphinx | python3-sphinx | python3-sphinx |

agents/ocf/remote.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# ocf:pacemaker:remote OCF resource agent
44
#
5-
# Copyright 2013-2023 the Pacemaker project contributors
5+
# Copyright 2013-2025 the Pacemaker project contributors
66
#
77
# The version control history for this file may have further details.
88
#
@@ -56,7 +56,7 @@ meta_data() {
5656
<actions>
5757
<action name="start" timeout="60s" />
5858
<action name="stop" timeout="60s" />
59-
<action name="monitor" timeout="30s" />
59+
<action name="monitor" timeout="30s" interval="30s" />
6060
<action name="migrate_to" timeout="60s" />
6161
<action name="migrate_from" timeout="60s" />
6262
<action name="reload" timeout="60s" />

agents/stonith/fence_legacy.in

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!@PYTHON@
22

3-
__copyright__ = "Copyright 2018-2023 the Pacemaker project contributors"
3+
__copyright__ = "Copyright 2018-2025 the Pacemaker project contributors"
44
__license__ = "GNU General Public License version 2 or later (GPLv2+) WITHOUT ANY WARRANTY"
55

66
import os
@@ -116,9 +116,7 @@ def parse_cli_options():
116116
parser.add_argument("-h", "--help", action="store_true",
117117
help="show usage and exit")
118118

119-
# Don't use action="version", because that printed to stderr before
120-
# Python 3.4, and help2man doesn't like that.
121-
parser.add_argument("-V", "--version", action="store_true",
119+
parser.add_argument("-V", "--version", action="version", version=VERSION,
122120
help="show version and exit")
123121

124122
return parser.parse_args()
@@ -209,10 +207,6 @@ def handle_local_options(options):
209207
print(USAGE)
210208
sys.exit(ExitStatus.OK)
211209

212-
if options.version:
213-
print(VERSION)
214-
sys.exit(ExitStatus.OK)
215-
216210

217211
def remap_action(options):
218212
""" Pre-process requested action """

configure.ac

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -229,16 +229,24 @@ AC_ARG_ENABLE([hardening],
229229
yes_no_try "$enable_hardening" "try"
230230
enable_hardening=$?
231231

232-
dnl --enable-* options: features
232+
dnl --enable-* options: features within Pacemaker
233233

234+
dnl @COMPAT This should be --with-systemd
234235
AC_ARG_ENABLE([systemd],
235236
[AS_HELP_STRING([--enable-systemd],
236237
[enable support for managing resources via systemd @<:@try@:>@])]
237238
)
238239
yes_no_try "$enable_systemd" "try"
239240
enable_systemd=$?
240241

241-
dnl --enable-* options: features inherent to Pacemaker
242+
AC_ARG_ENABLE([deprecated-libs],
243+
[AS_HELP_STRING([--enable-deprecated-libs],
244+
[Build and install deprecated C libraries @<:@yes@:>@])]
245+
)
246+
yes_no_try "$enable_deprecated_libs" "yes"
247+
enable_deprecated_libs=$?
248+
AM_CONDITIONAL([BUILD_DEPRECATED_LIBS],
249+
[test $enable_deprecated_libs -ne $DISABLED])
242250

243251
# AM_GNU_GETTEXT calls AM_NLS which defines the nls option, but it defaults
244252
# to enabled. We override the definition of AM_NLS to flip the default and mark
@@ -255,7 +263,7 @@ AC_DEFUN([AM_NLS],
255263
AM_GNU_GETTEXT([external])
256264
AM_GNU_GETTEXT_VERSION([0.18])
257265

258-
dnl --with-* options: external software support, and custom locations
266+
dnl --with-* options: external software support, and custom values
259267

260268
dnl This argument is defined via an M4 macro so default can be a variable
261269
AC_DEFUN([VERSION_ARG],
@@ -295,8 +303,7 @@ AC_ARG_WITH([bug-url],
295303
AS_IF([test x"${BUG_URL}" = x""],
296304
[BUG_URL="https://bugs.clusterlabs.org/enter_bug.cgi?product=Pacemaker"])
297305

298-
dnl --with-* options: features
299-
306+
dnl @COMPAT This should be --enable-cibsecrets option
300307
AC_ARG_WITH([cibsecrets],
301308
[AS_HELP_STRING([--with-cibsecrets],
302309
[support separate file for CIB secrets @<:@no@:>@])]
@@ -971,7 +978,6 @@ dnl ==============================================
971978
dnl Documentation build dependencies and checks
972979
dnl ==============================================
973980

974-
AC_PATH_PROGS([ASCIIDOC_CONV], [asciidoc asciidoctor])
975981
AC_PATH_PROG([HELP2MAN], [help2man])
976982
AC_PATH_PROG([SPHINX], [sphinx-build])
977983
AC_PATH_PROG([XSLTPROC], [xsltproc])
@@ -1013,11 +1019,6 @@ AM_CONDITIONAL(BUILD_XML_HELP, test x"${MANPAGE_XSLT}" != x"")
10131019
AS_IF([test x"${MANPAGE_XSLT}" != x""],
10141020
[PCMK_FEATURES="$PCMK_FEATURES agent-manpages"])
10151021

1016-
AM_CONDITIONAL([IS_ASCIIDOC], [echo "${ASCIIDOC_CONV}" | grep -Eq 'asciidoc$'])
1017-
AM_CONDITIONAL([BUILD_ASCIIDOC], [test "x${ASCIIDOC_CONV}" != x])
1018-
AS_IF([test x"${ASCIIDOC_CONV}" != x""],
1019-
[PCMK_FEATURES="$PCMK_FEATURES ascii-docs"])
1020-
10211022
AM_CONDITIONAL([BUILD_SPHINX_DOCS], [test x"${SPHINX}" != x""])
10221023
AM_COND_IF([BUILD_SPHINX_DOCS], [PCMK_FEATURES="$PCMK_FEATURES books"])
10231024

@@ -1111,7 +1112,6 @@ cc_temp_flags "$CFLAGS $WERROR"
11111112

11121113
# Optional headers (inclusion of these should be conditional in C code)
11131114
AC_CHECK_HEADERS([linux/swab.h])
1114-
AC_CHECK_HEADERS([stddef.h])
11151115
AC_CHECK_HEADERS([sys/signalfd.h])
11161116
AC_CHECK_HEADERS([uuid/uuid.h])
11171117
AC_CHECK_HEADERS([security/pam_appl.h pam/pam_appl.h])
@@ -1215,9 +1215,6 @@ dnl Structures
12151215
dnl ========================================================================
12161216

12171217
AC_CHECK_MEMBERS([struct tm.tm_gmtoff],,,[[#include <time.h>]])
1218-
AC_CHECK_MEMBER([struct dirent.d_type],
1219-
AC_DEFINE(HAVE_STRUCT_DIRENT_D_TYPE,1,[Define this if struct dirent has d_type]),,
1220-
[#include <dirent.h>])
12211218

12221219
dnl ========================================================================
12231220
dnl Functions
@@ -2075,6 +2072,7 @@ AC_CONFIG_FILES(Makefile \
20752072
lib/common/tests/xml/Makefile \
20762073
lib/common/tests/xml_comment/Makefile \
20772074
lib/common/tests/xml_element/Makefile \
2075+
lib/common/tests/xml_idref/Makefile \
20782076
lib/common/tests/xpath/Makefile \
20792077
lib/fencing/Makefile \
20802078
lib/libpacemaker.pc \

0 commit comments

Comments
 (0)