1 |
commit: f553b896d25848f8924ae58b456ede494f8503e3 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Aug 6 03:37:24 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Aug 6 03:49:29 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f553b896 |
7 |
|
8 |
dev-db/libodbc++: fix build w/ musl 1.2.3 (and possibly libcxx?) |
9 |
|
10 |
Closes: https://bugs.gentoo.org/855887 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
.../files/libodbc++-0.2.3-musl-1.2.3-null.patch | 16 ++++++++++++++++ |
14 |
dev-db/libodbc++/libodbc++-0.2.5-r3.ebuild | 3 ++- |
15 |
2 files changed, 18 insertions(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/dev-db/libodbc++/files/libodbc++-0.2.3-musl-1.2.3-null.patch b/dev-db/libodbc++/files/libodbc++-0.2.3-musl-1.2.3-null.patch |
18 |
new file mode 100644 |
19 |
index 000000000000..f7d5a2e3436f |
20 |
--- /dev/null |
21 |
+++ b/dev-db/libodbc++/files/libodbc++-0.2.3-musl-1.2.3-null.patch |
22 |
@@ -0,0 +1,16 @@ |
23 |
+https://cgit.freebsd.org/ports/tree/databases/libodbc++/files/patch-src-datetime.cpp |
24 |
+https://bugs.gentoo.org/855887 |
25 |
+ |
26 |
+(Given the source, possibly fixes libcxx too?) |
27 |
+--- a/src/datetime.cpp |
28 |
++++ b/src/datetime.cpp |
29 |
+@@ -272,7 +272,7 @@ |
30 |
+ # endif |
31 |
+ #endif |
32 |
+ ,ODBCXX_STRING_CONST("%09d"),nanos_); |
33 |
+- buf[9] = NULL;// Terminate string |
34 |
++ buf[9] = '\0';// Terminate string |
35 |
+ ret+=ODBCXX_STRING(buf); |
36 |
+ } |
37 |
+ return ret; |
38 |
+ |
39 |
|
40 |
diff --git a/dev-db/libodbc++/libodbc++-0.2.5-r3.ebuild b/dev-db/libodbc++/libodbc++-0.2.5-r3.ebuild |
41 |
index 3241509b98af..b3ebd27f321a 100644 |
42 |
--- a/dev-db/libodbc++/libodbc++-0.2.5-r3.ebuild |
43 |
+++ b/dev-db/libodbc++/libodbc++-0.2.5-r3.ebuild |
44 |
@@ -1,4 +1,4 @@ |
45 |
-# Copyright 1999-2021 Gentoo Authors |
46 |
+# Copyright 1999-2022 Gentoo Authors |
47 |
# Distributed under the terms of the GNU General Public License v2 |
48 |
|
49 |
EAPI=8 |
50 |
@@ -27,6 +27,7 @@ PATCHES=( |
51 |
"${FILESDIR}"/${PN}-0.2.3-doxygen.patch |
52 |
"${FILESDIR}"/${PN}-0.2.3-gcc41.patch |
53 |
"${FILESDIR}"/${PN}-0.2.3-gcc44.patch |
54 |
+ "${FILESDIR}"/${PN}-0.2.3-musl-1.2.3-null.patch |
55 |
) |
56 |
|
57 |
src_prepare() { |