Skip to content

Commit 52f4461

Browse files
committed
Fix make headerscheck
In the wake of commits dac048f and ecaf7c5, `make headerscheck` no longer generated all headers that are included by other headers, causing headerscheck/cpluspluscheck to fail. To fix, backpatch enough makefile rules from 721856f to generate all required headers. Reported by Marina Polyakova Backpatch to version 16 only, as the issue is not present on master Discussion: https://postgr.es/m/231ea1127719b2b3d6d1c05f75808981%40postgrespro.ru
1 parent 2209c70 commit 52f4461

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/backend/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ submake-utils-headers:
160160

161161
.PHONY: generated-headers
162162

163-
generated-headers: $(top_builddir)/src/include/storage/lwlocknames.h submake-catalog-headers submake-nodes-headers submake-utils-headers
163+
generated-headers: $(top_builddir)/src/include/storage/lwlocknames.h submake-catalog-headers submake-nodes-headers submake-utils-headers parser/gram.h
164164

165165
$(top_builddir)/src/include/storage/lwlocknames.h: storage/lmgr/lwlocknames.h
166166
prereqdir=`cd '$(dir $<)' >/dev/null && pwd` && \

src/backend/utils/Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,12 @@ all: distprep probes.h generated-header-symlinks
3838

3939
distprep: fmgr-stamp errcodes.h
4040

41-
.PHONY: generated-header-symlinks
41+
.PHONY: generated-header-symlinks submake-adt-headers
4242

43-
generated-header-symlinks: $(top_builddir)/src/include/utils/header-stamp $(top_builddir)/src/include/utils/probes.h
43+
generated-header-symlinks: $(top_builddir)/src/include/utils/header-stamp $(top_builddir)/src/include/utils/probes.h submake-adt-headers
44+
45+
submake-adt-headers:
46+
$(MAKE) -C adt jsonpath_gram.h
4447

4548
$(SUBDIRS:%=%-recursive): fmgr-stamp errcodes.h
4649

0 commit comments

Comments
 (0)