15
0
Files
python-asyncpg/merged-static-fix.patch
Matej Cepl 1854f30287 Accepting request 849971 from home:jayvdb:py-submit
Modern equiv of psycopg2, which is also maintained at d-l-py.  It is a dependency of a very large number of python libraries already present in d-l-py, and many others which should be in d-l-py because they are considered core by most other Linux distros, so I believe this new should also be maintained here.
4.5k stars on GitHub.
Already present in Debian & Ubuntu & co, Arch & Manjaro & co, Gentoo, *ports, nix, Kali
https://repology.org/projects/?search=asyncpg

OBS-URL: https://build.opensuse.org/request/show/849971
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-asyncpg?expand=0&rev=1
2020-11-22 16:16:35 +00:00

35 lines
834 B
Diff

From 76091445db8b49a7d78504b47eb34fcbfbb89567 Mon Sep 17 00:00:00 2001
From: Elvis Pranskevichus <elvis@magic.io>
Date: Fri, 1 May 2020 20:02:39 -0700
Subject: [PATCH] Properly declare uuid_to_str and uuid_to_hex as static
Without `static` the toolchain might get confused and this might lead to
`undefined symbol: uuid_to_hex` errors.
---
tohex.h | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/tohex.h b/tohex.h
index 3d2f5ad..60dd820 100644
--- a/tohex.h
+++ b/tohex.h
@@ -27,7 +27,7 @@
}
-void inline
+static inline void
uuid_to_str(const char *source, char *dest)
{
HEX_PRELUDE
@@ -44,7 +44,8 @@ uuid_to_str(const char *source, char *dest)
HEX_2_BYTES(source + 14, dest + 32)
}
-void inline
+
+static inline void
uuid_to_hex(const char *source, char *dest)
{
HEX_PRELUDE