From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1434647-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 2473F158094
	for <garchives@archives.gentoo.org>; Thu,  8 Sep 2022 12:25:39 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 3F8F9E09B0;
	Thu,  8 Sep 2022 12:25:38 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 2C1A7E09B0
	for <gentoo-commits@lists.gentoo.org>; Thu,  8 Sep 2022 12:25:38 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 58D6733BF5B
	for <gentoo-commits@lists.gentoo.org>; Thu,  8 Sep 2022 12:25:37 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id BA060526
	for <gentoo-commits@lists.gentoo.org>; Thu,  8 Sep 2022 12:25:35 +0000 (UTC)
From: "罗百科" <patrick@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "罗百科" <patrick@gentoo.org>
Message-ID: <1662639932.07d750a248fde0ee84c9bf862749caac6209ca0b.patrick@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/postgresql/
X-VCS-Repository: repo/gentoo
X-VCS-Files: dev-db/postgresql/postgresql-14.5.ebuild dev-db/postgresql/postgresql-15_beta3.ebuild
X-VCS-Directories: dev-db/postgresql/
X-VCS-Committer: patrick
X-VCS-Committer-Name: 罗百科
X-VCS-Revision: 07d750a248fde0ee84c9bf862749caac6209ca0b
X-VCS-Branch: master
Date: Thu,  8 Sep 2022 12:25:35 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: c56a74aa-9b9c-41d1-9c9a-63f245f704d1
X-Archives-Hash: d16210e5419a7ad872ff9997b0f41662

commit:     07d750a248fde0ee84c9bf862749caac6209ca0b
Author:     Patrick Lauer <patrick <AT> gentoo <DOT> org>
AuthorDate: Thu Sep  8 12:24:46 2022 +0000
Commit:     罗百科 <patrick <AT> gentoo <DOT> org>
CommitDate: Thu Sep  8 12:25:32 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07d750a2

dev-db/postgresql: Fix llvm behaviour properly for :14 and :15

Closes: https://bugs.gentoo.org/869167
Signed-off-by: Patrick Lauer <patrick <AT> gentoo.org>

 dev-db/postgresql/postgresql-14.5.ebuild     | 5 ++++-
 dev-db/postgresql/postgresql-15_beta3.ebuild | 5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/dev-db/postgresql/postgresql-14.5.ebuild b/dev-db/postgresql/postgresql-14.5.ebuild
index a22cfff6559c..d4915d199060 100644
--- a/dev-db/postgresql/postgresql-14.5.ebuild
+++ b/dev-db/postgresql/postgresql-14.5.ebuild
@@ -4,8 +4,9 @@
 EAPI=8
 
 PYTHON_COMPAT=( python3_{8,9,10,11} )
+LLVM_MAX_SLOT=14
 
-inherit flag-o-matic linux-info pam python-single-r1 systemd tmpfiles
+inherit flag-o-matic linux-info llvm pam python-single-r1 systemd tmpfiles
 
 KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 
@@ -84,6 +85,8 @@ selinux? ( sec-policy/selinux-postgresql )
 "
 
 pkg_setup() {
+	use llvm && llvm_pkg_setup
+
 	use server && CONFIG_CHECK="~SYSVIPC" linux-info_pkg_setup
 
 	use python && python-single-r1_pkg_setup

diff --git a/dev-db/postgresql/postgresql-15_beta3.ebuild b/dev-db/postgresql/postgresql-15_beta3.ebuild
index 5faee82e9f36..04ca1371543f 100644
--- a/dev-db/postgresql/postgresql-15_beta3.ebuild
+++ b/dev-db/postgresql/postgresql-15_beta3.ebuild
@@ -4,8 +4,9 @@
 EAPI=8
 
 PYTHON_COMPAT=( python3_{8,9,10,11} )
+LLVM_MAX_SLOT=14
 
-inherit flag-o-matic linux-info pam python-single-r1 systemd tmpfiles
+inherit flag-o-matic linux-info llvm pam python-single-r1 systemd tmpfiles
 
 KEYWORDS=""
 
@@ -85,6 +86,8 @@ selinux? ( sec-policy/selinux-postgresql )
 "
 
 pkg_setup() {
+	use llvm && llvm_pkg_setup
+
 	use server && CONFIG_CHECK="~SYSVIPC" linux-info_pkg_setup
 
 	use python && python-single-r1_pkg_setup