1 |
commit: 2d3c57a9af2ba276575e8ee315f5d213ae98e400 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 29 08:11:15 2021 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 29 08:12:24 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d3c57a9 |
7 |
|
8 |
sys-libs/db: Removed old |
9 |
|
10 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
11 |
|
12 |
sys-libs/db/db-6.0.35-r2.ebuild | 253 ---------------------------------------- |
13 |
1 file changed, 253 deletions(-) |
14 |
|
15 |
diff --git a/sys-libs/db/db-6.0.35-r2.ebuild b/sys-libs/db/db-6.0.35-r2.ebuild |
16 |
deleted file mode 100644 |
17 |
index 5d1ee090cf5..00000000000 |
18 |
--- a/sys-libs/db/db-6.0.35-r2.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,253 +0,0 @@ |
21 |
-# Copyright 1999-2021 Gentoo Authors |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
- |
24 |
-EAPI=7 |
25 |
-inherit autotools db flag-o-matic java-pkg-opt-2 multilib multilib-minimal toolchain-funcs |
26 |
- |
27 |
-#Number of official patches |
28 |
-#PATCHNO=`echo ${PV}|sed -e "s,\(.*_p\)\([0-9]*\),\2,"` |
29 |
-PATCHNO="${PV/*.*.*_p}" |
30 |
-if [[ ${PATCHNO} == "${PV}" ]] ; then |
31 |
- MY_PV="${PV}" |
32 |
- MY_P="${P}" |
33 |
- PATCHNO=0 |
34 |
-else |
35 |
- MY_PV="${PV/_p${PATCHNO}}" |
36 |
- MY_P="${PN}-${MY_PV}" |
37 |
-fi |
38 |
- |
39 |
-RESTRICT="!test? ( test )" |
40 |
- |
41 |
-S_BASE="${WORKDIR}/${MY_P}" |
42 |
-S="${S_BASE}/build_unix" |
43 |
-DESCRIPTION="Oracle Berkeley DB" |
44 |
-HOMEPAGE="http://www.oracle.com/technetwork/database/database-technologies/berkeleydb/overview/index.html" |
45 |
-SRC_URI="http://download.oracle.com/berkeley-db/${MY_P}.tar.gz" |
46 |
-for (( i=1 ; i<=${PATCHNO} ; i++ )) ; do |
47 |
- export SRC_URI="${SRC_URI} http://www.oracle.com/technology/products/berkeley-db/db/update/${MY_PV}/patch.${MY_PV}.${i}" |
48 |
-done |
49 |
- |
50 |
-LICENSE="AGPL-3" |
51 |
-SLOT="$(ver_cut 1-2)" |
52 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" |
53 |
-IUSE="doc java cxx tcl test" |
54 |
- |
55 |
-REQUIRED_USE="test? ( tcl )" |
56 |
- |
57 |
-# the entire testsuite needs the TCL functionality |
58 |
-DEPEND="tcl? ( >=dev-lang/tcl-8.5.15-r1:0=[${MULTILIB_USEDEP}] ) |
59 |
- test? ( >=dev-lang/tcl-8.5.15-r1:0=[${MULTILIB_USEDEP}] ) |
60 |
- java? ( >=virtual/jdk-1.5 )" |
61 |
-RDEPEND="tcl? ( >=dev-lang/tcl-8.5.15-r1:0=[${MULTILIB_USEDEP}] ) |
62 |
- java? ( >=virtual/jre-1.5 )" |
63 |
- |
64 |
-MULTILIB_WRAPPED_HEADERS=( |
65 |
- /usr/include/db${SLOT}/db.h |
66 |
-) |
67 |
- |
68 |
-PATCHES=( |
69 |
- # bug #510506 |
70 |
- "${FILESDIR}"/${PN}-4.8.24-java-manifest-location.patch |
71 |
- |
72 |
- # use the includes from the prefix |
73 |
- "${FILESDIR}"/${PN}-4.6-jni-check-prefix-first.patch |
74 |
- "${FILESDIR}"/${PN}-4.2-listen-to-java-options.patch |
75 |
- |
76 |
- # sqlite configure call has an extra leading .. |
77 |
- # upstreamed:5.2.36, missing in 5.3.x/6.x |
78 |
- # still needs to be patched in 6.0.20 |
79 |
- "${FILESDIR}"/${PN}-6.0.35-sqlite-configure-path.patch |
80 |
- |
81 |
- # The upstream testsuite copies .lib and the binaries for each parallel test |
82 |
- # core, ~300MB each. This patch uses links instead, saves a lot of space. |
83 |
- "${FILESDIR}"/${PN}-6.0.20-test-link.patch |
84 |
-) |
85 |
- |
86 |
-src_prepare() { |
87 |
- cd "${S_BASE}" || die |
88 |
- for (( i=1 ; i<=${PATCHNO} ; i++ )) |
89 |
- do |
90 |
- eapply -p0 "${DISTDIR}"/patch."${MY_PV}"."${i}" |
91 |
- done |
92 |
- |
93 |
- default |
94 |
- |
95 |
- # Upstream release script grabs the dates when the script was run, so lets |
96 |
- # end-run them to keep the date the same. |
97 |
- export REAL_DB_RELEASE_DATE="$(awk \ |
98 |
- '/^DB_VERSION_STRING=/{ gsub(".*\\(|\\).*","",$0); print $0; }' \ |
99 |
- "${S_BASE}"/dist/configure)" |
100 |
- sed -r \ |
101 |
- -e "/^DB_RELEASE_DATE=/s~=.*~='${REAL_DB_RELEASE_DATE}'~g" \ |
102 |
- -i dist/RELEASE || die |
103 |
- |
104 |
- # Include the SLOT for Java JAR files |
105 |
- # This supersedes the unused jarlocation patches. |
106 |
- sed -r \ |
107 |
- -e '/jarfile=.*\.jar$/s,(.jar$),-$(LIBVERSION)\1,g' \ |
108 |
- -i dist/Makefile.in || die |
109 |
- |
110 |
- cd dist || die |
111 |
- rm aclocal/libtool.m4 || die |
112 |
- sed \ |
113 |
- -e '/AC_PROG_LIBTOOL$/aLT_OUTPUT' \ |
114 |
- -i configure.ac || die |
115 |
- sed \ |
116 |
- -e '/^AC_PATH_TOOL/s/ sh, none/ bash, none/' \ |
117 |
- -i aclocal/programs.m4 || die |
118 |
- |
119 |
- AT_M4DIR="aclocal aclocal_java" eautoreconf |
120 |
- |
121 |
- # Upstream sucks - they do autoconf and THEN replace the version variables. |
122 |
- . ./RELEASE |
123 |
- local v ev |
124 |
- for v in \ |
125 |
- DB_VERSION_{FAMILY,LETTER,RELEASE,MAJOR,MINOR} \ |
126 |
- DB_VERSION_{PATCH,FULL,UNIQUE_NAME,STRING,FULL_STRING} \ |
127 |
- DB_VERSION \ |
128 |
- DB_RELEASE_DATE ; do |
129 |
- ev="__EDIT_${v}__" |
130 |
- sed -e "s/${ev}/${!v}/g" -i configure || die |
131 |
- done |
132 |
- |
133 |
- # This is a false positive skip in the tests as the test-reviewer code |
134 |
- # looks for 'Skipping\s' |
135 |
- sed \ |
136 |
- -e '/db_repsite/s,Skipping:,Skipping,g' \ |
137 |
- -i "${S_BASE}"/test/tcl/reputils.tcl || die |
138 |
-} |
139 |
- |
140 |
-multilib_src_configure() { |
141 |
- local myconf=( |
142 |
- --enable-compat185 |
143 |
- --enable-dbm |
144 |
- --enable-o_direct |
145 |
- --without-uniquename |
146 |
- --disable-sql |
147 |
- --disable-sql_codegen |
148 |
- --disable-sql_compat |
149 |
- $([[ ${ABI} == amd64 ]] && echo --with-mutex=x86/gcc-assembly) |
150 |
- $(use_enable cxx) |
151 |
- $(use_enable cxx stl) |
152 |
- $(multilib_native_use_enable java) |
153 |
- $(use_enable test) |
154 |
- ) |
155 |
- |
156 |
- tc-ld-force-bfd #470634 #729510 |
157 |
- |
158 |
- # compilation with -O0 fails on amd64, see bug #171231 |
159 |
- if [[ ${ABI} == amd64 ]]; then |
160 |
- local CFLAGS=${CFLAGS} CXXFLAGS=${CXXFLAGS} |
161 |
- replace-flags -O0 -O2 |
162 |
- is-flagq -O[s123] || append-flags -O2 |
163 |
- fi |
164 |
- |
165 |
- # Add linker versions to the symbols. Easier to do, and safer than header file |
166 |
- # mumbo jumbo. |
167 |
- if use userland_GNU ; then |
168 |
- append-ldflags -Wl,--default-symver |
169 |
- fi |
170 |
- |
171 |
- # use `set` here since the java opts will contain whitespace |
172 |
- if multilib_is_native_abi && use java ; then |
173 |
- myconf+=( |
174 |
- --with-java-prefix="${JAVA_HOME}" |
175 |
- --with-javac-flags="$(java-pkg_javac-args)" |
176 |
- ) |
177 |
- fi |
178 |
- |
179 |
- # Bug #270851: test needs TCL support |
180 |
- if use tcl || use test ; then |
181 |
- myconf+=( |
182 |
- --enable-tcl |
183 |
- --with-tcl="${EPREFIX}/usr/$(get_libdir)" |
184 |
- ) |
185 |
- else |
186 |
- myconf+=(--disable-tcl ) |
187 |
- fi |
188 |
- |
189 |
- # sql_compat will cause a collision with sqlite3 |
190 |
- # --enable-sql_compat |
191 |
- # Don't --enable-sql* because we don't want to use bundled sqlite. |
192 |
- # See Gentoo bug #605688 |
193 |
- ECONF_SOURCE="${S_BASE}"/dist \ |
194 |
- STRIP="true" \ |
195 |
- econf "${myconf[@]}" |
196 |
- |
197 |
- # The embedded assembly on ARM does not work on newer hardware |
198 |
- # so you CANNOT use --with-mutex=ARM/gcc-assembly anymore. |
199 |
- # Specifically, it uses the SWPB op, which was deprecated: |
200 |
- # http://www.keil.com/support/man/docs/armasm/armasm_dom1361289909499.htm |
201 |
- # The op ALSO cannot be used in ARM-Thumb mode. |
202 |
- # Trust the compiler instead. |
203 |
- # >=db-6.1 uses LDREX instead. |
204 |
-} |
205 |
- |
206 |
-multilib_src_install() { |
207 |
- emake DESTDIR="${D}" install |
208 |
- |
209 |
- db_src_install_headerslot |
210 |
- |
211 |
- db_src_install_usrlibcleanup |
212 |
- |
213 |
- if multilib_is_native_abi && use java; then |
214 |
- java-pkg_regso "${ED}"/usr/"$(get_libdir)"/libdb_java*.so |
215 |
- java-pkg_dojar "${ED}"/usr/"$(get_libdir)"/*.jar |
216 |
- rm -f "${ED}"/usr/"$(get_libdir)"/*.jar |
217 |
- fi |
218 |
-} |
219 |
- |
220 |
-multilib_src_install_all() { |
221 |
- db_src_install_usrbinslot |
222 |
- |
223 |
- db_src_install_doc |
224 |
- |
225 |
- dodir /usr/sbin |
226 |
- # This file is not always built, and no longer exists as of db-4.8 |
227 |
- if [[ -f "${ED}"/usr/bin/berkeley_db_svc ]] ; then |
228 |
- mv "${ED}"/usr/bin/berkeley_db_svc \ |
229 |
- "${ED}"/usr/sbin/berkeley_db"${SLOT/./}"_svc || die |
230 |
- fi |
231 |
-} |
232 |
- |
233 |
-pkg_postinst() { |
234 |
- multilib_foreach_abi db_fix_so |
235 |
-} |
236 |
- |
237 |
-pkg_postrm() { |
238 |
- multilib_foreach_abi db_fix_so |
239 |
-} |
240 |
- |
241 |
-src_test() { |
242 |
- # db_repsite is impossible to build, as upstream strips those sources. |
243 |
- # db_repsite is used directly in the setup_site_prog, |
244 |
- # setup_site_prog is called from open_site_prog |
245 |
- # which is called only from tests in the multi_repmgr group. |
246 |
- #sed -r \ |
247 |
- # -e '/set subs/s,multi_repmgr,,g' \ |
248 |
- # -i "${S_BASE}/test/testparams.tcl" |
249 |
- sed -r \ |
250 |
- -e '/multi_repmgr/d' \ |
251 |
- -i "${S_BASE}/test/tcl/test.tcl" || die |
252 |
- |
253 |
- # This is the only failure in 5.2.28 so far, and looks like a false positive. |
254 |
- # Repmgr018 (btree): Test of repmgr stats. |
255 |
- # Repmgr018.a: Start a master. |
256 |
- # Repmgr018.b: Start a client. |
257 |
- # Repmgr018.c: Run some transactions at master. |
258 |
- # Rep_test: btree 20 key/data pairs starting at 0 |
259 |
- # Rep_test.a: put/get loop |
260 |
- # FAIL:07:05:59 (00:00:00) perm_no_failed_stat: expected 0, got 1 |
261 |
- sed -r \ |
262 |
- -e '/set parms.*repmgr018/d' \ |
263 |
- -e 's/repmgr018//g' \ |
264 |
- -i "${S_BASE}/test/tcl/test.tcl" || die |
265 |
- |
266 |
- multilib-minimal_src_test |
267 |
-} |
268 |
- |
269 |
-multilib_src_test() { |
270 |
- multilib_is_native_abi || return |
271 |
- |
272 |
- S="${BUILD_DIR}" db_src_test |
273 |
-} |