Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 508412 - www-apps/trac-1.0.1 fails to install tracd and trac-admin executables
Summary: www-apps/trac-1.0.1 fails to install tracd and trac-admin executables
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Deadline: 2020-09-21
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords: PMASKED
Depends on:
Blocks:
 
Reported: 2014-04-22 14:32 UTC by Alexander Danilov
Modified: 2020-09-21 05:59 UTC (History)
2 users (show)

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


Attachments
Build log from the working system (www-apps:trac-1.0.1:20140422-142049.log,259.99 KB, text/plain)
2014-04-22 14:32 UTC, Alexander Danilov
Details
Build log from the reference system (www-apps:trac-1.0.1:20140422-142033.log,135.73 KB, text/plain)
2014-04-22 14:34 UTC, Alexander Danilov
Details
Output of "qlist dev-python/setuptools" on reference machine (dev-python-setuptools-qlist.txt,25.79 KB, text/plain)
2014-04-22 16:00 UTC, Alexander Danilov
Details
Build log from reference machine after wiping obsolete python-2.7 files (www-apps:trac-1.0.1:20140423-090039.log,135.58 KB, text/plain)
2014-04-23 09:19 UTC, Alexander Danilov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Danilov 2014-04-22 14:32:14 UTC
Created attachment 375482 [details]
Build log from the working system

Emerge successfully installs www-apps/trac-1.0.1, but the installed package lacks essential binaries /usr/bin/trac-admin and /usr/bin/tracd.

Compiling binary package www-apps/trac with the same USE flags on different system and installing it on the reference system results in correct and working package.

Tried rebuilding dev-lang/python:2.7, dev-python/setuptools and dev-python/genshi on reference system with no luck.

Reproducible: consistently reproducible on one reference system.

Portage 2.2.8-r1 (default/linux/amd64/13.0, gcc-4.7.3, glibc-2.17, 3.10.25-gentoo x86_64)
=================================================================
System uname: Linux-3.10.25-gentoo-x86_64-Intel-R-_Core-TM-_i7-3820_CPU_@_3.60GHz-with-gentoo-2.2
KiB Mem:    65960648 total,    391084 free
KiB Swap:   67108860 total,  67108860 free
Timestamp of tree: Tue, 22 Apr 2014 07:00:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5-r3, 3.3.3
dev-util/cmake:           2.8.12.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo local
Installed sets: @admin, @apps, @dev, @misc, @webapps
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7-avx -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/easy-rsa /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=corei7-avx -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --quiet-build"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
USE="acl amd64 berkdb bzip2 caps cli cracklib crypt cxx dri fortran gdbm iconv icu idn ipv6 ldap mmx modules multilib ncurses nls nptl openmp pam pcre readline session snmp sse sse2 ssl tcpd threads truetype unicode vhosts xml zlib" ABI_X86="64" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en ru" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3 php5-4 php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 1 Alexander Danilov 2014-04-22 14:34:42 UTC
Created attachment 375484 [details]
Build log from the reference system
Comment 2 Dirkjan Ochtman (RETIRED) gentoo-dev 2014-04-22 15:03:54 UTC
What version of dev-python/setuptools is installed on both machines?
Comment 3 Alexander Danilov 2014-04-22 15:06:23 UTC
On both machines:
dev-python/setuptools-0.8-r1 with PYTHON_TARGETS="python2_7 python3_3 -pypy2_0 -python2_6 -python3_2"
Comment 4 Dirkjan Ochtman (RETIRED) gentoo-dev 2014-04-22 15:34:47 UTC
The problem is clearly in this part:

python2.7 setup.py build -b build-2.7
/usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'entry_points'
  warnings.warn(msg)
/usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'extras_require'
  warnings.warn(msg)
/usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'install_requires'
  warnings.warn(msg)
/usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'zip_safe'
  warnings.warn(msg)
/usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'test_suite'
  warnings.warn(msg)

This indicates that your python install isn't picking up on setuptools correctly. Perhaps you should try running python-updater.
Comment 5 Alexander Danilov 2014-04-22 15:38:44 UTC
Already tried python-updater:

dodo ~ # python-updater -v
 * Starting Python Updater...
 * Main active version of Python:    2.7
 * Active version of Python 2:       2.7
 * Active version of Python 3:       3.3
 * Globally supported Python ABIs in installed repositories:
 *   gentoo:                         2.4 2.5 2.6 2.7 3.1 3.2 3.3 2.5-jython 2.7-jython 2.7-pypy-1.7 2.7-pypy-1.8 2.7-pypy-1.9 2.7-pypy-2.0
 *   local:                          2.4 2.5 2.6 2.7 3.1 3.2 3.3 2.5-jython 2.7-jython 2.7-pypy-1.7 2.7-pypy-1.8 2.7-pypy-1.9 2.7-pypy-2.0
 * Check "manual" enabled.
 * Check "need_rebuild" enabled.
 * Check "pylibdir" enabled.
 * Check "PYTHON_ABIS" enabled.
 * Check "shared_linking" enabled.
 * Check "static_linking" enabled.
 * No packages need to be reinstalled.
Comment 6 Mike Gilbert gentoo-dev 2014-04-22 15:48:39 UTC
What does "qlist dev-python/setuptools" show? Attach the output please.
Comment 7 Alexander Danilov 2014-04-22 16:00:54 UTC
Created attachment 375490 [details]
Output of "qlist dev-python/setuptools" on reference machine
Comment 8 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-04-22 16:28:21 UTC
Well, looking at trac's setup.py, it has plain:

  from setuptools import setup, find_packages

so it shouldn't ever fallback to plain distutils.

@Alexander: did you do anything uncommon to this system lately? Have you ever used 'pip' or 'easy_install' as root? Do you have PYTHONPATH set?
Comment 9 Alexander Danilov 2014-04-22 17:11:37 UTC
PYTHONPATH is not set.
I believe I have used easy_install about a year ago, specificaly for one of trac plugins. Trac was fully functional until I tried to reinstall it today.
Comment 10 Alexander Danilov 2014-04-23 09:15:36 UTC
Ok, it looks I kind of resolved my problem.

Following your hint about manual easy_install, I managed to locate several outdated files in /usr/lib64/python2.7/site-packages:

-rw-r--r--  1 root root    370 Feb 14  2013 easy-install.pth
-rw-r--r--  1 root root    144 Feb 14  2013 setuptools-0.6c11-py2.7.egg-info
-rw-r--r--  1 root root     30 Feb 14  2013 setuptools.pth

None of the installed packages claimed these files. I moved them away from /usr/lib64/python2.7/site-packages, and tried "emerge -1 www-apps/trac". It finished nicely with no warning lines in build log.

At least trac-admin and tracd binaries are in place, though the reinstalled package now lacks localization files, which were in package from different machine:
/usr/lib64/python2.7/site-packages/trac/htdocs/js/messages/*
/usr/lib64/python2.7/site-packages/trac/locale/*

I am not sure if this behavior is machine specific, or my python environment is still broken in some way.

At the moment www-apps/trac looks operational at the reference machine.
Comment 11 Alexander Danilov 2014-04-23 09:19:10 UTC
Created attachment 375528 [details]
Build log from reference machine after wiping obsolete python-2.7 files
Comment 12 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-09-21 05:59:52 UTC
package removed.