<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>231280</bug_id>
          
          <creation_ts>2008-07-09 10:40 0000</creation_ts>
          <short_desc>dev-util/mercurial-1.0.1-r3 test failures</short_desc>
          <delta_ts>2008-10-04 17:49:30 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <votes>1</votes>
          <everconfirmed>1</everconfirmed>
          <reporter>aballier@gentoo.org</reporter>
          <assigned_to>nelchael@gentoo.org</assigned_to>
          <cc>esqualante@o2.pl</cc>

      

      
          <long_desc isprivate="0">
            <who>aballier@gentoo.org</who>
            <bug_when>2008-07-09 10:40:13 0000</bug_when>
            <thetext>[ebuild     U ] dev-util/mercurial-1.0.1-r3 [1.0.1-r2] USE=&quot;bash-completion test -bugzilla -emacs -gpg -zsh-completion (-cvs%*) (-darcs%) (-git%) (-subversion%*)&quot; 0 kB 


&gt;&gt;&gt; Source compiled.
 * Running Mercurial tests ...
...............................................................
ERROR: test-doctest.py output changed
--- Expected output 
+++ Test output 
@@ -1,0 +1,1 @@
+.........................
ERROR: test-hgweb output changed
--- Expected output 
+++ Test output 
@@ -101,6 +101,7 @@
 
 error: bork@2ef0ac749a14: not found in manifest
 % stop and restart
+abort: cannot start server at &apos;:20059&apos;: Address already in use
 9 log lines written
 % static file
 200 Script output follows
...................................................................................s....................................................................
Skipped test-no-symlinks: system supports symbolic links
Failed test-doctest.py: output changed
Failed test-hgweb: output changed
# Ran 240 tests, 1 skipped, 2 failed.
 * 
 * ERROR: dev-util/mercurial-1.0.1-r3 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_test
 *             environment, line 3015:  Called die
 * The specific snippet of code:
 *       python run-tests.py || die &quot;test failed&quot;
 *  The die message:
 *   test failed


# emerge --info
Portage 2.2_rc1 (default-linux/amd64/2007.0, gcc-4.3.1-asneeded, glibc-2.8_p20080602-r0, 2.6.25.7 x86_64)
=================================================================
System uname: Linux-2.6.25.7-x86_64-AMD_Athlon-tm-_64_Processor_3200+-with-glibc2.2.5
Timestamp of tree: Unknown
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.5.2-r5
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.62-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.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.25-r4
ACCEPT_KEYWORDS=&quot;amd64 ~amd64&quot;
CBUILD=&quot;x86_64-pc-linux-gnu&quot;
CFLAGS=&quot;-march=athlon64 -O2 -pipe -g -ggdb&quot;
CHOST=&quot;x86_64-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config&quot;
CONFIG_PROTECT_MASK=&quot;/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d&quot;
CXXFLAGS=&quot;-march=athlon64 -O2 -pipe -g -ggdb&quot;
DISTDIR=&quot;/share/gentoo/distfiles&quot;
FEATURES=&quot;buildpkg buildsyspkg ccache collision-protect cvs distcc distlocks fixpackages multilib-strict parallel-fetch preserve-libs sandbox sfperms sign splitdebug strict test unmerge-orphans userfetch userpriv usersandbox&quot;
GENTOO_MIRRORS=&quot;ftp://ftp.free.fr/mirrors/ftp.gentoo.org/&quot;
LANG=&quot;en_US.utf8&quot;
LDFLAGS=&quot;-Wl,--as-needed -Wl,-O1 -Wl,--sort-common -Wl,--hash-style=gnu&quot;
LINGUAS=&quot;en fr en_US&quot;
MAKEOPTS=&quot;-j4&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_COMPRESS=&quot;lzma&quot;
PORTAGE_RSYNC_OPTS=&quot;--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage_cvs/gentoo-x86&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage /share/overlay /share/official-overlay/aballier/texlive-overlay&quot;
SYNC=&quot;cvs://aballier@cvs.gentoo.org:/var/cvsroot&quot;
USE=&quot;3dnow 3dnowext X a52 aac aalib acl acpi alsa amd64 apache2 asf audiofile authdaemond bash-completion berkdb bluetooth bogofilter browserplugin bzip2 cairo caps cddb cdio cdr cjk cli cpufreq cracklib crypt css cups curl custom-cflags cvs dba dbus dirac djvu doc dri dssi dts dv dvb dvd dvdnav dvdr dvdread dvi emerald enca encode escreen evo exif expat fam fame fat fbdev ffmpeg fftw firefox flac fltk fluidsynth fontconfig foomaticdb fortran fping freesound ftp gd gdbm gif gimp glib glitz gnokii gnutls gpac gpgme gpm graphviz gs gstreamer gtk gtkhtml hal hddtemp hfs icecast iconv id3tag ide ieee1394 imagemagick imap imlib ipv6 irmc isdnlog ithreads jack jadetex javascript jfs jpeg jpeg2k kdeenablefinal kdehiddenvisibility kerberos kpathsea ladcca ladspa lame lash latex lcms ldap libcaca libffi libgcrypt libnotify libsamplerate libssh2 live lzma lzo mad maildir matroska mbox md5sum midi mikmod mjpeg mmx mmxext mng modplug mono motif mozilla mp2 mp3 mp4 mpeg mplayer mudflap musepack musicbrainz nautilus ncurses network nfs nls nntp no-old-linux nodrm nowin nptl nptlonly nsplugin ntfs nvidia objc ocaml ocamlopt offensive ogg oggvorbis ogm openal openexr opengl openmp osc pam pango pcre pda pdf perl png pnm portaudio postgres ppds pppd pulseaudio python qt3 qt4 quicktime radio rar raw readline reflection reiser4 reiserfs rle rtc rtsp ruby sasl sdl session shorten slang sms sndfile softmmu soundtouch sox spamassassin speex spell spl sqlite3 srt sse sse2 ssl startup-notification stroke subtitles subversion svg sysfs t1lib tcl tcpd test tetex tex4ht tga theora threads tiff tk truetype twolame udev unicode urandom usb v4l v4l2 vcd vchroot vim-syntax visualization vorbis wavpack wifi wmf wxwindows x264 xcb xcomposite xfs xine xinerama xml xorg xpm xprint xulrunner xv xvid xvmc zlib zvbi&quot; ALSA_CARDS=&quot;bt87x intel8x0&quot; ALSA_PCM_PLUGINS=&quot;adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol&quot; APACHE2_MODULES=&quot;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&quot; CAMERAS=&quot;canon&quot; DVB_CARDS=&quot;usb-umt&quot; ELIBC=&quot;glibc&quot; INPUT_DEVICES=&quot;keyboard mouse evdev&quot; KERNEL=&quot;linux&quot; LCD_DEVICES=&quot;bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text&quot; LINGUAS=&quot;en fr en_US&quot; LIRC_DEVICES=&quot;pctv&quot; USERLAND=&quot;GNU&quot; VIDEO_CARDS=&quot;vesa nv v4l nvidia&quot;
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>nelchael@gentoo.org</who>
            <bug_when>2008-07-10 10:48:24 0000</bug_when>
            <thetext>Created an attachment (id=160040)
mercurial-1.0.1-r3.ebuild.diff

Please apply this patch to ebuild and report the results.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>aballier@gentoo.org</who>
            <bug_when>2008-07-10 11:23:23 0000</bug_when>
            <thetext>got this now:

 * Running Mercurial tests ...
..............
ERROR: test-bad-pull output changed
--- Expected output 
+++ Test output 
@@ -1,5 +1,5 @@
 abort: error: Connection refused
 255
 copy: No such file or directory
-abort: HTTP Error 404
+abort: error: Connection refused
 0
...............................................
ERROR: test-doctest.py output changed
--- Expected output 
+++ Test output 
@@ -1,0 +1,1 @@
+.........................
ERROR: test-hgweb output changed
--- Expected output 
+++ Test output 
@@ -101,6 +101,7 @@
 
 error: bork@2ef0ac749a14: not found in manifest
 % stop and restart
+abort: cannot start server at &apos;:20059&apos;: Address already in use
 9 log lines written
 % static file
 200 Script output follows
........
ERROR: test-http output changed
--- Expected output 
+++ Test output 
@@ -34,11 +34,6 @@
 1 files, 1 changesets, 1 total revisions
 adding bar
 % pull
-changegroup hook: HG_NODE=cfbd11a1fa315300a080c3de8fe36b0fc5820acf HG_SOURCE=pull HG_URL=http://localhost/ 
 pulling from http://localhost/
 searching for changes
-adding changesets
-adding manifests
-adding file changes
-added 1 changesets with 1 changes to 1 files
-(run &apos;hg update&apos; to get a working copy)
+no changes found
..........................................................................s..................................................................
Skipped test-no-symlinks: system supports symbolic links
Failed test-bad-pull: output changed
Failed test-doctest.py: output changed
Failed test-hgweb: output changed
Failed test-http: output changed
# Ran 235 tests, 1 skipped, 4 failed.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>isharra@gmail.com</who>
            <bug_when>2008-08-18 02:19:40 0000</bug_when>
            <thetext>Created an attachment (id=163165)
mercurial-1.0.1-r3.ebuild.patch

The trick to tests succeeding with userpriv was to define tmpdir. test-doctest.py will fail with python 2.5.2 (status unchanged from mercurial 1.0 announcement response) http://www.selenic.com/pipermail/mercurial/2008-March/018068.html

mercurial-1.0.1-r3.ebuild.diff posted here did not work for me.
--with-hg=${S} breaks testing since mercurial is not installed in that directory and python will then import from the system (all tests will fail if mercurial is not installed, unpredictable results depending on the version of mercurial which is installation). --jobs=1 made no difference to my results.

This patch to the ebuild conditionally removes the tests requiring FEATURES=&quot;userpriv&quot; and unconditionally removes test-doctest.py in addition to adding --tmpdir=${testdir}.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rbu@gentoo.org</who>
            <bug_when>2008-10-04 17:49:30 0000</bug_when>
            <thetext>Thanks for the patch.

+  04 Oct 2008; Robert Buchholz &lt;rbu@gentoo.org&gt; mercurial-1.0.2.ebuild:
+  Make tests run with Python 2.5 and FEATURES=userpriv, a patch by Lourdes
+  Jones (bug #231280).

</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>160040</attachid>
            <date>2008-07-10 10:48 0000</date>
            <desc>mercurial-1.0.1-r3.ebuild.diff</desc>
            <filename>mercurial-1.0.1-r3.ebuild.diff</filename>
            <type>text/plain</type>
            <data encoding="base64">SW5kZXg6IG1lcmN1cmlhbC0xLjAuMS1yMy5lYnVpbGQKPT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQpSQ1MgZmlsZTogL3Zh
ci9jdnNyb290L2dlbnRvby14ODYvZGV2LXV0aWwvbWVyY3Vy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IHJhbiBhcyByb290CisJcm0gLWYgdGVzdC1wZXJtaXNzaW9u
cwkJIyBUZXN0IGlzIGJyb2tlbiB3aGVuIHJhbiBhcyByb290CisJcm0gLWYgdGVzdC1wdWxsLXBl
cm1pc3Npb24JIyBUZXN0IGlzIGJyb2tlbiB3aGVuIHJhbiBhcyByb290CiAJZWluZm8gIlJ1bm5p
bmcgTWVyY3VyaWFsIHRlc3RzIC4uLiIKLQlweXRob24gcnVuLXRlc3RzLnB5IHx8IGRpZSAidGVz
dCBmYWlsZWQiCisJcHl0aG9uIFwKKwkJcnVuLXRlc3RzLnB5IFwKKwkJLS1qb2JzPTEgXAorCQkt
LXRtcGRpcj0iJHt0ZXN0ZGlyfSIgXAorCQktLXdpdGgtaGc9IiR7U30iIFwKKwkJfHwgZGllICJ0
ZXN0IGZhaWxlZCIKIH0KIAogcGtnX3Bvc3RpbnN0KCkgewo=
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>163165</attachid>
            <date>2008-08-18 02:19 0000</date>
            <desc>mercurial-1.0.1-r3.ebuild.patch</desc>
            <filename>mercurial-1.0.1-r3.ebuild.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIG1lcmN1cmlhbC0xLjAuMS1yMy5lYnVpbGQub3JpZwkyMDA4LTA4LTE3IDIwOjUzOjU3LjAw
MDAwMDAwMCAtMDUwMAorKysgbWVyY3VyaWFsLTEuMC4xLXIzLmVidWlsZAkyMDA4LTA4LTE3IDIw
OjQwOjI4LjAwMDAwMDAwMCAtMDUwMApAQCAtODEsNiArODEsOSBAQAogfQogCiBzcmNfdGVzdCgp
IHsKKwlsb2NhbCB0ZXN0ZGlyPSIke1R9L3Rlc3RzIgorCW1rZGlyIC1wICIke3Rlc3RkaXJ9IiB8
fCBkaWUKKwljaG1vZCA3NzcgIiR7dGVzdGRpcn0iCiAJY2QgIiR7U30vdGVzdHMvIgogCXJtIC1m
ICpzdm4qCQkjIFN1YnZl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