Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 277109 - Stabilize dev-python/django-1.1.1
Summary: Stabilize dev-python/django-1.1.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: STABLEREQ
Depends on: 265755 284971 294575
Blocks:
  Show dependency tree
 
Reported: 2009-07-08 21:50 UTC by Stanislav Ochotnicky (RETIRED)
Modified: 2010-01-03 21:45 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
fix failed test (django_1.1_fix_tests.patch,395 bytes, patch)
2009-10-05 20:37 UTC, Johan Bergström
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stanislav Ochotnicky (RETIRED) gentoo-dev 2009-07-08 21:50:51 UTC
Currently there is no stable version of dev-python/django in portage tree. 1.0.2-r1 has been in portage tree a little bit over one month now.

No bugs exist for this package in bugzilla.

Reproducible: Always

Steps to Reproduce:
Comment 1 Hanno Böck gentoo-dev 2009-09-04 20:37:04 UTC
django 1.1 should be pretty fine for stabilizing (no open bugs, over 30 day periode), cc-ing x86 and amd64 archs, maybe others too?
Comment 2 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-09-04 20:45:20 UTC
(In reply to comment #1)
> django 1.1 should be pretty fine for stabilizing

It depends on >=app-admin/eselect-python-20090804. app-admin/eselect-python-20090824 will be stabilized on 2009-09-23.
Comment 3 Markus Meier gentoo-dev 2009-09-18 22:16:41 UTC
fails testsuite here on amd64/x86:

dev-python/django-1.1  USE="examples test -bash-completion -doc -mysql -postgres -sqlite -vhosts"

Importing model sessions
Traceback (most recent call last):
  File "tests/runtests.py", line 191, in <module>
    django_tests(int(options.verbosity), options.interactive, args)
  File "tests/runtests.py", line 161, in django_tests
    failures = test_runner(test_labels, verbosity=verbosity, interactive=interactive, extra_tests=extra_tests)
  File "/var/tmp/portage/dev-python/django-1.1/work/Django-1.1/build-2.6/lib/django/test/simple.py", line 182, in run_tests
    suite.addTest(build_suite(app))
  File "/var/tmp/portage/dev-python/django-1.1/work/Django-1.1/build-2.6/lib/django/test/simple.py", line 58, in build_suite
    test_module = get_tests(app_module)
  File "/var/tmp/portage/dev-python/django-1.1/work/Django-1.1/build-2.6/lib/django/test/simple.py", line 16, in get_tests
    test_module = __import__('.'.join(app_path + [TEST_MODULE]), {}, {}, TEST_MODULE)
  File "/var/tmp/portage/dev-python/django-1.1/work/Django-1.1/tests/regressiontests/dateformat/tests.py", line 79, in <module>
    translation.activate('en-us')
  File "/var/tmp/portage/dev-python/django-1.1/work/Django-1.1/build-2.6/lib/django/utils/translation/__init__.py", line 73, in activate
    return real_activate(language)
  File "/var/tmp/portage/dev-python/django-1.1/work/Django-1.1/build-2.6/lib/django/utils/translation/trans_real.py", line 205, in activate 
    _active[currentThread()] = translation(language)
  File "/var/tmp/portage/dev-python/django-1.1/work/Django-1.1/build-2.6/lib/django/utils/translation/trans_real.py", line 195, in translation
    current_translation = _fetch(language, fallback=default_translation)
  File "/var/tmp/portage/dev-python/django-1.1/work/Django-1.1/build-2.6/lib/django/utils/translation/trans_real.py", line 160, in _fetch   
    res._info = res._info.copy()
AttributeError: 'NoneType' object has no attribute '_info'
 *
 * ERROR: dev-python/django-1.1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_test
 *             environment, line 3541:  Called python_execute_function 'testing'
 *             environment, line 3117:  Called die
 * The specific snippet of code:
 *                       die "${failure_message}";
 *  The die message:
 *   Testing failed with Python 2.6 in testing() function

Portage 2.1.6.13 (default/linux/amd64/2008.0/desktop, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.31 x86_64)
=================================================================
System uname: Linux-2.6.31-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T8300_@_2.40GHz-with-gentoo-1.12.11.1
Timestamp of tree: Wed, 16 Sep 2009 20:00:01 +0000
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.4.6, 2.5.4-r3, 2.6.2-r1
dev-python/pycrypto: 2.0.1-r8
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openfire/resources/security/ /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/bind /var/lib/hsqldb /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="collision-protect distlocks fixpackages multilib-strict parallel-fetch protect-owned sandbox sfperms strict test unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_GB de"
MAKEOPTS="-j2"
PKGDIR="/mnt/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 apache2 avahi berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt cups dbus dri dts dvd dvdr eds emboss encode esd evo examples fam firefox flac fortran gdbm gif gnome gpm gstreamer gtk hal iconv ipv6 isdnlog jpeg kde ldap libnotify mad mikmod mmx mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly nsplugin objc objc++ ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime readline reflection sdl session source spell spl sse sse2 ssl startup-notification svg sysfs tcpd test thunar tiff truetype unicode usb vorbis x264 xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB de" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 4 Johan Bergström 2009-10-05 20:37:15 UTC
Created attachment 206183 [details, diff]
fix failed test

Ok, this patch should fix the test errors. I'm changing pythonpath from build/* to "." (top level in tarball)

The problem is that 2.6 has changed build behavior which results in distutils omitting conf/locale/ when generating build/*. One important lesson of this is that "python setup.py build" and "python setup.py install" generates different file lists. See this Django ticket for more info: http://code.djangoproject.com/ticket/11979
Comment 5 Pacho Ramos gentoo-dev 2009-12-24 12:07:59 UTC
Should we try to stabilize 1.1.1 instead? 1.1 was removed
Comment 6 Pacho Ramos gentoo-dev 2009-12-26 18:44:00 UTC
tests are still failing on 1.1.1 :-(
Comment 7 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-01-03 01:27:14 UTC
Tests with Python 2.6 should pass now.
Comment 8 Pacho Ramos gentoo-dev 2010-01-03 13:30:56 UTC
Thanks for fixing it :-)

amd64 stable
Comment 9 Christian Faulhammer (RETIRED) gentoo-dev 2010-01-03 21:45:57 UTC
x86 stable, thanks Thomas, closing