Gentoo Archives: gentoo-commits

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