idella4     14/04/01 11:17:49

  Modified:             bsddb3-6.0.1.ebuild ChangeLog
  Log:
  install phase tidied, un-needed removal of tests folders removed, test phase 
revised and fixed for py3 due to flaws in the source code's setup, includes the 
patch. Fixes Bugs #493500 by Nikoli and #476246 by Patrick
  
  (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 
0xB8072B0D)

Revision  Changes    Path
1.2                  dev-python/bsddb3/bsddb3-6.0.1.ebuild

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/bsddb3/bsddb3-6.0.1.ebuild?rev=1.2&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/bsddb3/bsddb3-6.0.1.ebuild?rev=1.2&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/bsddb3/bsddb3-6.0.1.ebuild?r1=1.1&r2=1.2

Index: bsddb3-6.0.1.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-python/bsddb3/bsddb3-6.0.1.ebuild,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- bsddb3-6.0.1.ebuild 8 Jan 2014 05:47:34 -0000       1.1
+++ bsddb3-6.0.1.ebuild 1 Apr 2014 11:17:49 -0000       1.2
@@ -1,6 +1,6 @@
 # Copyright 1999-2014 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/bsddb3/bsddb3-6.0.1.ebuild,v 1.1 
2014/01/08 05:47:34 patrick Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/bsddb3/bsddb3-6.0.1.ebuild,v 1.2 
2014/04/01 11:17:49 idella4 Exp $
 
 EAPI=5
 PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} )
@@ -20,10 +20,10 @@
 DEPEND="${RDEPEND}
        dev-python/setuptools[${PYTHON_USEDEP}]"
 
-PYTHON_CFLAGS=("2.* + -fno-strict-aliasing")
+# PYTHON_CFLAGS=("2.* + -fno-strict-aliasing")
 
-DOCS=( ChangeLog TODO.txt )
 DISTUTILS_IN_SOURCE_BUILD=1
+PATCHES=( "${FILESDIR}"/py3tests.patch )
 
 src_configure() {
        local DB_VER
@@ -45,31 +45,24 @@
 }
 
 python_test() {
-       # https://sourceforge.net/p/pybsddb/bugs/72/
+       # py3 tests misfire in the source om running test_all.py
+       local test
        pushd "${BUILD_DIR}"/../ > /dev/null
        if [[ "${EPYTHON}" == python2* ]]; then
-               "${PYTHON}" build/lib/bsddb3/tests/test_all.py
-       elif [[ "${EPYTHON}" == python3* ]]; then
-               if [[ "${EPYTHON}" == 'python3.3' ]]; then
-                       einfo "py3.3 has an internal problem within this ebuild 
but is known to pass tests"
-               else
-                       "${PYTHON}" setup.py build
-                       einfo "all 500 tests are run silently and may take a 
number of minutes to complete"
-                       "${PYTHON}" -v test3.py || die
-               fi
+               einfo "all 500 tests are run silently and may take a number of 
minutes to complete"
+               "${PYTHON}" build/lib/bsddb3/tests/test_all.py || die  "tests 
failed under ${EPYTHON}"
+       elif python_is_python3; then
+               mv Lib3/bsddb/test/test_all.py . || die
+               for test in Lib3/bsddb/test/test_*
+               do
+                       "${PYTHON}" $test || die "tet $test failed under 
${EPYTHON}"
+                       einfo "test $test passed OK";einfo ""
+               done
        fi
-}
-
-python_install() {
-       rm -fr "${ED}$(python_get_sitedir)/bsddb3/tests"
-
-       if use doc; then
-               dohtml -r docs/html/* || die "dohtml failed"
-       fi
-       distutils-r1_python_install
+       popd  > /dev/null
 }
 
 python_install_all() {
-       local HTML_DOCS=( docs/html/. )
+       use doc && local HTML_DOCS=( docs/html/. )
        distutils-r1_python_install_all
 }



1.100                dev-python/bsddb3/ChangeLog

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/bsddb3/ChangeLog?rev=1.100&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/bsddb3/ChangeLog?rev=1.100&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/bsddb3/ChangeLog?r1=1.99&r2=1.100

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-python/bsddb3/ChangeLog,v
retrieving revision 1.99
retrieving revision 1.100
diff -u -r1.99 -r1.100
--- ChangeLog   15 Jan 2014 12:41:37 -0000      1.99
+++ ChangeLog   1 Apr 2014 11:17:49 -0000       1.100
@@ -1,6 +1,6 @@
 # ChangeLog for dev-python/bsddb3
 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/bsddb3/ChangeLog,v 1.99 
2014/01/15 12:41:37 ago Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/bsddb3/ChangeLog,v 1.100 
2014/04/01 11:17:49 idella4 Exp $
 
   15 Jan 2014; Agostino Sarubbo <a...@gentoo.org> bsddb3-6.0.0.ebuild:
   Stable for sparc, wrt bug #482056
@@ -47,7 +47,7 @@
 
   28 May 2013; Ian Delaney <idel...@gentoo.org> +bsddb3-5.3.0-r1.ebuild,
   bsddb3-5.3.0.ebuild:
-  revbump, migrate -> distutils-r1, tes fail cited wrt Bug #470976
+  revbump, migrate -> distutils-r1, test fail cited wrt Bug #470976
 
   02 Feb 2013; Agostino Sarubbo <a...@gentoo.org> bsddb3-5.3.0.ebuild:
   Add ~arm, wrt bug #449220




Reply via email to