Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 183470 - dev-python/python-docs env.d entry broken
Summary: dev-python/python-docs env.d entry broken
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor with 1 vote (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on: 151695
Blocks:
  Show dependency tree
 
Reported: 2007-06-27 22:27 UTC by adaa
Modified: 2009-05-17 01:56 UTC (History)
3 users (show)

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


Attachments
Patch to dev-python/python-docs-2.5.1.ebuild (python-docs-env.patch,352 bytes, patch)
2007-11-01 14:28 UTC, Qiangning Hong
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description adaa 2007-06-27 22:27:01 UTC
$ cat /etc/env.d/50python-docs 
PYTHONDOCS=/usr/share/doc/python-docs-2.4.4/html/lib

$ python
Python 2.4.4 (#1, Jun 28 2007, 03:03:50) 
[GCC 4.1.2 (Gentoo 4.1.2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> help('if')

Sorry, topic and keyword documentation is not available because the Python
HTML documentation files could not be found.  If you have installed them,
please set the environment variable PYTHONDOCS to indicate their location.

---------------

maybe need set PYTHONDOCS to /usr/share/doc/python-docs-2.4.4/html/ ??

---------------


[I] dev-lang/python
     Installed versions:  2.3.5-r3(2.3)(18:06:55 13.05.2007)(-berkdb -bootstrap -build -doc gdbm -ipv6 ncurses -nocxx readline ssl -tk -ucs2)
                          2.4.4-r4(2.4)(03:06:01 28.06.2007)(-berkdb -bootstrap -build doc examples gdbm -ipv6 ncurses -nocxx -nothreads readline ssl -tk -ucs2)
Comment 1 adaa 2007-06-27 22:32:02 UTC
Portage 2.1.2.7 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.5-r3, 2.6.20-gentoo-r8 i686)
=================================================================
System uname: 2.6.20-gentoo-r8 i686 Celeron (Coppermine)
Gentoo Base System release 1.12.9
Timestamp of tree: Sat, 23 Jun 2007 09:00:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.32
dev-lang/python:     2.3.5-r3, 2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
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
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=pentium3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="-a"
FEATURES="assume-digest ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="ru_RU.UTF-8"
LC_ALL=""
LINGUAS="ru"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa apache2 bash-completion bitmap-fonts cairo cdr cups dri dvd dvdr dvdread gdbm gif gpm gtk iconv isdnlog jpeg mad midi mikmod mp3 mpeg mudflap musicbrainz mysql ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png pppd qt3 qt3support qt4 readline reflection samba sdl session slang ssl svg tiff truetype truetype-fonts type1-fonts unicode usb vorbis win32codecs x86 xorg xv zlib" ALSA_CARDS="intel8x0" ELIBC="glibc" FOO2ZJS_DEVICES="hp1018" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LINGUAS="ru" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CTARGET, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 2 René 'Necoro' Neumann 2007-08-22 01:03:17 UTC
With the proposed PYTHONDOCS it works. Any reason why not changing this?
Comment 3 Qiangning Hong 2007-11-01 14:28:25 UTC
Created attachment 134892 [details, diff]
Patch to dev-python/python-docs-2.5.1.ebuild

Maybe gentoo devs need an explicit patch to fix it?  ;-)
  ...So I attach one.  ;-)
Comment 4 Fabian Groffen gentoo-dev 2007-12-17 18:53:28 UTC
confirming the issue.

Being a python illiterate I have no clue what's right or wrong (bug 151695 or this one).  Maybe some stuff just isn't installed into the right location?

I just think either one approach should be chosen.  As it stands currently:

python-docs-2.4.4.ebuild  html/lib
python-docs-2.5.1.ebuild  html/lib
python-docs-2.5.ebuild    html/

which is not consistent.
Comment 5 Fabian Groffen gentoo-dev 2007-12-17 19:11:29 UTC
(but only the setting from 2.5 works for me: I can run `pydoc shlex` and `pydoc if ` only when my PYTHONDOCS is set to /usr/share/doc/python-docs-2.4.3/html.)
Comment 6 Ștefan Talpalaru 2008-08-20 14:00:04 UTC
Still broken in 2.5.2 because of the extra "/lib" attached to the PYTHONDOCS env var.
Comment 7 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-05-17 01:56:21 UTC
It works for me in 2.6.2