summaryrefslogtreecommitdiff
path: root/dev-db/postgresql
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-03-24 23:59:54 +0000
committerV3n3RiX <venerix@koprulu.sector>2022-03-24 23:59:54 +0000
commit401101f9c8077911929d3f2b60a37098460a5d89 (patch)
treec2bef4719f6787550f0916aeaa8f4f403a9296af /dev-db/postgresql
parent4cbcc855382a06088e2f016f62cafdbcb7e40665 (diff)
gentoo resync : 25.03.2022
Diffstat (limited to 'dev-db/postgresql')
-rw-r--r--dev-db/postgresql/Manifest25
-rw-r--r--dev-db/postgresql/files/postgres-llvm14.patch154
-rw-r--r--dev-db/postgresql/postgresql-10.19-r1.ebuild (renamed from dev-db/postgresql/postgresql-10.19.ebuild)2
-rw-r--r--dev-db/postgresql/postgresql-10.20-r1.ebuild (renamed from dev-db/postgresql/postgresql-10.20.ebuild)2
-rw-r--r--dev-db/postgresql/postgresql-11.14-r1.ebuild (renamed from dev-db/postgresql/postgresql-11.14.ebuild)11
-rw-r--r--dev-db/postgresql/postgresql-11.15-r1.ebuild (renamed from dev-db/postgresql/postgresql-11.15.ebuild)11
-rw-r--r--dev-db/postgresql/postgresql-12.10-r1.ebuild (renamed from dev-db/postgresql/postgresql-12.10.ebuild)12
-rw-r--r--dev-db/postgresql/postgresql-12.9-r1.ebuild (renamed from dev-db/postgresql/postgresql-12.9.ebuild)12
-rw-r--r--dev-db/postgresql/postgresql-13.5-r1.ebuild (renamed from dev-db/postgresql/postgresql-13.5.ebuild)12
-rw-r--r--dev-db/postgresql/postgresql-13.6-r2.ebuild (renamed from dev-db/postgresql/postgresql-13.6.ebuild)12
-rw-r--r--dev-db/postgresql/postgresql-14.1-r1.ebuild (renamed from dev-db/postgresql/postgresql-14.1.ebuild)12
-rw-r--r--dev-db/postgresql/postgresql-14.2-r1.ebuild (renamed from dev-db/postgresql/postgresql-14.2.ebuild)3
-rw-r--r--dev-db/postgresql/postgresql-9.6.24-r1.ebuild (renamed from dev-db/postgresql/postgresql-9.6.24.ebuild)2
-rw-r--r--dev-db/postgresql/postgresql-9999.ebuild2
14 files changed, 227 insertions, 45 deletions
diff --git a/dev-db/postgresql/Manifest b/dev-db/postgresql/Manifest
index 708c44aa562e..b26aeeaa1b46 100644
--- a/dev-db/postgresql/Manifest
+++ b/dev-db/postgresql/Manifest
@@ -1,3 +1,4 @@
+AUX postgres-llvm14.patch 4963 BLAKE2B 66e50d40cd9491ef1757d9b5756b07af683e98d8a6b3e808f90699745b6a772f921695d1528d9d486240690b2efb55b39a184032e205b857609d27430cd6eb9f SHA512 c74841faa6120450481dccc94af3700313c389494e8adacc02ab1d655592dac08e97e6828452140b901548af58f857e3290650c3318c86f9e63d3c5a8ae90fc5
AUX postgresql-10.0-icu68.patch 606 BLAKE2B ebe222879ddd0e97da8762ad85994beced0d706d2db140db9b3e588951f485763f698d70a8ff4e4bbfe1d66f8762bf3d329bc97aaa70bf5b36f0e2e72e53a508 SHA512 1c3c994c79155845d6b3d1a92df002d4127fc576eb837f892aef0ba2e0b914d107c35656f9e5946084892693054cb935e85eb5902be2296fd04c7cf958ba98ea
AUX postgresql-10.2-no-server.patch 3117 BLAKE2B 399e295e393aa84aeaefbe236bf63e091414c9f3d9238ef8f4af3ec955cc0ded6324f4241ee4e78ee1aa775524768f65b15d5064cf4330f5b3149bed2e13aad3 SHA512 1888985a0fa67241b18d3c21c1ededc34666c55f6f4f3806efbe4dcb5a2e30d6d08c955a3bbcc52f589bc5bb857d1c09bd82b555069637a71afe9062994199fd
AUX postgresql-11_beta1-no-server.patch 3080 BLAKE2B 29d4f5d8e26e9360490876d2d51cb29cc340128fe77c0bd76248073157c9e5be09c788cc4344e09c0c2bf2f57e274d5f31f211d1950ee3f47660dfdc4cb7b455 SHA512 42c39e602a019d1d44c39795904fb37a7f14b4623fa90b066f4f26a743d80b6eeaef2e8c7de4c47dddf53d7e89cbe5a2a3473b456ddc76fc0e96f57ff6a9df69
@@ -22,16 +23,16 @@ DIST postgresql-13.6.tar.bz2 21257213 BLAKE2B f5ea95fd9ffc8846e0aaf5bac03b02afa7
DIST postgresql-14.1.tar.bz2 21887101 BLAKE2B a496dfd513c52339d1b3cb72773f9611721fd7c5d2a702d6fd71f650a1d41c3d7bf6574eba23671c7f9f11718e007f51f9547949bdc3d7fe1ea2248ebfb8d70b SHA512 4a0bec157d5464bb9e5f5c0eb0efdede55526e03f6f4d660b87d161a47705eb152fa0878960b1581bce42a5ed28a1f457825ea54e8d22e34b5b8eb36473ceefd
DIST postgresql-14.2.tar.bz2 21964841 BLAKE2B 6460533a40064404f18642147b949cf7c85d036c45ede478fb9af8919895ee7b09dc78b89ed08a292226911f07cfc9e46d7f2d42e0aaea546c5e97a291d599b9 SHA512 19aeb6528605dbcf5df84048b2eed8f54b202576134d3fe3900bb8f073179c4258d2581acd745887e7e6fa86ebdb5f7b159ffaa0a645d601efee7c5f7730456b
DIST postgresql-9.6.24.tar.bz2 19047518 BLAKE2B 63b53cfb2c9381fe09ed76ef3cad1ec5014bcd3b4dea388cda5b4ad8b8084abc15a38dcd62e0c3fe0bcc922749e7a4bef4ec39287c4b1ea952b8245bbc72bc2e SHA512 c17ef8e7149bd136f6058e20b28f9a7307625614e37ff837feb7a6fa37b6932dfab6379285120c9bb0198961eb446c9979d5ee1f3e8583b09f981f52bee33505
-EBUILD postgresql-10.19.ebuild 13406 BLAKE2B 8b13ef233f11306debff7e81c00a1e222cf98a817dbfad8b06bcaf1c85b0d7c50b0f1089aa8057f58c69cc4444aaf7f5f6a7bca8ae903305aa871b172176d1b6 SHA512 1f2751c8e56ecceb98eebdcd47d93d6a4359a0302cbe346557deb610f6ac96b4744fd878bd37ab49f893ebd55c0eba2ea646209f4498fb7ea3d6ae717d0a33be
-EBUILD postgresql-10.20.ebuild 13414 BLAKE2B 1359953281cdabefa0b62dab1977771a0b1b6ec3b66428ae3d45ffab4c68c538de931c6c79f669c016ebd8c4ce540752aee54d195c918556dac8fdb3128f4997 SHA512 bfa7410311d6ec57f2d0c2af84034e45d339843c4e008d8ab972347c7ba4ca98fcab1116ad1a5877986269fb4de373043f265a77a8bb51e31e7c20f7bada5a99
-EBUILD postgresql-11.14.ebuild 13388 BLAKE2B c48815de53abe5328a03c1d427fb63b1f4b48d15defcd7e10b86b2e55247839d2e6f8a27ec6fc73eda4701240d950c14d8896f031139725776356a72af3a9791 SHA512 dd7210480b744b38e66329057b55a4051921d0603a859c6cfb251285e35cf038f08944e033eb3ef741448c2bfd3e6916df69547b04ae35d5e8fada11a98b1b86
-EBUILD postgresql-11.15.ebuild 13396 BLAKE2B ee8e0c4ae7aff0ffb7ba1d307c723136921e401dd22541cf70da85a0dd2fdcbd7e187bbe33b08a81ca9a6649eb68291c6356f70d6d9ee68a8c22015c26ba4770 SHA512 8d4db523440b61897923b761e72df70b21e69b11d119d13859c3f2c64bd7441ffd7741134227f45905c30eb3eaa3c6d8822bb572fbf645fa21506c4990799ff3
-EBUILD postgresql-12.10.ebuild 13368 BLAKE2B e8cbcad7b27990e0368e5091aeea8486865e98413222522aa72cd657259c0afc44eadd98a9f2e4e41be4b0d7899fd09a1731acfb3f4c5803818c7d3a4564ffd5 SHA512 c8a07b12e39b0a0a220dfc8e3ec808073be54ef3b0be299acd8353316ba88e827c640779c0a66973057c7d88f5d9ad811480bfb7f33d589d1c934f59580b4c43
-EBUILD postgresql-12.9.ebuild 13360 BLAKE2B 995ab8160f9efd010777423d968e36482458f206e810900f2621724cefb8db1cbd9bab7a89aa68b79d23be163cab4f1a11dbbc982f804c2ac12a1f1dce464f0e SHA512 f486c23e4e34b1de2a768f3b9745982003a8b84c4d0f2e19dd9cb3d48c70144b435315e787c8e77c80da8c1e17ccb9a9d4da09f7cd0a36e81e7892b21e08664e
-EBUILD postgresql-13.5.ebuild 13798 BLAKE2B f8b94f053f91d1fda023233f0b1f302af553448b3f5543a7020f9f7f05e072914d25667c6ca5903601e06d98b0ca9586c14ba275d531b4d8c9b5638ef9b15e41 SHA512 9b8fd5caadfab9e0a15733e782b3d4ab3852e446e9ea6c28aa50adac14a6f716630cf101e0ad15fb4983a91ddeec02df0b025b92e0070be0d51a2af8d728499f
-EBUILD postgresql-13.6.ebuild 13806 BLAKE2B ca2671a77d6b1fcade98d12fe277101d85739d4251a38fe71450908b3875a036b136d838170585a5ee5435900bfe601d5ff1622447ef89f1ff1cc215507e47d9 SHA512 c56bda1468d427bec5745405016a4bebff76e2d9c7eb0d31ee36228a418739144f1ffb337d76974f5e1973d13c8164073eef9d2d363edc4984580685f2cbabc7
-EBUILD postgresql-14.1.ebuild 13794 BLAKE2B 3a99312b8f728e49f10bfe8d174fd6e8a8e7bee887fa51b7a9235253503ed331f8599046af1d479f2c8a497fc54ef71c74e0dfddffebe79b1980fea0d8f09626 SHA512 8811c1715f245ca8eec52e2e837a49cb40dafb760e5203d9008db8bd50e2f23bacdcaa3c901e58d4a7998eeccd9145b91d4f41285952abb14c24c3eee0d53823
-EBUILD postgresql-14.2.ebuild 13794 BLAKE2B 3a99312b8f728e49f10bfe8d174fd6e8a8e7bee887fa51b7a9235253503ed331f8599046af1d479f2c8a497fc54ef71c74e0dfddffebe79b1980fea0d8f09626 SHA512 8811c1715f245ca8eec52e2e837a49cb40dafb760e5203d9008db8bd50e2f23bacdcaa3c901e58d4a7998eeccd9145b91d4f41285952abb14c24c3eee0d53823
-EBUILD postgresql-9.6.24.ebuild 14326 BLAKE2B 946d0c681c44ec7b13a2d7dc63cf7e8f29bf41e4419863d2f85a86c7f6e747177550abfede7618c49a7d25b40a298f8901429e303c7eea9f774aec964ec012ea SHA512 a52d6bda4f8670d9024afb6c78daf9413f28b90cd4d9fbf81018ca7807f211b372da29465a72051cdc15a1e44e0946d2ee93c2fa347a04a26667a5015eb31de1
-EBUILD postgresql-9999.ebuild 14100 BLAKE2B b6ad36c1fa6e89db3876719b0950f77ffbd63cb36a3289285cac7661dfc6126ee49f83699aebc0b087262abf3d1f37eb84ab79c5e72a4dee18c4c4e09218a7e2 SHA512 4cb7274fc8cec788146ca4b164dd3c32647fd069c6ce85100c3279ec34ddf37229a6254b92804cb57d7c766d7b15a4c35b5a390260a57808a2f395184d858228
+EBUILD postgresql-10.19-r1.ebuild 13408 BLAKE2B 242cefd43604dfa557e83172783731f608a350467b1e546a935d1507acb54a2a714bc67175ce5846f82577516b07f4f74de59ae59481363c6c8cf40cb090e5e3 SHA512 2f02d8194f9a1eb51a69e6b8bf1f5b6bf461ce7b77dd983d13d2ccda3c10c1daab2a24c6472c7bd367548eeef53b5ce2dbcb77cfc3a00104787d426c140dbc09
+EBUILD postgresql-10.20-r1.ebuild 13416 BLAKE2B d70e618b0bc07941ff8dd794a64c3cf94798f470c24b0222f505e5c36188ccf51477e1c9a35e71dd753250a7f5fe744297a017289006bcffe2b38ddd3c744179 SHA512 aa03b4ac07f61e75b71ea664546f0a6011d6afe93e6e487c36a634156441422465f6e2680587f8ff3bde2fba04f071c60ab35502099a8657e942a5b24f76754c
+EBUILD postgresql-11.14-r1.ebuild 13449 BLAKE2B f077ebe227322eb51ed8a1a24c2fd4e22662eb277acbec3d536b87f8d1baa09fd728d5a790106b1a1acc25ec0e2605d5d3d6111d4bb69c956d6c972caaafc71e SHA512 2f31ca8f2a23c9a98dc43d6af8314105f761293d78cb9efdb59579e02abc20403cac0e06bca1d25c3fb6e09811dbe1b3774ccd4a8bb2a6ebe505bc45e105d972
+EBUILD postgresql-11.15-r1.ebuild 13457 BLAKE2B dee96904f9cdcbd4ba3bdfde139235901e42d8152c9d3450706a8bfbb65d612da6df97e68a441c65e0a156f2ded4f59ed19d084941683fcb64b46a05310fc9d8 SHA512 35a5a7ce237ffddd3d3267f78c4f89307a8c959d2d4f541d9dc5776554c16fab540d32fee34b67215300f02cc0d3a02e06ad8f818a841e0ec0778c2d84bbef28
+EBUILD postgresql-12.10-r1.ebuild 13475 BLAKE2B 26e617cf110875369197783e7a74c59658af39c946ef571c7094f24445fc4ab932e4fdb7415d15c021fe278ea72b982f4e27343807e5335e9aa56022dd4c26a4 SHA512 b29a8e68e286fada99424285e5094ade01b91affbafe80fa4f4f5f437d9ca739535e1ba05acb4efd2ae0027f991e5eb98e6ae52dd25681699dec000c69220ec2
+EBUILD postgresql-12.9-r1.ebuild 13467 BLAKE2B e49ff0c7521e57f25675f92d7a23605686bce7e1dd15220bde2b4a79e3f21e4dc1c372578b92f768f5b7458a0d7436e35f83a2fd70900fa418e99e64b945879e SHA512 0e60c3f3b3d2b9fbfeba5d77361c57cc5014f204939d2549b23c539cb9b3cf8af4865e51796432ea913f521939528955a3fb1dc2044bc91a30c98e617eaf50ff
+EBUILD postgresql-13.5-r1.ebuild 13905 BLAKE2B 6ec1336e5279a881cbd8426158ab60ddca6b75db0cf4f86c09d25bc69650c4dbb8ddf10ccb45d6469b0b8c779c5c76d7479509dc64685cf69f71a54cbde26166 SHA512 7cfe12c09ba8d19160e3ea010b0167803b754d74a04e5d50484c5df30d581c46bda04db4a2fc8c2230ea918d8954a3f29a3413b6a9d75da18b100ce7b4758249
+EBUILD postgresql-13.6-r2.ebuild 13913 BLAKE2B ec5aeab2c539b6387e8ef60568d2b0159401453b08956c6bf935de50e6a45f7a7e46f2778a82ec4c79ff76863596536d6cbdbf3530521e5a1207f122bd44dd8c SHA512 bf1c154aadae65943ad6e76111674498fc449ca80a9c7b940fbb83dd0e753e49976b2d9e66e7bb2f879030b403d1932b27261fff4839d77d6e4f20e478640b5c
+EBUILD postgresql-14.1-r1.ebuild 13901 BLAKE2B 20cbadf06f628a0003aab687e0ca53966763f11dd84dac386d54daabbfa398075cdfdae267a46144ff30c6cc022dfcb81403da8cf9d08638e35f622dec2565b0 SHA512 ac64ca0e454a5276e19d337495aff2f38b3e6308994db8cd004ac209ea70179eab81553fda8f1e3c9c5dff5e1b7f4d444a460d58a2490ee345fa06c96ed614a6
+EBUILD postgresql-14.2-r1.ebuild 13854 BLAKE2B aff48fafb0a5728a70dffbee12f80dc5f2dcf2ceda30af05b1cb409a434e491c66dfe970b26899c377ff362994903c58020c31444ef31ff7478c9a688991bb09 SHA512 63953e91dae73e3675dd65e2c0665ef3822f73a365e759de18e5241418b659e3802d201c5620f51e139171b8cc981454d95dfcfbf108f956e197335a33584d00
+EBUILD postgresql-9.6.24-r1.ebuild 14328 BLAKE2B 9e2d97a2caee5f87d4fafebbc6903d6e48195e7a06f7e6ecbef7612e7113a29b431d04d087bf3543af7a468255926fd1d3f10df08bf8789cff07f9931185189e SHA512 9d361a663d1905314eaac7321b91dbb89b47c02610795ffeaea2ab056063d660e30531f90d14714357487e1561c9aced8d71082325e2398e7c87fd6e7c683d31
+EBUILD postgresql-9999.ebuild 14102 BLAKE2B 821a52a05174b6b4d9c539d01563a45a0edded846b1533b5cc87ccfd45fcfd56bf2e77c49ec8ee1f5cf79d7174f0aaade405591e70aa5d7d81c068fc33fee923 SHA512 e1d8c3ce0347b9db2ba4aeec48cf08d99e522eb5663ae0b84b510baf07be4a06c83a9b6c951952a949a7c3984e373048db0f518ce234117d54ce773fc735ccb2
MISC metadata.xml 716 BLAKE2B c881b294d82137c80ddfde58ef50074a2e2b92e6883e6ebc5d8c71a366e8cbb0568756b2044fc411dd18e89da0e5625df80b876820e0abeaccc24d26880d5145 SHA512 dd045716ced95dbac8763aea347125d27bdb230eeb64bfc932f94110eda2ad42aa892e9cb19595c0d2f4a593d2629d9709a7aea792ac16661a2c210158368ba3
diff --git a/dev-db/postgresql/files/postgres-llvm14.patch b/dev-db/postgresql/files/postgres-llvm14.patch
new file mode 100644
index 000000000000..2c7b91d75153
--- /dev/null
+++ b/dev-db/postgresql/files/postgres-llvm14.patch
@@ -0,0 +1,154 @@
+From d9f7ad54e552262ee0090e88d5abd3e04fcdeac8 Mon Sep 17 00:00:00 2001
+From: Thomas Munro <tmunro@postgresql.org>
+Date: Wed, 16 Mar 2022 11:35:00 +1300
+Subject: [PATCH] Back-patch LLVM 14 API changes.
+
+Since LLVM 14 has stopped changing and is about to be released,
+back-patch the following changes from the master branch:
+
+ e6a7600202105919bffd62b3dfd941f4a94e082b
+ 807fee1a39de6bb8184082012e643951abb9ad1d
+ a56e7b66010f330782243de9e25ac2a6596be0e1
+
+Back-patch to 11, where LLVM JIT support came in.
+---
+ src/backend/jit/llvm/Makefile | 6 +++++
+ src/backend/jit/llvm/llvmjit_error.cpp | 35 +++++++++++++++++++++----
+ src/backend/jit/llvm/llvmjit_inline.cpp | 12 ++++++++-
+ 3 files changed, 47 insertions(+), 6 deletions(-)
+
+diff --git a/src/backend/jit/llvm/Makefile b/src/backend/jit/llvm/Makefile
+index 0268bd46d5..2da122a391 100644
+--- a/src/backend/jit/llvm/Makefile
++++ b/src/backend/jit/llvm/Makefile
+@@ -22,6 +22,12 @@ endif
+ PGFILEDESC = "llvmjit - JIT using LLVM"
+ NAME = llvmjit
+
++# LLVM 14 produces deprecation warnings. We'll need to make some changes
++# before the relevant functions are removed, but for now silence the warnings.
++ifeq ($(GCC), yes)
++LLVM_CFLAGS += -Wno-deprecated-declarations
++endif
++
+ # All files in this directory use LLVM.
+ CFLAGS += $(LLVM_CFLAGS)
+ CXXFLAGS += $(LLVM_CXXFLAGS)
+diff --git a/src/backend/jit/llvm/llvmjit_error.cpp b/src/backend/jit/llvm/llvmjit_error.cpp
+index f4720732a3..5ad92f3090 100644
+--- a/src/backend/jit/llvm/llvmjit_error.cpp
++++ b/src/backend/jit/llvm/llvmjit_error.cpp
+@@ -23,15 +23,22 @@ extern "C"
+
+ #include "jit/llvmjit.h"
+
++#include <new>
+
+ static int fatal_new_handler_depth = 0;
+ static std::new_handler old_new_handler = NULL;
+
+ static void fatal_system_new_handler(void);
+ #if LLVM_VERSION_MAJOR > 4
++static void fatal_llvm_new_handler(void *user_data, const char *reason, bool gen_crash_diag);
++#if LLVM_VERSION_MAJOR < 14
+ static void fatal_llvm_new_handler(void *user_data, const std::string& reason, bool gen_crash_diag);
+ #endif
++#endif
++static void fatal_llvm_error_handler(void *user_data, const char *reason, bool gen_crash_diag);
++#if LLVM_VERSION_MAJOR < 14
+ static void fatal_llvm_error_handler(void *user_data, const std::string& reason, bool gen_crash_diag);
++#endif
+
+
+ /*
+@@ -129,23 +136,41 @@ fatal_system_new_handler(void)
+ #if LLVM_VERSION_MAJOR > 4
+ static void
+ fatal_llvm_new_handler(void *user_data,
+- const std::string& reason,
++ const char *reason,
+ bool gen_crash_diag)
+ {
+ ereport(FATAL,
+ (errcode(ERRCODE_OUT_OF_MEMORY),
+ errmsg("out of memory"),
+- errdetail("While in LLVM: %s", reason.c_str())));
++ errdetail("While in LLVM: %s", reason)));
++}
++#if LLVM_VERSION_MAJOR < 14
++static void
++fatal_llvm_new_handler(void *user_data,
++ const std::string& reason,
++ bool gen_crash_diag)
++{
++ fatal_llvm_new_handler(user_data, reason.c_str(), gen_crash_diag);
+ }
+ #endif
++#endif
+
+ static void
+ fatal_llvm_error_handler(void *user_data,
+- const std::string& reason,
++ const char *reason,
+ bool gen_crash_diag)
+ {
+ ereport(FATAL,
+ (errcode(ERRCODE_OUT_OF_MEMORY),
+- errmsg("fatal llvm error: %s",
+- reason.c_str())));
++ errmsg("fatal llvm error: %s", reason)));
+ }
++
++#if LLVM_VERSION_MAJOR < 14
++static void
++fatal_llvm_error_handler(void *user_data,
++ const std::string& reason,
++ bool gen_crash_diag)
++{
++ fatal_llvm_error_handler(user_data, reason.c_str(), gen_crash_diag);
++}
++#endif
+diff --git a/src/backend/jit/llvm/llvmjit_inline.cpp b/src/backend/jit/llvm/llvmjit_inline.cpp
+index 6f03595db5..9bb4b672a7 100644
+--- a/src/backend/jit/llvm/llvmjit_inline.cpp
++++ b/src/backend/jit/llvm/llvmjit_inline.cpp
+@@ -594,7 +594,11 @@ function_inlinable(llvm::Function &F,
+ if (F.materialize())
+ elog(FATAL, "failed to materialize metadata");
+
+- if (F.getAttributes().hasFnAttribute(llvm::Attribute::NoInline))
++#if LLVM_VERSION_MAJOR < 14
++#define hasFnAttr hasFnAttribute
++#endif
++
++ if (F.getAttributes().hasFnAttr(llvm::Attribute::NoInline))
+ {
+ ilog(DEBUG1, "ineligibile to import %s due to noinline",
+ F.getName().data());
+@@ -871,7 +875,9 @@ create_redirection_function(std::unique_ptr<llvm::Module> &importMod,
+ llvm::Function *AF;
+ llvm::BasicBlock *BB;
+ llvm::CallInst *fwdcall;
++#if LLVM_VERSION_MAJOR < 14
+ llvm::Attribute inlineAttribute;
++#endif
+
+ AF = llvm::Function::Create(F->getFunctionType(),
+ LinkageTypes::AvailableExternallyLinkage,
+@@ -880,9 +886,13 @@ create_redirection_function(std::unique_ptr<llvm::Module> &importMod,
+
+ Builder.SetInsertPoint(BB);
+ fwdcall = Builder.CreateCall(F, &*AF->arg_begin());
++#if LLVM_VERSION_MAJOR < 14
+ inlineAttribute = llvm::Attribute::get(Context,
+ llvm::Attribute::AlwaysInline);
+ fwdcall->addAttribute(~0U, inlineAttribute);
++#else
++ fwdcall->addFnAttr(llvm::Attribute::AlwaysInline);
++#endif
+ Builder.CreateRet(fwdcall);
+
+ return AF;
+--
+2.30.2
+
diff --git a/dev-db/postgresql/postgresql-10.19.ebuild b/dev-db/postgresql/postgresql-10.19-r1.ebuild
index df3f68c9aec9..2451592a1f77 100644
--- a/dev-db/postgresql/postgresql-10.19.ebuild
+++ b/dev-db/postgresql/postgresql-10.19-r1.ebuild
@@ -35,7 +35,7 @@ virtual/libcrypt:=
virtual/libintl
icu? ( dev-libs/icu:= )
kerberos? ( virtual/krb5 )
-ldap? ( net-nds/openldap )
+ldap? ( net-nds/openldap:= )
pam? ( sys-libs/pam )
perl? ( >=dev-lang/perl-5.8:= )
python? ( ${PYTHON_DEPS} )
diff --git a/dev-db/postgresql/postgresql-10.20.ebuild b/dev-db/postgresql/postgresql-10.20-r1.ebuild
index ebb0a2ed17f5..93f17aa04271 100644
--- a/dev-db/postgresql/postgresql-10.20.ebuild
+++ b/dev-db/postgresql/postgresql-10.20-r1.ebuild
@@ -35,7 +35,7 @@ virtual/libcrypt:=
virtual/libintl
icu? ( dev-libs/icu:= )
kerberos? ( virtual/krb5 )
-ldap? ( net-nds/openldap )
+ldap? ( net-nds/openldap:= )
pam? ( sys-libs/pam )
perl? ( >=dev-lang/perl-5.8:= )
python? ( ${PYTHON_DEPS} )
diff --git a/dev-db/postgresql/postgresql-11.14.ebuild b/dev-db/postgresql/postgresql-11.14-r1.ebuild
index 0614243cb8c4..8ec21798e0ae 100644
--- a/dev-db/postgresql/postgresql-11.14.ebuild
+++ b/dev-db/postgresql/postgresql-11.14-r1.ebuild
@@ -4,8 +4,9 @@
EAPI=7
PYTHON_COMPAT=( python3_{8,9,10} )
+LLVM_MAX_SLOT=13
-inherit flag-o-matic linux-info multilib pam prefix python-single-r1 systemd tmpfiles
+inherit flag-o-matic linux-info llvm multilib pam prefix python-single-r1 systemd tmpfiles
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
@@ -34,10 +35,10 @@ sys-apps/less
virtual/libintl
icu? ( dev-libs/icu:= )
kerberos? ( virtual/krb5 )
-ldap? ( net-nds/openldap )
+ldap? ( net-nds/openldap:= )
llvm? (
- sys-devel/llvm:=
- sys-devel/clang:=
+ <sys-devel/llvm-14:=
+ <sys-devel/clang-14:=
)
pam? ( sys-libs/pam )
perl? ( >=dev-lang/perl-5.8:= )
@@ -83,6 +84,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-11.15.ebuild b/dev-db/postgresql/postgresql-11.15-r1.ebuild
index bc66c22563cc..4be0a8926b5d 100644
--- a/dev-db/postgresql/postgresql-11.15.ebuild
+++ b/dev-db/postgresql/postgresql-11.15-r1.ebuild
@@ -4,8 +4,9 @@
EAPI=7
PYTHON_COMPAT=( python3_{8,9,10} )
+LLVM_MAX_SLOT=13
-inherit flag-o-matic linux-info multilib pam prefix python-single-r1 systemd tmpfiles
+inherit flag-o-matic linux-info llvm multilib pam prefix python-single-r1 systemd tmpfiles
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
@@ -34,10 +35,10 @@ sys-apps/less
virtual/libintl
icu? ( dev-libs/icu:= )
kerberos? ( virtual/krb5 )
-ldap? ( net-nds/openldap )
+ldap? ( net-nds/openldap:= )
llvm? (
- sys-devel/llvm:=
- sys-devel/clang:=
+ <sys-devel/llvm-14:=
+ <sys-devel/clang-14:=
)
pam? ( sys-libs/pam )
perl? ( >=dev-lang/perl-5.8:= )
@@ -83,6 +84,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-12.10.ebuild b/dev-db/postgresql/postgresql-12.10-r1.ebuild
index 852f5715923c..3c97b24fd2a4 100644
--- a/dev-db/postgresql/postgresql-12.10.ebuild
+++ b/dev-db/postgresql/postgresql-12.10-r1.ebuild
@@ -4,8 +4,9 @@
EAPI=7
PYTHON_COMPAT=( python3_{8,9,10} )
+LLVM_MAX_SLOT=14
-inherit flag-o-matic linux-info multilib pam prefix python-single-r1 systemd tmpfiles
+inherit flag-o-matic linux-info llvm multilib pam prefix python-single-r1 systemd tmpfiles
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
@@ -34,10 +35,10 @@ sys-apps/less
virtual/libintl
icu? ( dev-libs/icu:= )
kerberos? ( virtual/krb5 )
-ldap? ( net-nds/openldap )
+ldap? ( net-nds/openldap:= )
llvm? (
- sys-devel/llvm:=
- sys-devel/clang:=
+ <sys-devel/llvm-15:=
+ <sys-devel/clang-15:=
)
pam? ( sys-libs/pam )
perl? ( >=dev-lang/perl-5.8:= )
@@ -83,6 +84,8 @@ selinux? ( sec-policy/selinux-postgresql )
"
pkg_setup() {
+ llvm_pkg_setup
+
use server && CONFIG_CHECK="~SYSVIPC" linux-info_pkg_setup
use python && python-single-r1_pkg_setup
@@ -99,6 +102,7 @@ src_prepare() {
sed 's/@install_bin@/install -c/' -i src/Makefile.global.in || die
use server || eapply "${FILESDIR}/${PN}-12.1-no-server.patch"
+ use server && eapply "${FILESDIR}/postgres-llvm14.patch"
if use pam ; then
sed "s/\(#define PGSQL_PAM_SERVICE \"postgresql\)/\1-${SLOT}/" \
diff --git a/dev-db/postgresql/postgresql-12.9.ebuild b/dev-db/postgresql/postgresql-12.9-r1.ebuild
index f3837a3f0404..b7d45b34ed5f 100644
--- a/dev-db/postgresql/postgresql-12.9.ebuild
+++ b/dev-db/postgresql/postgresql-12.9-r1.ebuild
@@ -4,8 +4,9 @@
EAPI=7
PYTHON_COMPAT=( python3_{8,9,10} )
+LLVM_MAX_SLOT=14
-inherit flag-o-matic linux-info multilib pam prefix python-single-r1 systemd tmpfiles
+inherit flag-o-matic linux-info llvm multilib pam prefix python-single-r1 systemd tmpfiles
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
@@ -34,10 +35,10 @@ sys-apps/less
virtual/libintl
icu? ( dev-libs/icu:= )
kerberos? ( virtual/krb5 )
-ldap? ( net-nds/openldap )
+ldap? ( net-nds/openldap:= )
llvm? (
- sys-devel/llvm:=
- sys-devel/clang:=
+ <sys-devel/llvm-15:=
+ <sys-devel/clang-15:=
)
pam? ( sys-libs/pam )
perl? ( >=dev-lang/perl-5.8:= )
@@ -83,6 +84,8 @@ selinux? ( sec-policy/selinux-postgresql )
"
pkg_setup() {
+ llvm_pkg_setup
+
use server && CONFIG_CHECK="~SYSVIPC" linux-info_pkg_setup
use python && python-single-r1_pkg_setup
@@ -99,6 +102,7 @@ src_prepare() {
sed 's/@install_bin@/install -c/' -i src/Makefile.global.in || die
use server || eapply "${FILESDIR}/${PN}-12.1-no-server.patch"
+ use server && eapply "${FILESDIR}/postgres-llvm14.patch"
if use pam ; then
sed "s/\(#define PGSQL_PAM_SERVICE \"postgresql\)/\1-${SLOT}/" \
diff --git a/dev-db/postgresql/postgresql-13.5.ebuild b/dev-db/postgresql/postgresql-13.5-r1.ebuild
index 5f6ce9b239e3..d204a6930de0 100644
--- a/dev-db/postgresql/postgresql-13.5.ebuild
+++ b/dev-db/postgresql/postgresql-13.5-r1.ebuild
@@ -4,8 +4,9 @@
EAPI=7
PYTHON_COMPAT=( python3_{8,9,10} )
+LLVM_MAX_SLOT=14
-inherit flag-o-matic linux-info multilib pam prefix python-single-r1 systemd tmpfiles
+inherit flag-o-matic linux-info llvm multilib pam prefix 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"
@@ -34,10 +35,10 @@ sys-apps/less
virtual/libintl
icu? ( dev-libs/icu:= )
kerberos? ( virtual/krb5 )
-ldap? ( net-nds/openldap )
+ldap? ( net-nds/openldap:= )
llvm? (
- sys-devel/llvm:=
- sys-devel/clang:=
+ <sys-devel/llvm-15:=
+ <sys-devel/clang-15:=
)
pam? ( sys-libs/pam )
perl? ( >=dev-lang/perl-5.8:= )
@@ -83,6 +84,8 @@ selinux? ( sec-policy/selinux-postgresql )
"
pkg_setup() {
+ llvm_pkg_setup
+
use server && CONFIG_CHECK="~SYSVIPC" linux-info_pkg_setup
use python && python-single-r1_pkg_setup
@@ -101,6 +104,7 @@ src_prepare() {
sed 's/@install_bin@/install -c/' -i src/Makefile.global.in || die
use server || eapply "${FILESDIR}/${PN}-13_beta1-no-server.patch"
+ use server && eapply "${FILESDIR}/postgres-llvm14.patch"
if use pam ; then
sed "s/\(#define PGSQL_PAM_SERVICE \"postgresql\)/\1-${SLOT}/" \
diff --git a/dev-db/postgresql/postgresql-13.6.ebuild b/dev-db/postgresql/postgresql-13.6-r2.ebuild
index 213350b0e72e..7c89241ebf32 100644
--- a/dev-db/postgresql/postgresql-13.6.ebuild
+++ b/dev-db/postgresql/postgresql-13.6-r2.ebuild
@@ -4,8 +4,9 @@
EAPI=7
PYTHON_COMPAT=( python3_{8,9,10} )
+LLVM_MAX_SLOT=14
-inherit flag-o-matic linux-info multilib pam prefix python-single-r1 systemd tmpfiles
+inherit flag-o-matic linux-info llvm multilib pam prefix 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"
@@ -34,10 +35,10 @@ sys-apps/less
virtual/libintl
icu? ( dev-libs/icu:= )
kerberos? ( virtual/krb5 )
-ldap? ( net-nds/openldap )
+ldap? ( net-nds/openldap:= )
llvm? (
- sys-devel/llvm:=
- sys-devel/clang:=
+ <sys-devel/llvm-15:=
+ <sys-devel/clang-15:=
)
pam? ( sys-libs/pam )
perl? ( >=dev-lang/perl-5.8:= )
@@ -83,6 +84,8 @@ selinux? ( sec-policy/selinux-postgresql )
"
pkg_setup() {
+ llvm_pkg_setup
+
use server && CONFIG_CHECK="~SYSVIPC" linux-info_pkg_setup
use python && python-single-r1_pkg_setup
@@ -101,6 +104,7 @@ src_prepare() {
sed 's/@install_bin@/install -c/' -i src/Makefile.global.in || die
use server || eapply "${FILESDIR}/${PN}-13_beta1-no-server.patch"
+ use server && eapply "${FILESDIR}/postgres-llvm14.patch"
if use pam ; then
sed "s/\(#define PGSQL_PAM_SERVICE \"postgresql\)/\1-${SLOT}/" \
diff --git a/dev-db/postgresql/postgresql-14.1.ebuild b/dev-db/postgresql/postgresql-14.1-r1.ebuild
index 5dff65601bf4..db0770f6cb90 100644
--- a/dev-db/postgresql/postgresql-14.1.ebuild
+++ b/dev-db/postgresql/postgresql-14.1-r1.ebuild
@@ -4,8 +4,9 @@
EAPI=7
PYTHON_COMPAT=( python3_{8,9,10} )
+LLVM_MAX_SLOT=14
-inherit flag-o-matic linux-info multilib pam prefix python-single-r1 systemd tmpfiles
+inherit flag-o-matic linux-info llvm multilib pam prefix 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"
@@ -34,10 +35,10 @@ sys-apps/less
virtual/libintl
icu? ( dev-libs/icu:= )
kerberos? ( virtual/krb5 )
-ldap? ( net-nds/openldap )
+ldap? ( net-nds/openldap:= )
llvm? (
- sys-devel/llvm:=
- sys-devel/clang:=
+ <sys-devel/llvm-15:=
+ <sys-devel/clang-15:=
)
lz4? ( app-arch/lz4 )
pam? ( sys-libs/pam )
@@ -84,6 +85,8 @@ selinux? ( sec-policy/selinux-postgresql )
"
pkg_setup() {
+ llvm_pkg_setup
+
use server && CONFIG_CHECK="~SYSVIPC" linux-info_pkg_setup
use python && python-single-r1_pkg_setup
@@ -100,6 +103,7 @@ src_prepare() {
sed 's/@install_bin@/install -c/' -i src/Makefile.global.in || die
use server || eapply "${FILESDIR}/${PN}-14_rc1-no-server.patch"
+ use server && eapply "${FILESDIR}/postgres-llvm14.patch"
if use pam ; then
sed "s/\(#define PGSQL_PAM_SERVICE \"postgresql\)/\1-${SLOT}/" \
diff --git a/dev-db/postgresql/postgresql-14.2.ebuild b/dev-db/postgresql/postgresql-14.2-r1.ebuild
index 5dff65601bf4..5d0ca44d23aa 100644
--- a/dev-db/postgresql/postgresql-14.2.ebuild
+++ b/dev-db/postgresql/postgresql-14.2-r1.ebuild
@@ -34,7 +34,7 @@ sys-apps/less
virtual/libintl
icu? ( dev-libs/icu:= )
kerberos? ( virtual/krb5 )
-ldap? ( net-nds/openldap )
+ldap? ( net-nds/openldap:= )
llvm? (
sys-devel/llvm:=
sys-devel/clang:=
@@ -100,6 +100,7 @@ src_prepare() {
sed 's/@install_bin@/install -c/' -i src/Makefile.global.in || die
use server || eapply "${FILESDIR}/${PN}-14_rc1-no-server.patch"
+ use server && eapply "${FILESDIR}/postgres-llvm14.patch"
if use pam ; then
sed "s/\(#define PGSQL_PAM_SERVICE \"postgresql\)/\1-${SLOT}/" \
diff --git a/dev-db/postgresql/postgresql-9.6.24.ebuild b/dev-db/postgresql/postgresql-9.6.24-r1.ebuild
index 8310ab4b524f..bd5c27b6bf08 100644
--- a/dev-db/postgresql/postgresql-9.6.24.ebuild
+++ b/dev-db/postgresql/postgresql-9.6.24-r1.ebuild
@@ -34,7 +34,7 @@ sys-apps/less
virtual/libcrypt:=
virtual/libintl
kerberos? ( virtual/krb5 )
-ldap? ( net-nds/openldap )
+ldap? ( net-nds/openldap:= )
pam? ( sys-libs/pam )
perl? ( >=dev-lang/perl-5.8:= )
python? ( ${PYTHON_DEPS} )
diff --git a/dev-db/postgresql/postgresql-9999.ebuild b/dev-db/postgresql/postgresql-9999.ebuild
index f290a4330a72..cce0a2f8499a 100644
--- a/dev-db/postgresql/postgresql-9999.ebuild
+++ b/dev-db/postgresql/postgresql-9999.ebuild
@@ -32,7 +32,7 @@ sys-apps/less
virtual/libintl
icu? ( dev-libs/icu:= )
kerberos? ( virtual/krb5 )
-ldap? ( net-nds/openldap )
+ldap? ( net-nds/openldap:= )
llvm? (
sys-devel/llvm:=
sys-devel/clang:=