1 |
robbat2 10/05/11 08:01:45 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: db-5.0.21.ebuild |
5 |
Log: |
6 |
Bug #313769: version bump. In package.mask still, has test failures. Some false positives due to upstream, but still at least one failure that needs work. |
7 |
(Portage version: 2.2_rc67/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.303 sys-libs/db/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/db/ChangeLog?rev=1.303&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/db/ChangeLog?rev=1.303&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/db/ChangeLog?r1=1.302&r2=1.303 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/sys-libs/db/ChangeLog,v |
19 |
retrieving revision 1.302 |
20 |
retrieving revision 1.303 |
21 |
diff -p -w -b -B -u -u -r1.302 -r1.303 |
22 |
--- ChangeLog 3 May 2010 23:21:52 -0000 1.302 |
23 |
+++ ChangeLog 11 May 2010 08:01:45 -0000 1.303 |
24 |
@@ -1,6 +1,13 @@ |
25 |
# ChangeLog for sys-libs/db |
26 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/db/ChangeLog,v 1.302 2010/05/03 23:21:52 robbat2 Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/db/ChangeLog,v 1.303 2010/05/11 08:01:45 robbat2 Exp $ |
29 |
+ |
30 |
+*db-5.0.21 (11 May 2010) |
31 |
+ |
32 |
+ 11 May 2010; Robin H. Johnson <robbat2@g.o> +db-5.0.21.ebuild: |
33 |
+ Bug #313769: version bump. In package.mask still, has test failures. Some |
34 |
+ false positives due to upstream, but still at least one failure that needs |
35 |
+ work. |
36 |
|
37 |
03 May 2010; Robin H. Johnson <robbat2@g.o> db-4.5.20_p2.ebuild, |
38 |
db-4.5.20_p2-r1.ebuild, db-4.6.21_p4.ebuild: |
39 |
|
40 |
|
41 |
|
42 |
1.1 sys-libs/db/db-5.0.21.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/db/db-5.0.21.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/db/db-5.0.21.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: db-5.0.21.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2010 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.0.21.ebuild,v 1.1 2010/05/11 08:01:45 robbat2 Exp $ |
52 |
|
53 |
inherit eutils db flag-o-matic java-pkg-opt-2 autotools libtool |
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="OracleDB" |
77 |
SLOT="5.0" |
78 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" |
79 |
IUSE="doc java nocxx tcl test" |
80 |
|
81 |
# the entire testsuite needs the TCL functionality |
82 |
DEPEND="tcl? ( >=dev-lang/tcl-8.4 ) |
83 |
test? ( >=dev-lang/tcl-8.4 ) |
84 |
java? ( >=virtual/jdk-1.5 ) |
85 |
>=sys-devel/binutils-2.16.1" |
86 |
RDEPEND="tcl? ( dev-lang/tcl ) |
87 |
java? ( >=virtual/jre-1.5 )" |
88 |
|
89 |
src_unpack() { |
90 |
unpack "${MY_P}".tar.gz |
91 |
cd "${WORKDIR}"/"${MY_P}" |
92 |
for (( i=1 ; i<=${PATCHNO} ; i++ )) |
93 |
do |
94 |
epatch "${DISTDIR}"/patch."${MY_PV}"."${i}" |
95 |
done |
96 |
epatch "${FILESDIR}"/${PN}-4.8-libtool.patch |
97 |
epatch "${FILESDIR}"/${PN}-4.8.24-java-manifest-location.patch |
98 |
|
99 |
# use the includes from the prefix |
100 |
epatch "${FILESDIR}"/${PN}-4.6-jni-check-prefix-first.patch |
101 |
epatch "${FILESDIR}"/${PN}-4.3-listen-to-java-options.patch |
102 |
|
103 |
# Upstream release script grabs the dates when the script was run, so lets |
104 |
# end-run them to keep the date the same. |
105 |
export REAL_DB_RELEASE_DATE="$(awk \ |
106 |
'/^DB_VERSION_STRING=/{ gsub(".*\\(|\\).*","",$0); print $0; }' \ |
107 |
"${S_BASE}"/dist/configure)" |
108 |
sed -r -i \ |
109 |
-e "/^DB_RELEASE_DATE=/s~=.*~='${REAL_DB_RELEASE_DATE}'~g" \ |
110 |
"${S_BASE}"/dist/RELEASE |
111 |
|
112 |
# Include the SLOT for Java JAR files |
113 |
# This supersedes the unused jarlocation patches. |
114 |
sed -r -i \ |
115 |
-e '/jarfile=.*\.jar$/s,(.jar$),-$(LIBVERSION)\1,g' \ |
116 |
"${S_BASE}"/dist/Makefile.in |
117 |
|
118 |
cd "${S_BASE}"/dist |
119 |
rm -f aclocal/libtool.m4 |
120 |
sed -i \ |
121 |
-e '/AC_PROG_LIBTOOL$/aLT_OUTPUT' \ |
122 |
configure.ac |
123 |
sed -i \ |
124 |
-e '/^AC_PATH_TOOL/s/ sh, none/ bash, none/' \ |
125 |
aclocal/programs.m4 |
126 |
AT_M4DIR="aclocal aclocal_java" eautoreconf |
127 |
# Upstream sucks - they do autoconf and THEN replace the version variables. |
128 |
. ./RELEASE |
129 |
for v in \ |
130 |
DB_VERSION_{FAMILY,LETTER,RELEASE,MAJOR,MINOR} \ |
131 |
DB_VERSION_{PATCH,FULL,UNIQUE_NAME,STRING,FULL_STRING} \ |
132 |
DB_VERSION \ |
133 |
DB_RELEASE_DATE ; do |
134 |
local ev="__EDIT_${v}__" |
135 |
sed -i -e "s/${ev}/${!v}/g" configure |
136 |
done |
137 |
} |
138 |
|
139 |
src_compile() { |
140 |
local myconf='' |
141 |
|
142 |
# compilation with -O0 fails on amd64, see bug #171231 |
143 |
if use amd64; then |
144 |
replace-flags -O0 -O2 |
145 |
is-flagq -O[s123] || append-flags -O2 |
146 |
fi |
147 |
|
148 |
# use `set` here since the java opts will contain whitespace |
149 |
set -- |
150 |
if use java ; then |
151 |
set -- "$@" \ |
152 |
--with-java-prefix="${JAVA_HOME}" \ |
153 |
--with-javac-flags="$(java-pkg_javac-args)" |
154 |
fi |
155 |
|
156 |
# Add linker versions to the symbols. Easier to do, and safer than header file |
157 |
# mumbo jumbo. |
158 |
if use userland_GNU ; then |
159 |
append-ldflags -Wl,--default-symver |
160 |
fi |
161 |
|
162 |
# Bug #270851: test needs TCL support |
163 |
if use tcl || use test ; then |
164 |
myconf="${myconf} --enable-tcl" |
165 |
myconf="${myconf} --with-tcl=/usr/$(get_libdir)" |
166 |
else |
167 |
myconf="${myconf} --disable-tcl" |
168 |
fi |
169 |
|
170 |
# sql_compat will cause a collision with sqlite3 |
171 |
# --enable-sql_compat |
172 |
cd "${S}" |
173 |
ECONF_SOURCE="${S_BASE}"/dist \ |
174 |
STRIP="true" \ |
175 |
econf \ |
176 |
--enable-compat185 \ |
177 |
--enable-dbm \ |
178 |
--enable-o_direct \ |
179 |
--without-uniquename \ |
180 |
--enable-sql \ |
181 |
--enable-sql_codegen \ |
182 |
--disable-sql_compat \ |
183 |
$(use arm && echo --with-mutex=ARM/gcc-assembly) \ |
184 |
$(use amd64 && echo --with-mutex=x86/gcc-assembly) \ |
185 |
$(use_enable !nocxx cxx) \ |
186 |
$(use_enable !nocxx stl) \ |
187 |
$(use_enable java) \ |
188 |
${myconf} \ |
189 |
$(use_enable test) \ |
190 |
"$@" |
191 |
|
192 |
emake || die "make failed" |
193 |
} |
194 |
|
195 |
src_install() { |
196 |
emake install DESTDIR="${D}" || die |
197 |
|
198 |
db_src_install_usrbinslot |
199 |
|
200 |
db_src_install_headerslot |
201 |
|
202 |
db_src_install_doc |
203 |
|
204 |
db_src_install_usrlibcleanup |
205 |
|
206 |
dodir /usr/sbin |
207 |
# This file is not always built, and no longer exists as of db-4.8 |
208 |
[[ -f "${D}"/usr/bin/berkeley_db_svc ]] && \ |
209 |
mv "${D}"/usr/bin/berkeley_db_svc "${D}"/usr/sbin/berkeley_db"${SLOT/./}"_svc |
210 |
|
211 |
if use java; then |
212 |
java-pkg_regso "${D}"/usr/"$(get_libdir)"/libdb_java*.so |
213 |
java-pkg_dojar "${D}"/usr/"$(get_libdir)"/*.jar |
214 |
rm -f "${D}"/usr/"$(get_libdir)"/*.jar |
215 |
fi |
216 |
} |
217 |
|
218 |
pkg_postinst() { |
219 |
db_fix_so |
220 |
} |
221 |
|
222 |
pkg_postrm() { |
223 |
db_fix_so |
224 |
} |
225 |
|
226 |
src_test() { |
227 |
# db_repsite is impossible to build, as upstream strips those sources. |
228 |
# db_repsite is used directly in the setup_site_prog, |
229 |
# setup_site_prog is called from open_site_prog |
230 |
# which is called only from tests |
231 |
egrep -ril \ |
232 |
'open_site_prog|setup_site_prog|db_repsite' \ |
233 |
"${S_BASE}/test" \ |
234 |
| xargs egrep -l '^# TEST ' \ |
235 |
| xargs rename .tcl .tcl.DISABLED |
236 |
|
237 |
db_src_test |
238 |
} |