Skip to content

Commit df5a87f

Browse files
committed
Fix passbyvalue logic on PG13/32-bit.
The old parsing logic doesn't work because the defines are wrapped in #if conditionals.
1 parent cd224e3 commit df5a87f

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ PGXS := $(shell $(PG_CONFIG) --pgxs)
1313
include $(PGXS)
1414

1515
INCLUDEDIR_SERVER = $(shell $(PG_CONFIG) --includedir-server)
16-
# FLOAT8PASSBYVAL moved from pg_config.h to c.h in PG13
17-
FLOAT8PASSBYVAL = $(shell grep FLOAT8PASSBYVAL $(INCLUDEDIR_SERVER)/pg_config.h $(INCLUDEDIR_SERVER)/c.h | grep -o true)
18-
ifeq ($(FLOAT8PASSBYVAL),true)
16+
# FLOAT8PASSBYVAL is derived from SIZEOF_VOID_P
17+
SIZEOF_VOID_P = $(shell grep '^.define SIZEOF_VOID_P' $(INCLUDEDIR_SERVER)/pg_config.h | cut -d ' ' -f 3)
18+
ifeq ($(SIZEOF_VOID_P),8)
1919
PASSEDBYVALUE = passedbyvalue,
2020
endif
2121

debian/changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
postgresql-numeral (1.2-1) unstable; urgency=medium
2+
3+
* Fix passbyvalue logic on PG13/32-bit.
4+
5+
-- Christoph Berg <myon@debian.org> Thu, 21 May 2020 11:08:32 +0200
6+
17
postgresql-numeral (1.1-1) unstable; urgency=medium
28

39
[ Debian Janitor ]

0 commit comments

Comments
 (0)