-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove hardcoded Postgres extension version while at it and add an EdgeQL-only version of the package.
- Loading branch information
Showing
9 changed files
with
359 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
from .base import EdgeDBExtension | ||
from .base import EdgeDBExtension, PGEXT_VERSION_AUTO | ||
|
||
__all__ = ("EdgeDBExtension",) | ||
__all__ = ("EdgeDBExtension", "PGEXT_VERSION_AUTO") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
94 changes: 94 additions & 0 deletions
94
edgedbpkg/pgext/postgis/patches/pgext-postgis__gettext-305.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
From 24e4e6d4d94a4203e4a50000e25c983467a1c51e Mon Sep 17 00:00:00 2001 | ||
From: Elvis Pranskevichus <elvis@edgedb.com> | ||
Date: Thu, 3 Oct 2024 23:12:22 -0700 | ||
Subject: [PATCH 4/4] Fix `make install` with gettext disabled | ||
|
||
--- | ||
configure | 44 +++++++++++++++++++++++++++++++++++++++++++- | ||
configure.ac | 1 + | ||
2 files changed, 44 insertions(+), 1 deletion(-) | ||
|
||
diff --git a/configure b/configure | ||
index 7283cb55e..3b9467974 100755 | ||
--- a/configure | ||
+++ b/configure | ||
@@ -718,7 +718,6 @@ GMSGFMT | ||
MSGFMT | ||
GETTEXT_MACRO_VERSION | ||
USE_NLS | ||
-MKDIR_P | ||
SET_MAKE | ||
HAVE_SFCGAL | ||
SFCGAL | ||
@@ -840,6 +839,7 @@ build_vendor | ||
build_cpu | ||
build | ||
LIBTOOL | ||
+MKDIR_P | ||
INSTALL_DATA | ||
INSTALL_SCRIPT | ||
INSTALL_PROGRAM | ||
@@ -2741,6 +2741,48 @@ test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||
|
||
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||
|
||
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | ||
+$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | ||
+if test -z "$MKDIR_P"; then | ||
+ if ${ac_cv_path_mkdir+:} false; then : | ||
+ $as_echo_n "(cached) " >&6 | ||
+else | ||
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
+for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | ||
+do | ||
+ IFS=$as_save_IFS | ||
+ test -z "$as_dir" && as_dir=. | ||
+ for ac_prog in mkdir gmkdir; do | ||
+ for ac_exec_ext in '' $ac_executable_extensions; do | ||
+ as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | ||
+ case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | ||
+ 'mkdir (GNU coreutils) '* | \ | ||
+ 'mkdir (coreutils) '* | \ | ||
+ 'mkdir (fileutils) '4.1*) | ||
+ ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | ||
+ break 3;; | ||
+ esac | ||
+ done | ||
+ done | ||
+ done | ||
+IFS=$as_save_IFS | ||
+ | ||
+fi | ||
+ | ||
+ test -d ./--version && rmdir ./--version | ||
+ if test "${ac_cv_path_mkdir+set}" = set; then | ||
+ MKDIR_P="$ac_cv_path_mkdir -p" | ||
+ else | ||
+ # As a last resort, use the slow shell script. Don't cache a | ||
+ # value for MKDIR_P within a source directory, because that will | ||
+ # break other packages using the cache if that directory is | ||
+ # removed, or if the value is a relative name. | ||
+ MKDIR_P="$ac_install_sh -d" | ||
+ fi | ||
+fi | ||
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | ||
+$as_echo "$MKDIR_P" >&6; } | ||
+ | ||
|
||
# _LT_PROG_AR | ||
|
||
diff --git a/configure.ac b/configure.ac | ||
index 1ae526f47..1a319e4d6 100644 | ||
--- a/configure.ac | ||
+++ b/configure.ac | ||
@@ -27,6 +27,7 @@ AH_TEMPLATE([HAVE_ASPRINTF]) | ||
AC_CONFIG_MACRO_DIR([macros]) | ||
AC_CONFIG_AUX_DIR([build-aux]) | ||
AC_PROG_INSTALL | ||
+AC_PROG_MKDIR_P | ||
|
||
dnl Overwrite _LT_PROG_AR | ||
m4_pushdef([_LT_PROG_AR], | ||
-- | ||
2.45.2 | ||
|
62 changes: 62 additions & 0 deletions
62
edgedbpkg/pgext/postgis/patches/pgext-postgis__macos-fix-305.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
From 06ea94850d9e74510b5f580fc26cfcd1b5f7103f Mon Sep 17 00:00:00 2001 | ||
From: Elvis Pranskevichus <elvis@edgedb.com> | ||
Date: Thu, 3 Oct 2024 17:37:17 -0700 | ||
Subject: [PATCH 3/4] Fix building on macOS | ||
|
||
topology/Makefile clobbers bindir, which, in turn breaks the | ||
`-bundle_loader` flag set by pgxs.mk. | ||
--- | ||
topology/Makefile.in | 14 +++++++------- | ||
1 file changed, 7 insertions(+), 7 deletions(-) | ||
|
||
diff --git a/topology/Makefile.in b/topology/Makefile.in | ||
index ef8de4bb9..a322f394b 100644 | ||
--- a/topology/Makefile.in | ||
+++ b/topology/Makefile.in | ||
@@ -83,7 +83,7 @@ include $(PGXS) | ||
# Set prefix variables _after_ the include of PGXS | ||
prefix = @prefix@ | ||
exec_prefix = @exec_prefix@ | ||
-bindir = @bindir@ | ||
+my_bindir = @bindir@ | ||
|
||
# Set PERL _after_ the include of PGXS | ||
PERL=@PERL@ | ||
@@ -99,7 +99,7 @@ $(OBJS): ../liblwgeom/.libs/liblwgeom.a ../libpgcommon/libpgcommon.a ../postgis_ | ||
# so that no prefix is included. This allows us to relocate to a temporary | ||
# directory for regression testing. | ||
ifeq ($(REGRESS),1) | ||
- bindir=/bin | ||
+ my_bindir=/bin | ||
pkglibdir=/lib | ||
datadir=/share | ||
datamoduledir=contrib/postgis | ||
@@ -177,20 +177,20 @@ distclean: clean | ||
rm -f Makefile test/Makefile | ||
|
||
installdir: | ||
- mkdir -p $(DESTDIR)$(bindir) | ||
+ mkdir -p $(DESTDIR)$(my_bindir) | ||
|
||
install: install-importer install-exporter | ||
|
||
install-importer: loader/pgtopo_import | installdir | ||
- $(LIBTOOL) --mode=install $(INSTALL) $^ "$(DESTDIR)$(bindir)/pgtopo_import" | ||
+ $(LIBTOOL) --mode=install $(INSTALL) $^ "$(DESTDIR)$(my_bindir)/pgtopo_import" | ||
|
||
install-exporter: loader/pgtopo_export | installdir | ||
- $(LIBTOOL) --mode=install $(INSTALL) $^ "$(DESTDIR)$(bindir)/pgtopo_export" | ||
+ $(LIBTOOL) --mode=install $(INSTALL) $^ "$(DESTDIR)$(my_bindir)/pgtopo_export" | ||
|
||
uninstall: uninstall-importer uninstall-exporter | ||
|
||
uninstall-importer: | ||
- rm -f '$(DESTDIR)$(bindir)/pgtopo_import' | ||
+ rm -f '$(DESTDIR)$(my_bindir)/pgtopo_import' | ||
|
||
uninstall-exporter: | ||
- rm -f '$(DESTDIR)$(bindir)/pgtopo_export' | ||
+ rm -f '$(DESTDIR)$(my_bindir)/pgtopo_export' | ||
-- | ||
2.45.2 | ||
|
File renamed without changes.
Oops, something went wrong.