public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-db/repmgr/files/, dev-db/repmgr/
@ 2023-08-22  7:24 Joonas Niilola
  0 siblings, 0 replies; only message in thread
From: Joonas Niilola @ 2023-08-22  7:24 UTC (permalink / raw
  To: gentoo-commits

commit:     e66c27b7c9f88c5036a0511e9e08a92ae4785ef3
Author:     Brahmajit Das <brahmajit.xyz <AT> gmail <DOT> com>
AuthorDate: Sun Jul 23 07:35:11 2023 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Tue Aug 22 06:49:09 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e66c27b7

dev-db/repmgr: Fix incompatible integer to pointer conversion

Closes: https://bugs.gentoo.org/883237
Signed-off-by: Brahmajit Das <brahmajit.xyz <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/32010
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 ...repmgr-5.1.0-fix-missing-getpwuid-clang16.patch | 12 ++++++
 dev-db/repmgr/repmgr-5.1.0-r1.ebuild               | 47 ++++++++++++++++++++++
 2 files changed, 59 insertions(+)

diff --git a/dev-db/repmgr/files/repmgr-5.1.0-fix-missing-getpwuid-clang16.patch b/dev-db/repmgr/files/repmgr-5.1.0-fix-missing-getpwuid-clang16.patch
new file mode 100644
index 000000000000..53eeb524c7c9
--- /dev/null
+++ b/dev-db/repmgr/files/repmgr-5.1.0-fix-missing-getpwuid-clang16.patch
@@ -0,0 +1,12 @@
+Bug: https://bugs.gentoo.org/883237
+--- a/repmgr-client.c
++++ b/repmgr-client.c
+@@ -54,6 +54,8 @@
+ #include <unistd.h>
+ #include <sys/stat.h>
+ #include <signal.h>
++#include <sys/types.h>
++#include <pwd.h>
+ 
+ 
+ #include "repmgr.h"

diff --git a/dev-db/repmgr/repmgr-5.1.0-r1.ebuild b/dev-db/repmgr/repmgr-5.1.0-r1.ebuild
new file mode 100644
index 000000000000..7d986cfa5fc3
--- /dev/null
+++ b/dev-db/repmgr/repmgr-5.1.0-r1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="PostgreSQL Replication Manager"
+HOMEPAGE="http://www.repmgr.org/"
+SRC_URI="http://www.repmgr.org/download/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="dev-db/postgresql:*[server,static-libs]"
+RDEPEND="${DEPEND}
+	net-misc/rsync"
+
+PATCHES=(
+	"${FILESDIR}"/${P}-fno-common.patch
+	"${FILESDIR}"/${P}-fix-missing-getpwuid-clang16.patch
+)
+
+src_compile() {
+	emake USE_PGXS=1
+}
+
+src_install() {
+	emake DESTDIR="${D}" USE_PGXS=1 install
+	dodoc CREDITS HISTORY COPYRIGHT *.md
+
+	local PGSLOT="$(postgresql-config show)"
+	einfo "PGSLOT: ${PGSLOT}"
+
+	dodir /usr/share/postgresql-${PGSLOT}/contrib
+	dodir /usr/$(get_libdir)/postgresql-${PGSLOT}
+
+	local repmgr="/usr/bin/repmgr${PGSLOT//.}"
+	local repmgrd="/usr/bin/repmgrd${PGSLOT//.}"
+	dosym ../$(get_libdir)/postgresql-${PGSLOT}/bin/repmgr ${repmgr}
+	dosym ../$(get_libdir)/postgresql-${PGSLOT}/bin/repmgrd ${repmgrd}
+
+	insinto /etc
+	newins repmgr.conf.sample repmgr.conf
+
+	fowners postgres:postgres /etc/repmgr.conf
+	ewarn "Remember to modify /etc/repmgr.conf"
+}


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2023-08-22  7:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-22  7:24 [gentoo-commits] repo/gentoo:master commit in: dev-db/repmgr/files/, dev-db/repmgr/ Joonas Niilola

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox