1 |
commit: 7a7835a8ef07544cbd633b4c7793c4b1518a505d |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 27 14:48:14 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 27 15:12:38 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a7835a8 |
7 |
|
8 |
app-office/mdbtools: (security) bump to 0.9.2 |
9 |
|
10 |
Includes a patch rather than sed which has been |
11 |
sent upstream. |
12 |
|
13 |
URL: https://github.com/mdbtools/mdbtools/pull/261 |
14 |
Bug: https://bugs.gentoo.org/697568 |
15 |
Bug: https://bugs.gentoo.org/773289 |
16 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
17 |
|
18 |
app-office/mdbtools/Manifest | 1 + |
19 |
.../mdbtools-0.9.2-unixODBC-respect-libdir.patch | 46 ++++++++++++++++ |
20 |
app-office/mdbtools/mdbtools-0.9.2.ebuild | 61 ++++++++++++++++++++++ |
21 |
3 files changed, 108 insertions(+) |
22 |
|
23 |
diff --git a/app-office/mdbtools/Manifest b/app-office/mdbtools/Manifest |
24 |
index d732992432c..b7d1d5408ce 100644 |
25 |
--- a/app-office/mdbtools/Manifest |
26 |
+++ b/app-office/mdbtools/Manifest |
27 |
@@ -1,2 +1,3 @@ |
28 |
DIST mdbtools-0.7.1.tar.gz 277257 BLAKE2B 3740c543b1ea2e898a96dc1a560fd83cf079d37f5d02805891c5902b75a417c9efbf421346902766017113d447b088656afbfd0297b26655aa07fce973adc216 SHA512 bbad415c59a3f54c11bcd04971220b1370046c5dfd7300d1f23e597615a1df6af850c6f767e78033676d486d87a11c72dfdb141abbee8378337c3fda9a450b75 |
29 |
DIST mdbtools-0.9.1.tar.gz 158762 BLAKE2B a730c1ea4efceebb494fc69eac5b94ab23088e0c496684fe027b005492168b6639ec3ebc950e09f643e4a1b50017150caee639255e5e1deb5f9a46c0969077ff SHA512 d8383c20c062a759386e80927337f8ed526914fb53095480dfe791d80fe4cc3e19e83627ca9d34986968b282b16b4c43a6302f76c55d3c2545b6e7b625d47966 |
30 |
+DIST mdbtools-0.9.2.tar.gz 214246 BLAKE2B f62ffae2b084e53f7222ab969aa7f57f65735281383f93aeb025cff38b32b9aa22ffffb819532f816cc45a9156f7136bd9de953b17b86817380123451d51170c SHA512 cb2bddca83eb9867b765f6fc57fb289f91ce4e2e09dd953e338c26f6c4bcfe9ddb53368c4eef6d02927e582c2e10312462b82916c2e956fa269f25a765371d8d |
31 |
|
32 |
diff --git a/app-office/mdbtools/files/mdbtools-0.9.2-unixODBC-respect-libdir.patch b/app-office/mdbtools/files/mdbtools-0.9.2-unixODBC-respect-libdir.patch |
33 |
new file mode 100644 |
34 |
index 00000000000..843ad8cdc15 |
35 |
--- /dev/null |
36 |
+++ b/app-office/mdbtools/files/mdbtools-0.9.2-unixODBC-respect-libdir.patch |
37 |
@@ -0,0 +1,46 @@ |
38 |
+https://github.com/mdbtools/mdbtools/pull/261 |
39 |
+https://bugs.gentoo.org/697568 |
40 |
+ |
41 |
+From 686110d2241f02b3242d02d7c4ded9509aacd0df Mon Sep 17 00:00:00 2001 |
42 |
+From: Sam James <sam@g.o> |
43 |
+Date: Sat, 27 Feb 2021 14:33:23 +0000 |
44 |
+Subject: [PATCH] configure.ac: Respect --libdir for unixODBC |
45 |
+ |
46 |
+When searching for unixODBC, we want to use |
47 |
+the libdir passed in to autotools (--libdir) |
48 |
+to ensure that we find the library |
49 |
+for the correct ABI. |
50 |
+ |
51 |
+It is possible that we pick up the wrong |
52 |
+copy from e.g. /usr/lib/ where a 32-bit |
53 |
+unixODBC copy of the library exists |
54 |
+when we're in the middle of a 64-bit build. |
55 |
+ |
56 |
+Use ${libdir} to ensure we respect |
57 |
+any preferences/information given and |
58 |
+search for ODBC in the right place. |
59 |
+ |
60 |
+Note that this previously affected |
61 |
+us with iODBC but that's since been |
62 |
+resolved by using their |
63 |
+iodbc-config binary. |
64 |
+ |
65 |
+Bug: https://bugs.gentoo.org/697568 |
66 |
+Signed-off-by: Sam James <sam@g.o> |
67 |
+--- |
68 |
+ configure.ac | 2 +- |
69 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
70 |
+ |
71 |
+diff --git a/configure.ac b/configure.ac |
72 |
+index c802843d..7a1f357b 100644 |
73 |
+--- a/configure.ac |
74 |
++++ b/configure.ac |
75 |
+@@ -157,7 +157,7 @@ AC_ARG_WITH(unixodbc, |
76 |
+ if test "$with_unixodbc"; then |
77 |
+ HAVE_ODBC=true |
78 |
+ ODBC_CFLAGS="-I$with_unixodbc/include" |
79 |
+- ODBC_LIBS="-L$with_unixodbc/lib" |
80 |
++ ODBC_LIBS="-L$with_unixodbc/$libdir" |
81 |
+ CFLAGS="$CFLAGS -DUNIXODBC" |
82 |
+ |
83 |
+ dnl SIZEOF_LONG_INT and HAVE_LONG_LONG are required by some versions of unixODBC |
84 |
|
85 |
diff --git a/app-office/mdbtools/mdbtools-0.9.2.ebuild b/app-office/mdbtools/mdbtools-0.9.2.ebuild |
86 |
new file mode 100644 |
87 |
index 00000000000..456255848ac |
88 |
--- /dev/null |
89 |
+++ b/app-office/mdbtools/mdbtools-0.9.2.ebuild |
90 |
@@ -0,0 +1,61 @@ |
91 |
+# Copyright 1999-2021 Gentoo Authors |
92 |
+# Distributed under the terms of the GNU General Public License v2 |
93 |
+ |
94 |
+EAPI=7 |
95 |
+ |
96 |
+inherit autotools |
97 |
+ |
98 |
+DESCRIPTION="Set of libraries and utilities for reading Microsoft Access database (MDB) files" |
99 |
+HOMEPAGE="https://github.com/mdbtools/mdbtools" |
100 |
+SRC_URI="https://github.com/brianb/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
101 |
+ |
102 |
+LICENSE="GPL-2 LGPL-2.1" |
103 |
+SLOT="0/3" |
104 |
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
105 |
+IUSE="glib odbc" |
106 |
+ |
107 |
+BDEPEND=" |
108 |
+ app-text/txt2man |
109 |
+ sys-devel/flex |
110 |
+ virtual/pkgconfig |
111 |
+ virtual/yacc |
112 |
+" |
113 |
+RDEPEND=" |
114 |
+ sys-libs/ncurses:0= |
115 |
+ sys-libs/readline:0= |
116 |
+ odbc? ( >=dev-db/unixODBC-2.0 ) |
117 |
+ glib? ( dev-libs/glib:2 ) |
118 |
+" |
119 |
+DEPEND="${RDEPEND}" |
120 |
+ |
121 |
+DOCS=( AUTHORS HACKING NEWS README.md ) |
122 |
+ |
123 |
+PATCHES=( |
124 |
+ # bug #697568 |
125 |
+ "${FILESDIR}/${PN}-0.9.2-unixODBC-respect-libdir.patch" |
126 |
+) |
127 |
+ |
128 |
+src_prepare() { |
129 |
+ default |
130 |
+ |
131 |
+ # bug #770019 |
132 |
+ sed -i -e 's/-Werror//' configure.ac || die |
133 |
+ |
134 |
+ eautoreconf |
135 |
+} |
136 |
+ |
137 |
+src_configure() { |
138 |
+ local myeconfargs=( |
139 |
+ --disable-static |
140 |
+ $(use_enable glib) |
141 |
+ $(use odbc && echo "--with-unixodbc=${EPREFIX}/usr") |
142 |
+ ) |
143 |
+ |
144 |
+ econf "${myeconfargs[@]}" |
145 |
+} |
146 |
+ |
147 |
+src_install() { |
148 |
+ default |
149 |
+ |
150 |
+ find "${ED}" -name '*.la' -delete || die |
151 |
+} |