Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 364473 - dev-python/docutils-0.8.1: unreproducible contents of the package
Summary: dev-python/docutils-0.8.1: unreproducible contents of the package
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal trivial (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-22 10:46 UTC by Alexander E. Patrakov
Modified: 2012-12-31 11:38 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander E. Patrakov 2011-04-22 10:46:45 UTC
When I build dev-python/docutils-0.7 twice (without python3, if that matters), the package contents are not the same, even if I ignore differences in build timestamps embedded in the generated files. Namely, the following files differ:

/usr/share/doc/docutils-0.7/html/docs/peps/pep-0256.html
/usr/share/doc/docutils-0.7/html/docs/peps/pep-0257.html
/usr/share/doc/docutils-0.7/html/docs/peps/pep-0258.html
/usr/share/doc/docutils-0.7/html/docs/peps/pep-0287.html

They refer to different versions of the python logo (i.e. something like http://www.python.org/pics/PyBanner052.gif before the rebuild vs http://www.python.org/pics/PyBanner019.gif after the rebuild).

Reproducible: Always

Steps to Reproduce:
1. emerge -av1 --buildpkg =dev-python/docutils-0.7
2. emerge -av1 =dev-python/docutils-0.7
3. unpack the package, compare the contents of the package with the live files, like this:

diff -U0 -rN tree1 tree2 | grep -E -v '^(diff|---|\+\+\+|@@ )' | grep -v Generated

Actual Results:  
-<img src="http://www.python.org/pics/PyBanner052.gif" alt="[Python]"
+<img src="http://www.python.org/pics/PyBanner019.gif" alt="[Python]"
-<img src="http://www.python.org/pics/PyBanner007.gif" alt="[Python]"
+<img src="http://www.python.org/pics/PyBanner014.gif" alt="[Python]"
-<img src="http://www.python.org/pics/PyBanner002.gif" alt="[Python]"
+<img src="http://www.python.org/pics/PyBanner041.gif" alt="[Python]"
-<img src="http://www.python.org/pics/PyBanner030.gif" alt="[Python]"
+<img src="http://www.python.org/pics/PyBanner046.gif" alt="[Python]"


Expected Results:  
No output

fujitsu-laptop ~ # emerge --info
Portage 2.2.0_alpha29-r1 (default/linux/amd64/10.0/desktop, gcc-4.5.2, glibc-2.13-r2, 2.6.39-rc3-git3 x86_64)
=================================================================
System uname: Linux-2.6.39-rc3-git3-x86_64-Intel-R-_Core-TM-_i5_CPU_M_560_@_2.67GHz-with-gentoo-2.0.2
Timestamp of tree: Fri, 22 Apr 2011 07:45:01 +0000
app-shells/bash:     4.2_p8
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.7.1-r1
dev-util/cmake:      2.8.4
sys-apps/baselayout: 2.0.2
sys-apps/openrc:     0.8.2
sys-apps/sandbox:    2.5
sys-devel/autoconf:  2.68
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:  2.21
sys-devel/gcc:       4.5.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.4-r1
sys-devel/make:      3.82
sys-kernel/linux-headers: 2.6.38
virtual/os-headers:  0
Repositories: gentoo local-overlay multilib
Installed sets: 
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -fomit-frame-pointer -fno-strict-aliasing -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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"
CXXFLAGS="-O2 -march=core2 -fomit-frame-pointer -fno-strict-aliasing -pipe"
DISTDIR="/home/distfiles"
FEATURES="assume-digests binpkg-logs buildpkg distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://ftp.heanet.ie/pub/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="ru_RU.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/home/packages/amd64"
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="/home/build"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /var/lib/layman/multilib"
SYNC="rsync://ftp.heanet.ie/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 amr applet archive artworkextra automount avahi bash-completion berkdb bidi bluetooth bzip2 cairo caps cdda cddb cdr cjk cli clucene consolekit cracklib crypt css cups cxx dbus dirac djvu doc dri dts dvb dvd dvdr eds emboss encode epiphany evo examples exif faac faad fastcgi ffmpeg firefox flac fontconfig fortran fuse gcj gdbm gdu gif gimp glibc-omitfp gnome gnome-keyring gnuplot gphoto2 gsm gstreamer gtk iconv icq idn ieee1394 ipod ipv6 jabber jack jack-midi jbig jingle jpeg jpeg2k ladspa lame latex lcms ldap libnotify libproxy libsamplerate mad mikmod mmx mmxext mng modules mozilla mp3 mp4 mpeg mplayer mudflap multilib musepack musicbrainz nautilus ncurses networkmanager nls nocd nptl nptlonly nsplugin ogg opengl openmp pam pango pch pcre pdf perl png policykit ppds pppd pulseaudio python qt3support raw rdesktop readline rtmp samba scanner schroedinger sdl session shorten smp speex spell sqlite sse sse2 sse3 ssl ssse3 startup-notification svg symlink sysfs tcl tcpd theora threads tiff tk truetype udev unicode usb v4l2 videos vim-syntax vnc vorbis vpx wavpack webkit wifi winbind wmf x264 xattr xcb xcomposite xinerama xml xmp xorg xv xvid zeroconf 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 cgi cgid 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DVB_CARDS="tda10046lifeview" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev synaptics keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIRC_DEVICES="devinput audio_alsa inputlirc" MULTILIB_ABIS="amd64 x86" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" SANE_BACKENDS="gt68xx" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Dirkjan Ochtman gentoo-dev 2011-10-07 11:33:15 UTC
Does this still happen with newer versions of docutils?
Comment 2 Alexander E. Patrakov 2011-10-07 11:50:45 UTC
Yes, this is still a cosmetical issue with dev-python/docutils-0.8.1. Python3 doesn't matter.
Comment 3 Arfrever Frehtes Taifersar Arahesis 2011-10-08 05:07:18 UTC
docutils.writers.pep_html.Writer.interpolation_dict() by default uses random numbers:
            import random
            subs['banner'] = random.randrange(64)
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-12-31 11:38:10 UTC
This is not really something to fix at our end. It's a cosmetic issue, and it's mostly something upstream has decided to do. If you believe it shouldn't be done like that, the upstream bugtracker is the place you're looking for.