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