Gentoo Archives: gentoo-commits

From: Michael Orlitzky <mjo@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/freetds/
Date: Tue, 19 Feb 2019 03:19:59
Message-Id: 1550545873.4728286729c7eab06a1bea8d7d306531d843772e.mjo@gentoo
1 commit: 4728286729c7eab06a1bea8d7d306531d843772e
2 Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 19 03:11:13 2019 +0000
4 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 19 03:11:13 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47282867
7
8 dev-db/freetds: new version 1.00.558.
9
10 LibreSSL 2.7 now implements some of the OpenSSL-1.1.0 API, which
11 invalidates one of the heuristics in FreeTDS used for LibreSSL
12 compatibility. This new upstream version has an *additional*
13 workaround for the problem, and (with any luck) allows us to
14 build against dev-libs/libressl-2.7 and newer.
15
16 Bug: https://bugs.gentoo.org/621430
17 Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>
18 Package-Manager: Portage-2.3.51, Repoman-2.3.11
19
20 dev-db/freetds/Manifest | 1 +
21 dev-db/freetds/freetds-1.00.558.ebuild | 73 ++++++++++++++++++++++++++++++++++
22 2 files changed, 74 insertions(+)
23
24 diff --git a/dev-db/freetds/Manifest b/dev-db/freetds/Manifest
25 index 76ad01521eb..52a90c06d4a 100644
26 --- a/dev-db/freetds/Manifest
27 +++ b/dev-db/freetds/Manifest
28 @@ -1 +1,2 @@
29 DIST freetds-dev.1.00.341.tar.gz 3002134 BLAKE2B c9396c1f205e13c9f3449bef19830cf3b6c2fa72539555ebd6bc1532c014472c862ba2ac7f495bee8f53d640d628c6b15bb50183585d43cf3dbbea4e314636d2 SHA512 fd691535dfa5c97463ff72056cfa5721557b71e41b6186ffcb08e193e51214cf966a33ee55b8e538a6f035aeeef14ac5b15fe8758f1afea9e1252a3b8951ba58
30 +DIST freetds-dev.1.00.558.tar.gz 3151542 BLAKE2B e7b7eb1d4bad1472a675e7657d524837a27ba18176cf410ebad6dcb949cd59bb50e932526790c816c05cf0ba02fb750a1cfbcda10073e5cbf8908bdc4ceb9cc5 SHA512 763f04ae36be8385f9be955defd2d91698389836e80e19019f0da0ee15515d8b7e3733f7659362a307b492dc83830f0a7f27d2a68cb5b56e2ef171ac1dcfeeca
31
32 diff --git a/dev-db/freetds/freetds-1.00.558.ebuild b/dev-db/freetds/freetds-1.00.558.ebuild
33 new file mode 100644
34 index 00000000000..4672e4e4cd6
35 --- /dev/null
36 +++ b/dev-db/freetds/freetds-1.00.558.ebuild
37 @@ -0,0 +1,73 @@
38 +# Copyright 1999-2019 Gentoo Authors
39 +# Distributed under the terms of the GNU General Public License v2
40 +
41 +EAPI=7
42 +
43 +# This is from the "current" release series, because the "stable" series
44 +# is a little too stable for us (missing bug fixes, and so on).
45 +MY_PN="${PN}-dev"
46 +
47 +DESCRIPTION="Tabular Datastream Library"
48 +HOMEPAGE="http://www.freetds.org/"
49 +SRC_URI="ftp://ftp.freetds.org/pub/${PN}/current/${MY_PN}.${PV}.tar.gz"
50 +
51 +LICENSE="GPL-2"
52 +SLOT="0"
53 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~ppc-macos"
54 +
55 +IUSE="debug gnutls iconv kerberos libressl mssql iodbc odbc ssl static-libs"
56 +# iODBC and unixODBC are mutually-exclusive choices for
57 +# the ODBC driver manager. Future versions of FreeTDS
58 +# will throw an error if you specify both.
59 +REQUIRED_USE="?? ( iodbc odbc )"
60 +
61 +RESTRICT="test"
62 +
63 +# sed, grep, and awk are used by the build system and the osql script.
64 +COMMON_DEPEND="
65 + sys-apps/sed
66 + sys-apps/grep
67 + virtual/awk
68 + gnutls? ( net-libs/gnutls:= )
69 + iconv? ( virtual/libiconv )
70 + iodbc? ( dev-db/libiodbc )
71 + kerberos? ( virtual/krb5 )
72 + odbc? ( dev-db/unixODBC )
73 + ssl? (
74 + !libressl? ( dev-libs/openssl:0= )
75 + libressl? ( dev-libs/libressl:0= )
76 + )
77 +"
78 +DEPEND="${COMMON_DEPEND}"
79 +
80 +# bind-tools is needed because the osql script calls "host".
81 +# binutils is for "strings".
82 +RDEPEND="${COMMON_DEPEND}
83 + sys-devel/binutils
84 + net-dns/bind-tools
85 +"
86 +
87 +S="${WORKDIR}/${MY_PN}.${PV}"
88 +
89 +src_configure() {
90 + econf \
91 + --enable-shared \
92 + $(use_enable debug) \
93 + $(use_enable iconv libiconv) \
94 + $(use_enable kerberos krb5) \
95 + $(use_enable mssql msdblib) \
96 + $(use_enable static-libs static) \
97 + $(use_with iodbc) \
98 + $(use_with odbc unixodbc "${EPREFIX}/usr") \
99 + $(use_with iconv libiconv-prefix "${EPREFIX}/usr") \
100 + $(use_with gnutls) \
101 + $(use_with ssl openssl "${EPREFIX}/usr")
102 +}
103 +
104 +src_install() {
105 + default
106 +
107 + if ! use static-libs; then
108 + find "${D}" -name '*.la' -delete || die
109 + fi
110 +}