summaryrefslogtreecommitdiff
path: root/dev-db/postgresql/postgresql-9999.ebuild
diff options
context:
space:
mode:
authorMarek Szuba <marecki@gentoo.org>2021-08-13 12:31:04 +0100
committerMarek Szuba <marecki@gentoo.org>2021-08-13 12:34:03 +0100
commit4e6174c72b182b4e10556950cc4be63422df131a (patch)
tree168940fa758eeb5a0270b558486203c565e59286 /dev-db/postgresql/postgresql-9999.ebuild
parentf696fdce4f90a84980344a974652b1c0a8597fa3 (diff)
downloadgentoo-4e6174c72b182b4e10556950cc4be63422df131a.tar.gz
gentoo-4e6174c72b182b4e10556950cc4be63422df131a.tar.bz2
gentoo-4e6174c72b182b4e10556950cc4be63422df131a.zip
dev-db/postgresql: enable native spinlock support on riscv
Don't bother with a revbump even though this is a run-time change - 13.4 and 14_beta3 were released yesterday so in the rather unlikely event of someone already running a PostgreSQL server on a Gentoo/RISC-V system, they will receive this change along with the the hopefully-imminent version bump. Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'dev-db/postgresql/postgresql-9999.ebuild')
-rw-r--r--dev-db/postgresql/postgresql-9999.ebuild5
1 files changed, 4 insertions, 1 deletions
diff --git a/dev-db/postgresql/postgresql-9999.ebuild b/dev-db/postgresql/postgresql-9999.ebuild
index 8bdc4467a149..9b90b0ee77a1 100644
--- a/dev-db/postgresql/postgresql-9999.ebuild
+++ b/dev-db/postgresql/postgresql-9999.ebuild
@@ -110,6 +110,9 @@ pkg_setup() {
}
src_prepare() {
+ # still needed as of 2021-08-13
+ eapply "${FILESDIR}"/${PN}-13.3-riscv-spinlocks.patch
+
# Set proper run directory
sed "s|\(PGSOCKET_DIR\s\+\)\"/tmp\"|\1\"${EPREFIX}/run/postgresql\"|" \
-i src/include/pg_config_manual.h || die
@@ -177,7 +180,7 @@ src_configure() {
$(use_with zlib) \
$(use_with systemd) \
${uuid_config}"
- if use alpha || use riscv; then
+ if use alpha; then
myconf+=" --disable-spinlocks"
else
# Should be the default but just in case