Skip to content

Commit 20d81e3

Browse files
committed
Merge branch 'master' into user/niwilson/ebcdic-test
2 parents 48dcded + 2aa7681 commit 20d81e3

File tree

129 files changed

+4233
-3934
lines changed

Some content is hidden

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

129 files changed

+4233
-3934
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ jobs:
160160
run: ./autogen.sh
161161

162162
- name: Build & test
163-
uses: vmactions/freebsd-vm@debf37ca7b7fa40e19c542ef7ba30d6054a706a4 # v1.1.5
163+
uses: vmactions/freebsd-vm@848dac7e118679d08e2c2f9d42cd96608d834323 # v1.1.8
164164
with:
165165
envs: 'CFLAGS_GCC_STYLE'
166166
usesh: true
@@ -215,7 +215,7 @@ jobs:
215215
run: ./autogen.sh
216216

217217
- name: Build & test
218-
uses: vmactions/solaris-vm@a89b9438868c70db27e41625f0a5de6ff5e90809 # v1.1.0
218+
uses: vmactions/solaris-vm@cc8f82fa1a7cc746153ec3f71bf11f311f16e225 # v1.1.1
219219
with:
220220
envs: 'CFLAGS_SOLARIS_CC'
221221
usesh: true
@@ -310,7 +310,7 @@ jobs:
310310
maint/RunManifestTest tarball-dir maint/manifest-tarball
311311
312312
- name: Upload to GitHub artifacts
313-
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
313+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
314314
with:
315315
name: "Distribution release"
316316
path: |
@@ -385,14 +385,14 @@ jobs:
385385
echo '```' >> "$GITHUB_STEP_SUMMARY"
386386
387387
- name: Upload report to GitHub artifacts
388-
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
388+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
389389
with:
390390
name: "Coverage report"
391391
path: './build/coverage-report'
392392
if-no-files-found: error
393393

394394
- name: Upload report to Codecov
395-
uses: codecov/codecov-action@7f8b4b4bde536c465e797be725718b88c5d95e0e # v5.1.1
395+
uses: codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3 # v5.3.1
396396
with:
397397
token: ${{ secrets.CODECOV_TOKEN }}
398398
fail_ci_if_error: true

.github/workflows/cifuzz.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
fuzz-seconds: 300
2525
dry-run: false
2626
- name: Upload Crash
27-
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
27+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
2828
if: failure() && steps.build.outcome == 'success'
2929
with:
3030
name: artifacts

.github/workflows/clang-analyzer.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,14 @@ jobs:
5959
6060
# Upload the browsable HTML report as an artifact.
6161
- name: Upload report
62-
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
62+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
6363
with:
6464
name: "Clang Static Analyzer report"
6565
path: './build/clang-report'
6666

6767
# Upload the results to GitHub's code scanning dashboard.
6868
- name: "Upload to code-scanning"
69-
uses: github/codeql-action/upload-sarif@aa578102511db1f4524ed59b8cc2bae4f6e88195 # v3.27.6
69+
uses: github/codeql-action/upload-sarif@dd746615b3b9d728a6a37ca2045b68ca76d4841a # v3.28.8
7070
with:
7171
sarif_file: build/clang.sarif
7272
category: clang-analyzer

.github/workflows/codeql.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949

5050
# Initializes the CodeQL tools for scanning.
5151
- name: Initialize CodeQL
52-
uses: github/codeql-action/init@aa578102511db1f4524ed59b8cc2bae4f6e88195 # v3.27.6
52+
uses: github/codeql-action/init@dd746615b3b9d728a6a37ca2045b68ca76d4841a # v3.28.8
5353
with:
5454
languages: ${{ matrix.language }}
5555
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -60,7 +60,7 @@ jobs:
6060
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
6161
# If this step fails, then you should remove it and run the build manually (see below)
6262
- name: Autobuild
63-
uses: github/codeql-action/autobuild@aa578102511db1f4524ed59b8cc2bae4f6e88195 # v3.27.6
63+
uses: github/codeql-action/autobuild@dd746615b3b9d728a6a37ca2045b68ca76d4841a # v3.28.8
6464

6565
# ℹ️ Command-line programs to run using the OS shell.
6666
# 📚 https://git.io/JvXDl
@@ -74,4 +74,4 @@ jobs:
7474
# make release
7575

7676
- name: Perform CodeQL Analysis
77-
uses: github/codeql-action/analyze@aa578102511db1f4524ed59b8cc2bae4f6e88195 # v3.27.6
77+
uses: github/codeql-action/analyze@dd746615b3b9d728a6a37ca2045b68ca76d4841a # v3.28.8

.github/workflows/dev.yml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -440,8 +440,8 @@ jobs:
440440
run: bazelisk test //... --enable_runfiles --incompatible_strict_action_env --test_output=all
441441

442442
heron:
443-
# Job to verify that the tasks performed by PrepareRelease have been done. It is
444-
# the committer's responsibility (currently) to run PrepareRelease themselves when
443+
# Job to verify that the tasks performed by UpdateAlways have been done. It is
444+
# the committer's responsibility (currently) to run UpdateAlways themselves when
445445
# making a PR, so that everything is kept in-sync.
446446
name: Check autogenerated file freshness
447447
runs-on: ubuntu-24.04 # TODO: Update to ubuntu-latest when that switches to 24.04
@@ -452,27 +452,40 @@ jobs:
452452
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
453453
with:
454454
submodules: false
455-
fetch-depth: 0 # Necessary for maint/PrepareRelease
455+
fetch-depth: 0 # Necessary for maint/UpdateAlways
456456
fetch-tags: false
457457
# Check out the unmerged source branch for `pull_request`-triggered runs;
458458
# otherwise use the tip of the branch for `workflow_dispatch` and `pull` triggers.
459459
ref: ${{ github.event.pull_request.head.ref || github.ref }}
460460
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
461461

462-
- name: PrepareRelease
463-
run: maint/PrepareRelease
462+
- name: UpdateDates
463+
if: |
464+
github.event_name != 'pull_request' &&
465+
(startsWith(github.ref, 'refs/heads/release/') ||
466+
startsWith(github.ref, 'refs/tags/pcre2-'))
467+
run: maint/UpdateDates.py
468+
469+
- name: UpdateAlways
470+
run: maint/UpdateAlways
464471

465472
- name: 'Rebuild *.h.generic'
466473
run: |
467474
./autogen.sh && ./configure
475+
476+
# Workaround for incorrect filesystem permissions on /usr/share/aclocal, which
477+
# causes the m4 macros to be copied with incorrect permissions.
478+
# https://github.com/actions/runner-images/issues/11212
479+
chmod u=rw,go=r m4/*.m4
480+
468481
rm -f src/*.generic
469482
make src/config.h.generic src/pcre2.h.generic
470483
471484
# If we're in a forked repo, it's too onerous to expect contributors to run the
472485
# checks locally to keep these files up to date (since the tool versions are very
473486
# fussy and brittle).
474487
#
475-
# However, we still want to run the steps above, to check that the PrepareRelease
488+
# However, we still want to run the steps above, to check that the UpdateAlways
476489
# process is able to run to completion, since it can pick up errors in the man pages.
477490

478491
- name: Commit and push, if not in a forked repo

.github/workflows/scorecards.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@ jobs:
4444

4545
# Upload the results as artifacts (optional).
4646
- name: "Upload artifact"
47-
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
47+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
4848
with:
4949
name: SARIF file
5050
path: results.sarif
5151
retention-days: 5
5252

5353
# Upload the results to GitHub's code scanning dashboard.
5454
- name: "Upload to code-scanning"
55-
uses: github/codeql-action/upload-sarif@aa578102511db1f4524ed59b8cc2bae4f6e88195 # v3.27.6
55+
uses: github/codeql-action/upload-sarif@dd746615b3b9d728a6a37ca2045b68ca76d4841a # v3.28.8
5656
with:
5757
sarif_file: results.sarif
5858
category: ossf-scorecard

AUTHORS.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
PCRE2 Authorship and Contributors
22
=================================
33

4-
COPYRIGHT
4+
Copyright
55
---------
66

77
Please see the file [LICENCE](./LICENCE.md) in the PCRE2 distribution for
88
copyright details.
99

1010

11-
MAINTAINERS
11+
Maintainers
1212
-----------
1313

1414
The PCRE and PCRE2 libraries were authored and maintained by Philip Hazel.
@@ -62,7 +62,7 @@ Both administrators are volunteers acting in a personal capacity.
6262
</table>
6363

6464

65-
CONTRIBUTORS
65+
Contributors
6666
------------
6767

6868
Many others have participated and contributed to PCRE2 over its history.

LICENCE.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
PCRE2 License
1+
PCRE2 Licence
22
=============
33

44
| SPDX-License-Identifier: | BSD-3-Clause WITH PCRE2-exception |
@@ -99,5 +99,3 @@ not apply all the way down a chain of software. If binary package A includes
9999
PCRE2, it must respect the condition, but if package B is software that
100100
includes package A, the condition is not imposed on package B unless it uses
101101
PCRE2 independently.
102-
103-
End

NON-AUTOTOOLS-BUILD

Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Building PCRE2 without using autotools
2-
--------------------------------------
2+
======================================
33

44
This document contains the following sections:
55

@@ -16,7 +16,8 @@ This document contains the following sections:
1616
Building PCRE2 under VMS
1717

1818

19-
GENERAL
19+
General
20+
-------
2021

2122
The source of the PCRE2 libraries consists entirely of code written in Standard
2223
C, and so should compile successfully on any system that has a Standard C
@@ -37,7 +38,8 @@ provided for those who build PCRE2 without using "configure" or CMake. If you
3738
use "configure" or CMake, the .generic versions are not used.
3839

3940

40-
GENERIC INSTRUCTIONS FOR THE PCRE2 C LIBRARIES
41+
Generic instructions for the PCRE2 C libraries
42+
----------------------------------------------
4143

4244
There are three possible PCRE2 libraries, each handling data with a specific
4345
code unit width: 8, 16, or 32 bits. You can build any combination of them. The
@@ -207,20 +209,23 @@ example.
207209
defining SUPPORT_JIT, pcre2grep does not try to make use of JIT.
208210

209211

210-
STACK SIZE IN WINDOWS ENVIRONMENTS
212+
Stack size in Windows environments
213+
----------------------------------
211214

212215
Prior to release 10.30 the default system stack size of 1MiB in some Windows
213216
environments caused issues with some tests. This should no longer be the case
214217
for 10.30 and later releases.
215218

216219

217-
LINKING PROGRAMS IN WINDOWS ENVIRONMENTS
220+
Linking programs in Windows environments
221+
----------------------------------------
218222

219223
If you want to statically link a program against a PCRE2 library in the form of
220224
a non-dll .a file, you must define PCRE2_STATIC before including src/pcre2.h.
221225

222226

223-
CALLING CONVENTIONS IN WINDOWS ENVIRONMENTS
227+
Calling conventions in Windows environments
228+
-------------------------------------------
224229

225230
It is possible to compile programs to use different calling conventions using
226231
MSVC. Search the web for "calling conventions" for more information. To make it
@@ -231,7 +236,8 @@ not set, it defaults to empty; the default calling convention is then used
231236
(which is what is wanted most of the time).
232237

233238

234-
COMMENTS ABOUT WIN32 BUILDS (see also "BUILDING PCRE2 ON WINDOWS WITH CMAKE")
239+
Comments about Win32 builds (see also "Building PCRE2 on Windows with CMake")
240+
---------------------------
235241

236242
There are two ways of building PCRE2 using the "configure, make, make install"
237243
paradigm on Windows systems: using MinGW or using Cygwin. These are not at all
@@ -293,7 +299,8 @@ newline option that includes LF as a valid newline, it may be necessary to
293299
change the line terminators in the test files to get some of the tests to work.
294300

295301

296-
BUILDING PCRE2 ON WINDOWS WITH CMAKE
302+
Building PCRE2 on Windows with CMake
303+
------------------------------------
297304

298305
CMake is an alternative configuration facility that can be used instead of
299306
"configure". CMake creates project files (make files, solution files, etc.)
@@ -364,7 +371,8 @@ be deleted.
364371
Regardless of build system used, `ctest` will run the tests.
365372

366373

367-
BUILDING PCRE2 ON WINDOWS WITH VISUAL STUDIO
374+
Building PCRE2 on Windows with Visual Studio
375+
--------------------------------------------
368376

369377
The code currently cannot be compiled without an inttypes.h header, which is
370378
available only with Visual Studio 2013 or newer. However, this portable and
@@ -376,7 +384,8 @@ alternative:
376384
Just rename it and drop it into the top level of the build tree.
377385

378386

379-
TESTING WITH RUNTEST.BAT
387+
Testing with RunTest.bat
388+
------------------------
380389

381390
If configured with CMake, building the test project ("make test" or building
382391
ALL_TESTS in Visual Studio) creates (and runs) pcre2_test.bat (and depending
@@ -410,7 +419,8 @@ Otherwise:
410419
To independently test the just-in-time compiler, run pcre2_jit_test.exe.
411420

412421

413-
BUILDING PCRE2 ON NATIVE Z/OS AND Z/VM
422+
Building PCRE2 on native z/OS and z/VM
423+
--------------------------------------
414424

415425
z/OS and z/VM are operating systems for mainframe computers, produced by IBM.
416426
The character code used is EBCDIC, not ASCII or Unicode. In z/OS, UNIX APIs and
@@ -429,7 +439,8 @@ z/OS file formats. The port provides an API for LE languages such as COBOL and
429439
for the z/OS and z/VM versions of the Rexx languages.
430440

431441

432-
BUILDING PCRE2 UNDER VMS
442+
Building PCRE2 under VMS
443+
------------------------
433444

434445
Alexey Chuphin has contributed some auxiliary files for building PCRE2 under
435446
OpenVMS. They are in the "vms" directory in the distribution tarball. Please

README

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
README file for PCRE2 (Perl-compatible regular expression library)
2-
------------------------------------------------------------------
2+
==================================================================
33

44
PCRE2 is a re-working of the original PCRE1 library to provide an entirely new
55
API. Since its initial release in 2015, there has been further development of
@@ -618,7 +618,7 @@ zip formats. The command "make distcheck" does the same, but then does a trial
618618
build of the new distribution to ensure that it works.
619619

620620
If you have modified any of the man page sources in the doc directory, you
621-
should first run the maint/PrepareRelease script before making a distribution.
621+
should first run the maint/UpdateAlways script before making a distribution.
622622
This script creates the .txt and HTML forms of the documentation from the man
623623
pages.
624624

0 commit comments

Comments
 (0)