From 4e6174c72b182b4e10556950cc4be63422df131a Mon Sep 17 00:00:00 2001 From: Marek Szuba Date: Fri, 13 Aug 2021 12:31:04 +0100 Subject: 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 --- dev-db/postgresql/postgresql-13.3.ebuild | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'dev-db/postgresql/postgresql-13.3.ebuild') diff --git a/dev-db/postgresql/postgresql-13.3.ebuild b/dev-db/postgresql/postgresql-13.3.ebuild index 85d7618669ca..4063b6442c59 100644 --- a/dev-db/postgresql/postgresql-13.3.ebuild +++ b/dev-db/postgresql/postgresql-13.3.ebuild @@ -91,6 +91,8 @@ pkg_setup() { } src_prepare() { + 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 @@ -159,7 +161,7 @@ src_configure() { $(use_with xml libxslt) \ $(use_with zlib) \ $(use_enable nls)" - if use alpha || use riscv; then + if use alpha; then myconf+=" --disable-spinlocks" else # Should be the default but just in case -- cgit v1.2.3