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